Halo Mass Function Calculator

Compute dn/dM using Press-Schechter or Sheth-Tormen fits. Include growth factor scaling and mass-variance options flexibly. Download CSV or PDF outputs for quick analysis later.

Calculator

Choose a commonly used multiplicity function f(ν).
Often ≈ 1.686 for spherical collapse.
Log-spaced mass grid.
Approximation: σ(M,0) ≈ σ8 (M/M8)^(-α).
Uses α=(n_eff+3)/6.
Reset

Example data table

Example outputs for Ωm=0.3, ΩΛ=0.7, h=0.7, σ8=0.8, z=0, n_eff=-2.0, δc=1.686, Sheth-Tormen.

M [Msun] dn/dM [1/(Mpc³ Msun)]
1.0e122.146e-15
1.0e132.098e-17
1.0e141.494e-19
Values depend strongly on α, σ8, and the variance approximation.

Formula used

We compute the differential halo mass function as:

dn/dlnM = (ρm,0 / M) · f(ν) · dlnν/dlnM

Using a power-law approximation for the mass variance:

σ(M,0) ≈ σ8 · (M/M8), with α=(n_eff+3)/6 (optional)

Redshift scaling is applied through the linear growth factor:

σ(M,z) = σ(M,0) · D(z), ν = δc / σ(M,z)

For this approximation, dlnν/dlnM = α. Two choices for f(ν) are included: Press-Schechter and Sheth-Tormen.

Note: A full precision halo mass function requires integrating the matter power spectrum to obtain σ(M). This tool provides a fast, tunable approximation for exploration.

How to use this calculator

  1. Pick a model (Sheth-Tormen is a common default).
  2. Set a redshift z and cosmological parameters (Ωm, ΩΛ, h, σ8).
  3. Enter a mass range (Mmin, Mmax) in solar masses.
  4. Select how to set the variance slope: n_eff or α directly.
  5. Choose grid points N, then press Calculate.
  6. Use the download buttons to export CSV or PDF.
Practical guidance: If you want fewer low-mass halos, decrease σ8 or reduce α. If you want steeper suppression at high mass, consider Press-Schechter for comparison.

Professional article

Halo mass function in practical modeling

The halo mass function links the statistics of the primordial density field to the abundance of collapsed dark matter halos. In surveys and simulations, it converts cosmological assumptions into expected counts of galaxy groups and clusters per comoving volume. This calculator focuses on the differential forms dn/dM and dn/dlog10M, which are widely used for comparing across decades in mass.

1) From variance to peak height

The central variable is the peak height ν = δc/σ(M,z). Larger ν corresponds to rarer peaks and more massive halos. Here δc is the collapse threshold (often near 1.686), and σ(M,z) is the linear RMS fluctuation on a mass scale. A small increase in ν can strongly suppress high-mass abundances.

2) Growth factor scaling with redshift

The redshift dependence enters through the linear growth factor D(z), with σ(M,z)=σ(M,0)D(z). For typical ΛCDM parameters, D(z) decreases with redshift, increasing ν and reducing halo counts. This is why cluster abundances are sensitive probes of late-time structure growth.

3) Press-Schechter versus Sheth-Tormen

Press-Schechter provides a classic analytic baseline with f(ν) ∝ ν exp(-ν²/2). Sheth-Tormen modifies the exponential tail and adds a correction factor motivated by ellipsoidal collapse. In practice, Sheth-Tormen often predicts more massive halos than Press-Schechter, especially near the exponential cutoff, improving agreement with N-body results in many regimes.

4) Interpreting σ8 and the mass scale M8

The parameter σ8 normalizes the fluctuation amplitude within spheres of radius 8 h⁻1 Mpc. The tool computes the corresponding mass M8 using the present-day mean matter density ρm,0 = Ωm ρcrit,0, where ρcrit,0 = 2.775×10¹¹ h² Msun/Mpc³. Raising σ8 typically boosts the abundance at fixed mass and redshift.

5) Effective slope control with neff

To keep the calculator fast, the mass variance is approximated as a power law: σ(M,0) ≈ σ8 (M/M8)^(-α). You may set α directly or infer it from an effective spectral index via α=(n_eff+3)/6. More negative n_eff generally yields a smaller α, flattening the mass dependence of σ.

6) Units and common output forms

The output dn/dM has units of 1/(Mpc³·Msun) in comoving coordinates. Many analyses prefer dn/dlog10M, which scales by M ln 10 and is convenient for logarithmic mass bins. When comparing to catalogs, match the mass definition used (e.g., overdensity-based masses) and apply consistent binning.

7) Sensitivity checks and sanity ranges

As a diagnostic, vary one parameter at a time. Increasing z should reduce high-mass halos. Increasing σ8 should raise abundances across the range. If results look unstable, narrow the mass range, increase grid points, or choose a more moderate α. The CSV export makes quick comparisons across runs straightforward.

8) When to use this approximation

This tool is best for exploratory work, teaching, and rapid sensitivity studies when you need an interpretable mapping from σ8, α, and D(z) to halo counts. For precision cosmology, compute σ(M) from the matter power spectrum with a top-hat filter and use calibrated fitting functions matched to your mass definition.

FAQs

1) What does dn/dM represent?

It is the comoving number density of halos per unit mass interval. Integrating dn/dM over a mass range gives the expected halo count per comoving volume within that range.

2) Why does redshift reduce massive halo abundance?

At higher redshift the growth factor is smaller, lowering σ(M,z). This increases ν=δc/σ and exponentially suppresses the high-mass tail of the multiplicity function.

3) Which model should I choose: Press-Schechter or Sheth-Tormen?

Use Sheth-Tormen for a common improved fit to simulations, especially near the massive end. Use Press-Schechter for a simpler baseline or for quick comparisons to classic analytic results.

4) What is α and why does it matter?

α controls how quickly σ(M) decreases with mass in the power-law approximation. Larger α makes σ drop faster, increasing ν at high mass and reducing the predicted abundance of massive halos.

5) How should I interpret dn/dlog10M?

It gives number density per logarithmic decade in mass, matching typical catalog binning. It is often easier to plot and compare across wide mass ranges than dn/dM.

6) Are the results suitable for precision constraints?

They are intended for fast exploration. Precision analyses usually compute σ(M) from a power spectrum and use fitting functions calibrated to the chosen mass definition and redshift range.

7) Why might my outputs look too large or too small?

Check σ8, α or n_eff, and the mass range. Small changes can shift ν and strongly alter the exponential tail. Also confirm Ωm, h, and δc are within typical cosmological ranges.

Related Calculators

growth factor calculatorabsolute magnitude calculatordistance modulus calculatorapparent magnitude calculatorhubble constant calculatorlight travel distance calculatorcritical density calculatorevent horizon calculatorline of sight distance calculatorhubble time calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.