Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Number Density Calculator

Calculate from: choose Mass density and molar mass or Ideal gas: pressure and temperature. Prefilled example: Mass density and molar mass.

Mass density (g/cm³): enter 0 or more. Prefilled example: 2.7.

Molar mass, in g/mol: enter 0 or more. Prefilled example: 26.98.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Calculate from: choose Mass density and molar mass or Ideal gas: pressure and temperature.
  2. Mass density (g/cm³): enter 0 or more.
  3. Molar mass, in g/mol: enter 0 or more.
  4. Gas pressure, in kPa: enter 0 or more.
  5. Gas temperature, in K: enter 0 or more.
  6. 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

  1. N25={ρ×1,000,000mm×(6.02214076×1023)if m=1p×1,0001.380649×10−23×totherwise1×1025
Symbols used in the formula
SymbolMeaningUnit
mCalculate from (1: Mass density and molar mass; 2: Ideal gas: pressure and temperature)
ρMass densityg/cm³
mmMolar massg/mol
pGas pressurekPa
tGas temperatureK
N25Number density (× 10²⁵ per m³)

Worked example

Calculate fromMass density and molar mass
Mass density (g/cm³)2.7
Molar mass26.98 g/mol
Number density (× 10¹⁹ per cm³)6,026.6049
Amount concentration (mol/m³)100,074.129
  1. N25=2.7×1,000,000÷26.98×(6.02214076×1023)1×1025=6,026.6

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.

Related calculators