What is stoichiometry?
A stoichiometry calculator exists because of a simple mismatch: equations are written in moles, but laboratories measure grams and litres. The equation 2H2 + O2 → 2H2O says two molecules of hydrogen react with one molecule of oxygen to make two molecules of water. Scaled up by the Avogadro constant, it says 2 mol of hydrogen react with 1 mol of oxygen to make 2 mol of water. It says nothing directly about grams — yet a balance reads grams. Stoichiometry is the bridge: convert the measured amount to moles, cross the equation using its mole ratios, then convert back to whatever unit you need. Every calculation on this page, including the limiting reagent calculator mode, is that bridge crossed carefully, with molar masses built from the formulas themselves.
The word comes from the Greek stoicheion, meaning element, and metron, meaning measure — measuring the elements. The subject sits at the centre of general chemistry because almost every later topic leans on it: solution work needs moles from molarity, gas work needs moles from volumes, and yield analysis is stoichiometry with an honesty check at the end. Learn the mole ratio once, and a large part of the course becomes variations on one theme.
The mole ratio
Read the equation as a recipe written in moles. The coefficients are not masses and they are not volumes of liquids or solids; they are counts of particles, and a mole is simply a very large count. That is why the ratios work unchanged whether the reaction runs in a test tube or a tanker: 4 mol of H2 always pairs with 2 mol of O2 and produces 4 mol of H2O, because the ratio is fixed by the equation, not by the scale. A dedicated mole ratio calculator would stop there — moles in, moles out — but in practice the known and wanted quantities are usually grams, so this page wraps the ratio in the two conversions that surround it.
One warning belongs here, because it decides whether any of the arithmetic means anything: mole ratios exist only for a balanced equation. In H2 + O2 → H2O the oxygen atoms do not balance — two on the left, one on the right — so its apparent 1-to-1 ratios are fiction. This calculator counts the atoms on both sides of whatever you type and warns you when they disagree. It deliberately does not fix the equation for you: balancing is a separate skill, and the FreeSoftis Chemical Equation Balancer exists for exactly that step.
How to calculate stoichiometry step by step
The method has four steps, and every textbook problem is some subset of them. Step 1: balance the equation, or load one that is already balanced. Step 2: convert the known amount to moles. From grams, divide by the molar mass; from litres of gas at STP, divide by 22.414 L/mol. Step 3: cross the equation — multiply by the mole ratio, wanted coefficient over known coefficient. Step 4: convert the answer to the unit you need — multiply moles by the molar mass for grams, or by 22.414 for litres of gas at STP.
Watch the units cancel and the method checks itself. Grams divided by grams per mole leave moles; moles times a ratio of coefficients leave moles of a new substance; moles times grams per mole leave grams. If your units do not cancel to the unit you want, a step is missing or inverted — the most reliable error check in the whole topic, and the reason teachers insist on writing units at every stage. This calculator performs the same chain for every substance in the equation at once, which is why its results table shows moles and grams side by side for reactants and products alike.
Worked examples you can check
Example 1 — the mole-ratio anchor. Start from 4 mol of H2 in 2H2 + O2 → 2H2O. The H2-to-H2O ratio is 2/2 = 1, so the water formed is 4 × 1 = 4 mol, and at a molar mass of 18.015 g/mol that is 4 × 18.015 = 72.06 g. The H2-to-O2 ratio is 1/2, so the oxygen consumed is 4 × 1/2 = 2 mol, which is 2 × 31.998 = 64.00 g. This is the calculator's starting state: open the page and the results table already shows these figures.
Example 2 — grams in, grams out. Burn 16.04 g of methane, CH4 + 2O2 → CO2 + 2H2O. Methane's molar mass is 16.043 g/mol, so you have almost exactly 1.00 mol. The ratios give 1.00 mol of CO2 (44.01 g), 2.00 mol of H2O (36.03 g) and 2.00 mol of O2 consumed (64.00 g). Load the methane preset, choose CH4 as the known substance and enter 16.04 g to reproduce it. Notice the mass check: 16.04 + 64.00 = 80.04 g in, and 44.01 + 36.03 = 80.04 g out — mass is conserved, as it must be in a balanced equation.
| Example | Given | Working | Result |
|---|---|---|---|
| Water from moles | 4 mol H2 | 4 × 2/2 = 4 mol H2O; 4 × 18.015 | 72.06 g H2O |
| Oxygen used | 4 mol H2 | 4 × 1/2 = 2 mol O2; 2 × 31.998 | 64.00 g O2 |
| Methane burn | 16.04 g CH4 | ≈1.00 mol; ratios 1 : 2 : 1 : 2 | 44.01 g CO2 |
| Limiting case | 10.0 g H2 + 50.0 g O2 | O2 limits; 3.125 mol H2O | 56.30 g H2O |
Limiting reagent: when one reactant runs out
Real mixtures are rarely mixed in perfect ratio. Put 10.0 g of hydrogen with 50.0 g of oxygen and the equation 2H2 + O2 → 2H2O cannot consume both completely. Convert to moles: H2 is 10.0 ÷ 2.016 = 4.960 mol; O2 is 50.0 ÷ 31.998 = 1.563 mol. Divide each by its coefficient: hydrogen gives 4.960 ÷ 2 = 2.480, oxygen gives 1.563 ÷ 1 = 1.563. Oxygen's figure is smaller, so oxygen is the limiting reagent — the reaction stops when the oxygen is gone, however much hydrogen remains. Equivalently: 1.563 mol of O2 needs 3.125 mol of H2 (6.30 g), and since 4.960 mol is available, hydrogen is in excess.
Everything else follows from the limiting value. Water formed: 1.563 × 2 = 3.125 mol, which is 3.125 × 18.015 = 56.30 g — the theoretical yield. Hydrogen consumed: 3.125 mol, so hydrogen left over is 4.960 − 3.125 = 1.835 mol, which is 3.70 g of excess reagent remaining. The limiting reagent calculator mode of this tool performs exactly this comparison for any two reactants of your equation and reports all three figures: the limiting reagent, the theoretical yield of a product you choose, and the excess remaining.
Theoretical yield and percent yield
The theoretical yield is the amount of product the limiting reagent could make if everything went perfectly — 56.30 g of water in the example above. It is calculated, never measured. What you actually isolate in the lab is the actual yield, and it is essentially always lower: some reactant takes a side path, some product stays dissolved, coats the glassware or is lost in filtering and drying, and many reactions simply stop short of completion. Percent yield scores the outcome: actual ÷ theoretical × 100. Collect 50.0 g of water against a 56.30 g ceiling and the percent yield is 50.0 ÷ 56.30 × 100 = 88.8%.
Two habits keep yield work honest. First, a percent yield over 100% is not a triumph — it means the product is wet, impure, or the wrong substance was weighed. Second, the theoretical yield must come from the limiting reagent; calculating it from the excess reactant inflates the ceiling and makes a good experiment look bad. Used as a theoretical yield calculator, the limiting mode gives you the ceiling from the correct reactant every time, and entering your actual yield returns the percent yield alongside it.
Worked mole-ratio table and common molar masses
The table below fixes the water-synthesis example at one extent of reaction — 1.563 mol of O2 consumed, the limiting case above — so every row can be checked against the limiting-reagent mode. Molar masses are built from standard atomic weights: H 1.008 and O 15.999, giving H2 2.016, O2 31.998 and H2O 18.015 g/mol.
| Substance | Coefficient | Molar mass (g/mol) | Moles | Grams |
|---|---|---|---|---|
| H2 (reactant) | 2 | 2.016 | 3.125 used of 4.960 | 6.30 used; 3.70 left |
| O2 (limiting) | 1 | 31.998 | 1.563 | 50.00 |
| H2O (product) | 2 | 18.015 | 3.125 | 56.30 |
| Compound | Formula | Molar mass (g/mol) |
|---|---|---|
| Water | H2O | 18.015 |
| Oxygen | O2 | 31.998 |
| Hydrogen | H2 | 2.016 |
| Methane | CH4 | 16.043 |
| Carbon dioxide | CO2 | 44.009 |
| Ammonia | NH3 | 17.031 |
| Glucose | C6H12O6 | 180.156 |
| Sodium chloride | NaCl | 58.443 |
| Calcium carbonate | CaCO3 | 100.087 |
| Sulfuric acid | H2SO4 | 98.079 |
For any other compound, the calculator builds the molar mass from the formula you type — or use the dedicated FreeSoftis Molar Mass Calculator for a per-element breakdown. If a grams to moles stoichiometry conversion is all you need, the Mole Calculator covers grams, moles, particles and gas volume in both directions.
Grams, moles and litres at STP
Three amount units meet in stoichiometry. Grams are what a balance reports; divide by the molar mass to get moles. Moles are the equation's native language; every ratio is applied in moles. Litres at STP apply to gases only: at standard temperature and pressure (0 °C, 1 atm) one mole of an ideal gas occupies 22.414 L, so litres ÷ 22.414 gives moles and moles × 22.414 gives litres. This calculator accepts any of the three for any substance — but be honest with it: a litre entry only means something for a gas, and the STP conversion assumes the traditional 1 atm definition. Courses using the modern 100 kPa definition use 22.711 L/mol instead; convert with that value first and enter moles here.
Significant figures deserve one sentence: the calculator carries full precision through the chain and rounds only for display, so a hand check with rounded intermediate values can differ in the last digit. For assessed work, quote answers to the significant figures of your least precise measurement — 10.0 g and 50.0 g justify 56.30 g, not 56.3004 g.
Where stoichiometry is used
In teaching and examinations, stoichiometry is the most practised calculation in chemistry: mole ratios, limiting reagents and percent yield appear in some form in nearly every general chemistry course. In industrial chemistry, the same arithmetic sizes reactors and feed rates — the Haber process that makes ammonia runs the N2 + 3H2 → 2NH3 preset on this page at enormous scale, with economics decided by how closely real yields approach the theoretical ceiling. In pharmaceutical and materials production, limiting-reagent thinking decides which ingredient is deliberately kept in excess (usually the cheap one) and which expensive reagent is fully consumed.
In environmental and analytical work, combustion stoichiometry predicts emissions per unit of fuel, and titration calculations are stoichiometry applied to solutions. Even rocketry is, at heart, this page's first preset: hydrogen and oxygen in a 2-to-1 mole ratio, with every gram accounted for.
Common stoichiometry mistakes
The costliest mistake is using an unbalanced equation: every ratio downstream is wrong, and the error is silent. Second is applying ratios to grams directly — coefficients count particles, not mass, so 2H2 + O2 does not mean 2 g of hydrogen per gram of oxygen. Third is choosing the wrong limiting reagent by comparing grams or even moles without dividing by the coefficients; the comparison is only fair after that division. Fourth is calculating theoretical yield from the excess reactant, which overstates the ceiling.
Fifth, unit slips: using 22.414 L/mol for a liquid, forgetting that STP litres must become moles before a ratio applies, or dropping the molar-mass step on the way back to grams. Sixth, formula slips: writing CO when you mean Co, or ignoring brackets so Ca(OH)2 is read as CaOH2 — this calculator's parser counts exactly what you type, so type exactly what you mean.
What this calculator cannot do
Plainly stated: this calculator does idealised textbook stoichiometry only. It does not balance equations — the equation must arrive balanced, and the atom check is a warning, not a repair. It assumes the reaction goes to completion, that the limiting reagent is fully consumed, that no side reactions compete, and that no equilibrium holds the reaction back. Real reactions differ on every one of those points, which is precisely why percent yield exists and why it is rarely 100%.
It also gives no practical or safety guidance: nothing here tells you whether a reaction is safe to run, how fast it goes, or how to handle its substances. Gas volumes use the ideal-gas molar volume at STP; real gases deviate slightly, and high-pressure or non-STP conditions need the ideal gas law instead. Within its stated scope, though, every figure on this page can be reproduced by hand from the four-step method in this guide — and the two worked examples were verified that way before publication.
Sources & References
- OpenStax Chemistry 2e — 4.3 Reaction Stoichiometry (mole ratios and mass-to-mass conversions from balanced equations)
- OpenStax Chemistry 2e — 4.4 Reaction Yields (limiting reactant, theoretical yield and percent yield)
- LibreTexts Chemistry (OpenStax) — 4.3 Reaction Stoichiometry (the same chapter in the LibreTexts library)
- LibreTexts Chemistry (OpenStax) — 4.4 Reaction Yields (limiting reagent and percent yield worked examples)
- Khan Academy — Stoichiometry (the mole ratio method taught step by step)
- Khan Academy — Limiting reagents and percent yield (identifying the limiting reagent and scoring a reaction)
- Royal Society of Chemistry, RSC Education — Stoichiometry (teaching resource on amounts in reactions)
The mole-ratio method, the limiting-reagent test and the yield formulas in this guide follow the sources above, and every worked figure was recomputed by hand from the balanced equations — 2H2 + O2 → 2H2O with molar masses H 1.008, O 15.999 and H2O 18.015 — so you can reproduce each one exactly in the calculator.