Saved

Press the star next to a tool's name to save it.

All my tools

Number Density Calculator

Use this number density calculator to find particles per cubic metre from a material's density and molar mass, with optional free electrons per atom, or from a count and a volume.

Restored your last values ·

g/mol

Either enter the mass density and the molar mass, with Z objects per atom if you want the charge-carrier density of a metal, or enter a number of objects and the volume that holds them.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you know, fill in the boxes and press Calculate.

See full result

A number density calculator finds how many atoms, molecules or particles there are in each cubic metre. Enter the mass density and the molar mass of a material, and optionally the number of free electrons per atom for the charge-carrier density of a metal. Or enter a count of objects and a volume.

How to use the number density calculator

  1. Choose what you know: density and molar mass, or a count and a volume.
  2. Enter the density (pick g/cm³ or kg/m³) and the molar mass in g/mol, or the count and volume.
  3. Add Z, the free electrons per atom, for a metal; leave it blank for atoms or molecules.
  4. Press Calculate.

What number density is

Wikipedia defines volume number density as the number of specified objects per unit volume, written n = N ÷ V, with N the total number of objects in the volume V [1]. In SI units it is measured in m⁻³, although cm⁻³ is often used [1]. The calculator gives both units, and in count mode it applies this simple definition directly, converting your volume from litres or cubic centimetres.

The formula from density and molar mass

For atoms or molecules with a known molar mass, Wikipedia gives the number density in terms of the mass density as n = N_A ρ_m ÷ M, where N_A is the Avogadro constant, ρ_m the mass density and M the molar mass [1]. Multiplying by Z, the number of free electrons per atom, gives the charge-carrier density n = N_A Z ρ_m ÷ M. With Z = 1 it counts atoms or molecules. The Z factor is our own step, based on the one free electron per copper atom that Wikipedia uses in its drift-velocity example [2].

Charge-carrier density in a metal

In a metal, the factor Z is the number of free electrons per atom, and the result is the charge-carrier number density in carriers per cubic metre. Wikipedia's drift-velocity article works through copper, which has one free electron per atom, a density of 8.94 g/cm³ and an atomic weight of 63.546 g/mol, and finds about 8.5 × 10²⁸ electrons per cubic metre [2]. Our worked example uses a slightly different density, 8.96 g/cm³.

Worked example for copper

With ρ = 8.96 g/cm³ (8,960 kg/m³), M = 63.546 g/mol (0.063546 kg/mol) and Z = 1, the number density is 6.0221 × 10²³ × 8,960 ÷ 0.063546 = 8.4912 × 10²⁸ per m³, or 8.4912 × 10²² per cm³. That agrees with the figure of about 8.5 × 10²⁸ in the Wikipedia article [2]. The calculator also gives the mass of one copper atom, M ÷ N_A, which is 1.0553 × 10⁻²² g.

Atoms and molecules

For the number of atoms or molecules rather than electrons, leave Z blank, which is the same as Z = 1. Water, with a density of 0.9982 g/cm³ and a molar mass of 18.01524 g/mol, gives 3.3368 × 10²⁸ molecules per m³. We did not check this against any table, since the table of values on Wikipedia carries no sources.

The Avogadro constant

The calculator uses N_A = 6.0221 × 10²³ per mole, the 2022 CODATA value of 6.02214076 × 10²³ per mole rounded to five digits [3]. The full value changes only the sixth digit, which is below the four digits the calculator displays for most results. The molar mass is entered in grams per mole, the usual way it is tabulated, and converted internally to kilograms per mole because the density formula is in SI units.

Mean spacing between objects

The calculator also shows the volume each object has to itself, 1 ÷ n, and the cube root of that volume as a typical distance between neighbours, in nanometres. For copper this is about 0.2275 nm. This spacing is our own working, a rough guide for a uniform material rather than a statement from the sources, but it helps you picture how closely packed the objects are.

Gases and reference values

Count mode is the plain definition n = N ÷ V [1]: five objects in 5 cm³ is one per cm³, which is 10⁶ per m³. For a gas you could find N and V from the ideal gas law, which this calculator does not do, so enter the count and volume yourself. Very large counts are fine to type as whole numbers.

Limits of the calculation

The formula assumes a uniform material in which every atom or molecule contributes the same number of objects. It does not model alloys, mixtures, porous solids or plasmas with several species, and the charge-carrier use applies only to conductors in which the number of free electrons per atom is known. For mixtures, work out each component separately and add the results.

When to use the calculator

Use it in physics and materials courses for free-electron models, for the Fermi level or the drift velocity in a wire, and for any problem that asks how many particles fill a given volume. Pair it with the density and molar mass calculators to find the inputs, and check the units: the most common slip is mixing g/cm³ with kg/m³.

Checking your answer

A quick sanity check helps. Solids and liquids hold roughly 10²⁸ to 10²⁹ objects per cubic metre, and gases at ordinary pressure hold about 10²⁵. If your result is far outside these ranges, check the units first, because a density in kg/m³ entered as g/cm³ is off by a factor of 1,000.

Common mistakes

  • Mixing g/cm³ and kg/m³. Choose the unit that matches your density, as 1 g/cm³ is 1,000 kg/m³.
  • Entering molar mass in kg/mol. Use g/mol. The calculator converts it.
  • Setting Z for atoms. Leave it blank unless you want free electrons per atom.
  • Using the mass of a single atom as the molar mass. The molar mass is per mole, not per atom.

What next

Use this often? Add Number Densi to your Home screen.

Frequently asked questions

What is a number density calculator?

A tool that finds the number of atoms, molecules or other objects per unit volume, from the mass density and molar mass or from a count and a volume.

What is the number density formula?

n = N_A Z ρ ÷ M for a material, or n = N ÷ V for a count in a volume.

How do I find the charge-carrier density of copper?

Use Z = 1, a density of 8.96 g/cm³ and a molar mass of 63.546 g/mol, which gives about 8.49 × 10²⁸ per m³.

What unit is number density measured in?

In SI units, per cubic metre (m⁻³), although per cubic centimetre is often used.

What does Z mean?

The number of free electrons per atom, used for the charge-carrier density of a metal. Leave it blank to count atoms or molecules.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools