Astronomy & Space
Advanced

Distance Modulus

Relates apparent and absolute magnitude to distance.

Formula

m−M=5log⁡10(d)−5m - M = 5\log_{10}(d) - 5

Variables

mApparent magnitude
MAbsolute magnitude
dDistance (pc)

Example

A star at 100 pc has m − M = 5·log(100) − 5 = 5 magnitudes.

How it works

The distance modulus links how bright an object appears from Earth to how intrinsically luminous it really is, with the gap between the two determined by distance. It comes from the inverse-square law for light: as distance increases, a star’s flux spreads over a larger area, so its apparent magnitude changes logarithmically. The constant 5 appears because the magnitude scale is logarithmic and is calibrated so that a factor of 10 in distance corresponds to a 5-magnitude change.

When to use it

Use this when you know a star’s apparent magnitude and want its distance, or when you know its absolute magnitude from a standard-candle relation and want to predict how bright it should look. It is also essential in stellar astronomy, galaxy distance estimation, and checking whether an observed source is unusually bright or faint for its class.

Worked example, step by step

A Cepheid variable has apparent magnitude m = 14.2 and absolute magnitude M = -4.3. Compute the distance modulus: m - M = 14.2 - (-4.3) = 18.5 Set up the formula: 18.5 = 5 log10(d) - 5 Add 5 to both sides: 23.5 = 5 log10(d) Divide by 5: 4.7 = log10(d) Undo the logarithm: d = 10^4.7 pc Calculate: d ≈ 5.01 × 10^4 pc Final answer: the star is about 50,000 pc away (about 50 kpc).

Common mistakes to avoid

  • Using metres or light-years in the formula instead of parsecs
  • Forgetting that M can be negative and subtracting it incorrectly
  • Solving the logarithm incorrectly, especially forgetting to take 10 to the power of the result

Did You Know?

The distance modulus compares how bright a star looks with how bright it truly is to find its distance.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026