Calculate distance from the distance modulus (μ = m − M), find the modulus for a known distance, or convert parallax to distance in pc, ly or km.

μ = m − M (apparent minus absolute magnitude), corrected for extinction.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Modulus → distanceFinds the distance to an object from its distance modulusRequires the distance modulus μ in magnitudes, which is apparent magnitude minus absolute magnitude
Distance → modulusFinds the distance modulus that corresponds to a distanceRequires the distance in pc, kpc, Mpc, light-years or km
Parallax → distanceFinds the distance to a star from its parallax, with the matching distance modulusRequires the parallax in arcseconds, milliarcseconds or microarcseconds

Distance results come in a chosen unit and are also listed in parsecs, kiloparsecs, megaparsecs, light-years and kilometers. Distance → modulus has an optional list of example distances, from Proxima Centauri to the Virgo Cluster, that fills in the distance field.

Distance Modulus Formulas

μ = m − M =
5 × log₁₀(d ÷ 10) [1]
μDistance modulus (magnitudes)
mApparent magnitude, how bright the object looks from Earth
MAbsolute magnitude, the magnitude the object would have at 10 parsecs [1]
dDistance to the object (parsecs)

An object at exactly 10 parsecs has m equal to M and a distance modulus of 0 [1]. Every 5 magnitudes of modulus is a factor of 10 in distance.

Modulus → distance

d = 10^(μ ÷ 5 + 1)

This is the main formula solved for distance in parsecs. Betelgeuse has m = 0.45 and M = −5.14, so μ = 5.59 and d = 10^(5.59 ÷ 5 + 1) = 131 parsecs [1]. A negative modulus is valid and means the object is closer than 10 parsecs.

Distance → modulus

The main formula applies directly, after the distance is converted to parsecs. A star 25 parsecs away has μ = 5 × log₁₀(25 ÷ 10) = 1.9897. The Andromeda Galaxy example at 778 kpc gives μ = 5 × log₁₀(778,000 ÷ 10) = 24.4549.

Parallax → distance

d = 1 ÷ p [2]

d is the distance in parsecs and p is the parallax angle in arcseconds. One parsec is the distance at which a star shows a parallax of one arcsecond [2]. A parallax of 100 milliarcseconds is 0.1 arcseconds, which puts the star at 10 parsecs with a distance modulus of 0. The modulus then comes from the main formula.

Distance units

The parsec is defined as exactly 648,000 ÷ π astronomical units [3]. The calculator takes the astronomical unit as 149,597,870.7 km, which makes one parsec about 3.0857 × 10¹³ km, and takes the light-year as the distance light covers in 365.25 days, which makes one parsec about 3.2616 light-years.

Limits of This Estimate

  • No correction is made for extinction. Dust between the object and the observer dims the apparent magnitude, so an uncorrected modulus gives a distance that is too large.
  • For galaxies at cosmological distances the modulus refers to luminosity distance. The calculator applies no redshift correction and no cosmological model.
  • d = 1 ÷ p suits a parallax that is large compared with its measurement error. Noisy or negative measured parallaxes need a statistical distance estimate, and the result carries no uncertainty.
  • The example distances are rounded, illustrative values.

Sources

  1. CSIRO Australia Telescope National Facility, The Magnitude Scale: absolute magnitude at 10 parsecs, the distance modulus equation and the Betelgeuse example
  2. CSIRO Australia Telescope National Facility, The distance to the stars: distance from parallax and the definition of the parsec
  3. International Astronomical Union, 2015 Resolution B2: the parsec as exactly 648,000 ÷ π astronomical units