← Astronomy

Distance modulus · magnitudes · 1/r^2

Distance modulus calculator

Solve the distance modulus formula m - M = 5 log10(d/10 pc) using apparent magnitude m, absolute magnitude M, and distance d in parsecs or converted units, then inspect brightness scaling on a 1/r^2 graph.

All calculations stay in your browser; units are converted to parsec internally.

Other languages 日本語 | English | 简体中文 | 繁體中文 | Español | Português (Brasil) | Bahasa Indonesia | Français | Italiano | हिन्दी | العربية

How to use (3 steps)

  1. Choose what to solve for: apparent m, absolute M, or distance d.
  2. Enter the other two values and pick the distance unit (pc, ly, kpc, Mpc).
  3. Press Compute to get the result, brightness ratios, graph, and narrated steps. Copy URL shares the same setup.

Sample values (m=10, M=5) are prefilled so you can compute immediately and compare the distance, modulus, and step list together.

Inputs

Example: 10.0
Example: 5.0
Pick the display unit for the solved distance.
Processed locally. The base unit is parsec (1 pc = 3.26156 ly).

Results

Values are recomputed with the same formula to keep them consistent.

1/r^2 brightness graph

The inverse-square law means 10x farther gives roughly 1/100 the brightness.

Calculation steps

    Interpretation & worked examples

    What do m and M mean?

    This tool uses μ = m − M = 5·log10(d/10 pc). Rearranged for distance, d = 10^((m − M + 5)/5) parsecs. If you solve for absolute magnitude, use M = m − 5·log10(d/10 pc).

    Worked examples

    Common pitfalls

    References

    FAQ

    What is the distance modulus formula?

    The distance modulus is \u03bc = m - M = 5 log10(d/10 pc). Here m is apparent magnitude, M is absolute magnitude, and d is distance in parsecs. Rearranging the formula gives d = 10^((m - M + 5)/5) pc.

    Why does brightness drop with 1/d^2?

    Light spreads over a sphere, so flux (brightness per unit area) scales as 1/d^2. If distance grows by 10x, brightness drops to about 1/100.

    Can I enter negative magnitudes or very large distances?

    Yes. The formulas accept negative magnitudes and very large distances. The result is an idealized, textbook-level estimate that ignores extinction or cosmology.

    What do the units pc, ly, kpc, and Mpc mean?

    One parsec (pc) is about 3.26 light-years (ly). A kiloparsec (kpc) is 1000 pc, and a megaparsec (Mpc) is 1,000,000 pc. This calculator converts your chosen unit to parsecs internally before applying the distance modulus formula.

    Why is 10 pc special in the formula?

    Absolute magnitude is defined as the apparent magnitude an object would have at 10 parsecs. That reference distance is built into the standard distance-modulus formula, which is why 10 pc appears inside the logarithm.

    Observing planning tools

    If you apply this formula to observations, also check solar position, moon/tide, and timing conditions.

    Go to observing planning