Orbital mechanics: Kepler's third law
The most fundamental mass measurement tool in astronomy is Kepler's third law as reformulated by Newton: M = (4π²a³) / (GT²), where M is the central mass, a is the orbital radius, G is the gravitational constant, and T is the orbital period. This equation applies at every scale: measuring the Sun's mass from Earth's orbit, measuring Jupiter's mass from Io's orbit, measuring a binary star's total mass from its orbital parameters, measuring a galaxy's mass from satellite galaxy orbits. The key inputs are orbital period and size — both measurable from positional observations over time. For the solar system, periods are measured to extraordinary precision (Earth's year is known to milliseconds); distances are measured by radar ranging (accurate to metres for nearby bodies). This same approach extended to exoplanet host stars yields their masses, then enables the planet masses from radial velocity or transit timing variations. See our gravity and orbits guide.
Stellar masses: binary stars and spectroscopy
About half of all stars are in binary or multiple systems. For visual binaries where both stars can be resolved, measuring the orbit of each star around the common centre of mass gives both individual masses. For spectroscopic binaries — where the pair is too close to resolve but both stars' spectral lines shift with their orbital velocities — the mass function can be derived from radial velocities and the period. For single stars with no detectable companion, mass is inferred from stellar models: a star's luminosity and surface temperature (from its spectrum) place it on the Hertzsprung-Russell diagram, and theoretical stellar evolution models predict the mass for that position. This is calibrated against binary star masses. The mass-luminosity relation for main-sequence stars (L ∝ M³·⁵ approximately) allows mass estimates from luminosity alone once calibrated. See our stellar evolution guide.
Galaxy and cluster masses: dark matter revealed
In the 1970s, Vera Rubin and Kent Ford measured the rotation curves of spiral galaxies — the orbital speed of stars and gas as a function of distance from the centre. For a mass concentrated at the centre (like the solar system), orbital speed should decrease with distance (v ∝ 1/√r). Instead, rotation curves remain flat or even rise at large radii — implying mass continues to increase far beyond the visible stars. This is the rotation curve problem, now understood as evidence for dark matter halos surrounding galaxies. Galaxy clusters can be weighed three independent ways: the temperature and X-ray luminosity of hot intracluster gas (which must be in pressure equilibrium within the cluster's gravity); the velocity dispersion of member galaxies (the virial theorem); and gravitational lensing of background sources (the most model-independent method). The fact that all three methods agree — and consistently show 5× more mass than visible — is among the strongest evidence for dark matter. See our dark matter guide.