Premium apps Part of Proofline
Chemical Equation Balancer & Stoichiometry
Balance any reaction or redox equation exactly, then find the limiting reagent and yields.
Try an example: Combustion of propane · Permanganate oxidises iron(II) in acid (redox, ionic) · Potassium permanganate and hydrochloric acid · Dichromate half-reaction with electrons · Blast furnace: limiting reagent and percentage yield · Copper and nitric acid: two independent reactions
How it works
Type a reaction such as C3H8 + O2 -> CO2 + H2O or an ionic redox equation such as MnO4- + Fe+2 + H+ -> Mn+2 + Fe+3 + H2O and get the smallest whole-number coefficients, computed exactly from the null space of the composition matrix. The tool tells you when a reaction cannot be balanced, when a species does not take part and when the species allow several independent reactions. Add starting masses or amounts to get the limiting reagent, the theoretical yield of every product, the leftovers and your percentage yield. Part of the Proofline math notebook.
- Each species becomes a column of the composition matrix A: its atom count per element (isotopes as separate elements) and its charge, positive for reactants and negative for products. Balanced coefficients ν satisfy A·ν = 0.
- The null space of A is computed exactly: rational Gaussian elimination with arbitrary-precision fractions to the reduced row echelon form, one basis vector per free column, scaled to the smallest whole numbers (no floating point, so large redox equations stay exact).
- Nullity 1 with all coefficients positive is a unique balanced equation. Nullity 0 means no balance exists; a zero entry means a species cannot take part; mixed signs mean a species belongs on the other side. Nullity above 1 means several independent reactions: the basis is listed, and the positive combination with the smallest coefficients (small integer multiples of the basis) is shown as one possibility.
- Stoichiometry: amounts n = m / M; the extent ξ = min(nᵢ / νᵢ) over the reactants given, which identifies the limiting reagent; every species reacts or forms νᵢ·ξ, leftovers are nᵢ − νᵢ·ξ, and the percentage yield is actual ÷ theoretical × 100.
Balancing conserves atoms and charge; it does not tell whether a reaction actually happens, how fast, or what else forms. Real yields depend on equilibrium, side reactions and losses. Nothing here is advice on handling chemicals safely.
Sources
- G. Strang: Introduction to Linear Algebra, 5th ed., chapter 3 (null space and the reduced row echelon form) (Wellesley-Cambridge Press)
- G. R. Blakley: Chemical equation balancing — a general method which is quick, simple, and has unexpected applications, J. Chem. Educ. 59 (1982) 728 (American Chemical Society)
- CIAAW / IUPAC: Abridged Standard Atomic Weights (latest table, incl. the 2021 revisions) (IUPAC Commission on Isotopic Abundances and Atomic Weights)
Part of Proofline
-
Proofline Math notebook
Solve, graph, test and visualise in one notebook — with data, findings and a report.
Related tools
- Molar Mass & Composition Calculator – Molar mass with uncertainty, mass % per element and the empirical formula from percentages.
- Solution, Gas Law & pH Calculator – Molarity, dilution, mass ↔ moles ↔ particles, ideal gas with partial pressures, pH and buffers.
- Matrix & Linear Algebra Lab – Exact-fraction RREF with steps, determinant, inverse, null space, eigenvalues, LU/QR and Ax = b.
- Step-by-Step Equation Solver – Solve linear, quadratic, rational and radical equations or linear systems with every step shown.
How to balance chemical equations and find the limiting reagent
Balance any reaction or ionic redox equation exactly, see when it cannot be balanced, and get the limiting reagent, theoretical yield and percentage yield.
What it is for
Balancing by trial and error works for H2 + O2 -> H2O but gets painful for redox equations with charges, or for reactions with nine species. This tool balances them the reliable way: it writes down how many atoms of each element (and how much charge) every species carries, and solves for the coefficients that conserve all of them at once. The arithmetic uses exact fractions, so even coefficients in the hundreds come out exact.
Type reactants, an arrow (->, = or →), then products, separated by + . Charges go at the end of an ion (Fe+2, MnO4-, SO4^2-) and electrons are written e-, so half-reactions work too. If you add starting masses, the tool also finds the limiting reagent and the yields.
Balancing tells you nothing about whether a reaction actually happens.
Worked example
Permanganate titrating iron(II) in acid: MnO4- + Fe+2 + H+ -> Mn+2 + Fe+3 + H2O. The result is MnO₄⁻ + 5 Fe²⁺ + 8 H⁺ → Mn²⁺ + 5 Fe³⁺ + 4 H₂O. The balance table confirms it: one manganese, four oxygen, five iron and eight hydrogen on each side, and a charge of 17 on both sides.
Now a yield problem. Burning C3H8 + O2 -> CO2 + H2O balances to C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O. With C3H8 = 44 g, O2 = 100 g as starting amounts, oxygen is the limiting reagent: 100 g is 3.1252 mol, enough for only 0.625039 mol of propane. The theoretical yield of carbon dioxide is 82.522 g, and 16.4377 g of propane is left over. Entering an actual yield of CO2 = 75 g gives a percentage yield of 90.88 %.
Copper with nitric acid, Cu + HNO3 -> Cu(NO3)2 + NO + NO2 + H2O, is different: the tool reports 2 independent reactions. One balanced form is 2 Cu + 6 HNO₃ → 2 Cu(NO₃)₂ + NO + NO₂ + 3 H₂O, but any mix of the two listed basis reactions also conserves every element. That is chemistry, not a bug: the ratio of NO to NO₂ depends on the acid concentration.
How to read the result
Result is one of five outcomes. Balanced means a unique set of smallest whole numbers. Several independent reactions means the coefficients are not unique. Cannot be balanced means no coefficients work — usually a wrong formula. A species does not take part means its coefficient would have to be zero: NaCl -> Na + Cl2 + O2 only balances without the O₂. On the wrong side means a species would need a negative coefficient.
The composition matrix shows the linear algebra behind it: one row per element, one column per species, reactants positive and products negative. The stoichiometry table lists, for each species, what you gave, what reacts or forms, and what is left over.
Tips and common mistakes
- Put spaces around the
+between species, soFe+3stays a charge and is not read as a separator. - Coefficients you type are checked: the tool tells you whether they balance, then shows the correct ones.
- State symbols such as
(aq)or(g)are accepted and ignored. - Reactants you leave out of the amounts are treated as being in excess.
- A percentage yield above 100 % almost always means a wet or impure product, or a typo in the amounts.
FAQ
How does it balance redox equations without half-reactions?
The total charge is treated like one more element that must be conserved. Electrons, protons and water are ordinary species, so the same calculation covers redox.
Why does it say several independent reactions?
The species can combine in more than one independent way. The tool lists a basis of these reactions and shows the combination with the smallest positive coefficients.
Can I use moles instead of grams?
Yes. Write amounts such as CO = 2.5 mol or Fe2O3 = 150 mmol; masses in mg and kg work too.
Which atomic weights are used?
The IUPAC standard atomic weights, the same as in the molar mass calculator and the Proofline chemistry cells.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://prooflinereactionbalancer.usefulweb.app/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://prooflinereactionbalancer.usefulweb.app/mcp· tool nameproofline_reaction_balancer
Example request
curl -s -X POST https://prooflinereactionbalancer.usefulweb.app/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"equation":"C3H8 + O2 -> CO2 + H2O"}'