Moles Calculator – Amount of Substance from Mass or PV/RT
Use this free Moles Calculator to find the amount of substance n in moles, two ways: from the mass and molar mass (n = m/M), or for a gas from its pressure, volume and temperature (n = PV/RT). Choose a mode, enter your values, and get n — plus the number of particles.
Formula
From mass: n = m/M — where m is the mass (g) and M is the molar mass (g/mol). From gas conditions: n = PV/(RT) — the ideal gas law rearranged, with P in pascals, V in m³, T in kelvin and R = 8.314 J/(mol·K). One mole of any substance contains 6.022 × 10²³ particles (Avogadro's constant), so the particle count is N = n × 6.022 × 10²³.
How to use
- Pick a mode: mass mode for solids and liquids you can weigh; gas mode when you know P, V and T.
- Mass mode: enter the mass in grams and the molar mass (add up the atomic masses from the periodic table — water H₂O = 2×1 + 16 = 18 g/mol).
- Gas mode: enter pressure in kPa, volume in litres and temperature in kelvin (K = °C + 273.15).
- Click "Calculate Moles" to get n and the number of molecules/particles.
Worked example
Mass mode: how many moles in 36 g of water (M = 18 g/mol)?
n = m/M = 36 / 18 = 2 mol — that is 2 × 6.022 × 10²³ ≈ 1.20 × 10²⁴ molecules.
Gas mode check: at P = 101.325 kPa, V = 22.414 L, T = 273.15 K: n = PV/(RT) = (101,325 × 0.022414)/(8.314 × 273.15) = 1 mol — the famous molar volume of an ideal gas at STP.
FAQ
What exactly is a mole?
It is just a counting unit, like a dozen — but for particles. One mole = 6.022 × 10²³ particles. Chemists use it because atoms are far too small and numerous to count one by one.
Why does one mole of every ideal gas take up 22.4 L at STP?
From PV = nRT, the volume depends only on n, P and T — not on which gas it is. At 273.15 K and 101.325 kPa, V = nRT/P works out to 22.414 L for n = 1, whatever the gas.
How do I find the molar mass of a compound?
Add the atomic masses of all the atoms in one formula unit: for CO₂, 12 + 2×16 = 44 g/mol; for glucose C₆H₁₂O₆, 6×12 + 12×1 + 6×16 = 180 g/mol.