Luminosity and Magnitude Calculator: Apparent, Absolute and Distance Modulus

Luminosity and Magnitude Calculator: Apparent Magnitude, Absolute Magnitude and Distance Modulus

Apparent magnitude and distance in, absolute magnitude out — plus the luminosity, the irradiance reaching us and the distance modulus. The scale runs backwards and it is logarithmic: five magnitudes is a factor of exactly 100 in brightness, and the brighter star has the smaller number. Both conventions are built in here.

Apparent magnitude and distance to absolute magnitude

The distance modulus, m − M = 5 log₁₀(d/10)
The brightness you measure from here. Smaller means brighter: Sirius is −1.46, Vega is about 0, the faintest naked-eye stars are about +6, and the Sun is −26.8.
One parsec is 3.2616 light years. If you have the distance in light years, divide by 3.2616 first — the formula is written for parsecs and nothing warns you if it is fed light years.
Dust between us and the star dims it, so it looks fainter than distance alone explains. Leave at 0 for a clear line of sight — most school questions do. A non-zero value makes the star intrinsically brighter than the raw distance modulus suggests.
The magnitude scale, with your star on it twice: the blue disc as it looks from Earth, the green disc as it would look from 10 parsecs. Disc area is proportional to brightness and is capped at both ends, so a very bright or very faint star draws at the limit. The red bar between them is the distance modulus.
1.43magExample

Sirius A has apparent visual magnitude m = −1.46 and sits at 2.639 parsecs. Take the line of sight as clear, A = 0. Find its absolute magnitude, and how luminous that makes it.

Advertisement

The distance modulus, and why five magnitudes is exactly a hundred

m − M = 5 log₁₀(d/10) + A  ·  L = L₀ × 10−0.4M, L₀ = 3.0128 × 1028 W
m
apparent magnitude: how bright the star looks from Earth. Measured, not calculated. Smaller is brighter.
M
absolute magnitude: the apparent magnitude the star would have at exactly 10 parsecs, with no dust in the way. An intrinsic property of the star.
d
distance in parsecs. Light years must be divided by 3.2616 first.
A
interstellar extinction in magnitudes — the dimming caused by dust. Zero for a clear line of sight.
5 log₁₀
the factor that makes the scale logarithmic. The 5 and the 0.4 are the same constant twice: 5 magnitudes is a factor of 100, so 1 magnitude is 1001/5 = 100.4 = 2.512.
L₀
the IAU 2015 zero point: a source with Mbol = 0 radiates exactly 3.0128 × 1028 W. This is what lets a magnitude be turned into watts at all.

Worked example

Sirius A has apparent visual magnitude m = −1.46 and sits at 2.639 parsecs. Take the line of sight as clear, A = 0. Find its absolute magnitude, and how luminous that makes it.
Distance modulus first. 5 log₁₀(2.639) = 5 × 0.421438 = 2.1072, so 5 log₁₀(d/10) = 2.1072 − 5 = −2.8928. It is negative because Sirius is closer than 10 pc, so moving it out to 10 pc would make it fainter.
Rearrange and substitute. M = m − (m − M) = −1.46 − (−2.8928) = +1.43. The published absolute visual magnitude of Sirius A is +1.43, so the arithmetic lands on the catalogue value.
Check the sign by thinking, not by algebra. Sirius is nearer than 10 pc, so at 10 pc it would look fainter, so M must be a bigger number than m. +1.43 > −1.46. If your answer had come out more negative than m, you subtracted the wrong way round.
Magnitude to watts. L = 3.0128 × 1028 × 10−0.4 × 1.4328 = 3.0128 × 1028 × 0.26721 = 8.05 × 1027 W, which is 21.0 times the nominal solar luminosity of 3.828 × 1026 W.
Be honest about which 21. That 21 L☉ treats −1.46 as a bolometric magnitude. It is actually a V-band magnitude, and Sirius is hotter than the Sun so it emits relatively more in the ultraviolet; the catalogue bolometric luminosity is 24.7 L☉. The difference is the bolometric correction, and this page cannot apply one — see the warning below.
One useful cross-check. Five magnitudes is a factor of exactly 100. Sirius at M = +1.43 and the Sun at M = +4.74 differ by 3.31 magnitudes, and 100.4 × 3.31 = 21.0. Same answer by a different route.
Advertisement

What one magnitude is worth, and the five-magnitude anchor

Magnitude difference ΔmBrightness ratioWorth remembering as
0.11.096about 10% — roughly the eye’s limit of comparison
0.751.995almost exactly a factor of two
12.512100.4, the single step of the scale
26.310100.8
2.510one decade, by construction
5100exact and definitional — the anchor the whole scale hangs on
1010,000two anchors
2510,000,000,000five anchors; the Sun to the faintest naked-eye star is about 32.8
The scale is defined so that Δm = 5 is exactly a factor of 100 in brightness. Everything else follows: one magnitude is 1001/5 = 2.511 886…, which AQA’s specification rounds to “an intensity ratio of 2.51”. The direction is the trap: a star 2.512 times brighter has a magnitude one smaller, not larger.

A few stars, as a sanity check on your own answer

ObjectmDistance (pc)M from this pageNote
Sun−26.8324.848 × 10−6+4.74Bolometric m from the nominal 1361 W/m²; recovers L = 1.000 L☉
Sirius A−1.462.639+1.43Matches the catalogue MV
Vega+0.037.68+0.60Close to the historical zero of the scale
Proxima Centauri+11.131.3020+15.56Nearest star, and still invisible unaided
Betelgeuse+0.42168−5.71Distance poorly known, so M is too
Four of these are catalogue magnitudes in the V band; only the Sun’s entry is bolometric. The distances carry real uncertainty — Betelgeuse’s is argued over by tens of parsecs, and a 10% distance error moves M by 0.22 mag — so treat the last column as arithmetic, not as a measurement.

A scale that runs backwards, is logarithmic, and still earns its place

The magnitude scale is the oldest measurement in astronomy still in daily use, and it has two properties that catch everyone out. It runs backwards: a smaller number means a brighter object, so Sirius at −1.46 outshines Vega at 0.03. And it is logarithmic: equal steps in magnitude are equal ratios of brightness, not equal differences. Both features are inherited from Hipparchus sorting stars into six classes by eye, and both were kept because the eye itself responds to ratios.

Apparent magnitude is a measurement; absolute magnitude is a definition. Apparent magnitude m is what your detector records, and it depends on both how much light the star makes and how far away it is. Absolute magnitude M strips the distance out by asking a hypothetical question: what would this star look like from exactly 10 parsecs? Answer that and you have a number that belongs to the star, not to your viewpoint. The gap between the two, m − M, is the distance modulus, and it carries the distance.

The 5 and the 0.4 are the same constant twice. The scale is anchored on the statement that five magnitudes is a factor of exactly 100 in brightness. So one magnitude is 1001/5 = 100.4 = 2.511 886, and a brightness ratio r corresponds to Δm = 2.5 log₁₀ r. Every 5 and every 0.4 and every 2.5 in this topic is that one definition wearing a different hat. If you can reconstruct 2.512 from 1001/5 you never have to memorise any of them.

Where this goes wrong, every single time: the base of the logarithm. AQA writes the relation as m − M = 5 log(d/10), and in that notation “log” means log₁₀. In most programming languages, and in the engine behind this page, log means the natural logarithm. Use ln by mistake and the distance modulus comes out 2.3026 times too big, which for Sirius turns −2.89 into −6.66 and the absolute magnitude into +5.20 instead of +1.43 — a wrong answer that is not obviously silly. This page uses log₁₀ explicitly, everywhere, for exactly that reason.

Magnitudes are measured through filters, and that limits what this page can tell you. A V-band magnitude counts only the light that gets through a green-ish filter; a bolometric magnitude counts all of it. The distance-modulus step does not care which you use — feed it V magnitudes and you get an absolute V magnitude, correctly. The luminosity step does care, because it uses the IAU bolometric zero point L₀ = 3.0128 × 1028 W. Feeding it a V magnitude gives the luminosity the star would have if all its output fell in V, which for a hot star like Sirius understates the truth by about 15% and for a cool red giant can understate it by a factor of several. Converting between the two needs a bolometric correction that depends on temperature, and this page does not have one. When the luminosity figure matters, say which band your magnitude came from.

Extinction is the other thing the simple formula hides. Dust between here and the star absorbs and scatters its light, so the star looks fainter than its distance alone would make it. That dimming, A, adds to the observed m − M, which means a star whose extinction you ignore looks intrinsically fainter than it is, or — if you were solving for distance — looks further away than it is. Towards the plane of the Milky Way A can be several magnitudes; towards the galactic poles it is a few hundredths. The box above lets you put it in, and the note under the headline tells you when you have.

Why this is a page and not a one-line sum. The arithmetic is one logarithm. What is worth having is the set of conventions around it: which way the scale runs, which logarithm, which distance unit, which band, and whether the dust has been accounted for. Each of those is a place to lose marks, and none of them is answered by a calculator that simply returns a number. The companion figures above exist so you can check the answer against something you already know — if the luminosity comes out at 10−4 solar for a star you can see with your eyes, one of your inputs is wrong.

Two cross-checks that cost nothing. First, the direction test: if the star is closer than 10 pc then M must be numerically larger than m, and if it is further then M must be smaller. Second, the decade test: 2.5 magnitudes is exactly one factor of ten, so a 5-magnitude difference is 100× and a 10-magnitude difference is 10,000×. Either test catches a sign error or a factor-of-2.3 logarithm error in a few seconds, which is faster than redoing the sum.

Frequently asked questions

Why is a brighter star given a smaller magnitude?

History. Hipparchus and Ptolemy sorted the visible stars into six classes with the brightest called “of the first magnitude” and the faintest “of the sixth”, and the modern scale was fitted to that ranking rather than replacing it. Norman Pogson’s 1856 proposal kept the direction and fixed the step size at a factor of 100 over five magnitudes. Changing it now would invalidate every catalogue ever published, so the backwards scale is permanent. Expect at least one exam mark to depend on noticing it.

Is the magnitude in the box apparent or absolute?

The box takes apparent magnitude m — what you would measure from Earth — and returns absolute magnitude M as the headline. If a question gives you M and the distance and asks for m, run the formula the other way: m = M + 5 log₁₀(d/10) + A. The companion figure “apparent magnitude at ten times this distance” is there to make the direction obvious — it is always m + 5, because ten times the distance is a hundredth of the brightness.

What does the luminosity figure assume?

That your magnitude is bolometric, meaning it counts the star’s whole electromagnetic output. The conversion uses the IAU 2015 zero point: Mbol = 0 corresponds to exactly 3.0128 × 1028 W. Most catalogue magnitudes are V-band instead, so for a hot or a very cool star the luminosity shown here is an underestimate. The size of the correction depends on the star’s temperature and this page does not calculate one.

How do I check the answer without a calculator?

Use the five-magnitude anchor. A star at 10 pc has m = M by definition. Every factor of 10 in distance adds exactly 5 to the distance modulus, so 100 pc gives m − M = +5, 1000 pc gives +10, and 1 pc gives −5. Interpolating between those four numbers gets you within a few tenths of a magnitude of any answer, which is enough to catch a sign error or a misplaced decimal point.

Why does the distance have to be in parsecs?

Because the 10 inside the logarithm is 10 parsecs. The formula is a statement about a particular reference distance, and feeding it light years scales d by 3.2616, which shifts every absolute magnitude by 5 log₁₀(3.2616) = 2.57 mag — a large, silent, systematic error. Convert first; the light year, parsec and au converter on this site does it in one step.

Can the absolute magnitude come out negative?

Yes, routinely, and the calculator will return negative numbers without complaint. Any star more than about a hundred times the Sun’s luminosity has M < 0, and supergiants reach −8 or beyond. A negative M simply means the object is brighter than the scale’s zero point, which was set by convention near Vega and has nothing to do with any physical floor.

Related calculators

References

  1. IAU 2015 General Assembly, Resolution B2 on recommended zero points for the absolute and apparent bolometric magnitude scales (E. Mamajek et al., arXiv:1510.06262). Fixes Mbol = 0 at a luminosity of exactly L0 = 3.0128 × 1028 W and mbol = 0 at an irradiance of exactly 2.518 021 002 × 10−8 W m−2. The same resolution makes the parsec exactly 648 000/π astronomical units.
  2. IAU 2015 General Assembly, Resolution B3 on recommended nominal conversion constants for selected solar and planetary properties (arXiv:1510.07674). Nominal solar luminosity 3.828 × 1026 W, nominal total solar irradiance 1361 W m−2, nominal radius 6.957 × 108 m, nominal effective temperature 5772 K.
  3. AQA, A-level Physics 7408 specification, subject content §3.9 “Astrophysics”. §3.9.2.1 gives the apparent magnitude scale with “dimmest visible stars have a magnitude of 6” and “difference of 1 on magnitude scale is equal to an intensity ratio of 2.51”; §3.9.2.2 gives m − M = 5 log(d/10); §3.9.3.1 gives z = Δλ/λ = −v/c for v &ll; c and §3.9.3.2 gives v = Hd.
  4. Cambridge Assessment International Education, Cambridge International AS & A Level Physics 9702 syllabus for examination in 2025, 2026 and 2027, Topic 25 “Astronomy and cosmology”. 25.1 gives the radiant flux inverse-square law F = L/4πd² and the standard-candle idea; 25.3 gives Δλ/λ ≈ v/c and Hubble’s law v ≈ H0d, marked “SI units only”.
  5. Catalogue data for Sirius A as tabulated on its Wikipedia entry: apparent visual magnitude −1.46, parallax 378.9 ± 1.4 mas, distance 2.639 ± 0.010 pc, absolute visual magnitude +1.43, luminosity 24.74 ± 0.70 L☉. A tertiary summary, used for the worked example’s inputs; the +1.43 it quotes is what this page returns.