Distance Modulus Calculator
Link apparent magnitude, absolute magnitude, and distance through the distance modulus.
Distance modulus μ = m − M = 5. That is 326.16 light-years (1 pc ≈ 3.2616 ly).
The distance modulus is μ = m − M, the gap between an object’s apparent and absolute magnitude. It fixes distance through m − M = 5·log₁₀(d) − 5, with d in parsecs. A modulus of μ = 5 gives d = 10^((5 + 5) ÷ 5) = 10² = 100 parsecs, about 326 light-years.
Apparent versus absolute magnitude
Apparent magnitude (m) is how bright an object looks from Earth; absolute magnitude (M) is how bright it would look from a standard distance of 10 parsecs. Two stars can share an apparent magnitude yet differ hugely in true output — one may be a faint dwarf nearby, the other a brilliant giant far away. The distance modulus μ = m − M strips out that ambiguity: it depends only on distance, so knowing any two of m, M, and d pins down the third.
The magnitude scale is logarithmic and inverted. Each step of 1 magnitude is a brightness ratio of about 2.512, and five steps make exactly a factor of 100. Crucially, brighter objects have smaller — and often negative — magnitudes. The Sun sits at m ≈ −26.7, Sirius at −1.46, and Vega near 0, while faint stars climb to +6 and beyond.
m = apparent magnitude, M = absolute magnitude, d = distance in parsecs. The distance modulus is μ = m − M, and distance follows from d = 10^((m − M + 5) ÷ 5). 1 parsec ≈ 3.2616 light-years.
Worked example
A Cepheid has apparent magnitude m = 8.5 and, from its pulsation period, an absolute magnitude M = −3.5. Its distance follows from the modulus:
- 1 Write the distance modulus relation. m − M = 5·log₁₀(d) − 5, with distance d measured in parsecs.
- 2 Compute the distance modulus μ = m − M. μ = 8.5 − (−3.5) = 12. Magnitudes can be negative, so keep the signs.
- 3 Solve the formula for distance. Rearranging gives d = 10^((m − M + 5) ÷ 5) = 10^((12 + 5) ÷ 5) = 10^(3.4).
- 4 Evaluate the power of ten. d = 10^3.4 ≈ 2512 parsecs.
- 5 Convert to light-years if you like. d = 2512 × 3.2616 ≈ 8193 light-years.
Distance modulus for real objects
Apparent (m) and absolute (M) magnitudes and distances are rounded catalogue values; μ = m − M and d = 10^((μ + 5) ÷ 5).
| Object | Apparent m | Absolute M | Modulus μ | Distance |
|---|---|---|---|---|
| The Sun | −26.74 | +4.83 | −31.57 | 4.85 × 10⁻⁶ pc (1 AU) |
| Sirius A | −1.46 | +1.42 | −2.88 | 2.64 pc (8.6 ly) |
| Vega | +0.03 | +0.58 | −0.55 | 7.68 pc (25 ly) |
| δ Cephei (Cepheid) | +3.9 | −3.3 | +7.2 | ≈ 275 pc |
| Andromeda Galaxy (M31) | +3.4 | −21.0 | +24.4 | ≈ 780,000 pc |
Reading the modulus
A larger distance modulus means a more distant object. Because μ = 5·log₁₀(d) − 5, every increase of 5 in μ multiplies the distance by 10: μ = 0 is 10 parsecs, μ = 5 is 100 parsecs, μ = 10 is 1000 parsecs. Nearby objects can even have a negative modulus — the Sun’s is about −31.6 because it is only one astronomical unit away, far closer than the 10-parsec reference.
This simple version ignores interstellar extinction. Dust dims and reddens starlight, adding an extinction term A so the observed relation becomes m − M = 5·log₁₀(d) − 5 + A. Ignoring dust makes an object look fainter and therefore seem farther away than it is. For clear sightlines the correction is small, but toward the galactic plane it matters, which is why the distance modulus is a starting point rather than the last word.