Free Online Star Magnitude Calculator
Convert between stellar brightness, magnitude, and distance.
The selected quantity is calculated from the other two.
The ratio compares the object with a hypothetical source of this apparent magnitude. Zero is the traditional Vega-zero point.
d = 10(m − M + 5) / 5
F₁ / F₂ = 10(m₂ − m₁) / 2.5
Magnitudes are logarithmic and run backwards: a smaller number means a brighter object. A difference of five magnitudes corresponds to a brightness ratio of exactly 100.
About the Star Magnitude Calculator
Astronomical magnitude is a logarithmic measure of brightness inherited from an ancient ranking system. The brightest stars were called first magnitude and the faintest visible ones sixth magnitude, so smaller numbers indicate brighter objects. The scale was later formalised so that a difference of five magnitudes corresponds exactly to a factor of one hundred in brightness. This calculator applies the distance modulus relation to convert between apparent magnitude, absolute magnitude, and distance, and it reports the corresponding brightness ratio so the logarithmic numbers become easier to interpret.
Apparent versus absolute magnitude
Apparent magnitude (m) describes how bright a star appears from Earth. It depends on both the star's true luminosity and its distance, and it is affected by interstellar dust. Absolute magnitude (M) describes the brightness the same object would have at a standard distance of exactly ten parsecs, about 32.6 light years. By placing every star at the same reference distance, absolute magnitude provides a fair comparison of intrinsic output. The Sun has an apparent magnitude of roughly −26.7 but an absolute magnitude of only about +4.83, which illustrates how dramatically distance changes the apparent result.
The distance modulus
The difference m − M is called the distance modulus. It is related to distance by m − M = 5 log₁₀(d / 10 pc). Rearranging gives d = 10(m − M + 5) / 5 parsecs. A distance modulus of zero means the object is exactly ten parsecs away. Positive values indicate a greater distance, and negative values indicate a nearer object. Because the relation is logarithmic, a modest change in distance modulus corresponds to a large change in distance: each increase of five magnitudes means the object is ten times farther away.
Brightness ratios
The human eye perceives brightness logarithmically, which is why magnitude differences are converted to ratios with a power of 2.5 rather than a simple linear factor. If two objects have magnitudes m₁ and m₂, the brighter one is 10(m₂ − m₁) / 2.5 times more luminous in apparent brightness. A difference of one magnitude is about 2.512, three magnitudes is about 15.85, and ten magnitudes is 10,000. The reference field lets you compare your object with any chosen magnitude, including zero, the full moon, or a planet.
Distance units and parallax
A parsec is defined as the distance at which one astronomical unit subtends an angle of one arcsecond. It equals about 3.2616 light years, 206,265 astronomical units, or 3.0857 × 10¹³ kilometres. Parallax in milliarcseconds is simply 1000 divided by the distance in parsecs, so a star at 10 pc has a parallax of 100 mas. Real parallax measurements are limited by instrument precision and by the tiny angles involved, which is why distance estimates for very remote objects often rely on standard candles rather than direct trigonometric parallax.
Frequently asked questions
Why can absolute magnitude be negative?
Very luminous objects such as supergiants and quasars would still be extremely bright at ten parsecs, so their absolute magnitudes are negative. The scale has no lower bound.
Does this account for dust and extinction?
No. Interstellar dust absorbs and scatters light, making objects appear dimmer and redder than their true output. The calculator assumes the supplied magnitudes are already corrected or that extinction is negligible.
Can I use this for planets or galaxies?
The distance modulus relation applies to any object with a defined apparent and absolute magnitude, but the physical meaning of absolute magnitude differs for extended sources. For galaxies, astronomers often use a different reference and aperture correction.