Stellar Magnitude Calculator

Magnitudes, distance modulus and combined light.

  • Add magnitudes
  • Distance modulus
  • Extinction option
A round clay table holds a large soft star shape that overlaps a short beam, with a smaller star shape and two tiny round beads at the other end.

The guide

A magnitude is a logarithm, so the light of two stars never adds the way their numbers do

Why star brightness runs backwards, what the distance modulus measures, how dust fools a distance, and why 3 plus 3 is not 6 when the stars are shining together.

  • 2.512 brightness ratio of one magnitude, the fifth root of 100
  • 10 parsecs the distance that defines absolute magnitude
  • 2.24743 two stars of magnitude 3.0 shining together
  • 3,162 pc true distance for m 12.0, M -1.0 and 0.5 mag of dust
  • 3,981 pc the distance you would read if the dust were ignored
Read the full guide Fold the guide 6 min · 14 sources

Ask a newcomer which star is brighter, a magnitude 2 or a magnitude 3, and the 3 sounds like the safe pick. The scale runs the other way. A brighter object has a smaller number, and the brightest things in the sky have numbers below zero. Sirius sits near magnitude minus 1.46, and the Sun is about minus 26.8. The oddity is not an accident of modern taste. It is a fossil, and it explains most of what goes wrong when people calculate with magnitudes.

Why the scale runs backwards

The scale comes from the old habit of sorting naked-eye stars into six classes. The brightest were called first magnitude and the faintest that an unaided eye could see were called sixth. Nobody chose those numbers to make arithmetic easy. They were bins, and bins only need an order.

In 1856 Norman Pogson turned the bins into a rule. He defined a first-magnitude star as 100 times as bright as a sixth-magnitude star. Five steps multiply the light by 100, so each step multiplies it by the fifth root of 100, about 2.512. A magnitude 2.0 star is 2.512 times as bright as a magnitude 3.0 star, and exactly 100 times as bright as a magnitude 7.0 one.

That makes the scale logarithmic. Equal steps in the number mean equal ratios in the light, never equal differences. It is also reversed, because the historical bins were. People once assumed the eye itself responds logarithmically, which would explain the choice. The current view, as the page on apparent magnitude puts it, is that the eye follows a power law instead. The logarithm survived because it works, not because biology demanded it.

Where the scale starts is a separate question. Defining what magnitude 0.0 means is hard, because different filters have different zero points. The Johnson UBV system set 0.0 in each filter to the average of six stars with the spectral type of Vega, which left Vega itself at 0.03 by definition. That is why a magnitude is only meaningful when you know which system it belongs to.

The flux ratio between two stars is therefore 10 raised to 0.4 times the magnitude difference. A difference of 2.5 magnitudes is a factor of 10. A difference of 10 magnitudes is a factor of 10,000. Those two facts cover a surprising share of everyday use.

One star, two numbers

Apparent magnitude tells you how bright a star looks from here. That mixes two things: how much light the star puts out, and how far away it is. A lamp at the end of a corridor and a candle at your elbow can look equally bright.

Absolute magnitude removes the distance. It is the apparent magnitude the star would have if it stood exactly 10 parsecs away, about 32.6 light-years, with no dust between. Putting every star at one standard distance lets you compare their true outputs on one scale.

A parsec is defined from geometry, as 648,000 divided by pi astronomical units. The astronomical unit itself is exactly 149,597,870,700 metres, so a parsec is about 3.0857 times 10 to the 16 metres, 206,265 astronomical units or 3.26156 light-years. The light-year is exact too. It is the distance light covers in a Julian year of 365.25 days, which comes to 9,460,730,472,580,800 metres from the defined speed of light.

Because brightness falls with the square of distance, moving a star from 10 parsecs to d parsecs dims it by the factor (d over 10) squared. Take the logarithm and the square turns into a 2, which meets the 2.5 in the magnitude definition to give a clean 5. That is the distance modulus: m minus M equals 5 times the base-10 logarithm of d, minus 5.

Check it at the corners. At 10 parsecs the modulus is 0, so the two magnitudes agree. At 100 parsecs it is 5, so a star of apparent magnitude 5.0 has an absolute magnitude of 0.0. At 1,000 parsecs it is 10. Every tenfold step in distance adds 5 magnitudes.

Where the arithmetic goes wrong

Three slips are easy to make. One is dropping the minus 5. Another is using the natural logarithm where the base-10 one belongs. The third is adding magnitudes as if they were ordinary quantities. The first two shift every answer. The third is subtler, because the wrong answer looks reasonable.

Take two stars, each of magnitude 3.0, shining together as one point. The tempting answer is 3 plus 3, which is 6. But 6 is fainter than either star, and adding a second source of light cannot make a total dimmer. Fluxes add. Two equal fluxes are twice one flux, and twice the light is 2.5 times the base-10 logarithm of 2 magnitudes brighter, which is 0.75257. The pair therefore shines at 3.0 minus 0.75257, or 2.24743.

The general recipe is to convert each magnitude to a flux, sum the fluxes, then convert back. Ten stars of magnitude 10 give a total 2.5 magnitudes brighter than one, magnitude 7.5. A pair at magnitudes 3.0 and 4.0 combine to 2.63615, only a little brighter than the better star.

The method also shows what a faint companion is worth. A star ten magnitudes fainter holds one ten-thousandth of the light. Pair magnitude 1.0 with magnitude 11.0 and the total is 0.99989, a change of 0.00011. The faint companion barely registers in the sum.

Dust, and a distance that is too big

Space is not empty. Dust and gas between a star and us absorb and scatter light, an effect called extinction, first documented as such in 1930. In the visual band the page on extinction gives 0.7 to 1.0 magnitudes per kiloparsec as the usual figure near the Sun, which dims a star by about a factor of 2 for each kiloparsec of path. For stars near the plane of the Milky Way and within a few thousand parsecs, the same page gives roughly 1.8 magnitudes per kiloparsec. In some directions it is far worse. Parts of the Galactic Center show more than 30 magnitudes.

Extinction enters the modulus as a plain addition. Write A for the extinction in magnitudes, and the relation becomes m minus M equals 5 log10(d) minus 5, plus A. Dust makes a star look fainter than distance alone would, so if you ignore it the star seems farther away than it is.

Here is a worked case you can reproduce. A star has apparent magnitude 12.0 and absolute magnitude minus 1.0, so m minus M is 13.0. Ignoring dust, the distance is 10 raised to (13.0 over 5, plus 1), which is about 3,981 pc. Now suppose 0.5 magnitudes of dust lie in the way. The true modulus is 12.5, and the distance is 10 to the power 3.5, about 3,162 pc.

The overstatement is the factor 10 to the power A over 5, here about 1.26. Dust of 1 magnitude inflates a naive distance by 1.585 times, and 2 magnitudes by 2.512 times. The error grows quickly, and it always runs in the direction that makes a star look farther away than it is.

From magnitude to watts, and where it stops

Absolute magnitude measures how much light a star emits, but a physical luminosity needs a zero point. For a long time no international value existed. The IAU settled it in 2015 with a resolution that sets an absolute bolometric magnitude of 0 at a luminosity of 3.0128 times 10 to the 28 watts. Bolometric means summed over all wavelengths.

A companion resolution fixed a nominal solar luminosity of 3.828 times 10 to the 26 watts. On the new scale that lands very close to an absolute bolometric magnitude of 4.74, the figure astronomers had long used for the Sun. A star ten magnitudes brighter than that, at minus 5.26, is exactly 10,000 times as luminous, near 3.828 times 10 to the 30 watts.

A magnitude belongs to a band of wavelengths. This page treats every magnitude as either bolometric or as one band, and never mixes them. It does not handle colour indices, bolometric corrections or the photometric zero points that tie a filter to a catalogue. Those need calibration data the page does not hold.

The extinction term is a single number that you supply. Dust also reddens starlight, so the dimming depends on colour, and a figure from one band is wrong in another. The page does not look dust up for any direction in the sky. It also does not treat extended objects such as galaxies, whose magnitudes depend on how the light is measured.

The calculation runs in a background worker in your browser, and its numbers are formatted by the browser’s own number formatter. All arithmetic is in double precision and the displayed values are rounded. Nothing you type leaves the page.

Sources

Every source consulted for this guide. Links checked November 11, 2026.

  1. Apparent magnitude Wikipedia (CC BY-SA)
  2. Absolute magnitude Wikipedia (CC BY-SA)
  3. Distance modulus Wikipedia (CC BY-SA)
  4. Extinction (astronomy) Wikipedia (CC BY-SA)
  5. Inverse-square law Wikipedia (CC BY-SA)
  6. Parsec Wikipedia (CC BY-SA)
  7. Astronomical unit Wikipedia (CC BY-SA)
  8. Light-year Wikipedia (CC BY-SA)
  9. Julian year (astronomy) Wikipedia (CC BY-SA)
  10. IAU 2015 Resolution B2 on Recommended Zero Points for the Absolute and Apparent Bolometric Magnitude Scales arXiv, listing 1510.06262
  11. IAU 2015 Resolution B3 on Recommended Nominal Conversion Constants for Selected Solar and Planetary Properties arXiv, listing 1510.07674
  12. CODATA Value: speed of light in vacuum National Institute of Standards and Technology
  13. Web Workers API MDN Web Docs (Mozilla)
  14. Intl.NumberFormat MDN Web Docs (Mozilla)