Chemical Equation Balancer
Calculators · Added
Enter a reaction and get the smallest whole-number coefficients that conserve every element, along with the atom count on each side so you can check the answer rather than take it. It is solved as a system of linear equations in exact fractions, not by trial and error, which is why it can tell you when an equation cannot be balanced at all.
How to use the chemical equation balancer
- 1Type the equation with = or -> between the two sides, as in CH4 + O2 = CO2 + H2O.
- 2Separate species with +. Any coefficients you have already written are ignored.
- 3Press Balance.
- 4Read the coefficients, then check the atom table — it recounts the finished answer element by element.
Examples
Methane burning
- Input
- CH4 + O2 = CO2 + H2O
- Result
- CH4 + 2 O2 → CO2 + 2 H2O
Carbon 1 to 1, hydrogen 4 to 4, oxygen 4 to 4.
A reaction with six species
- Input
- KMnO4 + HCl = KCl + MnCl2 + H2O + Cl2
- Result
- 2 KMnO4 + 16 HCl → 2 KCl + 2 MnCl2 + 8 H2O + 5 Cl2
The kind of equation trial and error takes twenty minutes to lose patience with.
One that cannot balance
- Input
- H2 + O2 = H2O + NaCl
- Result
- Rejected, naming sodium as an element that appears on one side only
A balancer that returned coefficients here would be inventing atoms.
About the chemical equation balancer
Why the coefficients are unique
Balancing feels like a puzzle with several possible answers, because 2 H2 + O2 → 2 H2O and 4 H2 + 2 O2 → 4 H2O are both true statements. What makes one of them the balanced equation is the convention that the coefficients share no common factor.
The algebra says the same thing more precisely. The set of valid coefficient vectors is a line through the origin — pick any point on it and every other point is a multiple. Choosing the smallest positive integer point on that line is what reducing by the greatest common divisor does, and it is why two people balancing the same equation correctly always arrive at the same numbers.
What balancing does not tell you
A balanced equation is a statement about counting, not about chemistry. It says nothing about whether the reaction happens at room temperature, how fast it goes, what catalyst it needs, or whether the products are the ones that actually form. Plenty of perfectly balanced equations describe reactions that never occur.
It also says nothing about the states of matter or the conditions, which is why the aqueous, solid and gaseous labels are written in by hand rather than derived. Use the coefficients for stoichiometry — how much of one thing reacts with how much of another — and treat everything else on the page as a separate question.
Exact fractions, and why they matter here
Solving a linear system in ordinary floating-point arithmetic leaves values like 0.30000000000000004 where a clean zero belongs. Usually that is harmless. Here it is not, because the entire method turns on deciding whether an entry has been eliminated to exactly zero, and a value that is nearly zero but not quite changes the rank of the matrix and therefore the answer.
So every value in the elimination is a fraction of two integers, kept in lowest terms, with arbitrary-precision arithmetic underneath. Nothing is ever rounded until the coefficients are already whole numbers. The atom table below the result is then an independent recount of that answer, which is the check that would catch a mistake in any of it.
Frequently asked questions
How does it balance an equation?
Why does it sometimes say an equation cannot be balanced?
What does “more than one independent balance” mean?
Can it balance ionic or half-equations?
Why do the two masses differ in the last decimal place?
Related tools
Molar Mass Converter
Converters
Work out molar mass from a chemical formula, then convert between grams and moles.
Molarity Calculator
Calculators
Work out the mass to weigh, the concentration you made, or the volume a mass will give.
Dilution Calculator
Calculators
Solve C₁V₁ = C₂V₂ for stock volume, final volume or either concentration.
AC BTU Calculator
Calculators
Size an air conditioner for a room, with the adjustments for sun, ceiling height, occupants and kitchens.