Cosmic Sanctuary
← All tools

Astronomy calculators

Six calculations that turn what a telescope measures (brightness, angle, the speed of stars) into what we want to know (distance, size, mass). Each one shows its formula so you can check the working, not just the answer.

1 · Distance modulus

m − M ↔ distance
m − M = 5 log₁₀(d / 10 pc)   ⇔   d = 10^((m − M + 5) / 5) pc

Edit the modulus or the distance; the other updates. Typing m and M fills in the modulus.

2 · Angular size ↔ real size

small-angle formula
size = distance × angle (in radians)    exact: size = 2 d tan(θ / 2)

Example loaded: the Moon, about 0.518° wide at 384,400 km. Its measured diameter is 3,474 km.

3 · How far apart are they really?

law of cosines

Two objects that look close together on the sky can be far apart along the line of sight. Give each one's distance and the angle between them.

r = √( d₁² + d₂² − 2 d₁ d₂ cos θ )

Both distances in the same unit (Mpc, kpc, ly…); the answer comes out in that unit.

4 · Surface brightness

mag per arcsec²

How bright each square arcsecond of an object looks: the average inside the radius that holds half the light. Surface brightness does not change with distance, because the light and the area both shrink with the square of distance.

μ = M + 2.5 log₁₀2 + 2.5 log₁₀(π R½²) + 21.572   (R½ in pc; 21.572 = 2.5 log₁₀ of the arcsec² in one pc² seen from 10 pc)

Luminosity is converted with the Sun's absolute V magnitude, M☉ = 4.83. Bigger numbers mean fainter: 5 magnitudes is a factor of exactly 100.

5 · Mass from moving stars

dynamical mass

Stars in a cluster or small galaxy move faster when there is more mass holding them in. Measuring their spread of speeds (velocity dispersion σ) weighs everything inside the half-light radius, dark matter included.

M½ = 4 σ² R½ / G ≈ 930 σ² R½   (σ in km/s, R½ in pc, M½ in solar masses; Wolf et al. 2010)

6 · Kepler's third law

orbits
P² = a³ / M   (P in years, a in AU, M = total mass in solar masses)