Chemical Equation Balancer

Type in a chemical reaction and get the numbers that make the same count of every atom appear on both sides. Balancing is not trial and error but a single algebra problem with one definite answer, given here in exact whole numbers.

How to use it

Type the reaction with the formulae as you would write them by hand, and the coefficients come back reduced as far as whole numbers will go, with charge balanced too if there are ions in it.

  1. Type the equation Put an arrow between the two sides. Brackets work, so does the dot in a hydrate such as CuSO4.5H2O, and so does a charge written as Mn^2+ for a half-equation.
  2. Read the balanced version and the atom count The table at the bottom counts every element on both sides so you can see the balance rather than take it on trust.
  3. Add how much you are starting with Name a starting material and give an amount in grams or moles, and every other amount in the reaction is worked out from it. Give two and you are told which one runs out first and how much of the other is left over.
Full instructions
In depth

How a chemical equation balancer works and when stoichiometry matters

Balancing a chemical equation by hand means trying numbers until the atoms on both sides match, and for anything beyond a simple combustion that process is slow and uncertain. This article walks through an online balancer that solves the problem as a single piece of linear algebra, then follows the balanced equation all the way to moles, masses, the limiting reagent and the percentage yield. Every calculation runs on your own device with nothing sent anywhere.

Screenshot: Balancing is a sum, not a puzzle
Balancing is a sum, not a puzzle as it appears when the page opens.

Who needs this and why

Students working through homework or revision problems are the obvious audience, but they are not the only one. Lab technicians planning a reaction need to know how much of each reagent to weigh out. Teachers building worksheets want a quick check that their own answer is right before they set the question. Hobbyist chemists making soap, developing photographs, or etching circuit boards all face the same arithmetic.

The common thread is that balancing is not the interesting part of any of those jobs. It is a prerequisite that has to be correct before the real question can be answered. Getting it done quickly and reliably frees attention for the part that actually matters.

Typing the equation into the input

The field labelled The equation expects both sides of the reaction separated by an arrow. A simple dash followed by a greater-than sign works, so C3H8 + O2 -> CO2 + H2O is a valid entry. Brackets are understood, so Ca(OH)2 is fine. The dot notation for hydrates works too, meaning CuSO4.5H2O is accepted without any special syntax. Capitalization matters: Co is cobalt and CO is carbon monoxide, and mixing them up will produce a balanced equation for the wrong reaction entirely.

Charges for ions and half-equations are written with a caret. Mn^2+ means a manganese ion with a two-plus charge, and e^- is an electron. When charges are present the balancer conserves charge alongside every element, so a half-equation comes out correctly without any extra steps. This is useful for electrochemistry problems where you need each half-reaction balanced separately before combining them.

Six preset buttons sit below the input under the label Try one, each loading a ready-made equation. Burning propane, Rusting iron, Neutralising acid, Photosynthesis, A hydrate and A half-equation cover the main styles of notation, so pressing one is the fastest way to see what the output looks like before typing your own. After trying a preset you can edit the equation freely.

Reading the balanced result and the atom table

Once a valid equation is entered, the balanced version appears with the smallest whole-number coefficients that conserve every element. Below it a table counts every atom on each side. That table is not decoration. It lets you see the conservation rather than trust it, which is especially useful in a classroom setting where the student needs to understand why the numbers are what they are.

If the equation cannot be balanced at all, the tool says so rather than producing numbers that nearly work. That usually means a formula has a typo. In the less common case where two independent reactions are described in one equation, there is a whole family of valid answers, and the tool picks one while making the ambiguity clear.

From coefficients to masses with stoichiometry

Balancing gives ratios, but a real experiment needs weights. The field labelled You start with takes the formula of one reactant exactly as it appears in the equation. Beside it, How much accepts a number, and the dropdown labelled in lets you choose between grams and moles.

From that single entry every other substance in the reaction gets its amount calculated. The molar masses come from standard atomic weights built into the page. For elements that have no natural form, the mass number of the most stable isotope is used instead. Nothing is fetched from any server.

Suppose you burn 44 grams of propane. Enter C3H8 in the starting material field, type 44, and leave grams selected. The tool converts that to moles, applies the balanced ratio to every other participant, and reports both the moles and the grams of each.

Finding the limiting reagent with two starting materials

The second pair of fields, headed And also (optional), takes a second reactant and its amount. When both are filled in the tool identifies which one runs out first. That substance is the limiting reagent, and it alone determines how much product the reaction can actually produce.

The excess reagent is reported too, with the amount left over after the reaction. Getting this right matters in practice because many reactions are deliberately run with one reagent in excess to push the reaction to completion or to make purification easier.

A worked example makes the arithmetic concrete. Burn propane with oxygen: enter C3H8 at 44 grams and O2 at 100 grams. Propane needs five moles of oxygen for every mole of fuel. At 44 grams you have one mole of propane, which needs 160 grams of oxygen, but you only have 100. Oxygen is the limiting reagent, and the tool reports exactly how much carbon dioxide and water that 100 grams can produce.

Theoretical yield and percentage yield

The field Product you care about names the product whose maximum possible mass you want. That maximum, the theoretical yield, follows directly from the limiting reagent and the balanced ratio.

Below it, What you actually got takes a weight in grams. The tool divides your actual collection by the theoretical yield and reports the percentage. In a student lab a yield of 60 to 80 per cent is typical. Professional synthesis aims higher, and anything above 100 per cent is a clear signal that the product is still wet or contaminated. The tool warns about that explicitly.

A common classroom mistake is to calculate the yield from the wrong reactant. Using the reagent in excess instead of the limiting one gives a theoretical yield that is too high, which makes the percentage look low. The tool avoids that mistake by always working from whichever reagent limits the reaction.

Mistakes that waste the most time

The most frequent error is a wrong formula. Typing NaO instead of NaOH or H2O2 instead of H2O creates a valid-looking equation that balances into a completely different reaction. The balanced answer will be mathematically correct for the equation you typed, but chemically meaningless for the reaction you meant.

Another common trap is forgetting that coefficients go in front of formulas, never inside them. Changing the subscripts inside a formula changes the substance itself. Water is not hydrogen peroxide, and the balancer will not pretend otherwise.

On the stoichiometry side, the usual slip is entering the formula in a different form from how it appears in the equation. If the equation says Fe2O3 and you type Fe203 with a zero instead of the letter O, the tool will not find it among the participants. Copy the formula exactly.

When a different tool is the better choice

This tool works with well-defined molecular equations. If you need to balance a nuclear equation, the rules are different because mass number and atomic number are conserved instead of element counts. Organic reaction mechanisms that involve electron pushing rather than stoichiometric ratios are also outside its scope.

For thermodynamics, such as calculating enthalpy changes, you need bond energies or formation enthalpies that are not part of a balanced equation. And for kinetics, knowing how much product is possible says nothing about how fast it forms. Each of those questions needs its own dedicated resource.

If your equation involves a very large number of participants and seems to describe two separate reactions happening at once, you may get a valid but arbitrary set of coefficients. The tool warns when this happens. The fix is to split the equation into two separate reactions and balance each one on its own.

Privacy and where the maths runs

The entire calculation runs in your browser. The atomic weights, the linear algebra solver, and the stoichiometry arithmetic are all built into the page. No equation you type leaves your device, and no result is stored after you close the tab. That makes it safe to use on an exam machine or in a restricted lab network where outbound connections are monitored.

Because the page works offline once loaded, you can save it and use it on a flight or in a basement lab with no Wi-Fi. There is no account to create and no usage limit. Press Reset to clear every field and start a fresh problem.

Help

Balancing is a sum, not a puzzle

Type the reaction with the formulae as you would write them by hand, and the coefficients come back reduced as far as whole numbers will go, with charge balanced too if there are ions in it. The arithmetic that follows is here too: moles and grams for each substance, which starting material runs out first, the most product the reaction could give, and how your real yield compares.

Type the equation

Put an arrow between the two sides. Brackets work, so does the dot in a hydrate such as CuSO4.5H2O, and so does a charge written as Mn^2+ for a half-equation.

Read the balanced version and the atom count

The table at the bottom counts every element on both sides so you can see the balance rather than take it on trust.

Add how much you are starting with

Name a starting material and give an amount in grams or moles, and every other amount in the reaction is worked out from it. Give two and you are told which one runs out first and how much of the other is left over.

Coefficients go in front, never inside

Balancing means putting numbers in front of whole formulas. Changing a formula itself — turning H2O into H2O2 to make the oxygen work out — balances the equation and describes a different reaction, because hydrogen peroxide is not water. If an equation will not balance, the formulas are what to check, not the numbers in front of them.

Good to know

Some equations cannot be balanced

If those substances on the left simply cannot make those on the right, you are told so instead of being given numbers that nearly work. It usually means a formula has a typing mistake in it.

A few equations have more than one answer

When an equation describes two separate reactions at once there is a whole family of valid coefficients. You get one of them and a clear warning, rather than a confident answer that is only one possibility.

The limiting reagent decides everything

Whichever starting material runs out first sets how much product there can be, no matter how much of the others you have. Everything after that point is worked out from it alone.

A yield above 100% means wet product

You cannot make more than the atoms allow. Over 100% nearly always means the product still holds solvent or has something else mixed in. Dry it properly and weigh it again.

Common questions

How do I balance a chemical equation?
Type it in with an arrow in the middle. The smallest whole numbers that conserve every element are worked out and shown, along with a count of the atoms on each side.
What is the limiting reagent?
The starting material that runs out first. Enter two starting amounts and you are told which it is, how much product it allows, and how much of the other is left over.
How do I work out the percentage yield?
Name the product you care about and type what you actually collected in grams. It is compared with the most the reaction could have made.
Can it handle ions and half-equations?
Yes. Write a charge as ^2+ or ^- and charge is balanced alongside the atoms, so half-equations come out right.
Where do the atomic weights come from?
The standard values, with the mass number of the most stable isotope used for the elements that have no natural form. They are built into the page — nothing is fetched from anywhere.