Limiting Reagent Calculator
Find the limiting reagent, theoretical yield, leftover reactants and percent yield for any balanced reaction with up to three reactants.
Enter the balanced equation's reactants and amounts
Reactant by reactant
Show the Larzscript program that just ran
Run a calculation to see the exact program.
This is the real program the page sent to the Larzscript interpreter (compiled to WebAssembly) in your browser. The library it imports is the same code the automated tests check.
The method
For N₂ + 3 H₂ → 2 NH₃ with 28 g N₂ and 10 g H₂: N₂ is 28 ÷ 28.014 = 0.9995 mol (extent 0.9995); H₂ is 10 ÷ 2.016 = 4.96 mol, and dividing by its coefficient 3 gives extent 1.653. Nitrogen has the smaller extent, so it limits the reaction and hydrogen is in excess.
Theoretical and percent yield
The nitrogen supports 9.99500250e-01 reactions, each making 2 NH₃, so the theoretical yield is 1.99900050e+00 mol × 17.031 g/mol = 34.0450 g. Hydrogen used: 6.0450 g, leaving 3.9550 g. Collecting 30 g means a percent yield of 88.12%.
Burning 16 g of methane with 96 g of oxygen (CH₄ + 2 O₂ → CO₂ + 2 H₂O) is limited by CH4: methane would need about 64 g of oxygen, so 32.1755 g of oxygen is left over and the CO₂ formed is 43.8910 g.
What is verified
Five reactions (including thermite and glucose respiration) are compared with independent arithmetic on the exact inputs — limiting reagent, extent, theoretical yield and every leftover mass — and the limiting reagent is required to be used up completely.
Limits: you supply the balanced coefficients. Side reactions, incomplete conversion and equilibrium are outside this calculation; that is what percent yield summarises.
Frequently asked questions
What is a limiting reagent?
The reactant that runs out first and therefore limits how much product can form. With 28 g of N₂ and 10 g of H₂ in N₂ + 3H₂ → 2NH₃, nitrogen is limiting (N2): 3.9550 g of H2 is left over.
How do you find the limiting reagent?
Convert each reactant to moles, divide by its coefficient in the balanced equation, and compare. The smallest result is the limiting reagent. That number is also the extent of reaction, the number of times the equation as written can happen.
How do you calculate theoretical yield?
Multiply the extent of reaction by the product's coefficient and its molar mass. Here that is 9.99500250e-01 × 2 × 17.031 = 34.0450 g of NH₃.
What is percent yield?
Actual yield divided by theoretical yield times 100. If you collect 30 g of ammonia, the yield is 88.12%.
Do I need a balanced equation?
Yes: the coefficients are the mole ratios. Use the equation balancer first if you are unsure.
Why is my answer different from a textbook's?
Usually rounding of molar masses in the textbook (18.0 vs 18.015 for water). This calculator uses full-precision atomic weights and rounds only for display.
Every number on this page is computed by the open-source larzscript-chem library (chemistry, elements, physconst, physmath), written in Larzscript, and checked against independent references in its test suite. How it is verified →