Distance Modulus Calculator Formula
Understand the math behind the distance modulus calculator. Each variable explained with a worked example.
Formulas Used
Distance Modulus (m - M)
modulus = app_mag - abs_magDistance
distance_pc = pow(10, (app_mag - abs_mag + 5) / 5)Distance (ly)
distance_ly = pow(10, (app_mag - abs_mag + 5) / 5) * 3.26156Variables
| Variable | Description | Default |
|---|---|---|
app_mag | Apparent Magnitude (m) | 1.43 |
abs_mag | Absolute Magnitude (M) | -5.14 |
How It Works
Distance Modulus
The distance modulus (m - M) connects apparent and absolute magnitudes to distance.
Formula
d = 10^((m - M + 5) / 5) parsecs
This is the inverse of the magnitude-distance relation and is fundamental to the cosmic distance ladder.
Worked Example
A Cepheid variable has m = 1.43 and M = -5.14.
app_mag = 1.43abs_mag = -5.14
- 01Distance modulus = m - M = 1.43 - (-5.14) = 6.57
- 02d = 10^((6.57 + 5)/5) = 10^(11.57/5) = 10^2.314
- 03d ≈ 206 pc ≈ 672 ly
Ready to run the numbers?
Open Distance Modulus Calculator