Distance Modulus Calculator

Solve for any of apparent magnitude, absolute magnitude, or distance from the other two via m − M = 5log10(d/10 pc) [+ A], with an optional interstellar-extinction term, a distance ladder, and a semi-log distance-modulus chart.

Distance modulus calculator

Absolute magnitude M is defined as the apparent magnitude an object would have if moved to exactly 10 parsecs away. The gap between the two, m − M, is the distance modulus — purely a function of distance (plus dust dimming, if any): m − M = 5 log₁₀(d / 10 pc) + A. Give any two of m, M, and d, and this solves for the third.

100
μ = m − M = +5.00
d = 100 pc
1 pc100 pc10 kpc1 Mpc100 MpcProxima Centauri (nearest star)10 pc — the M reference distancePleiades clusterGalactic centerLarge Magellanic CloudAndromeda Galaxy (M31)Virgo Clusterthis object

Log-scale distance ladder, from 1 pc to 100 Mpc, anchored on the 10 pc reference distance that absolute magnitude is defined at.

10 pc100 pc1 kpc0.00+5.00+10.00this object

Semi-log plot — the distance modulus relation is a straight line of slope 5 here. Toggle on extinction above to see how dust shifts this line.

How bright a star looks from Earth (its apparent magnitude, m) depends on two completely different things tangled together: how bright it actually is, and how far away it is. Absolute magnitude (M) untangles them by asking a hypothetical question — how bright would this object look if it were exactly 10 parsecs away? The gap between the two answers, m − M, turns out to depend on nothing but distance (and dust), which makes it one of the most directly useful relations in observational astronomy: measure any two of m, M, and d, and the third falls out immediately.

The relation

mM=5log10(d10 pc)m - M = 5 \log_{10}\left(\frac{d}{10\ \mathrm{pc}}\right)

m − M is called the distance modulus, often written μ. It’s zero exactly at 10 pc (where m and M agree by definition), negative for anything closer, and grows by 5 for every factor of 10 farther away — so a star with m = 10 and M = 5 has μ = 5, meaning it sits at exactly 100 pc, the worked example this calculator opens with.

This is also precisely how the “standard candle” method for measuring cosmic distances works: if you know an object’s absolute magnitude independently (Cepheid variables and Type Ia supernovae are the classic examples, calibrated through the cosmic distance ladder), a single apparent-magnitude measurement is enough to read off its distance.

Adding interstellar extinction

Dust and gas between here and the object absorb and scatter its light, making it look fainter than distance alone would predict — never brighter. Accounting for it adds one term:

mM=5log10(d10 pc)+Am - M = 5 \log_{10}\left(\frac{d}{10\ \mathrm{pc}}\right) + A

A is the extinction, in magnitudes, along that specific line of sight. Skip it (A = 0) and the relation is exact for an unobstructed view; ignore it when it’s actually present and a distance calculated from m and M alone comes out too large, because some of the “distance dimming” you measured was really dust dimming. This calculator makes A an explicit optional toggle rather than folding it in silently, so it’s always clear whether a given result assumes a clear line of sight or not.

Reading the two charts