How to use the equation balancer
To balance a chemical equation, make the number of atoms of every element, and the total charge, the same on both sides of the arrow by choosing whole-number coefficients. Type the unbalanced equation in the box above, for example C3H8 + O2 -> CO2 + H2O, and the balancer returns C3H8 + 5O2 -> 3CO2 + 4H2O, a table that counts every element and the charge on each side, and a calculator for the limiting reagent and the yield. Click a species to see its molar mass.
Write reactants and products separated by an arrow (->, =, →, <=> and ⇌ all work). Put a space on both sides of every + that separates species. Capital letters matter: Co is cobalt, CO is carbon monoxide. If something cannot be read, the balancer shows the characters it stopped on. Any coefficients you type are ignored, because the balancer works out all of them. Use the copy buttons to paste the result into a report as plain text (C3H8 + 5O2 -> 3CO2 + 4H2O) or with subscripts and superscripts (C₃H₈ + 5O₂ → 3CO₂ + 4H₂O).
What you can type
| You type | It means |
|---|---|
-> --> => = → <=> ⇌ | The arrow. Exactly one is allowed. After an anion leave a space, Cl- -> Cl2, because Cl-> would be read as an arrow |
H2 + O2 | Species are separated by +. H2+O2 also works, but write spaces whenever ions are involved |
Fe3+, Cl-, MnO4-, SO4^2-, Cr2O7^2- | Ions: the charge sits at the very end. After a lone element or a closing square bracket a digit before the sign is the charge (Fe3+ is 3+); elsewhere it is a count (MnO4- is 1-). After a closing round bracket one digit is a count (Al(OH)4- is 1-) and the last of two or more digits is the charge (Fe(CN)63- is 3-); Al(OH)4^- with a caret always works |
e-, e^-, e⁻ | An electron: charge -1, no atoms |
CuSO4·5H2O, CuSO4*5H2O | A hydrate, counted as one species with all of its water |
LiNi0.8Mn0.1Co0.1O2 | Decimal subscripts, read exactly. The coefficients still come out as whole numbers |
CH4(g), H2O(l), NaCl(aq) | State labels are kept in the result and do not affect the balance |
2H2O | A coefficient typed in front is ignored and a note says so |
H₂O, Fe³⁺ | Unicode subscripts and superscripts, as copied from a paper |
How to balance a chemical equation
The inspection method
For simple equations you can balance by looking. Take C3H8 + O2 -> CO2 + H2O. Carbon is only in C3H8 and CO2, so put 3 in front of CO2 to match the three carbons. Hydrogen is only in C3H8 and H2O: eight hydrogens need 4 H2O. Now count oxygen on the right: 3 × 2 + 4 = 10, so O2 needs the coefficient 5. Leave the element that appears by itself (here O2) for last, and if you end up with a fraction such as 5/2, multiply every coefficient by 2.
The matrix method (what the balancer does)
Give every species an unknown coefficient and write one equation per element, saying that the atoms on the left equal the atoms on the right. For the same reaction, with a, b, c, d in front of C3H8, O2, CO2 and H2O:
C: 3a = c
H: 8a = 2d
O: 2b = 2c + d
Put these equations in a table (a matrix) with one row per element and one column per species, counting the products as negative so that every row adds up to zero. The balanced coefficients are the numbers that make all rows zero, the null space of the matrix. The balancer finds it with exact fractions, by Gaussian elimination, with no rounding: choosing a = 1 gives c = 3, d = 4 and b = 5. If the solution has fractions, the whole vector is multiplied by the smallest number that clears them, so the answer is always the smallest whole numbers. A row for the total charge is added when the equation contains ions, which is how redox equations are balanced.
The size of the null space tells you what kind of answer exists. One dimension is a unique balanced equation. Zero dimensions means the equation cannot be balanced. Two or more means several independent reactions are mixed together.
Ions, electrons and half-reactions
A charge is balanced like an element: the total charge on the left must equal the total charge on the right. Fe3+ + e- -> Fe2+ has +3 − 1 = +2 on the left and +2 on the right. Write electrons as e- to balance half-reactions, for example MnO4- + H+ + e- -> Mn2+ + H2O gives MnO4- + 8H+ + 5e- -> Mn2+ + 4H2O. To combine two half-reactions, balance each, multiply them so the electrons match and add; or write the full ionic equation directly and let the charge row do the work.
Redox reactions in acid and base
The balancer does not invent species. In a reaction in acid, the oxygen released from an oxidant such as permanganate ends up in water and the hydrogen comes from H+; in base the same job is done by OH- and H2O. You write the species that belong in your conditions, and the balancer finds the numbers:
acid: MnO4- + Fe2+ + H+ -> Mn2+ + Fe3+ + H2O
MnO4- + 5Fe2+ + 8H+ -> Mn2+ + 5Fe3+ + 4H2O charge +17 = +17
base: MnO4- + I- + H2O -> MnO2 + I2 + OH-
2MnO4- + 6I- + 4H2O -> 2MnO2 + 3I2 + 8OH- charge -8 = -8
If you are not sure which of H+, OH- and H2O belong, try the version with H+ and H2O for acid and the version with OH- and H2O for base: a wrong choice usually ends as a cannot-be-balanced message or as several independent reactions. Equations in which one species can both gain and lose electrons, such as H2O2 with permanganate, also give several independent reactions, and you have to decide which one you mean.
Limiting reagent and theoretical yield
The reactant that runs out first, the limiting reagent, decides how much product forms. Convert each amount to moles (n = m / M, with M from the molar mass calculator), divide by the coefficient, and take the smallest result. Worked example: 10 g of propane burning in 10 g of oxygen, C3H8 + 5O2 -> 3CO2 + 4H2O.
n(C3H8) = 10 / 44.097 = 0.2268 mol 0.2268 / 1 = 0.2268
n(O2) = 10 / 31.998 = 0.3125 mol 0.3125 / 5 = 0.0625 <- smallest: O2 is limiting
n(CO2) = 3 x 0.0625 = 0.1875 mol = 0.1875 x 44.009 = 8.25 g
n(H2O) = 4 x 0.0625 = 0.2500 mol = 0.2500 x 18.015 = 4.50 g
C3H8 left = 0.2268 - 0.0625 = 0.1643 mol = 7.24 g
The theoretical yield is the mass of product if the reaction goes to completion. The percent yield compares what you actually collect with it: 7.0 g of CO2 collected from the 8.25 g possible is 7.0 / 8.25 = 84.8 %. Enter the actual mass in the product table and the balancer calculates it.
What the balancer does not do
- Net ionic equations are not supported yet. You can balance a net ionic equation that you have already written (
Ag+ + Cl- -> AgCl), but the tool does not work out the spectator ions or solubility for you. - It does not predict products, and it does not know whether a reaction happens. It only balances what you write.
- It does not add H+, OH-, H2O or electrons. The same species on both sides is reported as an error: cancel it first.
- It cannot choose between several valid answers. When the species allow more than one reaction, it says so and shows one example.
Atomic weights are the IUPAC 2024 abridged values, the same as in the molar mass calculator, so a mass in grams is converted to moles with the same numbers.
Frequently asked questions
How do you balance chemical equations?
Choose whole-number coefficients so that every element has the same number of atoms on both sides. By inspection: balance the element that appears in the fewest species first, leave elements that appear alone (such as O2) for last, and fix fractions by doubling. The balancer does it with algebra: it writes one equation per element and solves them exactly, so the answer is the smallest set of whole numbers. For C3H8 + O2 -> CO2 + H2O it gives 1, 5, 3, 4.
What if the equation cannot be balanced?
Then no positive whole numbers make every element equal on both sides. The balancer names the element that stops it. The usual causes are an element that appears on one side only (add the missing species), a typing mistake in a formula, or a missing species in a redox reaction such as H2O, H+, OH- or e-. If only the charge cannot be matched, add electrons or ions.
What does "several independent reactions" mean?
The species you entered can react in more than one way at the same time, so the atoms alone do not fix one set of coefficients. For H2 + O2 -> H2O2 + H2O, both H2 + O2 -> H2O2 and 2H2 + O2 -> 2H2O are valid, and any mixture of them balances too. The balancer shows one valid balancing and says so. To get one answer, write each reaction on its own or remove the species that is not part of the reaction you mean.
How do I find the limiting reagent?
Divide the amount of each reactant, in moles, by its coefficient in the balanced equation. The smallest result belongs to the limiting reagent, the one that runs out first. Enter grams or moles for each reactant under the balanced equation and the balancer does this, then gives the theoretical yield of every product and the amount of each other reactant left over.
Does it balance redox reactions?
Yes, as long as you write all the species. The balancer treats the charge as one more thing to balance, so MnO4- + Fe2+ + H+ -> Mn2+ + Fe3+ + H2O gives 1, 5, 8, 1, 5, 4 with a charge of +17 on both sides. It does not add H+, OH-, H2O or electrons for you: you write them, because in a reaction in acid or base they depend on the conditions. Some redox equations, such as H2O2 with permanganate, have more than one valid answer.
How do I enter ions, charges and electrons?
Write the charge at the end of the species: Fe3+, Cl-, MnO4-, SO4^2-, Cr2O7^2-. Both Al(OH)4- and Al(OH)4^- mean aluminate (four OH, charge 1-), and Fe(CN)63- or Fe(CN)6^3- ferricyanide; a caret always makes the charge explicit. An electron is e- (or e^-). Put spaces around the + that separates species, so that Fe3+ + e- -> Fe2+ is read as an ion, an electron and an ion.
Are my equations uploaded?
No. The equation is balanced in your browser and nothing you type is sent to a server.
More free tools for materials scientists: all free tools.