Apparent Magnitude Calculator
Apparent magnitude is how bright a star appears from Earth, while absolute magnitude is its true brightness at a standard distance of 10 parsecs. The two are tied together by the distance modulus, a clean logarithmic relationship that depends only on distance. This calculator computes apparent magnitude from an absolute magnitude and distance, and also returns the distance modulus and the brightness ratio relative to the standard 10-parsec distance. Enter the absolute magnitude and distance in parsecs, both user-editable, and read off the apparent magnitude an observer on Earth would measure.
Distance modulus formula
m - M = 5 * log10(d) - 5 (d in parsecs)
m = M + 5 * log10(d) - 5
distance modulus = m - M
light-years = parsecs * 3.26156
brightness ratio = (10 / d)^2
Apparent magnitude rises (gets fainter) as distance increases. The brightness ratio compares the flux at distance d to the flux at the 10-parsec reference distance using the inverse-square law.
Magnitude scale notes
- Smaller magnitude numbers are brighter; negative values are the brightest objects.
- A 5-magnitude difference equals a brightness factor of exactly 100.
- Absolute magnitude is defined at exactly 10 parsecs distance.
- The default M of 4.83 is the Sun's absolute visual magnitude.
- One parsec is about 3.26 light-years.
Apparent magnitude: frequently asked questions
What is apparent magnitude?
Apparent magnitude is how bright a star or object looks from Earth, on the astronomical magnitude scale where smaller numbers are brighter. It depends on the object's true luminosity (its absolute magnitude) and its distance. The relationship is captured by the distance modulus.
What is the distance modulus?
The distance modulus is the difference between apparent magnitude m and absolute magnitude M. It equals 5 times the base-10 logarithm of the distance in parsecs, minus 5. So m minus M equals 5 log10(d) minus 5. Rearranging lets you find apparent magnitude, absolute magnitude, or distance.
What is absolute magnitude?
Absolute magnitude is the apparent magnitude an object would have if it were placed exactly 10 parsecs (about 32.6 light-years) from Earth. It is a distance-independent measure of true brightness, which is why it appears in the distance modulus.
How is distance in parsecs related to light-years?
One parsec is about 3.26 light-years. This calculator works in parsecs because the distance modulus is defined with parsecs. If you have a distance in light-years, divide by 3.26 to convert to parsecs before entering it.
Why is a brighter object a smaller magnitude?
The magnitude scale is inverted and logarithmic by historical convention. A difference of 5 magnitudes corresponds to a brightness factor of exactly 100, so each magnitude step is the fifth root of 100, about 2.512 times in brightness. Negative magnitudes are very bright objects like the Sun, Moon, and Venus.
Official sources
- NASA Science: stars and stellar brightness.
- NASA Imagine the Universe: magnitude and luminosity basics.
Reviewed by the CalculatorHub team, edited by James Graham, 17 June 2026. See our methodology.