Reaction Balancer screenshot

Reaction Balancer

Balance a chemical equation with whole-number coefficients, or be told which element cannot be matched.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

Whole-number coefficients, or a named refusal

Type the equation with an arrow, for example H2 + O2 -> H2O. The page builds a matrix of element counts per species and solves it exactly, using fractions rather than floating point, then prints the balanced equation and the atom total for each element on both sides. H2 + O2 gives 2H2 + O2 -> 2H2O with four hydrogen and two oxygen on each side.

An equation it cannot balance is refused rather than approximated. An element that appears on only one side is named as the reason; a species list that admits more than one independent balance is refused as ambiguous; a species whose coefficient comes out zero is named and removed from consideration. Charged species are refused, because the page balances atoms and not charge.

The solver works on the text you type, in your browser. Nothing is uploaded, and the same equation balances the same way after a reload.

Type an equation with an arrow, such as H2 + O2 -> H2O, and the page builds a matrix of element counts per species, solves it exactly in fractions, and prints the balanced equation with each element's atom total on both sides. H2 + O2 gives 2H2 + O2 -> 2H2O, with four hydrogen and two oxygen on each side.

The page balances atoms and not charge, so charged species are refused rather than balanced approximately. It also does not search for a product: the species on each side are the ones you typed.

How to use it

Write the species with a plus sign between them and an arrow between the two sides, then press Run. Accepted formula syntax is element symbols, integer subscripts, nested round or square brackets and hydrate dots such as CuSO4.5H2O; anything else is refused by name.

  • Enter reactants, then -> or →, then products.
  • Keep brackets in the formula: Ca(OH)2, not CaO2H2.
  • Read the balanced equation and the per-element totals beneath it.

The arithmetic, and where it stops

Each species contributes a column of element counts, and the balance is the null space of that matrix: coefficients are solved as exact fractions by elimination and then scaled to the smallest whole numbers, which is why the answer never carries a rounding error. The per-element totals are recomputed from the printed coefficients, so the check is on the output rather than on the solver.

An equation it cannot balance is refused rather than approximated: an element appearing on only one side is named as the reason, a species list that admits more than one independent balance is refused as ambiguous, and a species whose coefficient comes out zero is named — a charged species is refused because charge is not balanced here.

What to Expect

Best for

  • Checking an equation you have already balanced, or balancing a small one exactly.

What this tool keeps

  • The solver works on the text you type in this tab; nothing is uploaded or remembered. The same figures give the same result after a reload.

Sample input

H2 + O2 -> H2O

Sample output

2H2 + O2 -> 2H2O H: 4 = 4, O: 2 = 2

Frequently asked questions

How do I use the Reaction Balancer?

Write the species with a plus sign between them and an arrow between the two sides, then press Run. Accepted formula syntax is element symbols, integer subscripts, nested round or square brackets and hydrate dots such as CuSO4.5H2O; anything else is refused by name.

Does anything leave my browser?

No. The solver works on the text you type in this tab; nothing is uploaded or remembered. Reloading the page discards every value you entered.

Which inputs does it refuse?

An equation it cannot balance is refused rather than approximated: an element appearing on only one side is named as the reason, a species list that admits more than one independent balance is refused as ambiguous, and a species whose coefficient comes out zero is named — a charged species is refused because charge is not balanced here.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.