Distance Modulus Calculator (Magnitudes and Star Distance)

Written by Thierno Sadou Diallo, formula verified per our methodology • Last checked on 12/8/2026

The distance modulus m − M links an object’s distance to its magnitudes: d = 10^((m − M + 5) / 5) parsecs. For Vega, m = 0.03 and M = 0.58: m − M = −0.55, so d ≈ 7.76 parsecs, about 25.3 light-years.

Explanation

Astronomers measure the brightness of objects in magnitudes, a scale inherited from antiquity that runs backwards: the smaller the number, the brighter the object, and a difference of 5 magnitudes corresponds to a brightness ratio of 100. Apparent magnitude m describes brightness as seen from Earth: it depends on the object's true luminosity and its distance. Absolute magnitude M is a convention that removes the effect of distance: it is the magnitude the object would have if placed at 10 parsecs, about 32.6 light-years. The difference m − M is therefore a pure measure of distance, called the distance modulus. Since brightness falls as the inverse square of distance, we get m − M = 5 × log₁₀(d / 10 pc), hence d = 10^((m − M + 5) / 5) parsecs. If m = M, the object is at 10 parsecs; if m − M = 5, it is ten times farther, at 100 parsecs. This relation is one rung of the cosmic distance ladder: when you know a star's absolute magnitude from its type, or that of a standard candle such as a Cepheid or a type Ia supernova, you only need to measure its apparent magnitude to infer distance. The calculator also gives luminosity in solar luminosities, taking the Sun's absolute magnitude as 4.83: Vega radiates about 50 times more. One important point: the formula ignores extinction, the absorption of light by interstellar dust, which makes the object fainter and so appear farther than it is. For nearby stars the error is small; for distant objects in the Galactic plane it becomes significant. For directly measured distances, see the parallax distance calculator; for the law linking brightness and distance, the stellar flux calculator.

Example: Vega, a star in Lyra

Inputs

Apparent magnitude 0.03; absolute magnitude 0.58.

Calculation

Distance modulus = 0.03 − 0.58 = −0.55. d = 10^((−0.55 + 5) / 5) = 10^0.89 ≈ 7.76 parsecs. In light-years: 7.76 × 3.26156 ≈ 25.3. Luminosity = 10^(0.4 × (4.83 − 0.58)) = 10^1.70 ≈ 50 L☉.

Result

Vega is about 25 light-years away and radiates about 50 times more than the Sun.

Frequently asked questions

Why does a smaller magnitude mean a brighter object?

It is a historical convention: the brightest stars of antiquity were ranked as first magnitude. Five magnitudes of difference is a factor of 100 in brightness. Objects brighter than Vega even have negative magnitudes, like Sirius at −1.46.

Why is the result sometimes too large?

The formula ignores extinction: interstellar dust absorbs light, makes the object fainter, so the inferred distance is overestimated. m must then be corrected for extinction.

What is a parsec?

It is the distance at which a star shows a parallax of one arcsecond: 3.26156 light-years, about 30.8 trillion kilometers.

Related resources

Similar calculators