Equation balancer
Balance any equation with exact whole-number coefficients, including ions, redox reactions in acidic or basic solution and their half-reactions.
Equation
Balanced equation
C6H12O6+6O2→6CO2+6H2O
Half-reactions
- Oxidation24 e⁻ released
C6H12O6+6H2O→6CO2+24H++24e−
- Reduction4 e⁻ taken up
O2+4H++4e−→2H2O
Scaled so the electrons cancel, the two half-reactions add up to the balanced equation: 24 electrons pass from reductant to oxidant as written.
Atom and charge check
| Element | Left | Right | Balanced |
|---|---|---|---|
| C Carbon | 6 | 6 | |
| H Hydrogen | 12 | 12 | |
| O Oxygen | 18 | 18 |
How the equation is balanced
Every element and the charge give one conservation equation, with one unknown coefficient per species. The balancer solves this system exactly, with whole-number fractions of unlimited size rather than floating point, and takes the null space of the matrix: one independent solution means one balanced equation, scaled to the smallest whole numbers. No solution means some element or the charge cannot be conserved, and the tool says which. More than one independent solution means the equation hides several reactions, which it lists.
In acidic or basic solution, H2O and H+ or OH− are added as free species that may land on either side. If the charge still cannot balance, electrons are added and the result is a half-reaction.
Redox and half-reactions
A reaction is treated as a redox reaction when an element's oxidation state, assigned with the usual rules (F −1, O −2, H +1 or −1 in metal hydrides, alkali and alkaline earth metals +1 and +2, halides −1, and the common oxoanions such as sulfate, nitrate and phosphate in metal salts), differs between the two sides. The average oxidation state of carbon in organic compounds is not used as evidence, because it also changes in reactions such as esterifications that transfer no electrons. When a formula alone does not fix the oxidation states, as in K4[Fe(CN)6], the tool makes no claim either way.
For a redox reaction the species are split into the oxidation and reduction couples. Each couple is balanced on its own, first in the elements other than oxygen and hydrogen, then oxygen with H2O, hydrogen with H+ or OH−, and the charge with electrons; the two halves are scaled until the electrons cancel. This is the half-reaction method from general chemistry, and it also decides equations such as permanganate with hydrogen peroxide, where atoms and charge alone allow infinitely many balances.