Chemical Equation Balancer
Enter an unbalanced equation and get the smallest whole-number coefficients, solved with linear algebra — not guesswork.
Use + between species and -> or = as the arrow. Hydrates: CuSO4.5H2O.
Free Chemical Equation Balancer
Stuck balancing a chemical equation by trial and error? Our free Chemical Equation Balancer finds the correct coefficients instantly. Type your unbalanced equation using reactant and product formulas, and it solves for the smallest whole-number coefficients using linear algebra — not guesswork — so the answer is always mathematically correct.
It handles nested formulas and hydrates like Ca(OH)₂ or CuSO₄·5H₂O, and shows a verification table confirming that every element's atom count matches on both sides once balanced. If your equation is already balanced, it tells you so; if it can't be balanced as written, it explains why instead of returning a wrong answer.
Built for chemistry students and anyone double-checking a reaction, it runs entirely in your browser. No sign-up, no downloads, no limits. See the About and FAQ sections below for more.
About the Chemical Equation Balancer
How It Works & Methodology
Balancing a chemical equation means finding coefficients that make the number of atoms of each element equal on both sides. This tool builds a matrix from the element counts of every species — reactants as positive columns, products as negative — and finds the null space of that matrix using exact rational Gaussian elimination. The result is scaled to the smallest whole-number ratio, guaranteeing a mathematically correct answer rather than a guessed one.
Features
Free-text formula parsing
Handles nested parentheses and hydrates like CuSO₄·5H₂O.
Matrix-based balancing
Solves the element-conservation matrix's null space with exact fraction arithmetic — no rounding error.
Atom-count verification table
Confirms every element matches on both sides after balancing.
Already-balanced & cannot-balance detection
Recognizes equations that are already balanced, and clearly explains when no valid integer solution exists.
Mathematical Basis & Practical Verification
The Chemical Equation Balancer is built on IUPAC atomic weights, stoichiometric mole-ratio conservation, ideal and non-ideal gas state equations, and aqueous equilibrium expressions (pH, pKa, Henderson-Hasselbalch, and Ksp). Free chemical equation balancer that finds the smallest whole-number coefficients using linear algebra, with an atom-count verification table. The interface validates every input parameter in real time and surfaces intermediate steps alongside the final result.
All computations for the Chemical Equation Balancer follow the definitions established in IUPAC Compendium of Chemical Terminology ( the "Gold Book" ) (International Union of Pure and Applied Chemistry (IUPAC)) and Standard Atomic Weights & Physical Reference Data (NIST Physical Measurement Laboratory / CIAAW). Because the solver evaluates inputs locally in IEEE 754 double-precision arithmetic (53-bit significand, ~15–17 significant decimal digits) and is regression-tested against deterministic reference fixtures in tests/equation-balancer.spec.ts, you can inspect boundary conditions, verify dimensional consistency across chemistry units, and cross-check each intermediate step against textbook solutions.
Related Calculators & Tools
Calculate the molar mass of any chemical formula with a per-element breakdown, percent composition, and mass-to-moles conversion.
Find the empirical and molecular formula of a compound from percent composition or mass data.
Find the limiting reactant, theoretical yield, and leftover excess reagent for any balanced chemical reaction.
Convert between moles, mass, and particles for any species in a balanced chemical equation.
Authoritative Sources & Standards
- IUPAC Compendium of Chemical Terminology ( the "Gold Book" ) — International Union of Pure and Applied Chemistry (IUPAC)
- Standard Atomic Weights & Physical Reference Data — NIST Physical Measurement Laboratory / CIAAW
Frequently Asked Questions
How does the chemical equation balancer work?
Enter your unbalanced equation; it builds an element-count matrix and solves for the smallest whole-number coefficients using linear algebra.
What syntax should I use?
Standard chemical formulas separated by +, with -> or = as the reaction arrow, e.g. Fe + O2 -> Fe2O3.
Can it handle hydrates and nested parentheses?
Yes, formulas like Ca(OH)2 and CuSO4.5H2O are parsed correctly.
What if the equation can't be balanced?
It reports clearly that no valid integer balance was found, rather than returning an incorrect result.
What if my equation is already balanced?
It's recognized and confirmed as already balanced.
Does it verify the result?
Yes, an atom-count table shows every element matching on both sides after balancing.
Does it guess coefficients or actually solve for them?
It solves the underlying linear system exactly — no trial and error.