Chemical Equation Balancer

Type a chemical equation and get it balanced, with the atoms of every element counted on both sides and the working shown step by step. Brackets, hydrates and state symbols all work. Then practice balancing equations yourself with live atom counters that turn green when each element matches.

Try:
How to type an equation
  • Use ->, → or = as the arrow and + between substances.
  • Capital letters matter: Co is cobalt, CO is carbon monoxide.
  • Brackets work: Ca(OH)2, Fe2(SO4)3, K3[Fe(CN)6]. Hydrates use a dot: CuSO4·5H2O (or CuSO4*5H2O).
  • State symbols such as (aq) or (g) are allowed and kept. Numbers you type in front of formulas are recalculated.
  • Ionic charges (Na⁺, SO₄²⁻) aren’t supported yet: write neutral compounds.

Balanced equation

C3H8 +5O2 yields 3CO2 +4H2O

Every element has the same number of atoms on both sides.
Atoms of each element before and after balancing
ElementUnbalanced (left · right)Balanced (left · right)
Carbon (C)3 · 1 (not equal)3 · 3 (equal)
Hydrogen (H)8 · 2 (not equal)8 · 8 (equal)
Oxygen (O)2 · 3 (not equal)10 · 10 (equal)
How the coefficients were found
  1. Give each substance an unknown coefficient: a for C3H8, b for O2, c for CO2, d for H2O.
  2. Atoms are conserved, so each element gives one equation (left side = right side):
    • C: 3a = c
    • H: 8a = 2d
    • O: 2b = 2c + d
  3. The smallest whole numbers that solve all of them at once: a = 1, b = 5, c = 3, d = 4. These are the coefficients (a coefficient of 1 isn’t written).

Practice balancing equations

20 real reactions, from easy to hard. Use the + and − buttons to set each coefficient, watch the atom counters, and press Check. Stuck? A hint tells you which element is still off.

Reaction 1 of 20
Easy
Solved 0/20

Making water from hydrogen and oxygen

1
H2
1
O2
yields
1
H2O

Atoms on each side (left · right)

  • H2 · 2(equal)
  • O2 · 1(not equal)

How to balance chemical equations

A chemical equation is balanced when every element has the same number of atoms on both sides of the arrow. Atoms are only rearranged in a reaction, never created or destroyed, which is the law of conservation of mass. Balance an equation by hand in five steps:

  1. 1

    Write the unbalanced equation with correct formulas

    Write every reactant and product with its correct chemical formula, such as H₂O for water and O₂ for oxygen gas. From now on you may only change the coefficients in front of formulas, never the small subscript numbers inside them.

  2. 2

    Count the atoms of each element on both sides

    List each element and count its atoms on the left and right. A subscript after brackets multiplies everything inside them: Ca(OH)₂ has 1 Ca, 2 O and 2 H.

  3. 3

    Balance one element at a time

    Start with an element that appears in only one substance on each side, usually a metal or carbon. Put a coefficient in front of a formula so its atoms match. Leave hydrogen and oxygen until later, and elements that appear on their own (O₂, H₂, Fe) until last, because you can adjust them without upsetting anything else.

  4. 4

    Recount after every change

    A coefficient multiplies every atom in that formula, so each change can unbalance another element. Recount all the elements and keep going until every one matches.

  5. 5

    Use the smallest whole numbers, then check

    If every coefficient can be divided by the same number, divide them. If you ended up with a fraction such as ½O₂, multiply everything by 2. Finish with one last count of every element on both sides.

Worked examples

Iron reacting with oxygen: Fe + O₂ → Fe₂O₃

  1. Count: Fe is 1 on the left and 2 on the right; O is 2 on the left and 3 on the right.
  2. Balance oxygen first, because Fe can be fixed last. The smallest number that both 2 and 3 divide into is 6, so put 3 in front of O₂ (3 × 2 = 6) and 2 in front of Fe₂O₃ (2 × 3 = 6).
  3. Now there are 2 × 2 = 4 iron atoms on the right, so put 4 in front of Fe.
  4. Check: Fe 4 = 4, O 6 = 6.

4Fe +3O2 yields 2Fe2O3

Atoms on each side: Fe 4 = 4 · O 6 = 6 · Open in the balancer

Burning propane: C₃H₈ + O₂ → CO₂ + H₂O

  1. Balance carbon first: 3 carbon atoms in C₃H₈ need 3CO₂.
  2. Balance hydrogen next: 8 hydrogen atoms need 4H₂O (4 × 2 = 8).
  3. Count oxygen on the right: 3 × 2 in CO₂ plus 4 × 1 in H₂O makes 10, so the left needs 5O₂ (5 × 2 = 10).
  4. Check: C 3 = 3, H 8 = 8, O 10 = 10.

C3H8 +5O2 yields 3CO2 +4H2O

Atoms on each side: C 3 = 3 · H 8 = 8 · O 10 = 10 · Open in the balancer

Making calcium phosphate: Ca(OH)₂ + H₃PO₄ → Ca₃(PO₄)₂ + H₂O

  1. Treat the phosphate group PO₄ as one unit, because it stays together. Ca₃(PO₄)₂ has 3 Ca and 2 PO₄.
  2. Put 3 in front of Ca(OH)₂ for the calcium and 2 in front of H₃PO₄ for the phosphate.
  3. Hydrogen on the left is now 3 × 2 + 2 × 3 = 12, so put 6 in front of H₂O (6 × 2 = 12).
  4. Check oxygen: left 3 × 2 + 2 × 4 = 14, right 2 × 4 + 6 = 14. Every element matches.

3Ca(OH)2 +2H3PO4 yields Ca3(PO4)2 +6H2O

Atoms on each side: Ca 3 = 3 · O 14 = 14 · H 12 = 12 · P 2 = 2 · Open in the balancer

Common mistakes

  • Changing subscripts instead of coefficients. Turning H₂O into H₂O₂ to "fix" oxygen makes hydrogen peroxide, a different substance.
  • Forgetting that a subscript after brackets multiplies everything inside: Fe₂(SO₄)₃ contains 12 oxygen atoms, not 4.
  • Forgetting that a coefficient multiplies the whole formula: 3H₂O means 6 hydrogen atoms and 3 oxygen atoms.
  • Writing diatomic elements as single atoms. Hydrogen, nitrogen, oxygen, fluorine, chlorine, bromine and iodine are written H₂, N₂, O₂, F₂, Cl₂, Br₂ and I₂.
  • Stopping at a balanced equation that is not in lowest terms, such as 4H₂ + 2O₂ → 4H₂O. Divide by 2 to get 2H₂ + O₂ → 2H₂O.
  • Balancing oxygen first in a combustion reaction. Do carbon and hydrogen first, then oxygen, which appears on its own as O₂.

Keep going

Balancing equations: frequently asked questions

What does it mean to balance a chemical equation?

A balanced equation has the same number of atoms of each element on both sides of the arrow. Atoms are rearranged in a chemical reaction, never created or destroyed (the law of conservation of mass), so the coefficients in front of each formula are chosen to make every element match.

Can you change the subscripts to balance an equation?

No. Subscripts are part of a substance’s formula, so changing them changes the substance: H₂O is water, H₂O₂ is hydrogen peroxide. Only the coefficients in front of whole formulas may change.

Why are coefficients the smallest whole numbers?

Any multiple of a balanced equation is also balanced, so by convention it is written with the smallest whole numbers. 2H₂ + O₂ → 2H₂O and 4H₂ + 2O₂ → 4H₂O describe the same ratio, and the first is the standard form.

How does this equation balancer work?

It gives every substance an unknown coefficient and writes one equation per element, saying the atoms on the left equal the atoms on the right. It solves that system exactly, with fractions rather than rounded decimals, then scales the answer to the smallest whole numbers. The steps are shown under every result.

How do I type brackets, hydrates and states?

Type formulas as usual with capital letters for each element: Ca(OH)2, Fe2(SO4)3 or K3[Fe(CN)6]. For a hydrate use a dot or an asterisk, as in CuSO4·5H2O or CuSO4*5H2O. State symbols such as (s), (l), (g) and (aq) are allowed. Use ->, → or = for the arrow.

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

Usually a formula is mistyped, a substance is missing, or an element appears on only one side. Check capital letters (Co is cobalt, CO is carbon monoxide) and subscripts. If an equation could balance in several independent ways, it is probably two reactions written as one, so balance each separately.

Can it balance ionic or redox equations with charges?

Not yet. The balancer works with neutral formulas, which covers most school equations, including redox reactions written with full compounds, such as KMnO₄ with HCl. Ionic equations with charges like Fe³⁺ need charge to balance as well as atoms.