Tools & Calculators
Practice
Tools & Calculators

Chemical Equation Balancer (with Atom Count Check)

Type an unbalanced chemical equation and this balancer finds the smallest whole-number coefficients, then checks every element on both sides. It handles parentheses, hydrates, ions, electrons and redox reactions.

Loading the chemical equation balancer…

How to use the equation balancer

  1. Type the reactants, an arrow, then the products: C3H8 + O2 -> CO2 + H2O. An equals sign or → works too.
  2. Use capital letters exactly as in the formula. Co is cobalt, CO is carbon monoxide.
  3. Write charges with a caret so they aren’t read as plus signs: Fe^3+, SO4^2-. Write electrons as e-.
  4. States like (aq) are fine, and any coefficients you typed are ignored.
  5. Read the balanced equation at the top and the atom count check below it.

Worked example: burning propane

Balance C₃H₈ + O₂ → CO₂ + H₂O by inspection.

  1. Carbon first. Propane has 3 C, so put a 3 in front of CO₂: C₃H₈ + O₂ → 3CO₂ + H₂O.
  2. Hydrogen next. Propane has 8 H, and each water has 2, so put a 4 in front of H₂O: C₃H₈ + O₂ → 3CO₂ + 4H₂O.
  3. Oxygen last. The right side now has 3 × 2 + 4 × 1 = 10 O atoms. O₂ comes in pairs, so use 5 O₂.
  4. Check. C₃H₈ + 5O₂ → 3CO₂ + 4H₂O. Carbon 3 = 3, hydrogen 8 = 8, oxygen 10 = 10.

Leaving oxygen for last works for most combustion reactions, because oxygen shows up alone as O₂ and you can set its coefficient freely at the end.

Why equations have to balance

Atoms aren’t created or destroyed in a chemical reaction; they only rearrange. That’s the law of conservation of mass. A balanced equation has the same number of each kind of atom on both sides, and for ionic equations, the same total charge.

The coefficients also tell you the mole ratio, which is what every stoichiometry problem uses. In 2H₂ + O₂ → 2H₂O, 2 moles of hydrogen react with 1 mole of oxygen to make 2 moles of water. Get the coefficients wrong and every later calculation is off.

Rules for balancing

  • Change coefficients, never subscripts. Subscripts are part of the formula. Changing H₂O to H₂O₂ turns water into hydrogen peroxide.
  • Treat polyatomic ions as a unit when they appear unchanged on both sides, such as SO₄ in Al₂(SO₄)₃ + Ca(OH)₂ → Al(OH)₃ + CaSO₄.
  • Use the smallest whole numbers. 4H₂ + 2O₂ → 4H₂O has equal atoms, but it should be reduced to 2H₂ + O₂ → 2H₂O.
  • Fractions are a step, not an answer. If you end up with 13/2 O₂, multiply every coefficient by 2.

How the balancer works

Inspection works for simple equations but gets slow for something like KMnO₄ + HCl → KCl + MnCl₂ + H₂O + Cl₂. The balancer uses the algebraic method instead. It gives each formula an unknown coefficient (a, b, c…) and writes one equation per element. For that reaction:

Element Equation
K a = c
Mn a = d
O 4a = e
H b = 2e
Cl b = c + 2d + 2f

Setting a = 2 and solving gives c = 2, d = 2, e = 8, b = 16 and f = 5: 2KMnO₄ + 16HCl → 2KCl + 2MnCl₂ + 8H₂O + 5Cl₂. The calculator solves the system exactly with fractions, so it never rounds and never guesses.

Balancing ionic and redox equations

For an ionic equation, charge has to balance as well as atoms. Permanganate oxidizing iron(II) in acid:

MnO4^- + Fe^2+ + H^+ -> Mn^2+ + Fe^3+ + H2O

balances to MnO₄⁻ + 5Fe²⁺ + 8H⁺ → Mn²⁺ + 5Fe³⁺ + 4H₂O. The charge is +17 on both sides. The 5:1 ratio of iron to manganese comes from the electrons: each Fe²⁺ loses 1 electron, and each Mn gains 5 going from +7 to +2.

You can also balance half-reactions by including electrons, such as Cr2O7^2- + H^+ + e- -> Cr^3+ + H2O.

When an equation won’t balance

  • A mistyped formula. Check capitals and subscripts, like NaCl vs. NaCl2.
  • A missing product or reactant. If an element appears on only one side, something is missing, often H₂O or O₂.
  • Two reactions in one. Some equations can be balanced more than one way because they mix two separate reactions. Balance each one on its own.

Keep practicing

Chemical equation balancer FAQ

How do you balance a chemical equation?

Count each element’s atoms on both sides, then change coefficients (never subscripts) until every element matches. Start with the element in the fewest formulas, leave hydrogen and oxygen for last, and reduce to the smallest whole numbers.

Why can't I change the subscripts?

Subscripts define the substance. Changing H2O to H2O2 turns water into hydrogen peroxide. Coefficients only change how many molecules there are.

How do I enter ions and electrons?

Put a caret before the charge, like Fe^3+, Cu^2+ or MnO4^-, so the plus sign isn’t read as a separator. Write electrons as e-. The balancer then balances charge as well as atoms.

Why does it say my equation can't be balanced?

Usually a formula is mistyped, a product or reactant is missing, or an element shows up on only one side. Check capital letters too: Co is cobalt, CO is carbon monoxide.