Audited 29 Jul 2026·Last updated 28 Oct 2026·5 citations·Tier 2·0 uses

Stellar Magnitude & Distance Modulus Calculator

Solve m − M = 5 log₁₀ d − 5 + A for absolute magnitude, apparent magnitude or distance in parsecs, with optional interstellar extinction in the same band.

Stellar Magnitude Calculator

What do you want to find?
What you actually measure. The scale runs backwards — smaller is brighter, and bright stars are negative. Default is SIMBAD's V = −1.46 for Sirius.
The magnitude the object would have at exactly 10 parsecs. Must be in the SAME photometric band as m.
Must be greater than zero. Get one from a parallax with the parallax distance calculator. Default is Sirius, from its Hipparcos parallax of 379.21 mas.
Dimming by dust along the line of sight, in the same band as m and M. Zero or positive only — dust never brightens. Leave at 0 if you have no extinction estimate, but read the note about what that costs you.
Absolute magnitude M
1.4344
The magnitude the object would have at exactly 10 parsecs, in the same band as your inputs; dimensionless, with smaller numbers meaning brighter.
Apparent magnitude m
-1.46
Distance (parsecs)
2.6371
Distance (light-years)
8.6009
Observed distance modulus m − M
-2.8944
True (geometric) distance modulus
-2.8944
Extinction applied A (magnitudes)
0
Geometric flux vs the same object at 10 pc
14.38
How to read this result
The distance-modulus relation is band-agnostic but not band-mixing: the apparent magnitude, the absolute magnitude and the extinction must all be measured in the SAME photometric band (V, Gaia G, bolometric, and so on). This page cannot tell which band you used. At 2.63706 pc the object is closer than the 10 pc reference distance, so its distance modulus is negative — it appears brighter than its absolute magnitude. No extinction has been applied. Real sightlines, especially through the Galactic plane, can carry several magnitudes of visual extinction; ignoring it makes an object look FURTHER away than it really is, because the dimming is misread as distance.

Background.

Seen from Alpha Centauri, 1.34 parsecs away, the Sun would be a bright but unremarkable star of about magnitude 0.5. From Earth it is magnitude −26.7. Nothing about the Sun differs between the two views except distance, and the distance modulus is the formula that turns one view into the other.

Astronomers keep two magnitudes for this reason. Apparent magnitude, m, is what a photometer measures from here. Absolute magnitude, M, is the apparent magnitude the object would have at exactly 10 parsecs, so it describes the object rather than our vantage point. Their difference depends only on distance and on any dust in between: m − M = 5 log₁₀ d − 5 + A, with d in parsecs and A the extinction in magnitudes. Give any two of m, M and d and the third follows.

The scale is logarithmic and runs backwards. In 1856 Norman Pogson fixed five magnitudes as exactly a factor of 100 in brightness, so each magnitude is a factor of about 2.512, and brighter objects carry smaller numbers, negative for the brightest. Every factor of ten in distance adds exactly five magnitudes, which lets the modulus double as a distance scale: 0 at 10 pc, +10 at 1 kpc, +25 at 1 Mpc.

Two mistakes catch people out. The first is mixing photometric bands: m, M and A must all belong to one band, whether V, Gaia G or bolometric, and the arithmetic has no way of noticing if they do not. The second is forgetting dust. Extinction makes a star look fainter, and with A left at zero that dimming is read as extra distance, so the star comes out farther away than it really is.

What is stellar magnitude calculator?

The distance modulus, μ = m − M, is how much fainter an object looks than it would at the 10-parsec reference, or how much brighter if it is closer than that. Because flux falls with the square of distance, a star at d parsecs delivers (10/d)² of its 10-parsec flux, which in magnitudes is μ = 5 log₁₀ d − 5. Interstellar extinction adds to the observed value. Both versions are reported: the observed modulus m − M, which includes the dust, and the true or geometric modulus 5 log₁₀ d − 5, which is distance alone.

How to use this calculator.

  1. Under 'What do you want to find?', choose absolute magnitude (from m and distance), apparent magnitude (from M and distance) or distance (from m and M).
  2. Enter the two quantities you know, taking both magnitudes from the same band: catalogue V magnitudes pair with V-band absolute magnitudes, Gaia G with G, bolometric with bolometric.
  3. Enter distance in parsecs. For a nearby star, take it from the parallax: 1,000 divided by the parallax in milliarcseconds.
  4. Enter the extinction for that line of sight, in the same band, if you have an estimate. Zero is reasonable for nearby stars and for sightlines well away from the plane of the Milky Way; elsewhere, any dust you leave out pushes the distance outward.
  5. Compare the observed and true distance moduli in the results; the gap between them is exactly the extinction you entered.

The formula.

m − M = 5 log₁₀(d ⁄ pc) − 5 + A ⇒ d = 10^((m − M − A + 5)⁄5)

Start with the inverse-square law. The same object seen from d parsecs and from 10 parsecs gives a flux ratio of (10/d)². Pogson's definition turns a flux ratio into a magnitude difference with −2.5 log₁₀, so m − M = −2.5 log₁₀((10/d)²) = 5 log₁₀(d/10) = 5 log₁₀ d − 5. Dust dims the source and so raises m, which gives the full form m − M = 5 log₁₀ d − 5 + A.

The three solves are rearrangements of that line: M = m − (5 log₁₀ d − 5) − A, m = M + (5 log₁₀ d − 5) + A, and d = 10^((m − M − A + 5)/5). In the last, A is subtracted before the power of ten, so more extinction means a shorter distance; one magnitude of dust shrinks it by a factor of 10^0.2 = 1.585. Light-years come from 1 pc = 3.2615637772 ly, which follows from the IAU's exact astronomical unit and parsec and a light-year defined on the Julian year.

The relation is exact for a steady point source seen through empty space. It cannot know which band your numbers belong to, whether your extinction estimate is right, or whether the star varies. Distance must be greater than zero, extinction cannot be negative, and a magnitude pair implying a distance outside 10⁻¹⁰⁰ to 10¹⁰⁰ parsecs is refused, since that almost always means swapped boxes or mixed bands.

A worked example.

Example

Sirius, the brightest star in the night sky, has a V magnitude of −1.46 in SIMBAD and a Hipparcos parallax of 379.21 milliarcseconds. Its distance is therefore 1,000 ÷ 379.21 = 2.6371 pc, or 8.6009 light-years. The geometric modulus is 5 × log₁₀ 2.6371 − 5 = 5 × 0.42112 − 5 = −2.8944, negative because Sirius is closer than 10 pc. With no extinction, M = −1.46 − (−2.8944) = 1.4344. At the reference distance Sirius would be a star of magnitude 1.43, one of many of that brightness rather than the standout it is; most of its brilliance in our sky comes from being near. The flux ratio makes the same point: (10 ÷ 2.6371)² = 14.38, so we receive over fourteen times the light we would from 10 pc. The parallax carries an uncertainty of 1.58 mas, about 0.42 percent, which shifts the modulus by only about 0.009 magnitudes, so the absolute magnitude is good to roughly a hundredth.

extinction Mag0
apparent Magnitude-1.46
distance Parsecs2.637
solve ForabsoluteMagnitude

Frequently asked questions.

How far away would Sirius have to be to disappear from naked-eye view?
Put its absolute magnitude of 1.4344 into the apparent-magnitude solve. At 100 pc Sirius would shine at magnitude 6.43, below what most observers see without optical aid. Solving for distance with m = 6 gives about 82 pc, roughly 31 times its real distance, as the point where it would fade to the usual naked-eye limit.
Why does adding extinction bring the star closer?
The measured faintness is fixed; the equation only splits it between dust and distance. Credit half a magnitude to dust and less is left for distance. For Sirius, solving for distance from m = −1.46 and M = 1.4344 with A = 0.5 gives 2.0947 pc instead of 2.6371 pc, while solving for M at the known distance gives 0.9344, a star intrinsically brighter than first thought.
Can I check the formula with the Sun?
Yes. IAU 2015 Resolution B2 quotes the Sun's apparent bolometric magnitude as about −26.832 and its absolute bolometric magnitude as about 4.739996. Solving for distance with those two gives 4.8484 × 10⁻⁶ pc, which is 1.00006 astronomical units, the Earth–Sun distance recovered to within the rounding of the published magnitudes.
What goes wrong if I mix a V magnitude with a bolometric one?
The distance comes out wrong by the bolometric correction, the difference between a star's V and bolometric magnitudes. For a Sun-like star it is about a tenth of a magnitude, a few percent in distance. For very hot or very cool stars it reaches several magnitudes, enough to misplace a star by a factor of several, and nothing in the result will flag it.
How much extinction should I expect?
It depends entirely on the sightline. Nearby stars and directions far from the Milky Way's plane are close to clear. Looking along the plane, dust accumulates with distance, and towards the Galactic Centre visual extinction reaches about 30 magnitudes, which is why that region is studied in infrared light. Each magnitude ignored inflates the distance by about 58 percent.
How is this used to measure distances to other galaxies?
Through standard candles, objects whose absolute magnitude is known from some other property: a Cepheid variable's from its pulsation period, a Type Ia supernova's from the shape of its light curve. Measure the apparent magnitude, correct for dust, and the distance solve does the rest. A modulus of 30 corresponds to 10 megaparsecs.

References& sources.

  1. [1]European Space Agency, Science & Technology education resource, "Stellar Distances" (retrieved 2026-07-29). States that absolute magnitude is "what the apparent magnitude of that star would be if it were placed exactly 10 parsecs away from the Sun", gives M = m − 5 log(D/10) and D = 10^((m−M+5)/5), and states the Pogson step: "the difference between each step on the scale is equal to a decrease in brightness of 2.512 and (2.512)⁵ = 100". Independent of the IAU documents below; open access.
  2. [2]Mamajek, E. E., et al. (2015), "IAU 2015 Resolution B2 on Recommended Zero Points for the Absolute and Apparent Bolometric Magnitude Scales", arXiv:1510.06262 (retrieved 2026-07-29). Defines absolute bolometric magnitude at 10 pc via L₀ = 3.0128 × 10²⁸ W and apparent bolometric magnitude via f₀ = 2.518021002 × 10⁻⁸ W m⁻², gives the parsec as exactly (648000/π) au, and independently quotes M_bol(Sun) ≈ 4.739996 and m_bol(Sun) ≈ −26.832 — the published pair used as an independent check on this page. Open-access preprint of an adopted IAU resolution.
  3. [3]SIMBAD astronomical database (CDS, Strasbourg), object "Sirius" (alf CMa): V = −1.46 (reference 2002yCat.2237....0D, quality flag C, no quoted uncertainty) and parallax 379.21 ± 1.58 mas (reference 2007A&A...474..653V). Retrieved 2026-07-29. Both inputs to the worked example. Independent data centre; open access.
  4. [4]van Leeuwen, F. (2007), "Validation of the new Hipparcos reduction", Astronomy & Astrophysics 474, 653–664; arXiv:0708.1752 (retrieved 2026-07-29). The astrometric re-reduction supplying SIMBAD's Sirius parallax; reports "an improvement by a factor 2.2 in the total weight compared to the catalogue published in 1997". Peer-reviewed; open-access preprint.
  5. [5]International Astronomical Union, "Measuring the Universe" (IAU public archive, retrieved 2026-07-29). Source of the exact astronomical unit (IAU 2012 Resolution B2, 149 597 870 700 m) and the light-year (9,460,730,472,580.8 km), used for the parsec-to-light-year conversion reported alongside every distance here.

How this page was produced

Published by
Quanta Calculator
Primary sources
5 cited below
Method
m − M = 5 log₁₀(d ⁄ pc) − 5 + A ⇒ d = 10^((m − M − A + 5)⁄5)
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon