Home · Science · Modern Physics & Astronomy · Number Density Calculator
Number Density Calculator
Find a gas's number density two ways: from mass density and particle mass, n = ρ/m, and from pressure and temperature, n = p/(k_b·T).
What this calculator does
Find a gas's number density two ways: from mass density and particle mass, n = ρ/m, and from pressure and temperature, n = p/(k_b·T). Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
The density route needs the mass of one particle in kilograms; the pressure route is the ideal-gas law rearranged.
For air at sea level both routes agree near 2.5e25 m⁻³.
Worked example
With the example inputs this page opens with (mass density (kg/m^3) 1.2, particle mass (kg) 4.65e-26, pressure (pa) 101325, temperature (k) 293), the result is 25,806,451,612,903,225,000,000,000.00 m^-3 — number density from mass density. Computed from the inputs on this page with the formula below — change any figure and every result updates.
Quick reference
| Mass density (kg/m^3) | Number density from mass density |
|---|---|
| 0.6 | 12,903,225,806,451,613,000,000,000.00 m^-3 |
| 0.96 | 20,645,161,290,322,580,000,000,000.00 m^-3 |
| 1.2 | 25,806,451,612,903,225,000,000,000.00 m^-3 |
| 1.5 | 32,258,064,516,129,030,000,000,000.00 m^-3 |
| 1.8 | 38,709,677,419,354,840,000,000,000.00 m^-3 |
| 2.4 | 51,612,903,225,806,450,000,000,000.00 m^-3 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How many molecules are in a cubic metre of air?
About 2.5e25 at sea-level pressure and room temperature.
Which route should I use in a vacuum chamber?
The pressure route: gauges read pressure directly, and n = p/(kb·T) needs only the temperature.
How does the Number Density Calculator work?
Find a gas's number density two ways: from mass density and particle mass, n = ρ/m, and from pressure and temperature, n = p/(k_b·T). Density · Particle mass · Pressure · Temperature → Number density. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Number Density Calculator need?
Density · Particle mass · Pressure · Temperature → Number density. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.