Chemical Equation Balancer
Type the unbalanced reaction — the smallest whole-number coefficients appear, atom-verified.
Atom check
| Element | Reactants | Products | ✓ |
|---|
Arrow can be typed as ->, →, or =. Don't type coefficients — the balancer finds them. Parentheses (Ca(OH)₂) and hydrates (CuSO₄·5H₂O) are supported.
How to balance a chemical equation
- Type the unbalanced equation — e.g.
H2 + O2 -> H2O. - Press Balance (or Enter). Read the balanced equation at the top.
- Check the atom table — every element must match on both sides.
- Try the example chips to see trickier reactions like glucose combustion.
Frequently asked questions
What does it mean to balance a chemical equation?
A balanced equation has the same number of each atom on both sides of the arrow, as required by the law of conservation of mass — atoms are rearranged in a reaction, never created or destroyed. Balancing finds the smallest whole-number coefficients that make both sides match.
Why can't you change subscripts when balancing?
Subscripts define the substance itself — changing H2O to H3O would describe a different chemical. Only the coefficients (the big numbers in front) may change, because they say how many molecules react without changing what the molecules are.
How does this balancer find the coefficients?
It builds a matrix of atom counts (one row per element, one column per molecule), then computes the null space of that matrix with exact fraction arithmetic — no rounding. The null vector gives the coefficient ratios, which are scaled to the smallest whole numbers.
Which equations can it balance?
Most single-step reactions, including formulas with parentheses like Ca(OH)2 and hydrates like CuSO4·5H2O. Write the arrow as ->, →, or =. Don't include coefficients in your input — the tool computes them. Charged species and half-reactions aren't supported.
What should I do if it says the equation can't be balanced?
First check every formula for typos — a wrong subscript or element symbol is the usual cause. If the formulas are right, the reaction as written may genuinely be impossible (for example H2 -> O2 can't balance because oxygen appears from nowhere).
How is H2 + O2 -> H2O balanced by hand?
Start with H2 + O2 -> H2O. Oxygen needs 2 on the right, so put 2 before H2O; now hydrogen needs 4 on the left, so put 2 before H2. The result, 2H2 + O2 -> 2H2O, has 4 H and 2 O on each side.
More from the codex
Chemical Equation Balancer
Balance any reaction with exact integer coefficients.
Molecular Weight Calculator
Molar mass with a per-element breakdown.
Open tool → LiveMolarity / Dilution Calculator
M = n/V and M₁V₁ = M₂V₂, solved any way.
Open tool → LiveDensity / Mass / Volume Calculator
ρ = m/V — solve for any variable.
Open tool → LivePeriodic Table
All 118 elements, one click away.
Open tool → LiveHalf-Life Calculator
Decay math plus a decay chart.
Open tool → LivePercent Error Calculator
Percent error vs. the true value, plus percent difference.
Open tool → LiveScientific Notation Converter
Convert, normalize, and do sci-notation arithmetic.
Open tool →Support the codex
This tool is free, with no account and no ads. If it saved you some time, consider supporting the indie dev behind it.