🔬
🔬 Science & engineering

Chemical Equation Balancer (smallest whole-number coefficients)

Results update as you type.

Your numbers

Understanding the chemical equation balancer — concept and principle

A balanced chemical equation has the same number of atoms of each element on both sides, because matter is neither created nor destroyed. This calculator finds the smallest whole-number coefficients for an equation you type, using exact linear algebra.

Balancing propane combustionBalancing propane combustionBalancing propane combustionC3 = 3 × 1H8 = 4 × 2O5 × 2 = 3×2 + 4atoms each side21balancedC₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂OCoefficients 1, 5, 3, 4
Carbon and hydrogen fix 3 CO₂ and 4 H₂O; their 10 oxygen atoms need 5 O₂.

How it is calculated

The principle

Each element gives one linear equation, so balancing is a problem in linear algebra. A properly written reaction has a one-dimensional set of solutions: any multiple of the balanced coefficients also balances, and the smallest whole numbers are chosen by convention. If there is no solution, a formula is wrong; if there are several independent solutions, the equation combines two reactions and needs extra information. Subscripts define the substances, so changing them would change the chemistry.

Worked example

Default input: C3H8 + O2 = CO2 + H2O (propane combustion).

  1. Carbon: 3x₁ = x₃. Hydrogen: 8x₁ = 2x₄. Oxygen: 2x₂ = 2x₃ + x₄.
  2. Set x₁ = 1: x₃ = 3, x₄ = 4, then 2x₂ = 6 + 4 = 10, so x₂ = 5.
  3. Coefficients = 1, 5, 3, 4: C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O.
  4. Atoms on each side = 3 C + 8 H + 10 O = 21; elements involved = 3; net charge — (neutral species).

How to read the result

The coefficients give the mole ratios for stoichiometry: 1 mol of propane needs 5 mol of oxygen and produces 3 mol of CO₂ and 4 mol of water. Use them to calculate reactant amounts, limiting reagents and yields.

Common mistakes

Keep in mind: The balancer checks atoms and charge only. It cannot tell whether a reaction actually happens or which products form.

Frequently asked questions

How do you balance a chemical equation?

Adjust coefficients so each element (and charge) is equal on both sides, ideally to the smallest whole numbers.

Why can't I change subscripts?

Subscripts define the compound; changing them describes a different substance.

What does it mean if no solution exists?

At least one formula is wrong, or the products cannot form from those reactants.

Sources: IUPAC, Compendium of Chemical Terminology (Gold Book): stoichiometry · Zumdahl, S. S. & Zumdahl, S. A., Chemistry, 10th ed. Cengage (balancing chemical equations)

Checked 9 Nov 2026. OpenStax, Chemistry 2e (2019), §4.1 “Writing and Balancing Chemical Equations” (conservation of matter, coefficients not subscripts, smallest whole-number coefficients; net ionic equations balance charge). The algebraic method is standard linear algebra (null space of the element–species matrix).

🔬 All science & engineering tools →🌍 Calculators by country →