Chemical Equation Balancer
Enter any chemical equation and get it balanced instantly with atom counts and formatted output
Use ->, →, or = to separate reactants and products. Use + between compounds.
Try these examples
How equation balancing works
1
Parse
The equation is split into reactants and products. Each compound is parsed into its constituent elements and their counts, handling parentheses and subscripts.
2
Build matrix
A matrix is constructed where each row represents an element and each column a compound. The entry is the atom count of that element in that compound.
3
Solve
Gaussian elimination reduces the matrix to find the ratio of coefficients. The results are scaled to the smallest whole numbers using GCD.