Number Density Calculator

Find how many particles sit in each unit of volume from a count, from a material's density and molar mass, or from an ideal gas, and see how far apart they are.

🔢 Number Density Calculator
Amount (N)
Volume (V)
Material
Mass density (ρ)
Molar mass (M)
g/mol
Atoms per formula unit
Pressure (P)
Temperature (T)
Number density (m⁻³)
—
Number density (cm⁻³)
—
Per litre
—
Per nm³
—
Mean spacing n-1/3
—
Wigner-Seitz radius
—
Amount of substance
—
Molar concentration
—

Atoms per cm³
—
Atoms per m³
—
Formula units per cm³
—
Mean atom spacing
—
Volume per atom
—
Molar volume
—
Wigner-Seitz radius
—

Number density (m⁻³)
—
Number density (cm⁻³)
—
Mean spacing n-1/3
—
Amount per volume
—
Relative to Loschmidt
—
Pressure used
—
Temperature used
—

🔢 What is Number Density?

Number density is the number of particles in each unit of volume. It is written n and defined by n = N / V, where N counts atoms, molecules, electrons, ions or any other countable objects. Its SI unit is per cubic metre (m-3), though per cubic centimetre (cm-3) is used throughout atomic physics, semiconductor physics and astrophysics. Typical values span an enormous range: a solid has about 1028 to 1029 atoms per m³, air at sea level about 2.5 × 1025 molecules per m³, a laboratory ultra-high vacuum perhaps 1013 per m³, and the interstellar medium only around 106 per m³.

Number density is the starting point for many other quantities. The mean spacing between particles, n-1/3, tells you how crowded a material is and whether a gas can be treated as ideal. The mean free path of a molecule, the collision rate, the plasma frequency, the electrical conductivity of a metal, the absorption of light and the rate of nuclear reactions all depend on how many targets or carriers there are per unit volume. Vacuum engineers quote residual gas in particles per cm³, and semiconductor designers quote doping in atoms per cm³.

Number density should not be confused with mass density. Mass density counts mass per volume, while number density counts particles per volume; they are linked by the mass of one particle, so n = ρ NA / M when M is the molar mass. It also differs from molar concentration, which counts moles per volume (n = c NA), and from the density of an ideal crystal calculated from its lattice parameters, which is the job of the unit cell density calculator. The count of particles in a mole is explained on the Avogadro's number calculator, and the general mass, volume and density relation is on the density calculator.

This calculator has three modes. Count and volume divides a particle count (or moles) by a volume. Mass density converts a density and molar mass into atoms per cm³, with a table that compares common materials. Ideal gas finds n = P / (kB T) from the pressure and temperature, and shows how the result compares with the Loschmidt constant. Every mode also reports the mean spacing and the Wigner-Seitz radius. Material values are typical illustrative figures near room temperature, not specifications.

📐 Formula

n  =  N ÷ V  =  ρ NA ÷ M  =  P ÷ ( kB T )
n = number density (m-3); 1 cm-3 = 106 m-3
N = number of particles, or moles × NA, and V = volume (m³)
NA = 6.02214076 × 1023 mol-1 (Avogadro constant, exact in the SI)
ρ = mass density (g/cm³) and M = molar mass (g/mol). Multiply by the atoms per formula unit for atoms
P = pressure (Pa), T = absolute temperature (K), kB = 1.380649 × 10-23 J/K (exact in the SI)
Mean spacing: d = n-1/3, and the Wigner-Seitz radius is rs = ( 3 / (4 π n) )1/3
Loschmidt constant: n0 = 101325 / (kB × 273.15) = 2.687 × 1025 m-3
Example: copper, ρ = 8.96 g/cm³, M = 63.546 g/mol gives n = 8.96 / 63.546 × 6.022 × 1023 = 8.491 × 1022 cm-3

📖 How to Use This Calculator

Steps

1
Choose a mode. Use Count and volume for n = N/V, Mass density for atoms per cm³ from density and molar mass, or Ideal gas for n = P/(kT).
2
Enter your values. Type the amount and volume, or pick a material (or enter density, molar mass and atoms per formula unit), or give the pressure and temperature. Scientific notation such as 3e15 is accepted, and unit selectors only label the numbers.
3
Read the result. The number density appears in m-3 and cm-3 with the mean spacing and Wigner-Seitz radius, plus a table of materials or a chart for your mode.

💡 Example Calculations

Example 1 — One Mole in 22.414 Litres

1 mol of particles in 22.414 L (the ideal gas molar volume at 0 °C and 1 atm)

1
N = 1 × 6.02214076 × 1023 and V = 22.414 L = 0.022414 m³
2
n = N / V = 2.687 × 1025 m-3 = 2.687 × 1019 cm-3
3
Mean spacing n-1/3 = 3.339 nm and rs = 2.071 nm. This matches the Loschmidt constant.
Number density = 2.687 × 1025 m-3
Try this example →

Example 2 — A Dilute Plasma Chamber

3 × 1015 particles in 1 cm³

1
V = 1 cm³ = 10-6 m³, so n = 3 × 1015 / 10-6 = 3.000 × 1021 m-3
2
In cm-3 that is 3.000 × 1015, and the amount of substance is 4.982 × 10-9 mol
3
Mean spacing = 69.336 nm, far larger than the size of an atom, so the particles rarely touch
Number density = 3.000 × 1021 m-3 (spacing 69.336 nm)
Try this example →

Example 3 — Atoms in Copper

Copper: 8.96 g/cm³ and 63.546 g/mol, one atom per formula unit

1
Moles per cm³ = 8.96 / 63.546 = 0.14100 mol
2
n = 0.14100 × 6.02214076 × 1023 = 8.491 × 1022 cm-3 = 8.491 × 1028 m-3
3
Spacing = 2.275 Å, volume per atom 11.777 ų, molar volume 7.092 cm³/mol. The density used is a typical value.
Number density = 8.491 × 1022 atoms/cm³
Try this example →

Example 4 — Molecules and Atoms in Water

Water: 0.9982 g/cm³, 18.015 g/mol, 3 atoms per molecule

1
Molecules per cm³ = 0.9982 / 18.015 × 6.02214076 × 1023 = 3.337 × 1022 cm-3
2
Atoms per cm³ = 3 × 3.337 × 1022 = 1.001 × 1023 cm-3
3
Mean spacing between atoms is 2.154 Å (about 3.1 Å between molecules). The density is the value near 20 °C.
Atoms per cm³ = 1.001 × 1023, molecules = 3.337 × 1022
Try this example →

Example 5 — Air at 0 °C and 1 atm

Ideal gas at 101325 Pa and 273.15 K

1
T = 0 °C = 273.15 K and P = 1 atm = 101325 Pa
2
n = P / (kB T) = 101325 / (1.380649 × 10-23 × 273.15) = 2.687 × 1025 m-3
3
That is exactly one Loschmidt constant, 44.615 mol/m³, with a mean spacing of 3.339 nm
Number density = 2.687 × 1025 m-3
Try this example →

Example 6 — An Ultra-High Vacuum

Pressure 10-9 Torr at 300 K

1
P = 10-9 Torr × 133.322 Pa/Torr = 1.333 × 10-7 Pa
2
n = 1.333 × 10-7 / (1.380649 × 10-23 × 300) = 3.219 × 1013 m-3 = 3.219 × 107 cm-3
3
The mean spacing is 31.436 µm, about 10-12 of the atmospheric density
Number density = 3.219 × 1013 m-3
Try this example →

❓ Frequently Asked Questions

What is number density?+
Number density is the number of particles per unit volume, n = N / V. Its SI unit is per cubic metre (m^-3), although cm^-3 is common in physics and chemistry. It is different from mass density, which is mass per volume.
How do I calculate atoms per cm3 from density and molar mass?+
Use n = rho N_A / M, with rho in g/cm3, M in g/mol and N_A = 6.02214076e23 per mol. Copper at 8.96 g/cm3 and 63.546 g/mol gives 8.491e22 atoms per cm3. For compounds multiply by the atoms per formula unit.
What is the number density of an ideal gas?+
It is n = P / (k_B T), where k_B = 1.380649e-23 J/K. At 0 C and 101.325 kPa the value is 2.687e25 m^-3, called the Loschmidt constant. It is the same for every ideal gas at the same pressure and temperature.
How is number density related to mass density?+
Mass density equals number density times the mass of one particle, rho = n m. Equivalently n = rho N_A / M with molar mass M. For molecules with several atoms, multiply by the atoms per molecule to get the atom number density.
What is the mean spacing between particles?+
The mean spacing is n^(-1/3), the side of the cube of volume 1/n that each particle occupies on average. For 8.491e28 m^-3 in copper it is about 0.2275 nm, and for a gas at 0 C and 1 atm it is about 3.34 nm.
How is this different from unit cell density?+
Unit cell density gives the density of an ideal crystal from the lattice parameters and the atoms in the cell. Number density here is an average over a whole sample from its mass density and molar mass, with no crystal structure needed.
How is number density different from molar concentration?+
Molar concentration counts moles per volume, so number density equals molar concentration times Avogadro's number, n = c N_A. A solution of 1 mol/L has 6.022e23 per litre, or 6.022e26 per cubic metre.
How do I convert number density from m^-3 to cm^-3?+
Multiply by 1e-6, because a cubic metre holds 1e6 cubic centimetres. So 2.687e25 m^-3 is 2.687e19 cm^-3. The results panel shows both units for every mode.
Does number density depend on which gas it is?+
Not for an ideal gas. Because n = P / (k_B T), equal pressure and temperature give equal number density for any gas. This is Avogadro's law. The mass density differs, because heavier molecules weigh more.
What is the Wigner-Seitz radius?+
It is the radius of a sphere whose volume equals the volume per particle, r_s = (3 / (4 pi n))^(1/3). It is used for electron gases in metals, where the electron number density sets r_s. It is about 0.62 of the cube-edge spacing n^(-1/3).
Why does the ideal gas result fail at high pressure?+
The ideal gas law ignores molecular size and attractions. At high pressure or low temperature the real number density can differ noticeably, so use a real gas equation of state for those conditions. At ordinary pressures the error is small.

What is number density?

Number density is the number of particles per unit volume, n = N / V. Its SI unit is per cubic metre (m^-3), although cm^-3 is common in physics and chemistry. It is different from mass density, which is mass per volume.

How do I calculate atoms per cm3 from density and molar mass?

Use n = rho N_A / M, with rho in g/cm3, M in g/mol and N_A = 6.02214076e23 per mol. Copper at 8.96 g/cm3 and 63.546 g/mol gives 8.491e22 atoms per cm3.

What is the number density of an ideal gas?

It is n = P / (k_B T), where k_B = 1.380649e-23 J/K. At 0 C and 101.325 kPa the value is 2.687e25 m^-3, called the Loschmidt constant. It is the same for every ideal gas at the same pressure and temperature.

How is number density related to mass density?

Mass density equals number density times the mass of one particle, rho = n m. Equivalently n = rho N_A / M with molar mass M. For molecules with several atoms, multiply by the atoms per molecule to get the atom number density.

What is the mean spacing between particles?

The mean spacing is n^(-1/3), the side of the cube of volume 1/n that each particle occupies on average. For 8.491e28 m^-3 in copper it is about 0.2275 nm, and for a gas at 0 C and 1 atm it is about 3.34 nm.

How is this different from unit cell density?

Unit cell density gives the density of an ideal crystal from the lattice parameters and the atoms in the cell. Number density here is an average over a whole sample from its mass density and molar mass, with no crystal structure needed.

How is number density different from molar concentration?

Molar concentration counts moles per volume, so number density equals molar concentration times Avogadro's number, n = c N_A. A solution of 1 mol/L has 6.022e23 per litre, or 6.022e26 per cubic metre.

How do I convert number density from m^-3 to cm^-3?

Multiply by 1e-6, because a cubic metre holds 1e6 cubic centimetres. So 2.687e25 m^-3 is 2.687e19 cm^-3. The results panel shows both.