Skip to content
Tutorials Center
My learning

Topics

Lesson 8 of 38 · Chemical Equations

Balancing Harder Equations

Balance difficult equations with polyatomic ions, alcohol combustion and several elements, and learn the algebraic method that always works.

Inspection works for many equations, but some resist it: ones where an element appears in three or four substances, or where fractions keep appearing. This lesson adds two tools. First, tactics for tricky cases. Second, an algebraic method that turns balancing into a small system of equations and always finds the answer.

Tactics for tricky equations

1. Treat polyatomic ions as one unit. If SO₄ or OH or PO₄ appears unchanged on both sides, balance it as a group.

Al₂(SO₄)₃ + Ca(OH)₂ → Al(OH)₃ + CaSO₄

Balance Al first: 2Al(OH)₃. Now sulfate: 3 SO₄ on the left, so 3CaSO₄. Then calcium: 3Ca(OH)₂.

Al₂(SO₄)₃ + 3Ca(OH)₂ → 2Al(OH)₃ + 3CaSO₄

Check hydroxide: left 6 OH, right 2 × 3 = 6 OH. Balanced.

2. Count oxygen in the fuel when it contains oxygen. In ethanol, C₂H₅OH, one O atom is already in the fuel.

C₂H₅OH + O₂ → CO₂ + H₂O

C: 2CO₂. H: 6 H in ethanol, so 3H₂O. O on the right: 4 + 3 = 7. The fuel supplies 1, so O₂ must supply 6, which is 3O₂.

C₂H₅OH + 3O₂ → 2CO₂ + 3H₂O

3. Balance the element that moves between substances. Here the oxygen leaves Fe₂O₃ and ends up in CO₂.

Fe₂O₃ + CO → Fe + CO₂

Fe: 2Fe. Carbon: write 1 CO for each CO₂. Oxygen: Fe₂O₃ has 3 O atoms. Each CO picks up one O to become CO₂, so three CO are needed, giving 3CO₂. Check oxygen: left 3 + 3 = 6, right 3 × 2 = 6.

Fe₂O₃ + 3CO → 2Fe + 3CO₂

4. Phosphate with a base.

Ca(OH)₂ + H₃PO₄ → Ca₃(PO₄)₂ + H₂O

Ca: 3Ca(OH)₂. PO₄: 2H₃PO₄. H: left 6 + 6 = 12 H, so 6H₂O (12 H). O check: left 6 + 8 = 14; right 8 + 6 = 14.

3Ca(OH)₂ + 2H₃PO₄ → Ca₃(PO₄)₂ + 6H₂O

The algebraic method

Give each substance an unknown coefficient and write one equation per element. Example:

a C₂H₆ + b O₂ → c CO₂ + d H₂O

Element Equation
C 2a = c
H 6a = 2d
O 2b = 2c + d

Set a = 1. Then c = 2, d = 3, and 2b = 4 + 3 = 7, so b = 3.5. Multiply all by 2 to clear the fraction: a = 2, b = 7, c = 4, d = 6.

2C₂H₆ + 7O₂ → 4CO₂ + 6H₂O

The same idea written as a matrix gives a method that works for any equation: the coefficient vector must satisfy A · x = 0, where each row of A is an element and each column is a substance (reactants positive, products negative).

Python Balance any equation with linear algebra

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The program builds the matrix, finds the null space with sympy, and scales the answer to the smallest whole numbers. If the equation has no valid balance, or more than one independent solution, it returns None instead of guessing.

Practice: spot the error

Some equations look balanced but are not. Use the counter below to hunt for the mistake, then fix it yourself using the tactics above.

Python Find the broken equation

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

When you get stuck, step back and count every element in a small table. Most errors come from a miscount of atoms inside brackets, such as forgetting that Ca(OH)₂ has two oxygens and two hydrogens.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Balance C₂H₅OH + ?O₂ → 2CO₂ + 3H₂O. How many O₂?

    Right side has 4 + 3 = 7 O atoms. The ethanol supplies 1, so O₂ supplies 6, which is 3 molecules.
  2. 2. In the algebraic method, what does each equation express?

    You write one equation per element, saying the atoms of that element on the left equal those on the right.
  3. 3. How many hydroxide (OH) groups are there in 3Ca(OH)₂?

    Each Ca(OH)₂ holds 2 OH, and there are 3 of them, so 6.
  4. 4. Balance Fe₂O₃ + ?CO → 2Fe + ?CO₂. What are the two coefficients?

    Three CO each take one O from Fe₂O₃, giving three CO₂.

Summary

  • Treat unchanged polyatomic ions as single units.
  • Count oxygen already present in the fuel in combustion of alcohols.
  • The algebraic method writes one linear equation per element and always works.
  • Clear fractions by multiplying the whole equation by the denominator.

Next: State Symbols and Ionic Equations