Chemical equation balancer — smallest whole-number coefficients, with an atom check

Type an unbalanced chemical equation and the balancer finds the smallest whole-number coefficients, then shows a table proving that every element, and the charge for ionic equations, is the same on both sides.

Live demo · real result from this tool
Separate species with + and the sides with →, -> or =. Charges: Fe^3+, SO4^2- or Fe³⁺; a plain trailing sign means ±1 (Na+, Cl-, NH4+), and e- is an electron. States like (aq) are kept.

Balanced equation

2 KMnO₄ + 16 HCl → 2 KCl + 2 MnCl₂ + 8 H₂O + 5 Cl₂ 2 KMnO4 + 16 HCl → 2 KCl + 2 MnCl2 + 8 H2O + 5 Cl2
Coefficients2, 16, 2, 2, 8, 5
Species
6

Atom check

ElementLeftRight
K22
Mn22
O88
H1616
Cl1616

Solved exactly as a linear system (the null space of the element-count matrix, with whole-number fractions), so the coefficients are the smallest whole numbers that balance every element — and the charge when ions are present.

Processed on your device — nothing is uploaded.

How to use the chemical equation balancer

  1. In Unbalanced equation, type the reactants and products, separated by +.
  2. Separate the two sides with →, -> or =.
  3. For ions, type charges as Fe^3+ or Fe³⁺, Na+ or Cl- for single charges, and e- for an electron. State symbols such as (aq) can stay.
  4. Press Balance. Read the Balanced equation (with subscripts and in plain text), the Coefficients, and the Atom check table.

What it does and when to use it

Balancing by inspection works for simple reactions, but redox reactions and equations with five or more species can take many attempts. The balancer gives the answer and a table you can use to check your own working: if your coefficients differ, the atom counts show where.

Once balanced, the coefficients give the mole ratio. Find the mass of each species with the molar mass calculator, look up elements in the periodic table, and test yourself on reactions with the flashcard maker.

How it works

Each species gets an unknown coefficient. For every element, the atoms on the left must equal the atoms on the right, which gives one equation per element; for ions, a further equation makes the charges equal. The tool solves this system exactly with whole-number fractions (no rounding), using Gauss–Jordan elimination to find its null space. It then scales the solution to the smallest whole numbers.

If the only solution is all zeros, the equation cannot be balanced. If there are two or more independent solutions, the reaction is a mix of separate reactions. A species that would need a zero or negative coefficient, or an element found on one side only, is reported. It all runs in your browser.

Worked examples

Aluminium burning. Al + O2 -> Al2O3 balances to 4 Al + 3 O2 → 2 Al2O3. The atom check shows 4 Al and 6 O on each side.

Copper and dilute nitric acid. Cu + HNO3 → Cu(NO3)2 + NO + H2O gives coefficients 3, 8, 3, 2, 4. The check confirms 3 Cu, 8 H, 8 N and 24 O on each side; only 2 of the 8 nitrogen atoms end up in NO.

Permanganate and iron(II) in acid. MnO4- + Fe^2+ + H+ → Mn^2+ + Fe^3+ + H2O becomes MnO₄⁻ + 5 Fe²⁺ + 8 H⁺ → Mn²⁺ + 5 Fe³⁺ + 4 H₂O. The extra charge row shows +17 on both sides.

Impossible. H2O -> H2O2 is rejected: no positive coefficients can make the oxygen match.

Limits and tips

  • Write correct formulas; the tool cannot spot a wrong product, only an unbalanced one.
  • Hydrates such as CuSO4·5H2O work, but organic shorthand such as Ph or Me does not. Write the full formula.
  • In half-equations, include e- so the charges can balance.

Frequently asked questions

How do I type ions and charges?
Use a caret for charges larger than one, as in Fe^3+ or SO4^2-, or superscripts such as Fe³⁺. A plain sign at the end means a charge of one, as in Na+, Cl- or NH4+. Write an electron as e-. Do not type Fe3+, because that reads as three iron atoms with a charge of +1.
Can I include state symbols?
Yes. (s), (l), (g) and (aq) are kept in the output and ignored when counting atoms.
Why does it say the equation cannot be balanced?
Either a formula is wrong, a species is on the wrong side, or an element appears on only one side (the message names it). Check each formula against your textbook, especially capitals, as CO and Co are different.
Why does it say there is more than one solution?
Some equations combine two separate reactions, such as H2 + O2 giving both H2O and H2O2. These can be balanced in many independent ways, so there is no single answer. Split them into separate equations.
Does it predict the products?
No. It only balances the species you type. You need to know the reactants and products first.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close