Skip to content
K Knidox Search…
Astronomy · Stars & Light

Distance Modulus Calculator

Link apparent magnitude, absolute magnitude, and distance through the distance modulus.

Solve for
How bright it looks from Earth. Can be negative.
Brightness at 10 parsecs. Can be negative.
Distance (d)
100parsecs

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 − M = 5·log₁₀(d) − 5

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. 1
    Write the distance modulus relation. m − M = 5·log₁₀(d) − 5, with distance d measured in parsecs.
  2. 2
    Compute the distance modulus μ = m − M. μ = 8.5 − (−3.5) = 12. Magnitudes can be negative, so keep the signs.
  3. 3
    Solve the formula for distance. Rearranging gives d = 10^((m − M + 5) ÷ 5) = 10^((12 + 5) ÷ 5) = 10^(3.4).
  4. 4
    Evaluate the power of ten. d = 10^3.4 ≈ 2512 parsecs.
  5. 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).

ObjectApparent mAbsolute MModulus μDistance
The Sun−26.74+4.83−31.574.85 × 10⁻⁶ pc (1 AU)
Sirius A−1.46+1.42−2.882.64 pc (8.6 ly)
Vega+0.03+0.58−0.557.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.

What is the difference between apparent and absolute magnitude?
Apparent magnitude (m) is how bright an object looks from Earth, which depends on its distance. Absolute magnitude (M) is how bright it would look from a fixed distance of 10 parsecs, so it measures true luminosity. Their difference, μ = m − M, is the distance modulus.
What is absolute magnitude defined at?
Absolute magnitude is the apparent magnitude an object would have if it were placed exactly 10 parsecs (about 32.6 light-years) from us. That standard distance is why the relation m − M = 5·log₁₀(d) − 5 gives m − M = 0 when d = 10 parsecs.
Why is the magnitude scale backwards?
It is inherited from the ancient Greek ranking where the brightest stars were “first magnitude” and the faintest visible ones “sixth”. When the scale was made precise, that order was kept, so brighter objects have smaller — and often negative — magnitudes. Each step of 1 is a brightness ratio of about 2.512.
How do I get distance from the distance modulus?
Rearrange m − M = 5·log₁₀(d) − 5 into d = 10^((m − M + 5) ÷ 5), with d in parsecs. For example μ = m − M = 5 gives d = 10^((5 + 5) ÷ 5) = 10² = 100 parsecs, or about 326 light-years.
Can apparent or absolute magnitude be negative?
Yes. Very bright objects have negative magnitudes: the Sun is about m = −26.7, Sirius m = −1.46, and Vega sits near 0. Absolute magnitudes can be negative too — luminous stars and whole galaxies reach M values of −5 to −21 or lower. The calculator handles negative inputs directly.
Does the distance modulus account for interstellar dust?
No. The basic relation m − M = 5·log₁₀(d) − 5 assumes nothing dims the light on the way. Real dust adds an extinction term A: m − M = 5·log₁₀(d) − 5 + A. Ignoring it makes objects look fainter and appear farther than they are, so extinction must be corrected for accurate distances.
What units does the distance come out in?
Parsecs, because the −5 constant in the formula assumes d is in parsecs. This tool also converts to light-years using 1 parsec ≈ 3.2616 light-years, so a distance of 100 parsecs is about 326 light-years.