---
title: "Weighing a Galaxy Cluster Three Ways Interactive Lab | Sandbox Physics"
description: "Why do X-rays, the SZ effect and lensing give one galaxy cluster different masses? Gas motion can help support a galaxy cluster."
canonical_url: "https://sandboxphysics.com/labs/galaxy-cluster-mass-calibration/"
language: "en"
page_type: "lab"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/labs/galaxy-cluster-mass-calibration/"
last_modified: "2026-11-23"
---

# Weighing a Galaxy Cluster Three Ways

**Why do X-rays, the SZ effect and lensing give one galaxy cluster different masses?** Gas motion can help support a galaxy cluster. X-ray masses inferred from heat alone can miss that support. Clumps brighten X-rays more than the SZ signal, and lensing senses projected mass. A low mass scale puts fewer clusters above a given threshold.

Stir the hot gas, add clumps or shift the X-ray temperature scale, and watch one simulated cluster's X-ray, SZ and lensing masses drift apart, then see what the shifted mass scale does to the cosmology inferred from cluster counts.

> Interactive simulation: open this page in a web browser to change the parameters and run the model.

Model assumptions

One spherical cluster at redshift 0.2 with an NFW total mass profile. The gas density follows the Vikhlinin et al. (2006) shape fitted to Abell 1413 and holds 13.1 percent of the mass inside the cluster edge, the radius where the mean density is 500 times the critical density. Total gas pressure balances gravity exactly; the non-thermal share rises outward with the Nelson et al. (2014) simulation shape, scaled to the chosen value at that edge. Clumping is an assumed smooth rise that boosts the X-ray density by the square root of C; SZ ignores it. The X-ray mass uses thermal hydrostatic equilibrium. The SZ mass inverts an ideal thermal Y–M relation computed from this same model, not a published scaling. The lensing record is synthetic: true excess surface density with shape noise, fitted with an NFW of fixed concentration 3. Cluster counts use a frozen Tinker et al. (2008) mass function and vary only the mass scale; scatter, the selection function and other cosmological parameters stay fixed. Triaxiality, projection, cool cores, centring errors and redshift spread are omitted. Maps are schematic; shear is drawn four times larger.

Enclosed mass: truth and X-ray Model · true profile and hydrostatic estimate

What gas motions and clumps do to the maps Model · ratio to the calm, smooth cluster

Lensing shear profile and fit Synthetic record · shape noise

Clumping amplitude inferred from counts Frozen mass function · mass scale only

White: truth. Orange: X-ray. Teal: SZ. Violet: lensing. The counts chart keeps every cosmological parameter fixed except the mass scale.

More numbers for this cluster

- **True mass $M_{500}$**: $7.00\times10^{14}\,M_\odot$
- **True radius $r_{500}$**: $1.26\,\mathrm{Mpc}$
- **X-ray temperature at its own cluster edge $T_{\rm X}$**: $4.12\,\mathrm{keV}$
- **Integrated SZ signal $Y_{500}$**: $6.96\times10^{-5}\,\mathrm{Mpc^2}$
- **Gas fraction with X-ray mass $f_{\rm gas}$**: $0.160$

The model gas fraction inside the true cluster edge is 0.131. An X-ray gas fraction above it is the sign that the X-ray mass is too low, the argument Eckert et al. (2019) used on real clusters.

Compare published masses for Abell 2029

Each estimate uses its own radius at the same density threshold. Masses are in units of$10^{14}\,M_\odot$.

- **X-COP thermal hydrostatic**: $8.65$
- **Planck PSZ2 mass proxy**: $7.04_{-0.19}^{+0.20}$
- **CFHT shear, NFW fit**: $12.1\pm2.5$

[Compare at the same physical radius in the tutorial](https://sandboxphysics.com/stories/cluster-mass-calibration/recompute-xcop-hydrostatic-masses/)

## Three scales, one cluster

**Background** A galaxy cluster holds hot gas in a deep well of dark matter. X-ray telescopes see the gas glow, millimetre telescopes see it scatter the cosmic microwave background, and the cluster's gravity bends the images of galaxies behind it. Each signal can be turned into a mass.

**Why it matters** Counting heavy clusters is one of the most direct ways to measure how clumpy matter has become. The count depends steeply on mass, so a mass scale that is off by twenty percent moves the cosmology by more than the statistical error of a modern survey.

- **Focus question**: If a fifth of the gas pressure comes from bulk motion instead of heat, which of the three masses notices, and by how much?
- **One-sentence intuition**: X-ray and SZ masses read only thermal pressure, so they come out low by roughly the non-thermal share; lensing reads all mass but needs many clusters to beat its noise.

### Core mathematical model

#### Hydrostatic mass from X-rays

$$
M_{\rm HSE}(<r)=-\frac{k T r}{G\mu m_p}\left(\frac{d\ln n_e}{d\ln r}+\frac{d\ln T}{d\ln r}\right)
$$

Temperature and density profiles give the pressure gradient that gravity must balance. Only thermal pressure enters.

#### Adding gas motions

$$
M_{\rm true}=-\frac{r^2}{G\rho_{\rm gas}}\frac{dP_{\rm tot}}{dr},\qquad P_{\rm th}=(1-\alpha)\,P_{\rm tot}
$$

When a share alpha of the support comes from bulk motion, a constant alpha lowers the hydrostatic mass by exactly the factor one minus alpha.

#### SZ signal

$$
y=\frac{\sigma_T}{m_e c^2}\int P_e\,dl,\qquad Y_{500}\propto M_{500}^{5/3}E(z)^{2/3}
$$

The Compton parameter adds up electron pressure along the line of sight. A self-similar cluster's integrated signal scales as mass to the five-thirds.

#### Lensing

$$
\Delta\Sigma(R)=\bar\Sigma(<R)-\Sigma(R)=\Sigma_{\rm cr}\,\gamma_t(R)
$$

Tangential shear of background galaxies measures the excess projected mass, whatever state the gas is in.

### Common difficulties

#### Agreement between X-ray and SZ is not proof

**Typical misconception** If the X-ray and SZ masses agree, the cluster mass must be right.

**Better mental model** Both read the same thermal pressure, so gas motions bias them in the same direction. Lensing is the independent check, and in real surveys the SZ mass relation is itself calibrated on X-ray masses.

### Run the experiment

1. 01

   #### Calm the gas

   Start from Turbulent outskirts and slide the gas motion share to zero. Predict which ring moves onto the white true ring first.

   **What to observe:** The tracer streaks stop, the SZ ring meets the true ring, and the X-ray ring follows once clumping is also low. The lensing ring does not move.

2. 02

   #### Add clumps

   Choose Clumpy outskirts and compare the X-ray and SZ ratios with Calm relaxed cluster.

   **What to observe:** Clumps flatten the measured X-ray density profile and push the gas fraction above the cosmic value, but the SZ mass barely changes.

3. 03

   #### Follow the bias into cosmology

   Choose Large hydrostatic bias and watch the counts chart, then drag the true ring outward to a heavier cluster.

   **What to observe:** With X-ray masses the inferred clumping amplitude falls well below 0.81, while lensing masses return it within their error. A heavier cluster shrinks the lensing error bar.

Physical conclusion

Calibrate the mass scale first, with lensing as the anchor, and only then turn cluster counts into cosmology.

## Related experiments and articles

Weighing galaxy clusters with X-rays, SZ and lensing · Reading path

### From three scales to cluster counts

Articles on this path that use this experiment, followed by the other experiments they suggest.

1. [Article **Why X-rays, the SZ effect and lensing weigh a galaxy cluster differently**](https://sandboxphysics.com/stories/cluster-mass-calibration/three-ways-to-weigh-a-cluster/)
2. [Article **How hot gas weighs a galaxy cluster in hydrostatic equilibrium**](https://sandboxphysics.com/stories/cluster-mass-calibration/hydrostatic-mass-from-x-rays/)
3. [Article **A first computable cluster model with SZ Compton y and lensing shear**](https://sandboxphysics.com/stories/cluster-mass-calibration/sz-pressure-and-lensing-shear/)
4. [Article **How a hydrostatic mass bias shifts cosmology from cluster counts**](https://sandboxphysics.com/stories/cluster-mass-calibration/mass-bias-and-cluster-counts/)
5. [Article **Recompute X-COP hydrostatic masses and a toy SZ cluster survey**](https://sandboxphysics.com/stories/cluster-mass-calibration/recompute-xcop-hydrostatic-masses/)
6. [Article **How to read the Planck 2015 SZ cluster counts and the mass bias**](https://sandboxphysics.com/stories/cluster-mass-calibration/reading-the-planck-cluster-count-mass-bias/)

Fields & matter · Starter path

## From a field to an electron microscope

Map an electric field and steer a charged particle. Then find the electron's wavelength and use electron beams to see a crystal and a surface.

[Start here → **Make an Electric Field Visible** Move the probe around a dipole and check that the field always points downhill on the potential landscape. Observe · 8 min](https://sandboxphysics.com/labs/electric-field/)

1. [1 Make an Electric Field Visible](https://sandboxphysics.com/labs/electric-field/)
2. [2 A Charge Bending through Fields](https://sandboxphysics.com/labs/charged-particle/)
3. [3 Electron Wavelength & Voltage](https://sandboxphysics.com/labs/electron-wavelength/)
4. [4 Electron Diffraction & Reciprocal Space](https://sandboxphysics.com/labs/electron-diffraction/)
5. [5 TEM Bright Field, Dark Field & SAED](https://sandboxphysics.com/labs/tem-mode-selector/)
6. [6 SEM Secondary-Electron Topography](https://sandboxphysics.com/labs/sem-topography/)

[View the full path →](https://sandboxphysics.com/topics/fields-and-matter/#starter-path)
