Convert volume to moles for a gas at STP, room or custom conditions using PV = nRT, or for a solution from its molarity, and convert moles back to volume.

Uses PV = nZRT at the chosen conditions; Z = 1 is the ideal-gas estimate.

Absolute pressure, not gauge pressure.

Compressibility and optional mass
Default 1. Enter a known Z for the gas at the selected state; this calculator does not determine it.

Blank omits mass; enter the molar mass of the species whose moles are being calculated.

Calculator Functions

FunctionWhat it doesWhat it requires
Gas volume to molesConverts a gas volume to moles at the chosen pressure and temperatureRequires the gas volume and the gas conditions
Gas moles to volumeFinds the volume a number of moles of gas fills at the chosen pressure and temperatureRequires the amount of gas and the gas conditions
Solution volume to molesConverts a solution volume to moles of dissolved soluteRequires the solution volume and the solute concentration
Solution moles to volumeFinds the solution volume that holds a number of moles of soluteRequires the amount of solute and the solute concentration

Gas conditions are a choice of 0 °C and 1 atm (STP), 0 °C and 1 bar, 25 °C and 1 atm, or a custom absolute pressure and temperature. Volume is accepted in L, mL, m³ or ft³, amount in mol, mmol or kmol, and concentration in mol/L, mmol/L or µmol/L. The gas functions have an optional compressibility factor Z, prefilled at 1. An optional molar mass in g/mol adds the mass of the substance to any result, and every result also shows the number of particles.

Volume to Moles Formulas

n = P × V ÷ (Z × R × T) [1]
nAmount of gas (mol)
PAbsolute pressure (Pa)
VGas volume (m³). 1 L = 0.001 m³
ZCompressibility factor, 1 for an ideal gas
RMolar gas constant, 8.314462618 J/(mol·K) [2]
TAbsolute temperature (K). K = °C + 273.15

Gas volume to moles

With Z = 1 this is the ideal gas law, P × V = n × R × T, which needs an absolute temperature in kelvin [1]. At a fixed pressure and temperature every ideal gas has the same molar volume, Vm = R × T ÷ P, so the conversion reduces to n = V ÷ Vm. The three preset conditions give these molar volumes:

Gas conditionsMolar volumeMoles in 1 L
0 °C and 1 atm (STP)22.414 L/mol [3]0.04461 mol
0 °C and 1 bar22.711 L/mol [4]0.04403 mol
25 °C and 1 atm24.465 L/mol0.04087 mol

50 L of gas at 0 °C and 1 atm is 50 ÷ 22.414 = 2.2308 mol. The same 50 L at 25 °C and 1 atm is only 2.0437 mol, because warmer gas is less dense. The 25 °C value comes from the same formula: 8.314462618 × 298.15 ÷ 101,325 = 0.024465 m³/mol.

Gas moles to volume

V = n × Z × R × T ÷ P

This is the main formula solved for volume. For an ideal gas it is V = n × Vm, so 2 mol at 0 °C and 1 atm fills 2 × 22.414 = 44.83 L.

Solution volume to moles

n = c × V [5]

c is the concentration of the solute in mol/L, often called molarity, and V is the total volume of the solution in liters. Concentration is defined as the amount of a substance divided by the volume of the mixture [5], so multiplying it by the volume gives the amount back. 250 mL of a 0.5 mol/L solution holds 0.5 × 0.25 = 0.125 mol of solute.

Solution moles to volume

V = n ÷ c

Dividing the amount of solute by its concentration gives the solution volume in liters. 0.2 mol from a 0.5 mol/L solution takes 0.2 ÷ 0.5 = 0.4 L.

Particles and mass

N = n × NA [6]

NA is the Avogadro constant, 6.02214076 × 10²³ particles per mole [6]. When a molar mass M is entered, mass = n × M in grams.

How to Convert Volume to Moles

Volume alone does not fix the number of moles. For a gas, the pressure and temperature are also needed: divide the volume by the molar volume at those conditions, which is 22.414 L/mol at 0 °C and 1 atm. For a solution, multiply the volume in liters by the concentration in mol/L. A pure liquid or solid needs a third route that this calculator does not cover: multiply the volume by the density to get mass, then divide by the molar mass.

Limits of This Estimate

  • With Z = 1 the gas is treated as ideal, and the gas law holds only for a gas that behaves that way [1]. Real gases drift from it most at high pressure and near the point where they condense. The calculator does not work out Z, so a known value for the gas at its pressure and temperature has to be entered.
  • Pressure must be absolute, not gauge. A gauge reading needs atmospheric pressure added first.
  • 22.414 L/mol applies only to an ideal gas at 0 °C and 1 atm. It is not a conversion factor for liquids, solutions or gases at other conditions.
  • The solution functions count the solute as it is named in the concentration. Dissociation into ions and reactions in the solution are not modeled.

Sources

  1. NASA Glenn Research Center, Equation of State: the ideal gas law, its need for absolute temperature and its limit to ideal gases
  2. NIST, CODATA Value: molar gas constant: R = 8.314462618 J/(mol·K)
  3. NIST, CODATA Value: molar volume of ideal gas (273.15 K, 101.325 kPa): 22.414 L/mol at 0 °C and 1 atm
  4. NIST, CODATA Value: molar volume of ideal gas (273.15 K, 100 kPa): 22.711 L/mol at 0 °C and 1 bar
  5. NIST Special Publication 811, Guide for the Use of the SI, Section 8.6.5: concentration as amount of substance divided by the volume of the mixture
  6. NIST, CODATA Value: Avogadro constant: 6.02214076 × 10²³ per mole