Chemical equation balancer

Type a reaction like Fe + O2 -> Fe2O3 and get the smallest whole-number coefficients, with an atom-by-atom check that every element balances.

How it works

Each element gives one equation: the atoms of that element on the left must equal the atoms on the right. The balancer writes those equations as a matrix and solves it with exact fractions (no rounding), then scales the answer to the smallest whole numbers. If an equation can't be balanced, or can be balanced in more than one independent way, it says so instead of guessing.

Worked examples

You typeBalanced
Fe + O2 -> Fe2O34Fe + 3O2 → 2Fe2O3Open
C3H8 + O2 -> CO2 + H2OC3H8 + 5O2 → 3CO2 + 4H2OOpen
KMnO4 + HCl -> KCl + MnCl2 + Cl2 + H2O2KMnO4 + 16HCl → 2KCl + 2MnCl2 + 5Cl2 + 8H2OOpen
Al + CuSO4 -> Al2(SO4)3 + Cu2Al + 3CuSO4 → Al2(SO4)3 + 3CuOpen
C6H12O6 + O2 -> CO2 + H2OC6H12O6 + 6O2 → 6CO2 + 6H2OOpen
NH3 + O2 -> NO + H2O4NH3 + 5O2 → 4NO + 6H2OOpen
Na + H2O -> NaOH + H22Na + 2H2O → 2NaOH + H2Open
CaCO3 + HCl -> CaCl2 + H2O + CO2CaCO3 + 2HCl → CaCl2 + H2O + CO2Open

Also in the balancer

Open the chemical equation balancer →