where L⊙ and M⊙ are the luminosity and mass of the Sun and 1 < a < 6. The value a = 3.5 is commonly used for main-sequence stars. This equation and the usual value of a = 3.5 only applies to main-sequence stars with masses 2M⊙ < M < 20M⊙ and does not apply to red giants or white dwarfs. As a star approaches the Eddington Luminosity then a = 1.
For stars with masses less than 0.43M⊙, convection is the sole energy transport process, so the relation changes significantly. For stars with masses M > 20M⊙ the relationship flattens out and becomes L ∝ M. It can be shown this change is due to an increase in radiation pressure in massive stars. These equations are determined empirically by determining the mass of stars in binary systems to which the distance is known via standard parallax measurements or other techniques. After enough stars are plotted, stars will form a line on a logarithmic plot and slope of the line gives the proper value of a.
The mass/luminosity relation is important because it can be used to find the distance to binary systems which are too far for normal parallax measurements, using a technique called "dynamical parallax". In this technique, the masses of the two stars in a binary system are estimated, usually as being the mass of the Sun. Then, using Kepler's laws of celestial mechanics, the distance between the stars is calculated. Once this distance is found, the distance away can be found via the arc subtended in the sky, giving a preliminary distance measurement. From this measurement and the apparent magnitudes of both stars, the luminosities can be found, and by using the mass–luminosity relationship, the masses of each star. These masses are used to re-calculate the separation distance, and the process is repeated. The process is iterated many times, and accuracies as high as 5% can be achieved. The mass/luminosity relationship can also be used to determine the lifetime of stars by noting that lifetime is approximately proportional to M/L. One finds that more massive stars live shorter. A more sophisticated calculation factors in a star's loss of mass over time.
Deriving a theoretically exact mass/luminosity relation requires finding the energy generation equation and building a thermodynamic model of the inside of a star. However, the basic relation L ∝ M3 can be derived using some basic physics and simplifying assumptions. The first such derivation was performed by astrophysicist Arthur Eddington in 1924. The derivation showed that stars can be approximately modelled as ideal gasses, which was a new, somewhat radical idea at the time. What follows is very similar to Eddington's approach, but uses a random-walk analysis and does not include the optical opacity.
where σ is Stefan's constant, 5.67 × 10−8W m−2 K−4.
Under the condition of hydrostatic equilibrium,
By integrating both sides of this relation from r = 0 to r = R, one arrives at a form of the virial theorem:
The potential energy of a spherical mass distribution is
This and the volume are substituted in to give
Simplifying greatly, the ideal gas law (PV = nkT) can be used to obtain the temperature.
Here is the average mass of gas particles within the star. Substituting this equation into the initial luminosity equation, along with
A slightly more exact result can be achieved by considering that the above equation gives the average temperature based on the average pressure, but what is actually needed is the surface temperature. Because stars are much hotter in the center than near the surface, one also needs to estimate the relationship between the surface temperature and internal temperature. The center is so much hotter since energy takes a long time to escape, otherwise, thermodynamic equilibrium would be achieved quickly and the temperature would be nearly uniform throughout. A random walk analysis can be used to estimate the "delay factor", i.e. the amount of time it takes energy to escape. In reality, the mean free path, of photons within the Sun depends on the density and temperature, but here it will be approximated as a constant. After N interactions, resulting in N vector displacements in random directions, the distance traveled is:
The square of the net displacement is:
Averaging over many random direction changes, the terms involving dot products cancel since the direction is random. Hence, for large ,
Thus, to escape from the Sun, on average steps are required. The time this takes is . In contrast, the time to escape directly out of the Sun from the center is , which is a factor of shorter.
Thus, factoring this into the Stefan-Boltzmann law leads to
Combining the above equations, the following result is obtained 
But the mean free path is inversely proportional to the product of the cross section and the numerical density, and thus
Distinguishing between small and large stellar masses
One may distinguish between the cases of small and large stellar masses by deriving the above results using radiation pressure. In this case, it is easier to use the optical opacity and to consider the internal temperature TI directly; more precisely, one can consider the average temperature in the radiation zone.
The consideration begins by noting the relation between the radiation pressure Prad and luminosity. The gradient of radiation pressure is equal to the momentum transfer absorbed from the radiation, giving:
where c is the velocity of light. Here, ; the photon mean free path.
The radiation pressure is related to the temperature by , therefore
from which it follows directly that
In the radiation zone gravity is balanced by the pressure on the gas coming from both itself (approximated by ideal gas pressure) and from the radiation. For a small enough stellar mass the latter is negligible and one arrives at
as before. More precisely, since integration was done from 0 to R so on the left side, but the surface temperature TE can be neglected with respect to the internal temperature TI.
From this it follows directly that
For a large enough stellar mass, the radiation pressure is larger than the gas pressure in the radiation zone. Plugging the radiation pressure, instead of the ideal gas pressure used above, yields
- Salaris, Maurizio; Santi Cassisi (2005). Evolution of stars and stellar populations. John Wiley & Sons. pp. 138–140. ISBN 0-470-09220-3.
- "Mass-luminosity relationship". Hyperphysics. Retrieved 2009-08-23.
- Duric, Nebojsa (2004). Advanced astrophysics. Cambridge University Press. p. 19. ISBN 978-0-521-52571-8.
- Mullaney, James (2005). Double and multiple stars and how to observe them. Springer. ISBN 1-85233-751-6.
- Phillips, A.C. (1999). The Physics of Stars. John Wiley & Sons. ISBN 978-0-471-98798-7.
- Lecchini, Stefano. How Dwarfs Became Giants. The Discovery of the Mass-Luminosity Relation. Bern Studies in the History and Philosophy of Science. ISBN 978-3-9522882-6-9.