About the Apparent & Absolute Magnitude Calculator
This magnitude calculator converts between a star’s apparent magnitude (how bright it looks from Earth), its absolute magnitude (how bright it would look from 10 parsecs) and its distance, using the distance modulus m − M = 5·log₁₀(d) − 5. Give any two and it solves for the third, in parsecs or light-years, and can subtract interstellar extinction for stars dimmed by dust.
It suits astronomy students working through stellar-brightness problems, amateur observers wondering how far a star or Cepheid is, and anyone asking whether the Sun would be visible from a distant star. Results also show the star’s visual luminosity relative to the Sun and whether it would be visible to the naked eye, and the chart traces how the same star fades with distance.
Magnitudes run backwards — smaller numbers are brighter — and each step of 5 magnitudes is exactly a factor of 100 in brightness. All values should be in the same photometric band (usually visual, V); luminosity comparisons use the Sun’s absolute V magnitude of 4.83.
How to use the apparent & absolute magnitude calculator
- 1Choose which quantity to solve for: absolute magnitude, apparent magnitude or distance.
- 2Enter the two known values; pick parsecs or light-years for distance.
- 3Add interstellar extinction if the star is distant or behind dust (optional).
- 4Read the answer, the distance modulus, the star’s luminosity versus the Sun and its visibility.
Formula and method
Apparent magnitude m measures brightness as seen from Earth; absolute magnitude M is the apparent magnitude the object would have at a standard distance of 10 parsecs. Because brightness falls with the square of distance and the magnitude scale is logarithmic (5 magnitudes = a factor of 100), the two are linked by the distance modulus m − M = 5·log₁₀(d) − 5, with d in parsecs.
Interstellar dust makes distant stars look fainter; this extinction A (in magnitudes) is added to the right-hand side, so ignoring it overestimates distance. Visual luminosity relative to the Sun uses the Sun’s absolute V magnitude, 4.83. Light-years are converted with 1 pc = 3.26156 ly. In the chart, extinction is scaled in proportion to distance as a simple approximation.
- m
- Apparent magnitude
- M
- Absolute magnitude (at 10 pc)
- d
- Distance in parsecs
- A
- Interstellar extinction (magnitudes)
- L/L☉
- Visual luminosity relative to the Sun
Worked examples
Absolute magnitude of Sirius (m = −1.46 at 2.64 pc)
M = −1.46 − 5·log₁₀(2.64) + 5 = −1.46 − 2.108 + 5 ≈ 1.43. Sirius is about 23 times as luminous as the Sun in visible light; it looks so bright mostly because it is close.
How bright would the Sun look from 100 light-years?
100 ly = 30.66 pc, so m = 4.83 + 5·log₁₀(30.66) − 5 ≈ 7.26 — too faint to see without binoculars. Most stars you see at night are far more luminous than the Sun.
Distance to a Cepheid with m = 12 and M = −3
The distance modulus is 15, so d = 10^((15 + 5) ÷ 5) = 10,000 pc, about 32,600 light-years. Cepheid variables are used this way because their pulsation period reveals M.
Same Cepheid with 1 magnitude of extinction
Removing 1 magnitude of dust dimming gives d = 10^((15 − 1 + 5) ÷ 5) ≈ 6,310 pc — ignoring dust would have overestimated the distance by almost 60%.
Frequently asked questions
What is the difference between apparent and absolute magnitude?+
Apparent magnitude is how bright a star looks from Earth, which depends on both its power and its distance. Absolute magnitude is how bright it would look from a standard 10 parsecs (32.6 ly), so it compares stars’ true luminosities fairly.
What is the distance modulus formula?+
m − M = 5·log₁₀(d) − 5, with d in parsecs. Rearranged, d = 10^((m − M + 5)/5). A distance modulus of 0 means 10 pc, 5 means 100 pc and 10 means 1,000 pc.
Why are brighter stars given lower magnitudes?+
The scale dates back to Hipparchus, who ranked the brightest stars “first magnitude” and the faintest “sixth”. It was later defined so that 5 magnitudes is exactly a factor of 100 in brightness, and very bright objects have negative values — Sirius is −1.46 and the Sun −26.7.
What is the absolute magnitude of the Sun?+
About +4.83 in the visual (V) band. From 10 parsecs the Sun would be a modest star barely visible to the naked eye under dark skies. Its bolometric (all-wavelength) absolute magnitude is 4.74 under IAU 2015 Resolution B2.
What is the faintest magnitude visible to the naked eye?+
About magnitude 6 under dark, rural skies, and as poor as 3–4 in bright cities. Binoculars reach about magnitude 9–10, and an 8-inch telescope roughly magnitude 14.