Skip to content
Omnikalc

Virial mass calculator

Enter the velocity dispersion, the half-light radius, the luminosity and the mass estimator to get the dynamical mass, the mass-to-light ratio, the crossing time and the escape speed of a galaxy, a cluster or a dwarf system.

Updated on
Your inputs
km/s

Value out of range

kpc

Value out of range

G☉

Value out of range

Results

Dynamical mass (billions of solar masses)

139.50 G☉

Mass-to-light ratio (solar units)

4.65

Crossing time R / σ
14.67 Myr
Escape speed from the radius
632 km/s
Circular speed at the radius
447 km/s
Mean density inside the sphere of radius R
1.233 M☉/pc³

The virial mass calculator gives the dynamical mass of a galaxy, a star cluster or a cluster of galaxies from its velocity dispersion and half-light radius with a chosen estimator, the mass-to-light ratio, the crossing time, the circular and escape speeds and the mean density.

How the calculation works

  • Enter the velocity dispersion σ and the half-light radius R.
  • Enter the luminosity and choose the mass estimator.
  • Read the mass, the mass-to-light ratio and the crossing time.

Example

A system with σ = 200 km/s, R = 3 kpc and a luminosity of 30 G☉ has a dynamical mass of 139.50 G☉ and a mass-to-light ratio of 4.65. A star needs 14.67 Myr to cross it, the circular speed at R is 447 km/s and the escape speed 632 km/s. The mean density inside R is 1.233 M☉/pc³.

Why it matters

The calculator helps astronomy students, researchers and amateurs who weigh galaxies, globular clusters or galaxy clusters from spectra, check whether an object holds more mass than its stars explain, or compare estimators used in the literature.

Good to know

The estimators assume a system in dynamical equilibrium and a velocity dispersion measured within about the half-light radius. They do not apply well to rotating disks, which need the Tully-Fisher approach, or to systems being disrupted. The mass is the total inside the radius, not only the stars. Units are km/s, kpc and billions of solar masses and luminosities. The factor η carries a systematic uncertainty of tens of percent. For a first look, compare the result with the sum of the stellar mass from the luminosity and a typical stellar mass-to-light ratio near 2 to 3, and treat any excess as a sign of dark matter or of a poorly measured radius.

The Tully-Fisher calculator weighs rotating spiral galaxies, the Jeans mass calculator treats collapsing clouds, the orbital period calculator handles Kepler orbits and the Hubble law calculator gives distances.

Frequently asked questions

What is the virial mass?

For a system in equilibrium, the virial theorem links its mass to the speeds of its stars or galaxies and its size: M ≈ η × σ² × R / G, where σ is the line-of-sight velocity dispersion, R a characteristic radius and η a number of order 3 to 10 that depends on the shape and on the radius used. It gives the total mass, including dark matter.

Which estimator should I choose?

Wolf et al. (2010) showed that for dispersion-supported systems the mass inside the 3D half-light radius is 3σ²R/G, nearly independent of the orbital anisotropy, which is 4σ²R/G when the projected radius is used. For elliptical galaxies, Cappellari et al. (2006) use 5σ²R/G with the effective radius. The choice changes the mass by a factor below 2.

What does the mass-to-light ratio tell me?

The ratio M/L compares the dynamical mass with the luminosity, both in solar units. A stellar population has M/L of about 1 to 5, so a much larger value shows unseen matter such as dark matter. With σ = 200 km/s, R = 3 kpc and 3 × 10¹⁰ solar luminosities, M/L is about 4.7, typical of a massive elliptical galaxy.

What is the crossing time?

The crossing time R/σ is the time a star takes to cross the system. It is 14.7 million years for 3 kpc and 200 km/s. A system older than a few crossing times has relaxed to equilibrium, which supports the use of the virial theorem. Clusters of galaxies have crossing times of a good fraction of a billion years.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.