Skip to main content
Physics formula

How to calculate distance modulus

Distance modulus connects how bright an astronomical object looks with how bright it would be at 10 parsecs.

Direct answer
Formula
mu = m - M = 5 * log10(d / 10)

Use the table below to match each symbol with the right input. Keep units consistent before you start.

Distance modulus formula
Start here when you only need the equation and variable names.
Formula
mu = m - M = 5 * log10(d / 10)

Distance modulus connects how bright an astronomical object looks with how bright it would be at 10 parsecs.

Variable meanings
Check each symbol, meaning, and unit before you calculate.
SymbolNameDescriptionUnit
muDistance modulusDifference between apparent and absolute magnitude.mag
mApparent magnitudeHow bright the object appears from Earth.mag
MAbsolute magnitudeHow bright the object would appear at 10 parsecs.mag
dDistanceDistance to the object.parsecs
When to use this formula
Check that your situation matches the formula before you trust the result.
  • Use it for stars, supernovae, galaxies, and other astronomical objects when apparent magnitude and absolute magnitude or distance are known.
Step-by-step method
Follow these steps when you are solving it by hand.
  1. 1Subtract absolute magnitude from apparent magnitude to get distance modulus.
  2. 2To solve distance, add 5 to the modulus and divide by 5.
  3. 3Raise 10 to that power to get distance in parsecs.
  4. 4Convert parsecs to light-years if needed.
Examples
These sample numbers show the order of operations and units.
Solve distance from magnitudes
m
10
M
5
  1. 1.mu = 10 - 5 = 5
  2. 2.d = 10^((5 + 5) / 5)
  3. 3.d = 100 pc
Result
The object is 100 parsecs away.
Solve modulus from distance
d
1,000 pc
  1. 1.mu = 5 * log10(1000 / 10)
  2. 2.mu = 5 * log10(100)
  3. 3.mu = 10 mag
Result
An object at 1,000 parsecs has a distance modulus of 10 mag.
Mistakes to avoid
Small input or unit errors can change the answer a lot.
  • Using light-years directly in the logarithm instead of converting distance to parsecs.
  • Reversing apparent magnitude and absolute magnitude.
  • Forgetting that the magnitude scale is logarithmic and backwards: larger magnitudes are fainter.
  • Rounding the exponent before calculating the distance.
Open the Distance Modulus Calculator
Open the calculator for the answer without rewriting the formula.

Enter your values in the related calculator, then compare the output with the hand method above.

Open Distance Modulus Calculator
FAQs
Short answers for common formula questions.
Can I calculate Distance modulus by hand?

Yes. Write the units next to each value, convert rates or measurements first, and round only the final answer.

Why does my Distance modulus result differ from another calculator?

Most differences come from rounding, unit conversions, rate timing, or a slightly different version of the formula.

When is the Distance Modulus Calculator better than hand math?

Open the Distance Modulus Calculator to check several scenarios or skip the hand arithmetic.