Use this calculator to find number density, meaning how many particles are in a given space, from moles, particles, mass, or ideal gas inputs.
Advanced options
Output preferences
Number display
How to use our Number Density Calculator
- Choose a value in Calculation mode based on what you already know.
- Enter the main amount for that mode: Amount of substance (mol), Number of particles, Mass (g) with Molar mass (g/mol), or Pressure (selected unit) with Temperature (selected unit).
- Enter Volume (selected unit) and match it with the correct Volume unit.
- If you use ideal gas mode, choose the matching Pressure unit and Temperature unit. Use absolute pressure, and make sure temperature is above absolute zero after conversion.
- Open Advanced options if you want to change Primary output unit, Display format, or Significant figures.
- Click Calculate to see number density in 1/m^3, 1/cm^3, and 1/L, plus molar concentration and total particles.
- Sanity-check the result: if your entered volume gets smaller while the amount stays the same, Number density should get larger. Also confirm that Total particles in entered volume matches your starting amount after any mole or mass conversion.
Definitions
Number density: How many particles are in a given space. In this calculator, it is shown as particles per cubic meter, cubic centimeter, or liter.
Calculation mode: The method you choose based on what you know already, such as moles, particle count, mass, or ideal gas inputs.
Amount of substance (mol): The number of moles in the sample. One mole contains the Avogadro constant number of particles.
Number of particles: The actual count of atoms, molecules, ions, or other particles.
Molar mass (g/mol): The mass of one mole of a substance.
Molar concentration: Concentration written in moles per volume instead of particles per volume.
Absolute pressure: Pressure measured relative to a perfect vacuum. Ideal gas mode needs this, not gauge pressure.
Absolute zero: The lowest possible temperature, equal to 0 K or -273.15 C. Ideal gas calculations require temperature above this point.
Common mistakes and quick fixes
Mistake: Entering a value in Volume (selected unit) but forgetting to change Volume unit from L to mL or cm^3.
Fix: Make sure Volume unit exactly matches the unit you typed before you calculate.
Mistake: Typing moles into Number of particles or particle count into Amount of substance (mol) .
Fix: Use Calculation mode to pick the right path first, then fill only the matching amount field for that mode.
Mistake: Using gauge pressure in Pressure (selected unit) during ideal gas mode.
Fix: Enter absolute pressure in Pressure (selected unit) and confirm the matching Pressure unit .
Mistake: Entering a Celsius value in Temperature (selected unit) while Temperature unit is still set to K.
Fix: Change Temperature unit to C or convert the temperature to kelvin before calculating.
Mistake: Using 0 or a negative value for Molar mass (g/mol) , Mass (g) , or Amount of substance (mol) .
Fix: Enter values greater than 0 for all required fields in the active mode.
Mistake: Thinking Molar concentration and Number density should have the same number because both describe concentration.
Fix: Remember that Number density counts particles, while Molar concentration counts moles, so they differ by the Avogadro constant.
Limitations & Key Assumptions / Boundary Conditions
- The ideal gas mode uses the ideal-gas model, so real gases can differ at very high pressure or very low temperature [1][2].
- Pressure (selected unit) in ideal gas mode must be absolute pressure, not gauge pressure.
- Temperature (selected unit) must convert to a value above 0 K. Values at or below absolute zero are invalid.
- Volume (selected unit) must be greater than 0 in every mode.
- Mass (g), Molar mass (g/mol), Amount of substance (mol), and Number of particles must be greater than 0 when used.
- Results depend on the units you choose. A wrong Volume unit, Pressure unit, or Temperature unit can change the answer by a large factor.
- If you force Display format to standard decimal, very large or very small results may still be shown in scientific notation for readability.
Methodology
How the calculator works
The calculator first converts your inputs into standard SI units when needed. Volume is converted to cubic meters, pressure to pascals, and temperature to kelvin. Then it finds number density and converts that result into the extra output units.
Core formulas
n = N / V
Here, n is number density, N is total particles, and V is volume in m^3.
n = (nu * N_A) / V
For moles-and-volume mode, nu is amount of substance in mol and N_A is the Avogadro constant.
n = (m / M) * N_A / V
For mass-based mode, divide Mass (g) by Molar mass (g/mol) to get moles first.
n = P / (k_B * T)
For ideal gas mode, P is absolute pressure in Pa, k_B is the Boltzmann constant, and T is absolute temperature in K [1].
c = n / N_A
This gives molar concentration c in mol/m^3.
n_(1/cm^3) = n_(1/m^3) / 10^6
n_(1/L) = n_(1/m^3) / 1000
Unit conversions used
The calculator uses 1 L = 1e-3 m^3, 1 mL = 1e-6 m^3, and 1 cm^3 = 1e-6 m^3. For pressure, it uses 1 atm = 101325 Pa, 1 bar = 100000 Pa, 1 kPa = 1000 Pa, and 1 torr = 101325/760 Pa.
Worked mini-example
Suppose you choose Moles and volume, enter 1 mol for Amount of substance (mol), and enter 1 L for Volume (selected unit). First convert 1 L to 0.001 m^3. Then multiply 1 mol by the Avogadro constant to get 6.02214076e23 particles. Finally divide by 0.001 m^3.
n = (1 * 6.02214076e23) / 0.001 = 6.02214076e26 1/m^3
That same result is 6.02214076e23 particles per liter and 6.02214076e20 particles per cm^3. The molar concentration is 1000 mol/m^3, which is 1 mol/L.
Interpretation tips
A higher Number density means particles are packed more tightly into space. If the amount stays the same and the volume shrinks, number density should rise. If the volume grows, number density should fall.
Assumptions used
For ideal gas mode, the gas is treated as ideal, which is usually a good approximation for many gases at modest pressure and temperature but can differ at extreme conditions [1][2]. In all modes, hidden inputs are ignored, and invalid values such as zero volume, non-numeric text, NaN, or Infinity are rejected as errors.