How it works
How does the equation balancer work?
Conservation of each element becomes one linear equation: the total atoms of that element on the left must equal the total on the right. Stack those into a matrix, reduce it to row-echelon form using exact fractions rather than floating point, and read off the null-space vector — that vector is the set of coefficients. Clearing denominators and dividing by the greatest common divisor gives the smallest whole numbers. It never guesses, so it handles redox equations like permanganate and hydrochloric acid in the same single step as burning hydrogen.
Ions, charges and electrons
Charges are read with the same rules as in the molar mass calculator, so Fe2+, MnO4- and SO4^2- all work, and e- stands for an electron. As soon as one species carries a charge, the solver adds a row for charge: the total charge of the reactants must equal the total charge of the products. A plus sign separates two species when it stands between spaces or is followed by the next formula, so Fe2+ + MnO4- and Fe2++MnO4- are read the same way.
When --> follows a formula without a space, as in H++OH-->H2O, the first minus is read as that species' charge if the equation balances that way; otherwise --> is read as an arrow. A space before the arrow, or ->, removes the doubt.
Limits
- It checks that atoms and charge are conserved, not that the reaction actually happens.
- When an equation combines two independent reactions, more than one set of coefficients works; the solver says so instead of picking one.
- It handles up to 12 species. State symbols such as (aq) are accepted and ignored, and any coefficients you type are replaced by the solved ones.
- All arithmetic is exact. If a number in the calculation would pass 9,007,199,254,740,991, the tool says the numbers are too large instead of showing a rounded answer.