iCosmos › BAO distance calculator
BAO distance calculator
Baryon acoustic oscillations measure distances in units of the sound horizon rd, a standard ruler set in the early universe.
The interactive calculator loads here: change the redshift and the cosmological parameters (Ωm, ΩΛ, Ωr, w0, wa, H0) and the result and plot update instantly.
What it is
For roughly the first 400 000 years, sound waves travelled through the hot plasma of photons and baryons. When the baryons were released (the drag epoch, z ≈ 1060), the waves froze in, leaving a slight excess of galaxy pairs separated by the comoving distance sound had travelled: the sound horizon rd ≈ 147 Mpc. This is the baryon acoustic oscillation (BAO) scale.
Galaxy surveys measure the BAO scale across the line of sight, giving the transverse comoving distance DM/rd, and along it, giving DH/rd = c/(H(z) rd). When only an average over directions can be measured they quote DV/rd. Because the results are ratios, BAO alone constrain the shape of the expansion history and the product H0 rd; the value of rd comes from the physics of the early universe.
iCosmos computes rd from Ωbh2 and Ωmh2 (set them under “Survey & CMB parameters”) with a fit to the CAMB Boltzmann code, within 2 × 10−5 of CAMB when curvature and dark energy are negligible at early times (up to about 0.07 % at the edge of its validity range), assuming the standard radiation content and massless neutrinos. Planck and DESI include neutrinos with Σmν = 0.06 eV, which iCosmos treats as ordinary matter; for their models this makes the BAO ratios about 0.1 % different from a full calculation.
Formula
- DH(z) = c / H(z)
- DM(z) = transverse comoving distance (DC when flat)
- DV(z) = [z DM2(z) DH(z)]1/3
- rd = ∫ cs(z) dz / H(z), integrated from the drag epoch zd to z = ∞, with cs = c / √(3(1 + R)) and R = 3ρb/(4ργ)
Worked example
For the Planck 2018 model (H0 = 67.66, Ωm = 0.3111, Ωbh2 = 0.02242) the sound horizon is rd = 147.05 Mpc. Planck itself quotes 147.21 Mpc; the small difference comes from Planck’s massive neutrinos (Σmν = 0.06 eV), which iCosmos treats as ordinary matter.
At z = 0.934, the effective redshift of DESI’s combined luminous red galaxy and emission-line galaxy sample, this model predicts DM/rd = 21.955 and DH/rd = 17.575. DESI DR2 measures DM/rd = 21.576 ± 0.152.
| Sample | z | Quantity | DESI DR2 measured | Planck 2018 ΛCDM | DESI DR2 w0wa (DESI+CMB+DESY5) |
|---|---|---|---|---|---|
| BGS | 0.295 | DV/rd | 7.942 ± 0.075 | 8.0332 | 7.9365 |
| LRG1 | 0.51 | DM/rd | 13.588 ± 0.167 | 13.464 | 13.301 |
| LRG1 | 0.51 | DH/rd | 21.863 ± 0.425 | 22.712 | 22.372 |
| LRG2 | 0.706 | DM/rd | 17.351 ± 0.177 | 17.661 | 17.45 |
| LRG2 | 0.706 | DH/rd | 19.455 ± 0.33 | 20.161 | 20.013 |
| LRG3+ELG1 | 0.934 | DM/rd | 21.576 ± 0.152 | 21.955 | 21.73 |
| LRG3+ELG1 | 0.934 | DH/rd | 17.641 ± 0.193 | 17.575 | 17.587 |
| ELG2 | 1.321 | DM/rd | 27.601 ± 0.318 | 28.047 | 27.853 |
| ELG2 | 1.321 | DH/rd | 14.176 ± 0.221 | 14.081 | 14.204 |
| QSO | 1.484 | DM/rd | 30.512 ± 0.76 | 30.243 | 30.071 |
| QSO | 1.484 | DH/rd | 12.817 ± 0.516 | 12.898 | 13.031 |
| Lyα | 2.33 | DH/rd | 8.632 ± 0.101 | 8.6347 | 8.7273 |
| Lyα | 2.33 | DM/rd | 38.989 ± 0.531 | 39.166 | 39.094 |
Common questions
What did DESI DR2 find?
DESI’s second data release (DESI Collaboration 2025, arXiv:2503.14738) measured BAO in more than 14 million galaxies and quasars. On its own it is consistent with flat ΛCDM with Ωm = 0.2975 ± 0.0086, although the parameters it implies are in mild (2.3σ) tension with those from the CMB. Combined with the CMB, the evolving dark energy model w0wa is preferred over ΛCDM at 3.1σ, and at 2.8σ to 4.2σ when supernovae are added, depending on the supernova sample. These are model comparisons, not detections. The four published w0wa fits are presets in iCosmos.
Can I judge a model by how close the curve is to the points?
Only roughly. The DM and DH measurements at the same redshift are correlated (correlation coefficients of about −0.4 to −0.5), and rd depends on Ωbh2 and Ωmh2. A proper comparison uses the full published covariance, as in the DESI papers.
Why is the sound horizon not defined for some models?
The standard sound horizon assumes a hot Big Bang with standard radiation in which dark energy and curvature are negligible at z ≈ 1060. If your model has no Big Bang, non-standard Ωr, Ωmh2 outside 0.03–0.6, or significant dark energy at early times, iCosmos explains why instead of showing a number.
Does rd depend on H0?
Not at fixed Ωbh2 and Ωmh2: it depends on the physical densities only. Changing H0 at fixed Ωm changes Ωmh2 and therefore rd.
Related calculators
- Hubble parameter H(z) calculator
- Angular diameter distance calculator
- Comoving distance calculator
- The full iCosmos cosmology calculator
About iCosmos
iCosmos was created by Mihran Vardanyan. Mihran Vardanyan is a cosmologist who earned his DPhil in cosmology at the University of Oxford, supervised by Joseph Silk and Roberto Trotta. He developed iCosmos during his research years at Oxford Astrophysics, where his work applied Bayesian model selection to the curvature and size of the Universe.
How to cite: Vardanyan, Mihran. iCosmos V4: Cosmology Calculator. https://icosmos.co.uk/. Include your access date, model parameters and exported data when reporting calculations.