How is the stellar mass component of a galaxy estimated?

Answer

By calculating the total luminosity and applying a Mass-to-Light ratio ($M/L$).

Stellar mass is derived from the total light output by applying a conversion factor, the Mass-to-Light ratio, which must account for the age and composition of the stars present.

How is the stellar mass component of a galaxy estimated?
measurementgalaxyastronomymethodmass