Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · Math and study

Chemical equation balancer

Type the equation with an arrow, such as C3H8 + O2 → CO2 + H2O, and the tool adds the numbers in front of each substance: C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O. A table counts every atom on both sides to prove it.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Put an arrow between the sides: H2 + O2 -> H2O. Capital letters matter: Co is cobalt, CO is carbon monoxide.
Try an example
Balanced equation
C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O2 substances on the left, 2 on the right, 3 elements
  • Balanced
  • Smallest whole numbers: 1, 5, 3, 4
  • 21 atoms each side
Atom count check
ElementLeftRight
C33
H88
O1010
Numbers in order
1, 5, 3, 4
Elements checked
C, H, O
Atoms on each side
21
Typed numbers
None typed

How to use the Chemical Equation Balancer

  1. Type the Unbalanced equation. Put an arrow (-> or =) between the sides and a plus sign between substances.
  2. Write each formula with capital letters for elements, such as Fe, Cl or CO. Brackets like Ca(OH)2 and hydrates like CuSO4.5H2O are fine.
  3. Read the balanced equation in the navy panel. The table under it shows the atoms of each element on the left and the right.
  4. Press Copy to keep it, or tap an example to see how a different equation balances.

How do I balance a chemical equation?

To balance an equation, put whole numbers in front of the substances until every element has the same number of atoms on both sides. Do not change the small numbers inside a formula. Those numbers say what the substance is, while the big number in front says how many of it take part.

Take C₃H₈ burning in oxygen. The page example is C3H8 + O2 → CO2 + H2O. The balanced result is C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O. Check it: carbon is 3 on the left and 3 on the right, hydrogen is 8 and 8, and oxygen is 10 and 10.

By hand, most people start with the element that sits in the fewest substances, then fix the others one at a time, and leave a lone element such as oxygen for last. That works well for short equations and gets slow for long ones. The tool does the same job for any size by solving all the counts at once.

If you type your own numbers in front of the substances, the tool ignores them and works out the numbers itself. It tells you in the facts list whether yours matched.

What does balanced mean, and how do I count the atoms?

An equation is balanced when each element appears the same number of times on both sides. Atoms are rearranged in a reaction, not made or lost, so the counts must agree. The atom table in the result shows this for every element in your equation.

To count atoms in a formula, multiply the small number after an element by the big number in front. Brackets multiply everything inside them. In Ca(OH)₂ there is 1 calcium, 2 oxygen and 2 hydrogen. In the balanced equation 3 Ca(OH)₂ + 2 H₃PO₄ → Ca₃(PO₄)₂ + 6 H₂O, the 3 in front of Ca(OH)₂ makes 3 calcium atoms on the left, and Ca₃(PO₄)₂ has 3 on the right. Phosphorus is 2 on each side.

Some salts trap water molecules inside their crystals, and the formula shows it after a raised dot, as in CuSO₄·5H₂O. The 5 counts the water molecules that follow it. The tool understands both a dot and a full stop, so CuSO4.5H2O works. It balances as CuSO₄·5H₂O → CuSO₄ + 5 H₂O, which means each crystal gives off 5 water molecules.

Capital letters matter. Typing Cu means copper, while CU would be read as two separate symbols, and a second letter of a symbol is always small. If you type a symbol that is not an element, the tool tells you which one.

Equations the tool balances, with their numbers
ExampleBalanced equationNumbers
Water2 H₂ + O₂ → 2 H₂O2, 1, 2
Rust4 Fe + 3 O₂ → 2 Fe₂O₃4, 3, 2
PropaneC₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O1, 5, 3, 4
GlucoseC₆H₁₂O₆ + 6 O₂ → 6 CO₂ + 6 H₂O1, 6, 6, 6
HydrateCuSO₄·5H₂O → CuSO₄ + 5 H₂O1, 1, 5
Hard one2 KMnO₄ + 16 HCl → 2 KCl + 2 MnCl₂ + 8 H₂O + 5 Cl₂2, 16, 2, 2, 8, 5

How does the tool find the numbers?

It turns the equation into a small table of atom counts. Each substance is a column and each element is a row. Reactants count as plus and products as minus, so a balanced equation is a set of numbers that makes every row add up to zero. That is a system of linear equations, and the answer is called the null space of the table.

The tool solves it with exact fractions, the way you would on paper, not with decimals. That matters because rounding could turn a 2 into 1.9999. Once it has the answer it multiplies by whatever clears the fractions, then divides by the biggest number that goes into all of them, so you get the smallest whole numbers. A tiny example: 2a = 3b gives a = 3 and b = 2.

Here is a longer one. KMnO4 and HCl react to give four products. The tool finds 2 KMnO₄ + 16 HCl → 2 KCl + 2 MnCl₂ + 8 H₂O + 5 Cl₂ with the numbers 2, 16, 2, 2, 8, 5, and the table confirms each of the 5 elements matches.

For Al₂(SO₄)₃ breaking into its elements, the table has 3 rows (Al, S, O). The numbers it finds are 1, 2, 3, 12 for the substances in the order typed.

Why does the balancer say my equation cannot be balanced?

Usually a formula has a typing mistake. Check that every element is on both sides. If it is not, the tool says which one. For H2 + O2 → H2S it answers: "O is only on the left side. Every element must appear on both sides, so check the formulas."

Some equations hide two reactions in one. For H2 + O2 → H2O + H2O2 the tool says: "This equation can be balanced in 2 independent ways, so it is really 2 reactions mixed together. Split it into separate equations." Write them as two equations and balance each one.

Charges are not supported. Equations with ions, such as Fe³⁺, need the electric charge to balance too, and this tool counts atoms only. It also takes up to 12 substances. Steps with more are better split into separate reactions.

For a school task, copy the result and then check the atom table. If the numbers on the two sides match for every element, the equation is balanced. Then use the molar mass calculator to turn the substances into grams, or the percent yield calculator to compare what you made with what the equation predicts.

Use it with

Questions

How do you balance a chemical equation?

Put whole numbers in front of the substances until each element has the same number of atoms on both sides. C3H8 + O2 → CO2 + H2O becomes C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O.

What is the balanced equation for water?

2 H₂ + O₂ → 2 H₂O. Two hydrogen molecules and one oxygen molecule make two water molecules.

Can I change the small numbers in a formula?

No. The small numbers define the substance. Only the big numbers in front can change.

Does the tool work with brackets and hydrates?

Yes. 3 Ca(OH)₂ + 2 H₃PO₄ → Ca₃(PO₄)₂ + 6 H₂O has brackets, and CuSO₄·5H₂O → CuSO₄ + 5 H₂O has a hydrate.

Why do I get an error for an element on one side?

An element cannot appear from nowhere. O is only on the left side. Every element must appear on both sides, so check the formulas.

Does it balance ions and charges?

No. It balances atoms of neutral substances only, up to 12 substances.

The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.