Balancing Equations

Adjust coefficients and watch atom counts on each side until the equation balances

Beginner
1
CH4
+
1
O2
1
CO2
+
1
H2O

Not balanced yet. H: 4 on the left, 2 on the right; O: 2 on the left, 3 on the right.

Atom count per element

Reactants Products
C
1
1
H
4
2
O
2
3

Reactants

7 atoms in total

1 × CH4

CHHHH

1 × O2

OO

Products

6 atoms in total

1 × CO2

COO

1 × H2O

OHH

Why equations must balance

A chemical equation is a bookkeeping statement. In a reaction, bonds break and new bonds form, but the atoms themselves are neither created nor destroyed. If four hydrogen atoms go in, four hydrogen atoms must come out, just arranged into different molecules. An equation is balanced when every element has the same number of atoms on the reactant side as on the product side.

You balance an equation by choosing coefficients, the numbers in front of each formula. The coefficient multiplies every atom in that formula: 3H₂O contains 6 hydrogen atoms and 3 oxygen atoms. You never change a subscript, because H₂O₂ is hydrogen peroxide, not "more water".

By convention the coefficients are the smallest whole numbers that work. 4H₂ + 2O₂ → 4H₂O is balanced, but every coefficient shares a factor of 2, so it is written 2H₂ + O₂ → 2H₂O. The balanced coefficients are also the mole ratios you use in every later stoichiometry calculation.

Atoms are conserved

A reaction only rearranges atoms into new molecules. Every atom on the left must reappear on the right, so each element has the same count on both sides.

Coefficients, not subscripts

A coefficient counts whole molecules (2H₂O is two water molecules). Subscripts define which substance it is; changing them changes the chemical, not the amount.

Mass follows automatically

Each atom keeps its mass, so once the atoms balance, the total mass of reactants equals the total mass of products (Lavoisier’s law).

It is a linear system

One equation per element, one unknown per species. A single reaction has a one-dimensional family of solutions; the answer is the one with the smallest whole numbers.

Key formulas

Atom balance, one equation per element

Σreactants νᵢ · nₑ,ᵢ = Σproducts νⱼ · nₑ,ⱼ   for every element e

νᵢ
coefficient of species i
nₑ,ᵢ
number of atoms of element e in one formula unit of species i

Conservation of mass

Σreactants νᵢ · Mᵢ = Σproducts νⱼ · Mⱼ

Mᵢ
molar mass of species i (g/mol)

Example: methane combustion

a CH₄ + b O₂ → c CO₂ + d H₂O  ⇒   C: a = c,  H: 4a = 2d,  O: 2b = 2c + d  ⇒   a = 1, b = 2, c = 1, d = 2

Balanced presets

UnbalancedBalancedReaction type
H₂ + O₂ → H₂O2H₂ + O₂ → 2H₂OSynthesis
N₂ + H₂ → NH₃N₂ + 3H₂ → 2NH₃Synthesis (Haber process)
CH₄ + O₂ → CO₂ + H₂OCH₄ + 2O₂ → CO₂ + 2H₂OCombustion
C₃H₈ + O₂ → CO₂ + H₂OC₃H₈ + 5O₂ → 3CO₂ + 4H₂OCombustion
Fe + O₂ → Fe₂O₃4Fe + 3O₂ → 2Fe₂O₃Synthesis (rusting)
Al + HCl → AlCl₃ + H₂2Al + 6HCl → 2AlCl₃ + 3H₂Single displacement
KClO₃ → KCl + O₂2KClO₃ → 2KCl + 3O₂Decomposition
CO₂ + H₂O → C₆H₁₂O₆ + O₂6CO₂ + 6H₂O → C₆H₁₂O₆ + 6O₂Photosynthesis
Ca(OH)₂ + H₃PO₄ → Ca₃(PO₄)₂ + H₂O3Ca(OH)₂ + 2H₃PO₄ → Ca₃(PO₄)₂ + 6H₂ONeutralisation

A reliable method by hand

  1. Write the correct formula for every reactant and product. Never change these again.
  2. Balance elements that appear in only one species on each side first (usually metals, then carbon).
  3. Balance hydrogen next, then oxygen last, because oxygen often appears in several species (O₂, CO₂ and H₂O).
  4. Treat a polyatomic ion that stays intact, like SO₄ or PO₄, as a single unit.
  5. If you end up needing a half (for example 7/2 O₂), multiply every coefficient by 2.
  6. Finish by counting every element on both sides, and divide out any common factor.

How to use this visualizer

  1. 1
    Pick a preset reaction, or type your own equation using -> or = for the arrow (parentheses, square brackets and hydrate dots such as CuSO4·5H2O are understood).
  2. 2
    Use the + and − buttons above each formula to change its coefficient. The equation, the atom-count bars and the molecule pictures update immediately.
  3. 3
    Compare the blue (reactant) and violet (product) bars for each element. A green tick means that element is balanced.
  4. 4
    When every element balances, the banner turns green and shows that the mass of reactants equals the mass of products.
  5. 5
    Stuck? Press Show solution to see the system of element equations and the smallest whole-number coefficients that solve it.

Common mistake: changing subscripts

To balance H₂ + O₂ → H₂O it is tempting to write H₂O₂ on the right, since that has two oxygens. But H₂O₂ is hydrogen peroxide, a different substance. Only coefficients may change: 2H₂ + O₂ → 2H₂O.

Practice problems

Problem 1: Butane combustion

Balance the combustion of butane: C₄H₁₀ + O₂ → CO₂ + H₂O.
Show solution

Carbon: 4 C on the left, so 4CO₂ on the right.

Hydrogen: 10 H on the left, so 5H₂O on the right.

Oxygen on the right: 4 × 2 + 5 × 1 = 13 O, so 13/2 O₂ on the left.

C₄H₁₀ + 13/2 O₂ → 4CO₂ + 5H₂O; multiply everything by 2 to clear the fraction.

Check: C 8 = 8, H 20 = 20, O 26 = 16 + 10.

2C₄H₁₀ + 13O₂ → 8CO₂ + 10H₂O

Problem 2: Blast furnace

In a blast furnace, iron(III) oxide is reduced by carbon monoxide: Fe₂O₃ + CO → Fe + CO₂. Balance it, then check that mass is conserved using Fe = 55.845, C = 12.011 and O = 15.999 g/mol.
Show solution

Iron: 2 Fe on the left, so 2Fe on the right.

Each CO takes one O to become CO₂, and Fe₂O₃ gives up 3 O, so 3CO → 3CO₂.

Check: Fe 2 = 2, C 3 = 3, O 3 + 3 = 6 = 3 × 2.

Left: 159.687 + 3 × 28.010 = 159.687 + 84.030 = 243.717 g

Right: 2 × 55.845 + 3 × 44.009 = 111.690 + 132.027 = 243.717 g

Fe₂O₃ + 3CO → 2Fe + 3CO₂ (243.717 g on each side)

Related visualizations

Discussion

Questions, ideas or a different approach? Join the conversation.