Skip to content
MasterMath

Chemical Equation Balancer

Balances a chemical equation and shows the atom count on both sides, which is the check you would do by hand. Write the arrow as "->", "=" or "→".

Balanced equation

—

Balanced equation—
Coefficients—
Species—
Distinct elements—
ElementOn the leftOn the right

How this was worked out

    The formula

    Each element must have the same number of atoms on both sides

    What it means

    Balancing an equation means solving a system: one unknown per species and one equation per element, requiring the atom count not to change. It is solved with exact fractions and then reduced to the smallest whole numbers, so the answer is the canonical balance and not one multiplied by two. The trial-and-error method taught in class reaches the same place; the difference is that this does not get stuck.

    How to work it out by hand

    1. Put an unknown in front of each formula
    2. Write one equation per element: atoms on the left equal atoms on the right
    3. Solve the system and set one unknown to one
    4. Scale everything so the coefficients are the smallest whole numbers

    What is worth knowing

    If the equation admits more than one independent balance — which happens when there are spare species, or the reaction can be written several ways — you are told rather than having one picked in silence, because both would be equally valid and which one matters depends on the chemistry, not the algebra. And a negative coefficient means some species is on the wrong side: written that way, the reaction does not go in that direction. Redox reactions in ionic solution also need the charge balanced, which this does not do.

    Frequently asked questions

    How do I write the arrow?

    As "->", "=>", "=" or "→". Any of the four separates reactants from products.

    Can I give it an already balanced equation?

    Yes, and it comes back the same. Coefficients are always reduced to the smallest whole numbers, so "2H2 + O2 -> 2H2O" does not turn into "4, 2, 4".

    Why does it sometimes say the equation is ambiguous?

    Because it admits more than one independent balance. That usually means a species is spare, or the reaction can be written in several ways.

    Does it balance redox reactions?

    It balances atoms, which is what a molecular equation asks for. Ionic half-reactions also need charge and electrons to match, and that is a separate job.

    Can I use it to check my homework?

    That is what the table below is for: it shows how many atoms of each element end up on each side, which is exactly what you would check by hand.