Chemical Equation Balancer
Type an unbalanced equation with up to four species (reactants + products) and get the smallest whole-number coefficients, with a live atom-count chart proving both sides match.
Reviewed by the ToolNestr Editorial Team — July 2026
Enter an unbalanced equation using + and -> (or =). Up to 4 total species, simple formulas only (no parentheses).
Two ideas that trip students up
1. Same atoms, just rearranged
Unbalanced 1 H₂ + 1 O₂ → 1 H₂O (left) has leftover oxygen; balanced 2 H₂ + 1 O₂ → 2 H₂O (right) uses every atom on both sides — the same colored spheres, just regrouped in the correct ratio.
2. Matching bar heights mean balanced
Each pair of bars is the atom count of one element on the reactant side vs the product side. When every pair lines up exactly, the equation is balanced.
Atom-count check
How it works
The core idea in one line: atoms are never created or destroyed in a reaction, so the same count of every element must appear on both sides — balancing just finds the coefficients that make that true.
Σ(atoms of X)reactants = Σ(atoms of X)products
for every element X — the balance condition
c₁A + c₂B → c₃C + c₄D
find integer c₁…c₄ satisfying the balance condition
Because subscripts are fixed by chemical identity, only the coefficients in front of each formula can change. For small equations, trying whole-number coefficients until every element's atom count matches is a fast and reliable method — that is exactly what this tool automates.
Worked example 1 — combustion of methane
Given: Balance CH₄ + O₂ → CO₂ + H₂O.
Check: left has 1 C, 4 H, 4 O; right has 1 C, 4 H, 4 O. Balanced.
Worked example 2 — rusting of iron
Given: Balance Fe + O₂ → Fe₂O₃.
Check: left has 4 Fe, 6 O; right has 4 Fe, 6 O. Balanced — this is why odd O₂ counts often force doubling.
Balancing method vs equation complexity
Trial-and-error/search methods work well for small equations; bigger ones need algebra.
| Method | Best for | Limitation |
|---|---|---|
| Inspection (by hand) | Simple, familiar reactions | Slow and error-prone for many elements |
| Coefficient search (this tool) | Up to 4 species, small coefficients | Impractical beyond ~4 species or coeffs > 12 |
| Linear algebra (matrix/null space) | Any size, including redox equations | Needs matrix setup — overkill for textbook problems |
All three methods enforce the same rule: atoms of each element must match on both sides.
Where equation balancing actually matters
🏭 Industrial process design
Balanced equations tell engineers the exact mole ratios of feedstock needed per unit of product — the starting point for reactor sizing and raw-material cost estimates in ammonia, ethylene and cement plants.
🚀 Rocket propellant chemistry
Combustion equations for propellants (e.g. hydrazine and dinitrogen tetroxide) must be balanced to compute the exact oxidizer-to-fuel mass ratio that maximizes thrust without leftover unburned fuel.
🧪 Lab synthesis planning
Before running a reaction, chemists balance the equation to know the mole ratio of reagents to weigh out — the same ratio then feeds directly into limiting-reagent and percent-yield calculations.
Common misconceptions
"You can change the subscripts to balance an equation."
Never — subscripts define what the substance is (H₂O vs H₂O₂ are different compounds). Only the coefficients in front of each formula may change during balancing.
"Balanced coefficients are unique."
Any multiple of a balanced set is also technically balanced (2, 4, 2, 4 works too) — by convention the smallest whole-number ratio is reported, which is what this tool returns after reducing by the GCD.
"A coefficient of 1 should be written explicitly."
By convention a coefficient of 1 is omitted — "CH₄" means "1 CH₄". This tool follows that convention in its output.
"Balancing tells you whether a reaction actually happens."
Balancing only enforces atom conservation. Whether a reaction proceeds, how fast, and how far depends on thermodynamics and kinetics — a balanced equation can still be non-spontaneous.
Formula sources & further reading
The formulas here are standard, traceable to:
- • OpenStax, Chemistry 2e — Chapter 4.1, Writing and Balancing Chemical Equations (free, peer-reviewed). openstax.org
- • Brown, LeMay & Bursten, Chemistry: The Central Science — Chapter 3, Stoichiometry: Calculations with Chemical Formulas and Equations.
- • Zumdahl & Zumdahl, Chemistry — Chapter 3, Stoichiometry, section on balancing chemical equations.
Coefficients are found by whole-number search (1–12 per species, up to 4 species) and reduced to the smallest ratio. Parentheses and hydrate notation are not supported.
How to use this calculator
Type the equation
Separate species with + and reactants from products with -> (or =).
Read the coefficients
The balanced equation appears with the smallest whole-number coefficients.
Verify with the chart
Compare atom counts per element on each side — matching bars confirm the balance.
Related tools
Frequently asked questions
What does it mean to "balance" a chemical equation?
Balancing means finding whole-number coefficients so the number of atoms of each element is identical on both sides, satisfying the law of conservation of mass — atoms are rearranged in a reaction, never created or destroyed.
How does this balancer find the coefficients?
For equations with up to four species, it searches whole-number coefficients from 1 to 12 for every species and keeps the first combination where every element's atom count matches on both sides, then reduces the set by its greatest common divisor to get the smallest ratio.
Why is there a 4-species and coefficient-12 limit?
This is a brute-force search: with 4 species and coefficients up to 12 that is at most 12⁴ ≈ 20,000 checks, which is instant. Larger equations need a linear-algebra (matrix) method instead of trial coefficients.
Does it support parentheses like Ca(OH)2 or hydrates?
No — this tool intentionally parses simple element+subscript formulas only (e.g. CO2, Fe2O3, NH3). For polyatomic groups in parentheses or hydrate dot-notation, use the Molar Mass Calculator's parser as a mental model, or expand the formula manually first (Ca(OH)2 → CaO2H2).
What if no balanced equation is found?
You will see an explicit error. This usually means the equation as written is chemically impossible (an element appears on one side only) or needs coefficients above 12 — rare for standard textbook reactions.