Convert grams to moles and particles for any chemical formula, and find the limiting reagent, theoretical yield and leftover excess of a balanced reaction.
Significant figures: 6; Nearest, ties away from zero
Mass
36.03g
Particles
1.20443 × 10²⁴
Molar mass used
18.015g/mol
36.03 g of H₂O is 2 mol, or 1.204 × 10²⁴ particles.
Mass, amount and particles of H₂O
How it's calculated S
Amount in moles
n=Mm=18.01536.03=2mol
Mass
m=nM=(2)(18.015)=36.03g
Particles
N=nNA=(2)(6.02214076×1023)=1.20443×1024
N_A is exact in the SI since 2019.
About the grams to moles and stoichiometry calculator
The amount of substance links mass to particle count: n = m/M, where M is the molar mass worked out from the formula, and N = n × N_A, where the Avogadro constant N_A is 6.022 140 76 × 10²³ per mole. In limiting-reagent mode, each reactant's moles are divided by its coefficient in the balanced equation; the smallest quotient is how far the reaction can run, and it sets the theoretical yield of product.
Typical uses are weighing out reagents and predicting product mass before an experiment. The default, 36.03 g of water, is 2 mol, or 1.204 × 10²⁴ molecules. For 2 H₂ + O₂ → 2 H₂O with 10 g of hydrogen and 64 g of oxygen, oxygen runs out first and the yield is 72.06 g of water.
The yield assumes the equation is balanced and the reaction goes to completion, so measured yields come out lower.
How to convert grams to moles
Divide the mass by the molar mass: n = m/M. Water's molar mass is 18.015 g/mol, so 36.03 g ÷ 18.015 g/mol = 2 mol of water. The rule works for any substance with a known formula; multiplying by the Avogadro constant then gives 1.204428152 × 10²⁴ molecules.
How to find the molar mass from a formula
Add the atomic weight of every atom in the formula. Water, H₂O, has two hydrogens and one oxygen: 2 × 1.0080 + 15.999 = 18.015 g/mol. Carbon dioxide, CO₂, is 12.011 + 2 × 15.999 = 44.009 g/mol.
These are the IUPAC 2021 standard atomic weights. A textbook that rounds water to 18 g/mol turns 36.03 g into 2.002 mol instead of 2.000 mol, so expect differences around the fourth significant figure.
Capital letters carry meaning. Co is cobalt, 58.933 g/mol, while CO is carbon monoxide, 28.010 g/mol. For an element-by-element breakdown of a formula, use the molar mass calculator.
Moles to grams and to particles
Rearrange the same relationship: m = n × M gives mass and N = n × N_A gives the particle count. For example, 0.25 mol of sodium chloride at 58.44 g/mol weighs 0.25 × 58.44 = 14.61 g.
To go from a particle count to mass, divide by N_A first. 3.011 × 10²³ molecules of CO₂ is 0.499988 mol, and 0.499988 × 44.009 = 22.004 g.
The Avogadro constant, 6.02214076 × 10²³ mol⁻¹, has been exact since the 2019 SI revision fixed it to define the mole (NIST CODATA).
A particle is whatever the formula describes: atoms for C, molecules for H₂O and formula units for an ionic solid such as NaCl.
How to find the limiting reagent
Take 2 H₂ + O₂ → 2 H₂O with 10 g of hydrogen and 64 g of oxygen:
Start from a balanced equation. The coefficients, 2, 1 and 2 here, are the mole ratio.
Convert each reactant to moles: 10 ÷ 2.016 = 4.960 mol of H₂, and 64 ÷ 31.998 = 2.000125 mol of O₂.
Divide each amount by its coefficient: 4.960 ÷ 2 = 2.480 for hydrogen, 2.000125 ÷ 1 = 2.000125 for oxygen.
The smaller quotient marks the limiting reagent. Oxygen runs out first, and 2.000125 mol is the extent of reaction.
Hydrogen is in excess even though 10 g is far less than 64 g, so comparing masses picks the wrong reactant.
Comparing moles without the coefficients can fail as well. In N₂ + 3 H₂ → 2 NH₃ with 28 g of N₂ (0.9995 mol) and 6 g of H₂ (2.976 mol), hydrogen limits, because 2.976 ÷ 3 = 0.992 is below 0.9995.
Theoretical yield and leftover excess
Multiply the extent by the product's coefficient for moles of product, then by its molar mass: 2 × 2.000125 × 18.015 = 72.0645 g of water. This is the theoretical yield, the most the limiting reagent can make.
The reaction consumes 2 × 2.000125 = 4.00025 mol of hydrogen, or 8.0645 g, so 1.9355 g of H₂ is left over. The water outweighs either reactant on its own because it contains atoms from both.
Percent yield compares what you actually collect with the theoretical yield. Collecting 60.0 g of water here gives 60.0 ÷ 72.0645 × 100 = 83.3%.
Transfer losses, side reactions and incomplete reaction keep real yields below 100%. A result above 100% usually points to an impure or still-wet product.
Water conversion is 36.03 g of H₂O. Typed molar mass is 0.25 mol at 58.44 g/mol. Water reaction is the 10 g H₂ and 64 g O₂ example above, and exact ratio uses 4.032 g of H₂ with 31.998 g of O₂, which react completely with nothing left over.
Scenario
Selected result
Water conversion
2 mol
Typed molar mass
14.61 g
Water reaction
72.0645 g product
Exact ratio
36.03 g product
Common mistakes
Changing subscripts to balance an equation. Two water molecules are 2 H₂O, not H₄O₂. Balance with coefficients in front of the formula.
Writing O for oxygen gas. Hydrogen, nitrogen and oxygen gases are diatomic, so use H₂, N₂ and O₂ (31.998 g/mol, not 15.999).
Mixing mass units. Convert milligrams or kilograms to grams before dividing by g/mol. 36,030 mg of water is still 2 mol.
Working from an unbalanced equation. The coefficients set the mole ratio, so an unbalanced equation gives the wrong limiting reagent and yield.
Rounding atomic weights early. Keep full molar masses until the final answer, then round once.
Formula and unit conventions
Type formulas as plain text, such as H2O, Ca(OH)2 or the hydrate CuSO4·5H2O. Element symbols are case-sensitive.
Coefficients are whole numbers from the balanced equation, entered apart from the formula.
The amount unit, such as mmol, applies both to an amount you enter and to the amount reported; mass results are in grams.
Particle counts accept scientific notation such as 6.02214076e23.
A typed molar mass in g/mol replaces the formula when a problem or label gives you the value.
Divide the mass in grams by the molar mass in g/mol: n = m/M. Water has a molar mass of 18.015 g/mol, so 36.03 g of water is 36.03 ÷ 18.015 = 2 mol. To go back, multiply moles by the molar mass. The molar mass is the sum of the atomic weights in the formula, which the calculator adds up from IUPAC 2021 values.
What is Avogadro's number?
It is the number of particles in one mole: exactly 6.022 140 76 × 10²³ per mole since the 2019 revision of the SI, which defines the mole by fixing this constant. One mole of carbon therefore contains 6.022 140 76 × 10²³ atoms and weighs 12.011 g. Multiply an amount in moles by this number to get molecules, atoms or formula units.
How do you find the limiting reagent?
Convert each reactant's mass to moles, then divide by its coefficient in the balanced equation; the reactant with the smaller result runs out first. For N₂ + 3 H₂ → 2 NH₃ with 28 g of N₂ and 6 g of H₂, nitrogen gives 0.9995 mol ÷ 1 = 0.9995 and hydrogen gives 2.976 mol ÷ 3 = 0.992, so hydrogen limits the yield to 33.79 g of ammonia.
What is the difference between theoretical yield and percent yield?
Theoretical yield is the product mass if the limiting reagent reacted completely, which is what this calculator reports. Percent yield compares what you actually collected: actual ÷ theoretical × 100. With a theoretical yield of 72.06 g of water and 65.0 g collected, the percent yield is 90.2 %. Transfer losses, side reactions and incomplete reaction keep real yields below 100 %.
This calculator includes 7 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.
Put this calculator on your site
Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.