Apparent Magnitude Calculator Formula
Understand the math behind the apparent magnitude calculator. Each variable explained with a worked example.
Formulas Used
Apparent Magnitude
app_magnitude = abs_magnitude + 5 * log10(distance_pc / 10)Distance Modulus
distance_modulus = 5 * log10(distance_pc / 10)Variables
| Variable | Description | Default |
|---|---|---|
abs_magnitude | Absolute Magnitude (M) | 4.83 |
distance_pc | Distance(pc) | 10 |
How It Works
Apparent Magnitude
Apparent magnitude (m) is how bright a star appears from Earth.
Distance Modulus
m = M + 5 log10(d / 10)
Lower magnitudes are brighter. Each magnitude step is a factor of ≈2.512 in brightness.
Worked Example
The Sun has M = 4.83. How bright would it be at 10 pc?
abs_magnitude = 4.83distance_pc = 10
- 01m = M + 5 log10(d/10)
- 02m = 4.83 + 5 log10(10/10)
- 03m = 4.83 + 5 × 0 = 4.83
- 04At 10 pc the Sun would be a modest naked-eye star.
Ready to run the numbers?
Open Apparent Magnitude Calculator