Chemical Equation Balancer

Type an unbalanced chemical equation and get the correct coefficients automatically by solving the element matrix.

Separate species with + and the two sides with -> or =. Example: Fe + O2 -> Fe2O3

Enter the values to see the result here.

Formula

Each element gives one linear equation: the atoms it contributes on the left minus the atoms on the right must be zero. For coefficient vector x\mathbf{x} and matrix AA of atom counts (products negative):

A x=0A\,\mathbf{x} = \mathbf{0}

The tool solves this system exactly with fractions, takes the one-dimensional solution and scales it to the smallest whole numbers.

Worked example

Balance C3H8+O2→CO2+H2O\mathrm{C_3H_8 + O_2 \to CO_2 + H_2O}.

  • Carbon: 3a=c3a = c. Hydrogen: 8a=2d8a = 2d. Oxygen: 2b=2c+d2b = 2c + d.
  • Take a=1a = 1: then c=3c = 3, d=4d = 4 and 2b=6+42b = 6 + 4, so b=5b = 5.
  • Result: C3H8+5 O2→3 CO2+4 H2O\mathrm{C_3H_8 + 5\,O_2 \to 3\,CO_2 + 4\,H_2O}.

Check oxygen: 5×2=105 \times 2 = 10 on the left and 3×2+4=103 \times 2 + 4 = 10 on the right.

Common mistakes

  • Changing a subscript instead of a coefficient. Subscripts define the substance; only coefficients may change.
  • Typing formulas in the wrong case, such as co2 or CL2. Each element starts with a capital letter.
  • Omitting a product or reactant, which makes the equation impossible to balance.
  • Forgetting the charges in ionic equations. Check that charge is balanced as well as atoms.

Frequently asked questions

Why must an equation be balanced?

Atoms are neither created nor destroyed in a chemical reaction, so each element must appear the same number of times on both sides. The coefficients show the ratios in which substances react, which you need for every mole and mass calculation.

What can the balancer not do?

It balances atoms only, so it cannot balance charge in ionic equations or decide whether a reaction actually happens. Redox equations that need electrons or H+ and OH- can often still be balanced by atoms alone if you include water.

Why do some equations have no answer?

If an element appears on only one side, or the species are not chemically consistent, no positive whole-number coefficients exist. If the system has more than one independent solution, the equation is really two or more reactions and the tool asks you to split them.

Related calculators