Number Density Calculator

Calculate particle number density n = N/V from particle count, pressure and temperature, or mass density. Log-scale comparison from interstellar space to solids.

Number Density
2.6872e+25
2.6872e+19 #/cm³
Per Liter
2.6872e+22
Particles per liter
Mean Free Path (air)
61.18 nm
Avg distance between collisions (air-like molecules)
Inter-Particle Distance
33.39 Å
n^(-1/3)
Log₁₀(n)
25.43
Orders of magnitude
Regime
Gas
Based on number density range

Number Density Scale (log₁₀)

Interstellar Medium
10^6
Solar Wind (1 AU)
10^7
Best Lab Vacuum
10^12
LEO (400 km)
10^14
Mars Atmosphere
10^23
Earth Atmosphere (SL)
10^25
Ideal Gas at STP
10^25
Liquid Water
10^29
Solid Iron
10^29
Your Value
10^25
EnvironmentNumber Density (#/m³)log₁₀(n)Mean Free Path
Interstellar Medium1.000e+66.01,644,113,068.2 km
Solar Wind (1 AU)7.000e+66.8234,873,295.5 km
Best Lab Vacuum1.000e+1212.01,644.1 km
LEO (400 km)1.000e+1414.016.4 km
Mars Atmosphere2.000e+2323.38,220.57 nm
Earth Atmosphere (SL)2.504e+2525.465.66 nm
Ideal Gas at STP2.687e+2525.461.19 nm
Liquid Water3.346e+2828.50.05 nm
Solid Iron8.490e+2828.90.02 nm
Planning notes, formulas, and examples

About the Number Density Calculator

Number density n is the count of particles per unit volume (#/m³ or #/cm³). It is fundamental in gas kinetics, plasma physics, semiconductor doping, and astrophysics. This calculator offers four input modes to determine number density from whatever information you have.

Mode 1: n = N/V from a known particle count and volume. Mode 2: n = P/(k_BT) from the ideal gas law for a gas at known pressure and temperature. Mode 3: n = ρN_A/M from mass density and molar mass. Mode 4: enter number density directly for unit conversion and comparison.

Results include number density in #/m³ and #/cm³, mean free path (assuming air-like collision cross-section), inter-particle distance, a regime classification (vacuum to condensed matter), and a logarithmic-scale comparison spanning 24 orders of magnitude—from interstellar space (10⁶/m³) to solid iron (8.5×10²⁸/m³).

When This Page Helps

Number density bridges the macroscopic (pressure, temperature, mass density) and microscopic (particle count, mean free path) worlds. It is essential in kinetic theory, vacuum technology, plasma engineering, semiconductor physics, and astrophysics.

The log-scale comparison spanning 24 orders of magnitude provides immediate physical context for any value—whether you are working with interstellar gas, laboratory vacuum, or a dense solid.

How to Use the Inputs

  1. Select a preset or pick a calculation mode.
  2. For N/V mode: enter particle count (scientific notation OK) and volume with unit.
  3. For P/T mode: enter pressure and temperature with units.
  4. For mass density mode: enter ρ (kg/m³) and molar mass (g/mol).
  5. View number density, mean free path, inter-particle distance, and regime.
  6. Check the log-scale chart and reference table for context.
Formula used
Number density: n = N/V (count/volume), n = P/(k_BT) (ideal gas), n = ρN_A/M (from mass density). Mean free path: λ = 1/(√2 π d² n). Inter-particle distance: ℓ ≈ n^(−1/3). k_B = 1.381×10⁻²³ J/K, N_A = 6.022×10²³ /mol.

Example Calculation

Result: 2.687 × 10²⁵ /m³

n = 101325 / (1.381e-23 × 273.15) = 2.687 × 10²⁵ /m³. This is the Loschmidt number—the number density of an ideal gas at STP.

Tips & Best Practices

  • Use scientific notation (e.g., 6.022e23) for very large or very small numbers.
  • Mean free path scales as 1/n: halving the pressure doubles the mean free path.
  • For vacuum systems, number density tells you the gas load and pump-down requirements.
  • Semiconductor doping concentrations are typically expressed in #/cm³ (e.g., 10¹⁵–10¹⁹ /cm³).
  • In astrophysics, number density determines optical depth: τ = n × σ × L.

Number Density Across the Universe

The range of number densities encountered in nature spans over 30 orders of magnitude:

| Environment | n (#/m³) | log₁₀(n) | |---|---|---| | Intergalactic space | ~1 | 0 | | Interstellar medium | ~10⁶ | 6 | | Solar wind at 1 AU | ~7×10⁶ | 7 | | Best laboratory vacuum | ~10¹² | 12 | | Low Earth orbit (400 km) | ~10¹⁴ | 14 | | Mars atmosphere (surface) | ~2×10²³ | 23 | | Earth atmosphere (sea level) | 2.5×10²⁵ | 25 | | Liquid water | 3.3×10²⁸ | 28 | | Solid iron | 8.5×10²⁸ | 29 | | White dwarf core | ~10³⁶ | 36 | | Neutron star | ~10⁴⁴ | 44 |

Mean Free Path and Knudsen Number

The ratio of mean free path to a characteristic length gives the Knudsen number: Kn = λ/L. When Kn < 0.01, the gas behaves as a continuum (Navier-Stokes applies). When Kn > 10, molecular flow dominates (individual particle trajectories matter). This is critical for vacuum system design, microfluidics, and hypersonic aerodynamics.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • It is the number density of an ideal gas at STP: n_L ≈ 2.687 × 10²⁵ /m³. One mole of ideal gas at STP occupies 22.414 L, so n = N_A / 0.022414 = 2.687 × 10²⁵.