Number Density Calculator - Particles per m^3, cm^3, and L^-1

Use this number density calculator to solve n equals rho times N_A divided by M for particles per m^3, cm^3, and L^-1 from mass density and molar mass.

Number Density Calculator

Mass per unit volume of the substance. The default 1.225 kg/m^3 is the ISA sea-level value for dry air.

Mass of one mole of the substance. The default 28.9652 g/mol is the dry-air molar mass from ICAO Doc 7488.

Results

Number density (m^-3)
0m^-3
Number density (cm^-3) 0cm^-3
Number density (L^-1) 0L^-1
Per-particle mass (kg) 0kg
Per-particle mass (u) 0u

What Is Number Density Calculator?

A number density calculator solves the physics definition of number density, written n equals N divided by V, for particles per unit volume of a substance. You type the mass density and the molar mass, and the tool returns the number of particles per cubic meter, per cubic centimeter, and per liter, plus the average mass per particle. For dry air at 1.225 kg/m^3 and 28.9652 g/mol the answer is about 2.547 x 10^25 m^-3, the textbook value most physics and chemistry courses introduce the topic with.

  • Physics and chemistry homework: Check number density of air, water, helium, gold, and iron without retyping n = rho * N_A / M.
  • Plasma physics and kinetic theory: Convert a quoted mass density into particles per m^3 or cm^3 for mean free path, collision rate, or Debye length inputs.
  • Materials science prep: Estimate atomic number density of a metal or alloy from its measured density and molar mass before a diffraction calculation.
  • Astrophysics sanity checks: Estimate stellar or planetary number density from published mass density and mean molecular weight.

Number density is one of the four most common intensive quantities in kinetic theory, alongside mass density, moles per volume, and pressure. The tool here works in the most common direction: from mass density and molar mass to particles per unit volume.

The inverse direction, given a particle count N and a volume V, is just n equals N divided by V on the same identity.

When the workflow already starts from moles or particle count instead of mass density, the Avogadro calculator handles the mole to particle and particle to mole conversions on the same Avogadro constant.

How Number Density Calculator Works

The calculator reads mass density in kg per cubic meter and molar mass in g per mol, converts the molar mass to kg per mol, and applies the Avogadro-constant definition of number density. No iterative solver or lookup table is required.

n = rho * N_A / M, with N_A = 6.02214076 x 10^23 mol^-1
  • rho: Mass density of the substance in kilograms per cubic meter (kg/m^3).
  • M: Molar mass in kilograms per mole (kg/mol); the calculator converts your g/mol entry by dividing by 1000.
  • N_A: Avogadro constant, fixed at exactly 6.02214076 x 10^23 mol^-1 under the 2019 SI redefinition.
  • n: Number density returned in particles per cubic meter (m^-3).
  • m_particle: Average mass of one particle, computed as M (kg/mol) divided by N_A (kg).

The same expression works for solids, liquids, and gases as long as the input mass density is the actual bulk density of the sample. For real gases, the mass density usually comes from a pressure-and-temperature calculation; the calculator accepts whatever value you supply.

If you ever need to solve for pressure, volume, moles, or temperature instead, the same Avogadro constant and ideal gas law structure appear in the dedicated gas-law tools.

Dry air at ISA sea level

rho = 1.225 kg/m^3, M = 28.9652 g/mol

1. M = 28.9652 / 1000 = 0.0289652 kg/mol. 2. n = 1.225 * 6.02214076e23 / 0.0289652.

n = 2.547 x 10^25 m^-3 (2.547 x 10^19 cm^-3, 2.547 x 10^22 L^-1).

Standard atmospheric reference; matches the kinetic-theory value used in most introductory physics texts.

Liquid water at 4 degrees C

rho = 1000 kg/m^3, M = 18.01528 g/mol

1. M = 0.01801528 kg/mol. 2. n = 1000 * 6.02214076e23 / 0.01801528.

n = 3.343 x 10^28 m^-3 (3.343 x 10^22 cm^-3, 3.343 x 10^25 L^-1).

Higher mass density and lower molar mass push liquid number density about 1000 times above the gas value.

According to Wikipedia Number density, the number density of a substance is the number of particles per unit volume, denoted n = N/V and commonly expressed in particles per cubic meter or cubic centimeter

If you only have a temperature and a pressure reading instead of a quoted mass density, the air density calculator returns rho in kg/m^3 from the ideal gas law so you can plug it back into this tool.

Key Concepts Explained

Four ideas are enough to read every number the number density calculator returns and to know when to trust it.

Number density n = N / V

Number density is the count of particles N in a chosen volume V, with SI units of m^-3 and chemistry units of cm^-3 or L^-1. It is the particle-count counterpart of mass density rho = m / V.

Avogadro constant N_A = 6.02214076 x 10^23 mol^-1

N_A converts between moles and particle count. The 2019 SI redefinition fixed N_A exactly, so the calculator does not expose it as an input.

Molar mass M (g/mol) versus particle mass m (kg)

Molar mass is the mass of one mole in grams per mole; per-particle mass in kilograms is the same number scaled by 1 / (N_A * 1000). The calculator returns both.

Relationship to the ideal gas law n = P / (k_B * T)

For an ideal gas the same n appears in n = P / (k_B * T). Combining this with the Avogadro form gives the standard rho = P * M / (R * T) identity.

These four definitions cover every number in the result panel. They also explain why the calculator works for solids, liquids, gases, and plasmas alike: only the mass density and molar mass change.

If the gas-phase form is what you need, the result panel here can be cross-checked against an ideal-gas calculation that uses P and T instead of rho.

The same n that this tool returns is the same n in PV equals nRT, and the ideal gas calculator solves the gas law for pressure, volume, moles, or temperature when the gas phase is what you actually need.

How to Use This Calculator

Five short steps take you from a quoted mass density to a defensible number density in three units at once.

  1. 1 Enter the mass density: Type the bulk mass density in kg/m^3. Default 1.225 kg/m^3 is the ISA sea-level value for dry air.
  2. 2 Enter the molar mass: Type the molar mass in g/mol. Default 28.9652 is dry air; switch to 18.01528 for water, 4.002602 for helium, or 196.97 for gold.
  3. 3 Read the SI number density: The primary result is particles per cubic meter. The value updates live as you change either input.
  4. 4 Compare cm^-3 and L^-1: Use cm^-3 for chemistry and plasma work, L^-1 for solution chemistry. Both come from the same n = rho * N_A / M calculation.
  5. 5 Check the per-particle mass: The per-particle mass row shows average mass per particle in kg and in unified atomic mass units (u). The u value equals the molar mass in g/mol.

For liquid water at 4 degrees C (rho = 1000 kg/m^3, M = 18.01528 g/mol), the calculator returns n = 3.343 x 10^28 m^-3, 3.343 x 10^22 cm^-3, and 3.343 x 10^25 L^-1. The per-particle mass row reports about 2.992 x 10^-26 kg and 18.0153 u, matching the molar mass input.

When the next kinetic-theory quantity is what you need, the mean free path calculator takes the number density from this tool as its direct n input and solves lambda equals 1 over (sqrt 2 pi d squared n) in m, um, and nm.

Benefits of Using This Calculator

A dedicated number density calculator removes the unit-mixing errors that show up when the formula is solved by hand.

  • Saves the Avogadro constant lookup: N_A is locked at the SI-exact value 6.02214076 x 10^23, so you do not need to remember whether the textbook used 6.022 x 10^23 or 6.023 x 10^23.
  • Reports three useful units at once: Physics uses m^-3, plasma and chemistry use cm^-3, and solution chemistry uses L^-1. The result panel shows all three.
  • Returns per-particle mass too: The kg and u mass rows show the average mass of one particle, useful for collision cross sections and kinetic-theory homework.
  • Handles zero density cleanly: If mass density is zero, the calculator returns zero number density without a divide-by-zero error. Negative or zero molar mass is rejected.
  • Works for gases, liquids, and solids: The same formula n = rho * N_A / M applies to all three phases. Only the input mass density changes between phases.

The calculator is best for one-shot conversions where a quoted mass density and a known molar mass produce a number density you can drop straight into a kinetic-theory, scattering, or mean-free-path calculation.

For per-particle mass cross-checks in u, the atomic mass calculator gives the proton and neutron rest masses and isotope mass numbers that the M entry is built from.

Factors That Affect Your Results

Two inputs control the answer, and three limitations tell you when the model is only an approximation.

Mass density

Number density is linear in the mass density. Doubling rho doubles n in every reported unit, all else equal.

Molar mass

Number density falls as 1/M. A heavier molecule with the same mass density packs fewer particles per unit volume than a lighter one.

Phase and effective molar mass

For air and other mixtures, use the mean molar mass (28.9652 g/mol for dry air). For ionic solutions, the molar mass of the dissolved species controls the per-particle mass, not the solvent.

Temperature for gases

Gas mass density depends on temperature through the ideal gas law, so a hot gas at the same pressure has a lower rho and a lower number density than the same gas cooled down.

  • The formula assumes the bulk mass density is uniform across the volume. Strongly non-uniform samples (a two-phase mixture, a stellar density gradient) need a local mass density.
  • For dense plasmas and white-dwarf matter, the molar mass picture is only a guide. The formula stays correct in that n still equals N / V, but the input rho must already account for pressure ionization and degeneracy.
  • Per-particle mass in kilograms is computed as M / N_A, which assumes a single particle species. For a mixture, the reported value is the number-density-weighted average mass.

These factors and limits cover everything that can move the answer by more than a rounding step. They also explain when the calculator agrees with a laboratory measurement and when it should be treated as a model value.

The Avogadro constant used in the formula is exact under the 2019 SI redefinition, so precision is limited by the precision of the mass density and molar mass entries.

According to NIST CODATA 2018 Fundamental Constants, the Avogadro constant N_A is fixed at exactly 6.02214076 x 10^23 mol^-1 under the 2019 SI redefinition, while the unified atomic mass unit is defined as one twelfth of a mole of carbon-12 equivalents and equals 1.66053906660 x 10^-27 kg to the precision listed in CODATA 2018

If the substance has an unusual phase or a non-tabulated composition, the general density calculator covers the kg/m^3 to g/cm^3 conversion step that the mass density entry assumes you have already done.

number density calculator interface showing mass density and molar mass inputs with particle-per-m^3, cm^3, and L^-1 outputs
number density calculator interface showing mass density and molar mass inputs with particle-per-m^3, cm^3, and L^-1 outputs

Frequently Asked Questions

Q: What is number density?

A: Number density is the number of particles per unit volume of a substance, written n equals N divided by V. The SI unit is particles per cubic meter, while chemistry often uses particles per cubic centimeter or particles per liter.

Q: How do you calculate number density from mass density and molar mass?

A: Convert the molar mass from g/mol to kg/mol, then multiply the mass density in kg/m^3 by Avogadro's constant 6.02214076 x 10^23 and divide by the molar mass.

Q: What units are used for number density?

A: Physics reports number density in m^-3, plasma physics and chemistry use cm^-3, and solution chemistry uses L^-1. The calculator returns all three at once.

Q: What is the number density of air at sea level?

A: Using rho = 1.225 kg/m^3 and M = 28.9652 g/mol, dry air at the ISA sea-level reference has a number density of about 2.547 x 10^25 particles per cubic meter.

Q: Is number density the same as molar concentration?

A: Not quite. Molar concentration is moles per liter, while number density is particles per liter. The two are linked by Avogadro's constant: n (L^-1) equals c (mol/L) times 6.02214076 x 10^23.

Q: How is number density related to the ideal gas law?

A: For an ideal gas, number density also equals P divided by k_B times T. Combined with the Avogadro form n equals rho * N_A / M, this reproduces the standard rho = P * M / (R * T) gas-law identity.