The distance of a star follows from how much fainter it looks than it really is. The distance modulus calculator takes the apparent magnitude, the absolute magnitude and the dust extinction and gives the distance modulus and the distance in parsecs, light-years, kiloparsecs and megaparsecs.
How the calculation works
- Enter the apparent magnitude m (how bright the object looks) and the absolute magnitude M (how bright it would look at 10 parsecs).
- Enter the extinction A, the dimming by interstellar dust along the line of sight, in magnitudes (0 if you ignore it).
- The distance modulus is μ = m − M − A, which is 5 log₁₀(d) − 5 with d in parsecs.
- The distance is d = 10^(μ/5 + 1) parsecs. The result is also given in light-years, kiloparsecs and megaparsecs.
Example
A Cepheid variable star has an absolute magnitude M = −3.5 (from its period) and looks like m = 12.5, with 0.3 mag of dust extinction. The distance modulus is 12.5 + 3.5 − 0.3 = 15.70 mag, so the distance is 10^(15.7/5 + 1) = about 13,800 pc, or 45,020 light-years. That is outside the solar neighborhood but inside our galaxy.
Why it matters
The distance modulus is the standard language of extragalactic distance measurement. It links the standard candles to the cosmic distance ladder, from Cepheids in the nearest galaxies to supernovae at cosmological distances, and it is used to compare the distances of galaxies, clusters and stars in a single unit.
Good to know
The formula assumes that the absolute magnitude is known and that the magnitudes are measured in the same photometric band, with the extinction in that band. In practice, standard candles have a scatter of 0.1 to 0.5 magnitude, which means a distance uncertainty of 5 to 25 %, and the extinction is itself uncertain. At cosmological distances, the redshift also dims and reddens the light (the K-correction), which the calculator does not include, and the distance is a luminosity distance.
Related tools
The star distance calculator gives the distance of near stars from their parallax, the redshift calculator and the Hubble law calculator cover the distant galaxies, and the stellar luminosity calculator links the absolute magnitude to the power of a star.