Tool 02

Chemical equation balancer

Type an unbalanced equation to get the smallest whole-number coefficients, with an atom-by-atom and charge check. Ionic equations, electrons and redox reactions balance in one step because the coefficients are solved, not guessed.

Free, no account, and nothing you type leaves your browser.

Balance an equation

Solved as a linear system over exact fractions, not by trial and error — so redox equations that resist inspection come out in one step.

Worked examples

Burning methane

Give each species an unknown coefficient:

aCH4 + bO2 → cCO2 + dH2O

Each element must have the same number of atoms on both sides:

  • C a = c
  • H 4a = 2d
  • O 2b = 2c + d

The smallest whole numbers that satisfy every equation:

a = 1, b = 2, c = 1, d = 2

Balanced equation:

CH4 + 2O2 → CO2 + 2H2O

Open this example in the tool

Iron rusting

Give each species an unknown coefficient:

aFe + bO2 → cFe2O3

Each element must have the same number of atoms on both sides:

  • Fe a = 2c
  • O 2b = 3c

The smallest whole numbers that satisfy every equation:

a = 4, b = 3, c = 2

Balanced equation:

4Fe + 3O2 → 2Fe2O3

Open this example in the tool

Iron(II) and permanganate in acid

Give each species an unknown coefficient:

aFe2+ + bMnO4− + cH+ → dFe3+ + eMn2+ + fH2O

Each element must have the same number of atoms on both sides:

  • Fe a = d
  • Mn b = e
  • O 4b = f
  • H c = 2f

The total charge must also be the same on both sides:

2a − b + c = 3d + 2e

The smallest whole numbers that satisfy every equation:

a = 5, b = 1, c = 8, d = 5, e = 1, f = 4

Balanced equation:

5Fe2+ + MnO4− + 8H+ → 5Fe3+ + Mn2+ + 4H2O

Open this example in the tool

How it works

How does the equation balancer work?

Conservation of each element becomes one linear equation: the total atoms of that element on the left must equal the total on the right. Stack those into a matrix, reduce it to row-echelon form using exact fractions rather than floating point, and read off the null-space vector — that vector is the set of coefficients. Clearing denominators and dividing by the greatest common divisor gives the smallest whole numbers. It never guesses, so it handles redox equations like permanganate and hydrochloric acid in the same single step as burning hydrogen.

Ions, charges and electrons

Charges are read with the same rules as in the molar mass calculator, so Fe2+, MnO4- and SO4^2- all work, and e- stands for an electron. As soon as one species carries a charge, the solver adds a row for charge: the total charge of the reactants must equal the total charge of the products. A plus sign separates two species when it stands between spaces or is followed by the next formula, so Fe2+ + MnO4- and Fe2++MnO4- are read the same way.

When --> follows a formula without a space, as in H++OH-->H2O, the first minus is read as that species' charge if the equation balances that way; otherwise --> is read as an arrow. A space before the arrow, or ->, removes the doubt.

Limits

  • It checks that atoms and charge are conserved, not that the reaction actually happens.
  • When an equation combines two independent reactions, more than one set of coefficients works; the solver says so instead of picking one.
  • It handles up to 12 species. State symbols such as (aq) are accepted and ignored, and any coefficients you type are replaced by the solved ones.
  • All arithmetic is exact. If a number in the calculation would pass 9,007,199,254,740,991, the tool says the numbers are too large instead of showing a rounded answer.