What is a Chemistry Equation Balancer?
A Chemistry Equation Balancer is a tool that takes an unbalanced chemical equation and determines the correct integer coefficients for each compound so that the number of atoms of every element is equal on both sides. This satisfies the law of conservation of mass, which states that matter cannot be created or destroyed in a chemical reaction. The tool uses Gaussian elimination on a matrix of element counts to find the solution algebraically rather than by trial and error.
Why Equation Balancing Matters
Balanced equations are fundamental to chemistry. They are required for calculating molar ratios in stoichiometry, determining reagent quantities for experiments, predicting yields, and understanding reaction mechanisms. An unbalanced equation is chemically meaningless because it implies atoms appear from or vanish into nothing. This tool eliminates the tedious trial-and-error process and guarantees correct results for any valid chemical equation.
Supported Notation
The balancer accepts standard chemical formula notation. Elements are written with a capital letter followed by optional lowercase letters, with subscript numbers indicating atom counts. Parenthesized groups like (OH)2 or (NO3)3 are fully supported. Compounds on each side are separated by + signs, and the two sides are separated by ->, =, or Unicode arrow characters. Existing coefficients in front of compounds are automatically stripped before rebalancing.
Understanding the Algorithm
The balancing algorithm works by constructing a matrix where each row represents an element and each column represents a compound. Reactant compounds receive positive values while product compounds receive negative values. Gaussian elimination reduces this matrix to row echelon form, and the null space provides the coefficient ratios. These are then scaled to the smallest positive integers. The algorithm handles most equations encountered in general and organic chemistry.





