Balancing Chemical Equations, Explained

After reading this you can turn any unbalanced chemical equation into the smallest set of whole-number coefficients, check the result atom by atom, and know when the machine cannot help you.

A chemical equation is a claim about bookkeeping. Atoms are neither created nor destroyed in a reaction, so every atom that appears on the left must reappear on the right. Balancing is the act of finding the multipliers (coefficients) that make the counts match.

Take the default equation, H2 + O2 = H2O. As written it lies. The left has 2 oxygen atoms, the right has 1. Multiply until they agree and you get:

2\,\text{H}_2 + \text{O}_2 \rightarrow 2\,\text{H}_2\text{O}

Now both sides carry 4 hydrogen atoms and 2 oxygen atoms. That equality, checked element by element, is the whole game.

What balancing actually enforces

The rule is conservation of mass, expressed one element at a time. If a coefficient is a number placed in front of a formula, then for each element the sum of (coefficient times subscript) on the left must equal the same sum on the right.

For hydrogen in the water example: left side is 2 \times 2 = 4 from 2 H2, right side is 2 \times 2 = 4 from 2 H2O. Equal. For oxygen: left is 1 \times 2 = 2 from O2, right is 2 \times 1 = 2 from 2 H2O. Equal.

Notice what balancing does not touch. Subscripts inside a formula (the 2 in H2O) are fixed by chemistry: water is H2O, never HO or H2O2. You only ever adjust the numbers in front.

If you change a subscript to force a balance, you have invented a different substance. Balancing that produces H2O2 where you wanted H2O has not balanced the reaction, it has changed the reaction.

When to use this, and when it cannot decide for you

Use a balancer whenever you know the reactants and products and want the coefficients: combustion, precipitation, acid-base neutralization, single and double replacement. It is the first step before any mass or mole calculation, which is why it feeds straight into the Stoichiometry Calculator.

The tool cannot tell you what the products are. If you type only reactants, there is nothing to balance against. It also cannot resolve a reaction that is genuinely ambiguous. Some redox reactions admit more than one balanced form because two independent processes are lumped together, and the solver will report that the answer is not unique rather than guess.

For ionic equations with charges, conservation of charge is a second constraint on top of atom counts. Treat the electron as one more "element" to keep the charge books straight.

The math: a null space of the element matrix

Line up the species left to right and assign each an unknown coefficient x_1, x_2, \ldots. Write one equation per element. Move everything to one side so products carry a minus sign. For H2 + O2 = H2O with coefficients x_1, x_2, x_3:

\begin{aligned} \text{H:}\quad & 2x_1 + 0x_2 - 2x_3 = 0 \\ \text{O:}\quad & 0x_1 + 2x_2 - 1x_3 = 0 \end{aligned}

Here each row is one element. The coefficient of a species in a row is (its subscript for that element), positive on the reactant side and negative on the product side. Stack the rows into a matrix A, and the balanced coefficients are any vector x with A x = 0.

That set of solutions is called the null space of A. A properly posed equation has a one-dimensional null space: every valid coefficient vector is a scalar multiple of one basic solution. The solver finds that direction, then scales it to the smallest positive integers by clearing denominators with a least common multiple and dividing out the greatest common divisor.

A one-dimensional null space is why a balanced equation is unique up to a single overall factor. If the null space has dimension 2 or more, no single balance exists and the reaction must be split into independent half-reactions.

Worked example: burning ethane

Balancing C2H6 + O2 = CO2 + H2O

This is the demo sample. Assign coefficients a\,\text{C}_2\text{H}_6 + b\,\text{O}_2 \rightarrow c\,\text{CO}_2 + d\,\text{H}_2\text{O} and write one equation per element.

  1. Carbon: 2a = c.
  2. Hydrogen: 6a = 2d, so d = 3a.
  3. Oxygen: 2b = 2c + d.
  4. Fix a = 1. Then c = 2 and d = 3.
  5. Substitute into the oxygen equation: 2b = 2(2) + 3 = 7, so b = 3.5.
  6. Clear the fraction by multiplying everything by 2: a=2,\ b=7,\ c=4,\ d=6.

The balanced equation is:

2\,\text{C}_2\text{H}_6 + 7\,\text{O}_2 \rightarrow 4\,\text{CO}_2 + 6\,\text{H}_2\text{O}

Check each element. Carbon: left 2 \times 2 = 4, right 4 \times 1 = 4. Hydrogen: left 2 \times 6 = 12, right 6 \times 2 = 12. Oxygen: left 7 \times 2 = 14, right 4 \times 2 + 6 \times 1 = 14. All three match.

Atom count for 2 C2H6 + 7 O2 = 4 CO2 + 6 H2O
ElementLeft countRight countBalanced?
C44yes
H1212yes
O1414yes

The balanced ethane combustion is 2 C2H6 + 7 O2 = 4 CO2 + 6 H2O. Any common multiple such as 4, 14, 8, 12 also balances, but it is not the smallest whole-number set. The tool always divides out the common factor, so it reports 2, 7, 4, 6.

Reading the result and its atom check

A trustworthy balancer gives you two things: the coefficients and the per-element tally. Read the tally first. If any element shows unequal counts, the coefficients are wrong no matter how tidy they look.

Confirm the coefficients are reduced. The set 4, 14, 8, 12 balances ethane combustion just as well as 2, 7, 4, 6, but it shares a common factor of 2. The convention is the smallest positive integers, so 2, 7, 4, 6 is the reported answer. Dividing by the greatest common divisor (here 2) reduces it.

Each element has equal reactant and product bars, the visual signature of a balanced equation.

Once coefficients are set, they are mole ratios. The equation reads: 2 moles of ethane react with 7 moles of oxygen to give 4 moles of carbon dioxide and 6 moles of water. Convert those moles to grams with the Molar Mass Calculator and the Mole Calculator.

Common mistakes

The errors below account for most wrong answers.

Editing subscripts
Changing H2O to H2O2 to force a match. Only the front coefficient may change.
Forgetting polyatomic groups
In Ca(NO3)2 there are 2 nitrogen and 6 oxygen atoms. The subscript 2 multiplies everything inside the parentheses.
Leaving fractions in the final answer
A coefficient of 3.5 is a valid intermediate but not a final answer. Multiply through to clear it.
Ignoring the state of oxygen and diatomics
Elemental oxygen is O2, not O. Hydrogen, nitrogen, and the halogens are also diatomic as free elements.
Not reducing
Coefficients with a shared factor greater than 1 are technically balanced but not in lowest terms.

Balance the element that appears in the fewest species first, and leave a lone free element (like O2) for last. That single habit turns most hand-balances into two or three moves.

Related tools

Balancing is the gateway to quantitative chemistry. After you have coefficients, these tools carry the numbers forward.

Frequently asked questions

Why can I write "=" or "->" between the two sides?

Both symbols mark the same boundary between reactants and products. The solver treats them identically. A double arrow would indicate reversibility, which does not change the atom bookkeeping.

What does it mean when the tool says the equation cannot be balanced?

Either the products cannot be formed from the reactants without a missing species, or the reaction combines two independent processes so the null space has dimension 2 or more. Split it into separate reactions or add the missing species.

Can coefficients be zero or negative?

No. A zero coefficient means a species does not participate, so remove it from the equation. A negative coefficient would move a species to the other side. The reported answer is always positive integers.

How do I balance a reaction with electric charge?

Add charge as an extra conservation row: the total charge on the left must equal the total charge on the right. Treat electrons as a species in half-reactions so both atoms and charge balance.

Are the coefficients the same as the number of grams?

No. Coefficients are mole ratios, not masses. Two moles of ethane and seven moles of oxygen react, but their masses differ because their molar masses differ. Convert moles to grams separately.