Smallest whole-number coefficients, checked atom by atom
Updated October 2026
A chemical equation balancer takes an unbalanced reaction and returns the coefficients that satisfy the law of conservation of mass. This one reads formulas with parentheses and brackets (Ca(OH)₂, K₄[Fe(CN)₆]), hydrates (CuSO₄·5H₂O) and ions written with a caret (Fe^3+, MnO4^-), and lists the atom count for every element on both sides so you can check the answer yourself. To turn a balanced equation into grams, look up each substance in the Molar Mass Calculator.
Every element gives one equation. With unknown coefficients a, b and c in a Fe + b O₂ → c Fe₂O₃, iron gives a = 2c and oxygen gives 2b = 3c. The calculator solves this system exactly, with fractions rather than decimals (Gauss-Jordan elimination), then scales the answer to the smallest whole numbers: c = 2 gives a = 4 and b = 3. For ions the total charge is one more quantity that has to match, so redox equations balance without writing the half-reactions, and the result agrees with the half-reaction method shown further down.[3]
Two outcomes are reported instead of a forced answer. If an element appears on only one side, no balance exists and the tool names the element. If the equation hides two independent reactions, as in H₂ + O₂ → H₂O₂ + H₂O, there are infinitely many valid sets of coefficients, so the tool asks you to split it.
| Reaction | Balanced |
|---|---|
| Hydrogen combustion | 2 H₂ + O₂ → 2 H₂O |
| Propane combustion | C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O |
| Aluminum in hydrochloric acid | 2 Al + 6 HCl → 2 AlCl₃ + 3 H₂ |
| Neutralization (calcium phosphate) | 3 Ca(OH)₂ + 2 H₃PO₄ → Ca₃(PO₄)₂ + 6 H₂O |
| Permanganate and hydrochloric acid | 2 KMnO₄ + 16 HCl → 2 KCl + 2 MnCl₂ + 8 H₂O + 5 Cl₂ |
| Dichromate and iodide (acidic) | Cr₂O₇²⁻ + 14 H⁺ + 6 I⁻ → 2 Cr³⁺ + 3 I₂ + 7 H₂O |
| Permanganate and iodide (basic) | 2 MnO₄⁻ + 6 I⁻ + 4 H₂O → 2 MnO₂ + 3 I₂ + 8 OH⁻ |
Every row was run through this calculator and balances atom by atom. The ionic rows also balance charge: for dichromate, −2 + 14 − 6 = +6 on the left and 2 × (+3) = +6 on the right; in the basic example, −2 − 6 = −8 on the left and 8 × (−1) = −8 on the right.
The law of conservation of mass — one of the fundamental laws of chemistry — states that matter cannot be created or destroyed in a chemical reaction. This means every atom present in the reactants must appear in the products, and a balanced equation ensures this accounting is correct. An unbalanced equation like H₂ + O₂ → H₂O is mathematically inconsistent: it shows 2 hydrogen atoms and 2 oxygen atoms on the left but only 2 hydrogen and 1 oxygen on the right. The balanced version, 2H₂ + O₂ → 2H₂O, shows 4 hydrogen and 2 oxygen atoms on both sides. Balanced equations are essential for calculating how much of each reactant is needed and how much product will be formed — the foundation of stoichiometry used in laboratories, industrial chemistry, and pharmaceutical manufacturing. For related calculations, see our Molar Mass Calculator.
The most common approach is balancing by inspection (trial and error), following a systematic order. Start by listing all elements present and their counts on each side. Balance elements that appear in only one reactant and one product first — these are the least constrained. Save hydrogen and oxygen for last because they typically appear in multiple compounds. Adjust coefficients (the numbers in front of chemical formulas) rather than subscripts (the numbers within formulas — changing subscripts changes the substance itself). Work with whole numbers, and if you end up with fractions, multiply all coefficients by the smallest common denominator to clear them.
For more complex equations, the algebraic method provides a systematic approach. Assign variables (a, b, c...) to each coefficient, set up a system of equations representing the atom count for each element, and solve the system. For example, aFe₂O₃ + bCO → cFe + dCO₂: Iron gives 2a = c, Oxygen gives 3a + b = 2d, Carbon gives b = d. Setting a = 1: c = 2, and from oxygen: 3 + b = 2b (since b = d), giving b = 3, d = 3. So Fe₂O₃ + 3CO → 2Fe + 3CO₂. The algebraic method always works regardless of complexity and is particularly useful for redox reactions with multiple oxidation state changes. For systems of equations, see our Equation Solver.
| Reaction Type | General Form | Example (Balanced) |
|---|---|---|
| Synthesis | A + B → AB | 2Na + Cl₂ → 2NaCl |
| Decomposition | AB → A + B | 2H₂O₂ → 2H₂O + O₂ |
| Single replacement | A + BC → AC + B | Zn + 2HCl → ZnCl₂ + H₂ |
| Double replacement | AB + CD → AD + CB | AgNO₃ + NaCl → AgCl + NaNO₃ |
| Combustion | CₓHᵧ + O₂ → CO₂ + H₂O | CH₄ + 2O₂ → CO₂ + 2H₂O |
| Acid-base | Acid + Base → Salt + H₂O | HCl + NaOH → NaCl + H₂O |
A balanced equation provides mole ratios that govern all quantitative chemistry. In 2H₂ + O₂ → 2H₂O, the coefficients tell us 2 moles of hydrogen react with 1 mole of oxygen to produce 2 moles of water. These ratios scale linearly: 4 moles of H₂ require 2 moles of O₂ to produce 4 moles of H₂O. To convert between moles and grams, use molar masses: 1 mole of O₂ = 32.00g, 1 mole of H₂ = 2.016g, 1 mole of H₂O = 18.015g. So producing 36.03g of water (2 moles) requires 4.032g of hydrogen and 32.00g of oxygen — a total reactant mass of 36.032g, matching the product mass (conservation of mass confirmed).
The limiting reagent is the reactant that runs out first, determining the maximum amount of product. If you have 10 moles of H₂ and 4 moles of O₂, the hydrogen can react with at most 5 moles of O₂ (based on the 2:1 ratio), but you only have 4 moles of O₂. Oxygen is the limiting reagent — it limits production to 8 moles of water, leaving 2 moles of excess hydrogen unreacted. Theoretical yield is the maximum product assuming complete reaction of the limiting reagent; actual yield is what you obtain in practice (always less due to side reactions, incomplete reaction, and purification losses). Percent yield = (actual yield / theoretical yield) × 100. Industrial processes optimize percent yield through temperature, pressure, catalysts, and excess reagent strategies. Calculate measurement precision with our Percent Error Calculator.
Oxidation-reduction (redox) reactions involve the transfer of electrons between species and are among the most challenging equations to balance. The half-reaction method separates oxidation and reduction into individual half-reactions, balances each independently, then combines them. For each half-reaction: balance atoms other than O and H, balance O by adding H₂O, balance H by adding H⁺ (or OH⁻ in basic solution), balance charge by adding electrons, then multiply half-reactions so electron counts match and add them together, canceling species that appear on both sides.
For example, balancing MnO₄⁻ + Fe²⁺ → Mn²⁺ + Fe³⁺ in acidic solution: Reduction half-reaction: MnO₄⁻ + 8H⁺ + 5e⁻ → Mn²⁺ + 4H₂O. Oxidation half-reaction: Fe²⁺ → Fe³⁺ + e⁻. Multiply oxidation by 5 to match electrons: 5Fe²⁺ → 5Fe³⁺ + 5e⁻. Combined: MnO₄⁻ + 8H⁺ + 5Fe²⁺ → Mn²⁺ + 4H₂O + 5Fe³⁺. Verify: Mn balanced (1=1), O balanced (4=4), H balanced (8=8), Fe balanced (5=5), charge balanced (−1+8+10 = 17 left; +2+0+15 = 17 right). Redox reactions are the basis of electrochemistry, batteries, corrosion, metabolic energy production, and industrial processes like metal smelting and water treatment. For related science calculations, see our Radioactive Decay Calculator and pH Calculator.
See also: Ideal Gas Law Calculator · pH Calculator · Half-Life Decay Calculator
→ Balance metals first, then nonmetals, then hydrogen, then oxygen. This order works for most reactions. Oxygen and hydrogen often appear in multiple compounds, so saving them for last reduces the number of adjustments needed.
→ Polyatomic ions can be balanced as units. If a polyatomic ion appears intact on both sides of the equation, treat it as a single unit rather than balancing its component atoms separately. This simplifies the process significantly for ionic reactions.
→ Combustion reactions follow a pattern. Hydrocarbon + O₂ → CO₂ + H₂O. Balance carbon first (match C atoms in CO₂ to the hydrocarbon), then hydrogen (match H atoms in H₂O), then oxygen last. This works for every combustion reaction. See our Molar Mass Calculator for stoichiometry.
→ Redox reactions require half-reaction balancing. For reactions involving electron transfer (oxidation-reduction), the inspection method often fails. Split into oxidation and reduction half-reactions, balance electrons, then combine. Our Scientific Calculator can help with the arithmetic.
See also: Molar Mass Calculator · Periodic Table · Scientific Calculator · Concentration Calculator