Chemical Equation Balancer
ChemistryBalance chemical equations automatically. Enter an unbalanced equation and get stoichiometric coefficients, the balanced equation, and atom-by-atom verification for any reaction.
Balanced Equation
What is a Equation Balancer?
The Chemical Equation Balancer finds stoichiometric coefficients for an unbalanced chemical equation. Enter an equation like "Fe + O2 -> Fe2O3" and get the balanced form (4Fe + 3O₂ → 2Fe₂O₃), all coefficients, and an atom-by-atom balance check.
Chemical equations are balanced by finding integer coefficients that satisfy conservation of mass for every element. The balancer uses Gaussian elimination over rational numbers on the stoichiometric matrix — a systematic algebraic method that works for any number of species and elements, including complex reactions that cannot be balanced by inspection. The formula parser handles nested parentheses (Ca3(PO4)2, Al2(SO4)3) and multi-letter element symbols.
Balanced coefficients directly give stoichiometric ratios for yield calculations — the Percent Yield Calculator and Theoretical Yield Calculator both depend on the balanced equation's mole ratios. For the reaction outcome in solution, the Net Ionic Equation Calculator writes the ionic form of the same reaction.
How to use this Equation Balancer calculator
- Write the unbalanced equation with formulas separated by '+' and sides separated by '->':
H2 + O2 -> H2O - Use plain numbers as subscripts: H2O (not H₂O), Fe2O3 (not Fe₂O₃).
- Use parentheses for polyatomic groups: Ca3(PO4)2, Al2(SO4)3.
- Press Calculate and read the Balanced Equation — copy directly for use.
- Check the Atom Balance Verification — all elements should show equal counts on both sides.
- Use the Coefficients for stoichiometric calculations with the Theoretical Yield Calculator.
Formula & Methodology
Algebraic balancing via stoichiometric matrix:1. Parse each formula: Ca3(PO4)2 → {Ca:3, P:2, O:8} 2. Build matrix M (n_elements × n_species): Reactant atoms: negative sign Product atoms: positive sign For: Fe + O2 -> Fe2O3 Elements: Fe, O; Species: Fe, O2, Fe2O3 (reactants negative) M = [ [-1, 0, 2], ← Fe row [ 0, -2, 3] ] ← O row 3. Find null space of M (vector x such that Mx = 0): Row reduce to RREF using rational arithmetic Free variable = 1 → solve for pivot variables Solution: Fe=4, O2=3, Fe2O3=2 4. Verify: Fe: 4×1 = 2×2 (4=4 ✓); O: 3×2 = 2×3 (6=6 ✓)Worked example — thermite reaction (iron oxide reduction): Fe₂O₃ + Al → Al₂O₃ + Fe (used in thermite welding of railway tracks)Entered: Fe2O3 + Al -> Al2O3 + Fe Matrix: [Fe2O3, Al, Al2O3, Fe] Fe: [-2, 0, 0, 1] O: [-3, 0, 3, 0] Al: [ 0, -1, 2, 0] Null space solution: Fe2O3=1, Al=2, Al2O3=1, Fe=2 Balanced: Fe₂O₃ + 2Al → Al₂O₃ + 2Fe Check: Fe 2=2 ✓; O 3=3 ✓; Al 2=2 ✓ Coefficients: Fe2O3: 1, Al: 2, Al2O3: 1, Fe: 2Thermite welding (aluminothermic welding) is the standard method for joining railway tracks in India — used by Indian Railways (RDSO specification IRS-T-19) for 400+ km of new track welding per year. The highly exothermic reaction (ΔH = −852 kJ/mol) generates liquid iron at ~2500°C that fills the gap between rails. Indian Railways is the world's 4th largest rail network (68,000 km) — thermite welding is performed by IRCON, Kalindee Rail Nirman, and Dedicated Freight Corridor Corporation contractors.
Frequently Asked Questions