Number Density Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Number density is how many particles fit in a unit volume. Choose a solid or liquid (density and molar mass) or an ideal gas (pressure and temperature).
Result
Number density (× 10²⁵ per m³)
Number density (× 10¹⁹ per cm³)
- Amount concentration (mol/m³)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Calculate from: choose Mass density and molar mass or Ideal gas: pressure and temperature.
- Mass density (g/cm³): enter 0 or more.
- Molar mass, in g/mol: enter 0 or more.
- Gas pressure, in kPa: enter 0 or more.
- Gas temperature, in K: enter 0 or more.
- Read the result: Number density (× 10²⁵ per m³); the panel also shows Number density (× 10¹⁹ per cm³) and Amount concentration (mol/m³).
How this calculator works
From mass density: n = ρ × N_A ÷ M, where ρ is the density, M the molar mass and N_A = 6.02214076 × 10²³ per mole the Avogadro constant. With ρ in g/cm³ it is first converted to g/m³ (× 10⁶).
For an ideal gas: n = p ÷ (k_B × T), with p the pressure in pascals, T the absolute temperature and k_B = 1.380649 × 10⁻²³ J/K the Boltzmann constant.
Constants: CODATA 2022 values published by NIST (physics.nist.gov/cuu/Constants, read October 27, 2026). At 273.15 K and 101.325 kPa, NIST lists the Loschmidt constant as 2.686780111 × 10²⁵ per m³, which this calculator reproduces.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Calculate from (1: Mass density and molar mass; 2: Ideal gas: pressure and temperature) | ||
| Mass density | g/cm³ | |
| Molar mass | g/mol | |
| Gas pressure | kPa | |
| Gas temperature | K | |
| Number density (× 10²⁵ per m³) |
Worked example
| Calculate from | Mass density and molar mass |
|---|---|
| Mass density (g/cm³) | 2.7 |
| Molar mass | 26.98 g/mol |
| Number density (× 10¹⁹ per cm³) | 6,026.6049 |
|---|---|
| Amount concentration (mol/m³) | 100,074.129 |
Number density (× 10²⁵ per m³) 6,026.6049
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How many molecules are in a cubic meter of gas at 0 °C and 1 atm?
About 2.6868 × 10²⁵, the Loschmidt constant.
Is number density the same as concentration?
It counts particles; molar concentration counts moles. Divide the number density by the Avogadro constant to go from one to the other.