OhMyCalc

Chemical Equation Balancer

Balance chemical equations automatically. Enter an unbalanced equation and get the balanced version.

How to Use the Chemical Equation Balancer

  1. Type the unbalanced equation into the input field, e.g. Fe + O2 = Fe2O3.
  2. Separate reactants and products with plus signs (+) and use = as the reaction arrow.
  3. Click Balance — the calculator finds the smallest integer coefficients that satisfy atom conservation.
  4. Review the balanced equation and the verification table showing atom counts on each side.

Quick Reference

FromTo
H2 + O2 = H2O2H2 + O2 = 2H2O
Fe + O2 = Fe2O34Fe + 3O2 = 2Fe2O3
CH4 + O2 = CO2 + H2OCH4 + 2O2 = CO2 + 2H2O
N2 + H2 = NH3N2 + 3H2 = 2NH3
C + O2 = CO2C + O2 = CO2
Al + HCl = AlCl3 + H22Al + 6HCl = 2AlCl3 + 3H2

Use Cases

Formula

A balanced chemical equation obeys the law of conservation of mass: the number of atoms of each element must be equal on both sides of the reaction arrow. Balancing is achieved by finding the smallest set of integer coefficients for each reactant and product such that atom counts match on both sides.

Frequently Asked Questions

Why must chemical equations be balanced?
The law of conservation of mass states that matter cannot be created or destroyed. In a chemical reaction, the total number of atoms of each element must be the same before and after the reaction. An unbalanced equation violates this law and cannot be used for stoichiometric calculations.
How does the balancer work?
The balancer sets up a system of linear equations — one equation per element — where the unknowns are the stoichiometric coefficients. It then solves this system using linear algebra to find the smallest positive integer solution. If no integer solution exists, the equation format may be incorrect or the reaction may not be chemically valid.
What equation format should I use?
Write reactants and products separated by a plus sign (+) and use an equals sign (=) to separate the two sides. For example: Fe + O2 = Fe2O3. Element symbols must start with a capital letter. Subscript numbers follow the element symbol directly (e.g., O2, Fe2O3). Parentheses are supported for polyatomic groups: Ca(OH)2.