Account

What new tool do you want?

Science & Engineering

Chemical Equation Balancer

Balance chemical equations automatically — combustion, redox and precipitation reactions — with the smallest whole-number coefficients.

How to use

  1. 1Type the reaction with + between substances and = or -> between sides, e.g. C3H8 + O2 = CO2 + H2O.
  2. 2Copy the balanced equation.

How it's calculated

Atom counts for each element form a system of linear equations. It's solved exactly with fractions, then scaled to the smallest whole numbers.

Frequently asked questions

Why won't my equation balance?

Check the formulas: an element that appears on only one side, or a typo in capitalization (CO vs Co), makes balancing impossible.

Does it balance charges in ionic equations?

Not yet — it balances atoms. For ionic redox equations, balance the charges separately.

What are the coefficients?

The numbers in front of each substance — the ratio of molecules (or moles) that react and form.

Why balancing is a linear algebra problem, not guesswork

Every element on both sides of an equation has to appear the same number of times, which turns balancing into a system of linear equations — one equation per element, one unknown coefficient per chemical species. This tool solves that system exactly with fractions (so rounding never introduces an error) using row reduction, then scales the result up to the smallest set of whole numbers. That's the same underlying math as the trial-and-error method taught in class — spot the hardest-to-balance element first, adjust coefficients, recheck — just done systematically instead of by inspection.

Why KMnO₄ + HCl needs such large coefficients

Balancing KMnO₄ + HCl → KCl + MnCl₂ + H₂O + Cl₂ produces 2KMnO₄ + 16HCl → 2KCl + 2MnCl₂ + 8H₂O + 5Cl₂ — coefficients far bigger than the simple combustion case. That's because this is really two reactions overlapped: permanganate being reduced from Mn⁷⁺ to Mn²⁺, and chloride being oxidized to Cl₂ gas. Atom balancing alone gets the right answer here, but it doesn't show you the electron transfer underneath; for redox equations like this, balancing charges separately (half-reactions) explains why the ratio is what it is, even though this tool only needs atom counts to find it.

Why some equations refuse to balance

An element on only one side of the equation — like testing H2 + O2 = NaCl — makes balancing mathematically impossible, since there's no coefficient that can make a sodium or chlorine atom appear from hydrogen and oxygen alone. The solver also expects exactly one free variable in the resulting matrix; if an equation is underspecified (more than one independent way to balance it, which happens with some combined reactions) or overspecified (no positive solution exists), it reports that explicitly rather than guessing a plausible-looking but wrong ratio.

A coefficient of 1 is left off the printed equation

I type the reaction in the box, which starts with the propane example, and the balanced line uses an arrow even if I typed an equals sign or a plain arrow made of hyphens. A coefficient of 1 is omitted, so propane stays C3H8 rather than 1C3H8, while 5O2 keeps its 5. Substances are split on plus signs, and the two sides can be separated by an equals sign or an arrow. If an element is missing from one side, the message names that element. If the reaction cannot be balanced, or it has more than one independent balance, I am told to split it into separate reactions instead of being handed a plausible-looking ratio. Charges are not part of this.

Related tools

More: Science & Engineering