Distance Modulus Calculator
The distance modulus is the bridge astronomers use between how bright a star looks and how bright it really is. It is defined as the apparent magnitude minus the absolute magnitude, the quantity m minus M, and it depends only on distance. The relationship is m minus M equals 5 times the base-10 logarithm of the distance in parsecs, minus 5. This calculator takes a distance in parsecs and returns the distance modulus, computed deterministically from that formula, never estimated, so the worked example reconciles exactly with the figure on screen. Absolute magnitude is defined as the brightness an object would show at a reference distance of 10 parsecs, which is why the modulus is exactly zero there: at 10 parsecs apparent and absolute magnitude are equal. Beyond that distance the modulus grows, encoding how much fainter the object appears than it truly is. The distance modulus is central to the cosmic distance ladder, where standard candles such as Cepheid variables and Type Ia supernovae have known absolute magnitudes. The simple form here ignores interstellar extinction, the dimming caused by dust, which real measurements correct for separately. Use this tool to convert a distance into a modulus or to check an astronomy problem.
The distance modulus is m - M = 5 log10(d) - 5, with d in parsecs. At a distance of 100 parsecs, the distance modulus is 5.00, because 5 x log10(100) - 5 = 10 - 5.
Distance modulus formula
m - M = 5 log10(d) - 5
m = apparent magnitude
M = absolute magnitude
d = distance in parsecs
The distance modulus equals five times the base-10 logarithm of the distance in parsecs, less five. At 10 parsecs the modulus is zero, and it increases for more distant objects, measuring how much fainter they appear than their true brightness.
Worked example
Find the distance modulus for an object 100 parsecs away.
- log10(100) = 2
- 5 x 2 = 10
- m - M = 10 - 5 = 5.00
The distance modulus is 5.00, meaning the object appears 5 magnitudes fainter than its absolute magnitude. This is the calculator's default input, so the result above matches the widget exactly.
Distance and modulus reference
| Distance (parsecs) | Distance modulus (m - M) |
|---|---|
| 10 | 0.00 |
| 100 | 5.00 |
| 1,000 | 10.00 |
| 10,000 | 15.00 |
| 100,000 | 20.00 |
Reference: US National Aeronautics and Space Administration (NASA).
Distance modulus: frequently asked questions
What is the distance modulus?
The distance modulus is the difference between a star's apparent magnitude m and its absolute magnitude M. It depends only on distance: m minus M equals 5 times the base-10 logarithm of the distance in parsecs, minus 5. Astronomers use it to convert between how bright an object looks and how bright it truly is.
What is the difference between apparent and absolute magnitude?
Apparent magnitude m is how bright an object appears from Earth. Absolute magnitude M is how bright it would appear from a standard distance of 10 parsecs. Because brightness fades with distance, the gap between the two values encodes how far away the object is.
Why is the distance reference 10 parsecs?
Absolute magnitude is defined as the apparent magnitude an object would have at exactly 10 parsecs. At that distance the distance modulus is zero, since 5 times the log of 10 minus 5 equals zero, so apparent and absolute magnitude coincide. The formula measures how much farther or nearer the object actually is.
How do I get the distance back from the modulus?
Rearrange the formula: the distance in parsecs equals 10 raised to the power of the distance modulus plus 5, all divided by 5. So if m minus M is 5, the distance is 10 to the power of 2, which is 100 parsecs. This calculator works in the forward direction, from distance to modulus.
Does interstellar dust affect the distance modulus?
Yes. Dust dims and reddens light, adding extinction to the apparent magnitude. The simple formula here assumes no extinction. In real measurements astronomers add an extinction term to the distance modulus to correct for absorption along the line of sight before deriving a distance.
Official sources
- Astronomy and stellar distance reference: US National Aeronautics and Space Administration (NASA). As at 25 June 2026.
Reviewed by the CalculatorHub team, edited by James Graham, 25 June 2026. See our methodology. This is general information, not financial, tax, legal or investment advice.