Stellar Magnitude & Distance Modulus Calculator

Convert between apparent magnitude, absolute magnitude, and distance using the stellar distance modulus formula used by professional astronomers.

✨ Stellar Magnitude & Distance Modulus Calculator
Apparent Magnitude (m)
mag
Absolute Magnitude (M)
mag
Apparent Magnitude (m)
mag
Distance
pc
Absolute Magnitude (M)
mag
Distance
pc
Distance
Distance in Light-Years
Distance Modulus (μ)
Absolute Magnitude (M)
Distance Modulus (μ)
Distance in Light-Years
Apparent Magnitude (m)
Distance Modulus (μ)

✨ What is the Stellar Magnitude and Distance Modulus?

The stellar magnitude scale is a logarithmic measure of brightness used in astronomy since ancient Greece. Hipparchus around 129 BCE classified stars into six brightness classes, with first-magnitude stars being the brightest and sixth-magnitude stars barely visible. The modern quantitative scale was established by Norman Pogson in 1856, who defined a difference of 5 magnitudes as exactly a factor of 100 in brightness. This means each magnitude step corresponds to a brightness ratio of 100^(1/5) = 2.512.

The magnitude scale runs counterintuitively backward: brighter objects have smaller (more negative) magnitudes. The Sun has an apparent magnitude of -26.74, the full Moon about -12.7, Venus at its brightest -4.9, Sirius -1.46, and the faintest stars visible to the naked eye about +6.5. The Hubble Space Telescope has reached magnitude 30 to 31, detecting objects about 40 billion times fainter than the human eye limit.

Apparent magnitude depends on both the intrinsic luminosity and the distance. To compare stars fairly, astronomers use absolute magnitude, defined as the apparent magnitude a star would have at a standard distance of exactly 10 parsecs (32.6 light-years). The difference between apparent and absolute magnitude is the distance modulus: mu = m - M = 5 log10(d / 10 pc). Rearranging gives the distance d = 10^((mu + 5) / 5) parsecs, the fundamental equation of photometric distance measurement.

The distance modulus underlies the entire cosmic distance ladder. Nearby stars have parallax measurements (direct geometric distances). Stars too far for parallax are calibrated using standard candles whose absolute magnitudes are known: Cepheid variables (period-luminosity relation, 10 kpc to 30 Mpc), RR Lyrae stars (M_V about 0.75 for RR ab type), and Type Ia supernovae (M_V about -19.3 at peak, reaching 1000 Mpc). This calculator computes distances and magnitudes for any inputs in any of the three modes.

📐 Formula

μ  =  m − M  =  5 × log10(d ÷ 10 pc)
μ = distance modulus (dimensionless)
m = apparent magnitude (observed brightness from Earth)
M = absolute magnitude (brightness at 10 pc standard distance)
d = distance in parsecs (1 pc = 3.26156 light-years)
Find distance: d = 10((m − M + 5) / 5) parsecs
Find abs. mag: M = m − 5 × log10(d) + 5
Find app. mag: m = M + 5 × log10(d) − 5

The formula derives from the inverse-square law of light: flux scales as 1/d^2. In magnitudes, a doubling of distance reduces flux by a factor of 4, adding 2.5 log10(4) = 1.505 magnitudes. Five magnitudes corresponds to exactly a factor of 100 in flux and a factor of 10 in distance, making the formula dimensionally self-consistent.

📖 How to Use This Calculator

Steps

1
Select the calculation mode. Use Find Distance when you know both magnitudes. Use Find Absolute Magnitude when you know the apparent magnitude and distance. Use Find Apparent Magnitude when you know the absolute magnitude and distance.
2
Enter the known quantities. Magnitudes can be any real number, including negative values for very bright objects. Distances must be positive and are entered in parsecs.
3
Read the result. The calculator returns the distance in parsecs and light-years (with kpc and Mpc prefixes for large distances), the computed magnitude, and the distance modulus.

💡 Example Calculations

Example 1 — Distance to Sirius

Finding the distance to Sirius (m = -1.46, M = 1.43)

1
Sirius A: apparent magnitude m = -1.46 (brightest star in the sky), absolute magnitude M = 1.43. Distance modulus: mu = m - M = -1.46 - 1.43 = -2.89.
2
Apply the formula: d = 10((-1.46 - 1.43 + 5) / 5) = 10(2.11 / 5) = 100.422 = 2.642 pc.
3
Convert: 2.642 pc × 3.26156 = 8.618 light-years. Sirius is the sixth-nearest star system to the Sun.
Distance = 2.642 pc (8.618 ly), distance modulus = -2.89
Try this example →

Example 2 — Absolute Magnitude of Vega

Finding the absolute magnitude of Vega (m = 0.03, d = 7.68 pc)

1
Vega: apparent magnitude m = 0.03 (historically defined as the zero-point of the magnitude system), Hipparcos distance d = 7.68 pc (25.05 light-years).
2
Apply the formula: M = m - 5 log10(d) + 5 = 0.03 - 5 × log10(7.68) + 5 = 0.03 - 5 × 0.8854 + 5 = 0.60.
3
Distance modulus: mu = m - M = 0.03 - 0.60 = -0.57. The negative modulus confirms Vega is closer than the 10 pc standard distance.
Absolute Magnitude = M = 0.60, distance modulus = -0.57 (25.049 ly)
Try this example →

Example 3 — Apparent Magnitude of the Andromeda Galaxy

Predicting apparent magnitude of Andromeda (M = -21.0, d = 770,000 pc)

1
Andromeda galaxy (M31): absolute magnitude M = -21.0 (a very luminous galaxy with roughly a trillion stars). Distance d = 770,000 pc (770 kpc, 2.51 million light-years).
2
Apply the formula: m = M + 5 log10(d) - 5 = -21.0 + 5 × log10(770000) - 5 = -21.0 + 5 × 5.886 - 5 = 3.43.
3
Andromeda at m = 3.43 is visible to the naked eye from a dark sky despite being 2.5 million light-years away, purely because its absolute luminosity is so enormous.
Apparent Magnitude = m = 3.43, distance modulus = 24.43
Try this example →

❓ Frequently Asked Questions

What is the distance modulus formula in astronomy?+
The distance modulus is mu = m - M = 5 log10(d / 10 pc), where m is apparent magnitude, M is absolute magnitude, and d is distance in parsecs. Rearranging gives d = 10^((m - M + 5) / 5) parsecs. The formula is a direct consequence of the inverse-square law for light and the logarithmic definition of the magnitude scale.
What is the difference between apparent and absolute magnitude?+
Apparent magnitude (m) is how bright an object looks from Earth, depending on both intrinsic luminosity and distance. Absolute magnitude (M) is a standardized brightness: how bright the object would look at exactly 10 parsecs (32.6 light-years). Comparing m and M gives the distance modulus mu = m - M, from which distance is derived. The Sun has m = -26.74 but M = 4.83, barely visible to the naked eye at 10 pc.
How many light-years is one parsec?+
One parsec equals 3.26156 light-years, or 3.0857 x 10^16 meters, or 206,265 astronomical units. The parsec is defined as the distance at which one astronomical unit (Earth-Sun distance) subtends one arcsecond of angle. Stellar parallax measurements directly give distances in parsecs without needing to know the speed of light separately.
What is a standard candle in astronomy?+
A standard candle is an object whose absolute magnitude is known from physics rather than geometry. Cepheid variable stars (period-luminosity relation), RR Lyrae stars (M_V about 0.75), Type Ia supernovae (M_V about -19.3 at peak), and planetary nebula luminosity functions are all standard candles. The distance modulus then gives the distance directly from the measured apparent magnitude.
What does a negative distance modulus mean?+
A negative distance modulus means the object is closer than 10 parsecs (the reference distance at which m = M). For example, Sirius has mu = -2.89 because it is only 2.64 pc away. The Sun has mu = -31.57. Negative moduli are perfectly valid and indicate nearby stars in the solar neighborhood.
How does interstellar extinction affect the distance modulus?+
Interstellar dust absorbs and scatters starlight, making stars appear fainter and therefore more distant than they really are. The corrected distance modulus is mu_0 = m - M - A_V, where A_V is the extinction in magnitudes in the V band. Ignoring extinction overestimates distances. For stars in the Galactic plane, extinction can reach several magnitudes per kiloparsec.
What is the magnitude of the faintest stars visible to the naked eye?+
Under ideal dark-sky conditions, the human eye can see stars to about magnitude 6.5. From a typical suburban location with light pollution, the limit is around magnitude 3 to 4. The faintest stars detectable with the Hubble Space Telescope reach magnitude 30 to 31, representing objects roughly 10 billion times fainter than the naked-eye limit.
What is the absolute magnitude of the Sun?+
The Sun's absolute magnitude in the V band is M_V = 4.83. At 10 parsecs the Sun would appear as a faint star near the limit of naked-eye visibility. By contrast, very luminous stars like Deneb have M_V near -8.5, making them roughly 200,000 times more luminous than the Sun. The most luminous stars known reach M_V near -12.
How far is the Andromeda galaxy in parsecs?+
The Andromeda galaxy (M31) is approximately 770 kiloparsecs (770,000 pc) from the Milky Way, equivalent to about 2.5 million light-years. This distance is measured using Cepheid variable stars discovered by Edwin Hubble in 1923, which established that Andromeda is a separate galaxy rather than a nebula inside the Milky Way. The distance modulus is about 24.4.
Can the distance modulus be used for galaxies at cosmological distances?+
Yes, with a modification for cosmological expansion. At large redshifts the luminosity distance d_L replaces the simple geometric distance d in the formula. d_L depends on the cosmological parameters (Hubble constant, matter density, dark energy density) and diverges from the geometric distance at redshift z above about 0.1. For nearby galaxies within about 100 Mpc, the simple formula is accurate to within a few percent.

What is the distance modulus formula in astronomy?

The distance modulus is mu = m - M = 5 log10(d / 10 pc), where m is the apparent magnitude, M is the absolute magnitude, and d is the distance in parsecs. Rearranging gives d = 10^((m - M + 5) / 5) parsecs. One parsec equals 3.2616 light-years.

What is apparent magnitude vs absolute magnitude?

Apparent magnitude (m) is how bright a star looks from Earth; it depends on both the intrinsic luminosity and the distance. Absolute magnitude (M) is the apparent magnitude the star would have at a standard distance of exactly 10 parsecs. The Sun has m = -26.74 (very bright from Earth) but M = 4.83 (faint at 10 pc). Sirius has m = -1.46 and M = 1.43.

What is a parsec in light-years?

One parsec equals 3.26156 light-years, or 3.0857 x 10^16 meters, or 206,265 astronomical units. A parsec is defined as the distance at which one astronomical unit subtends an angle of one arcsecond. It is the natural unit of stellar distances because stellar parallax measurements directly yield distances in parsecs.

How do astronomers measure the distance to stars using magnitude?

If the absolute magnitude of a star is known (from its spectral type, pulsation period, or other standard candle method), the distance follows from the distance modulus: d = 10^((m - M + 5) / 5) pc. Cepheid variable stars, RR Lyrae stars, and Type Ia supernovae serve as standard candles with known absolute magnitudes spanning enormous distance ranges.

What is a standard candle in astronomy?

A standard candle is an astronomical object whose absolute magnitude (intrinsic luminosity) is known from its physical properties rather than its distance. Examples include Cepheid variables (period-luminosity relation), RR Lyrae stars (near-constant absolute magnitude of about 0.75), and Type Ia supernovae (near-constant peak of about -19.3). The distance modulus then gives the distance directly from the measured apparent magnitude.

What is interstellar extinction and how does it affect the distance modulus?

Interstellar dust absorbs and scatters starlight, making stars appear fainter than their true distance would predict. This is called interstellar extinction, denoted A_V in the V band. The corrected distance modulus is mu = m - M - A_V. For stars within a few hundred parsecs, extinction is usually small (A_V below 0.5 mag), but for distant or embedded stars it can be many magnitudes.

How bright is the faintest star visible to the naked eye?

The human eye can detect stars down to about apparent magnitude 6.5 under ideal dark-sky conditions. In cities, light pollution raises this limit to about magnitude 3 to 4. The faintest objects detectable by the Hubble Space Telescope reach magnitudes around 30 to 31, corresponding to galaxies billions of light-years away.

What is the absolute magnitude of the Sun?

The Sun's absolute magnitude in the V band is M_V = 4.83. This means that at a distance of 10 parsecs (32.6 light-years) the Sun would appear as a faint star just barely visible to the naked eye. For comparison, Sirius has M_V = 1.43, making it about 25 times more luminous than the Sun in the visible band.

How is the distance modulus used for galaxies?

For galaxies, the distance modulus links the integrated apparent magnitude (summing all stars) to the absolute magnitude. The Andromeda galaxy has m_V approximately 3.44 and M_V approximately -21.0, giving a distance modulus of about 24.4 and a distance of roughly 770 kpc (2.5 million light-years). For the most distant observed galaxies at redshift 10 to 15, distance moduli exceed 50.

What is the magnitude of the full Moon?

The full Moon has an apparent magnitude of about -12.7, making it the second brightest natural object in the sky after the Sun (-26.74). The Moon has no intrinsic luminosity (it reflects sunlight), so the concept of absolute magnitude does not apply in the same way as for self-luminous stars. The distance modulus formula only applies to objects with intrinsic luminosity.