A chemical equation is a promise that no atom is created or destroyed, and balancing it is keeping that promise in numbers.
Type the equation with + between species and -> or = between the two sides, for example H2 + O2 -> H2O. Write subscripts as plain numbers, H2O, and use parentheses for groups, Ca(OH)2. A coefficient you type in front of a formula, such as 2H2, is ignored: the calculator finds the smallest whole-number coefficients itself.
Please check the equation: type species with + and one arrow, for example H2 + O2 -> H2O.
| Reaction | Type | Balanced Equation | Coefficients |
|---|
Eight worked balancing examples. The highlighted row matches your equation: H2 + O2 -> H2O, balanced as 2H2 + O2 -> 2H2O.
ADVERTISEMENT
Founder & CEO, Techraxy
Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.
User Ratings:
ADVERTISEMENT
ADVERTISEMENT
A chemical equation is a promise that no atom is created or destroyed, and balancing it is keeping that promise in numbers. This free chemical equation balancer calculator takes an unbalanced equation as text and returns the smallest whole-number coefficients that make every element match on both sides. Run H2 + O2 -> H2O through it, and the answer is 2H2 + O2 -> 2H2O, with coefficients 2, 1, 2, and the atom check H: 4 = 4 and O: 2 = 2.
The calculator takes one input: the equation as text, with + between species and -> or = between the two sides. It returns the balanced equation, the coefficient list, the species count, the total atoms on each side, the atom counts before and after for every element, and the formula used. The diagram shows one molecule token per molecule, reactants above and products below, so the balance can be checked by counting tokens.
A chemical equation balancer calculator is a tool that finds the coefficients in front of each formula in a chemical equation, so that the number of atoms of every element is the same on both sides. The coefficients are the only numbers that may change: the subscripts inside a formula are part of the substance itself, and changing one changes the substance rather than the bookkeeping. H2O with a coefficient of 2 is two water molecules, while H2O2 is hydrogen peroxide, a different substance entirely.
The method is one linear equation per element. For each element, the atoms on the left must equal the atoms on the right, which gives a homogeneous system of linear equations, one per element, with one unknown per species. When the equation has exactly one free parameter, the solutions form a single line, and the smallest positive whole-number point on that line is the balanced equation. This calculator solves that system with exact fractions, numerator and denominator integers reduced by their greatest common divisor, never with floating-point arithmetic, so no rounding can creep into the coefficients. The coefficients you type are ignored: the solver finds the smallest set itself.
The coefficients are also the mole ratios of the reaction, which is why balancing comes first in every quantitative calculation. Once the equation is balanced, the coefficients say how many moles of each reactant are consumed and how many moles of each product form, and a Mole Calculator turns those mole ratios into masses and amounts. Without the balance, no yield, no limiting reagent and no titration ratio can be worked out.
Type the equation into the single input box, with + between species and -> or = between the two sides, for example H2 + O2 -> H2O. Write subscripts as plain numbers, H2O, and use parentheses for groups, Ca(OH)2, including nested parentheses. A coefficient typed in front of a formula, such as 2H2, is ignored. The calculator updates as soon as you change the text, and the Calculate button runs it again at any time. At the defaults the equation is H2 + O2 -> H2O, giving 2H2 + O2 -> 2H2O.
Read the results in order. The headline is the balanced equation, with a coefficient of 1 left unwritten, then the coefficient list in species order, then the species count, then the total atoms on each side, then the atom counts before and after for every element, then the formula used. The highlight sentence repeats the balanced equation with its coefficients and its atom check, so you can verify it at a glance. The atom check is the proof: every element must show the same number on both sides.
The diagram shows one token per molecule: each reactant formula is repeated as many times as its coefficient, in the top rows, and each product formula the same way in the bottom rows, with a green check mark and the molecule and atom totals above them. Changing the equation changes the token count, the labels and the colours. A side that needs more than twelve molecules shows the first twelve tokens, and the counts line above the diagram still gives the true totals, as with the KMnO4 case, which has 18 reactant molecules and 17 product molecules.
The Compare Cases tab puts eight worked balancing examples side by side: methane combustion, nitrogen synthesis, calcium carbonate decomposition, zinc single replacement, silver nitrate double replacement, propane combustion, iron oxidation and aluminium oxidation. The row matching your equation is highlighted. If no row matches, the note says so.
The formula is a system, not a single line: for each element i, the sum over species j of the atoms of element i in species j times the coefficient of species j equals zero, with reactants counted positive and products counted negative. In symbols, the sum over j of a(i,j) times x(j) equals 0 for every element i, where a(i,j) is the atom count and x(j) is the coefficient. The system is solved in exact fractions, the solution is scaled to whole numbers, and any common factor is divided out to give the smallest set.
Written out for the defaults, H2 + O2 -> H2O: the hydrogen equation is 2 times the H2 coefficient minus 2 times the H2O coefficient equals 0, and the oxygen equation is 2 times the O2 coefficient minus 1 times the H2O coefficient equals 0. Setting the H2O coefficient to 1 gives the O2 coefficient as 1/2 and the H2 coefficient as 1, so the fractional solution is 1, 1/2, 1. Multiplying by 2 clears the fraction and gives 2, 1, 2, which is 2H2 + O2 -> 2H2O, with 4 hydrogen atoms and 2 oxygen atoms on each side.
The same counting checks any answer by hand. Count the atoms of each element on the left, count them again on the right, and every element must match. If one element is out, the equation is not balanced, whatever the coefficients look like.
Take the combustion of methane, CH4 + O2 -> CO2 + H2O. First, count the atoms on the left: 1 carbon, 4 hydrogen and 2 oxygen. On the right, CO2 plus H2O gives 1 carbon, 2 hydrogen and 3 oxygen. Carbon matches, but hydrogen is short by 2 and oxygen is short by 1 on the left. Putting a coefficient of 2 in front of H2O gives 4 hydrogen and 4 oxygen on the right, and putting a coefficient of 2 in front of O2 gives 4 oxygen on the left. The balanced equation is CH4 + 2O2 -> CO2 + 2H2O, with coefficients 1, 2, 1, 2, and the atom check is C: 1 = 1, H: 4 = 4, O: 4 = 4.
The same steps check the single replacement of zinc in acid. Zn + HCl -> ZnCl2 + H2 starts with 1 zinc, 1 hydrogen and 1 chlorine on the left, against 1 zinc, 2 hydrogen and 2 chlorine on the right. A coefficient of 2 in front of HCl fixes both hydrogen and chlorine at once, giving Zn + 2HCl -> ZnCl2 + H2, with coefficients 1, 2, 1, 1, and the atom check Zn: 1 = 1, H: 2 = 2, Cl: 2 = 2.
A third check uses the redox reaction of permanganate with hydrochloric acid, which no inspection method settles quickly. 2KMnO4 + 16HCl -> 2KCl + 2MnCl2 + 8H2O + 5Cl2 has coefficients 2, 16, 2, 2, 8, 5, and the atom check is K: 2 = 2, Mn: 2 = 2, O: 8 = 8, H: 16 = 16, Cl: 16 = 16. The calculator finds this by solving the five element equations exactly, which is the point of the tool: the system does the counting that trial and error cannot.
The first benefit is never changing a subscript by accident. Balancing by hand tempts you to fix a mismatch by editing a formula, which changes the substance, and the calculator removes that temptation entirely: it only ever changes coefficients, and the formulas you typed come back unchanged in the balanced equation.
The second benefit is exactness. Trial and error can leave a hidden fraction, such as a half molecule of oxygen, and the calculator clears fractions by scaling to the smallest whole numbers, then divides out any common factor, so the answer is always the simplest set. The exact-fraction solve means a coefficient is never off by one because of a rounding error.
The third benefit is the atom check on every calculation. The calculator prints the atom count of every element before and after, so the balance is verified in the open rather than asserted. A student can read H: 4 = 4 and O: 2 = 2 and know the equation is balanced without recounting, and a teacher can see at a glance where a wrong equation fails.
The fourth benefit is scope with honesty. The calculator handles synthesis, decomposition, single replacement, double replacement, combustion and simple redox, including the KMnO4 case above, and it says so plainly when an equation is outside its scope, instead of guessing. An equation that needs more than one free parameter, or that cannot be balanced with positive whole numbers, gets a specific message, not a wrong answer.
Count the atoms of each element on both sides, then change only the coefficients in front of the formulas until every element matches, finishing with the smallest whole numbers. For H2 + O2 -> H2O, the hydrogen equation gives the H2 coefficient as the H2O coefficient, and the oxygen equation gives the O2 coefficient as half the H2O coefficient, so setting H2O to 1 gives the fractional set 1, 1/2, 1, and multiplying by 2 gives 2H2 + O2 -> 2H2O. Never change a subscript: that changes the substance.
Because the balanced equation is a ratio, and the smallest whole numbers are the simplest statement of that ratio. 2H2 + O2 -> 2H2O and 4H2 + 2O2 -> 4H2O both balance, but the second is the first multiplied by 2, and the convention is to divide out any common factor. The smallest set is also the mole ratio used in every later calculation, so carrying a doubled set through a yield calculation doubles every amount for no reason.
It lists, for every element in the equation, how many atoms sit on the reactant side and how many on the product side, after the coefficients are applied. Every element must show the same number on both sides: H: 4 = 4 and O: 2 = 2 for the water formation, or C: 3 = 3, H: 8 = 8 and O: 10 = 10 for propane combustion. If any element shows two different numbers, the equation is not balanced.
Simple redox reactions, yes: iron with oxygen, zinc with copper sulfate, and permanganate with hydrochloric acid all balance here, because the atom equations alone determine the coefficients. What it cannot do is balance half-reactions or reactions written with charges and electrons, such as Fe2+ or e-, because charge balance is a second condition the atom equations do not carry. Those are out of scope and are rejected with a specific message.
Because the atom equations do not pin the coefficients down to a single line. That happens when a species appears on both sides, as in H2 + O2 -> H2O + O2, or when the equation has a hidden redundancy, as in H2O -> H2 + O2 + H2O2. There is no unique smallest balance in that case, so the calculator says so instead of picking one of the many solutions. Remove the duplicated species or check that the equation is written as intended.
LibreTexts — How to Write Balanced Chemical Equations, with the inspection method, the rule to change coefficients and never subscripts, the use of fractional coefficients followed by multiplying through to whole numbers, and the final atom count check.
Wikipedia — Chemical equation, with a balanced equation defined as one in which the number of each type of atom is equal on the two sides, and the coefficients as the numbers that may be changed to achieve it.
Wikipedia — Conservation of mass, with the principle that mass is neither created nor destroyed in a chemical reaction, which is what balancing an equation enforces atom by atom.
Dr. Ray’s Learning Center — Balancing Chemical Equations, with the count, change a coefficient, recount loop, the rule to finish with the lowest whole numbers, and the note that a coefficient multiplies the whole formula.
This calculator balances chemical equations by solving the element-balance system in exact fractions and returning the smallest whole-number coefficients, and it is for study, homework and general reference only. It handles neutral formulas with parentheses, including nested ones, and it rejects charges, ions, half-reactions, hydrates, state symbols and fractional coefficients in the input, as well as equations that need more than one free parameter or cannot be balanced with positive whole numbers. A balanced equation is a statement about atom counts only: it does not say the reaction happens, how fast it runs, or what conditions it needs. Do not use a result from this calculator to plan a real reaction, prepare a mixture, or handle chemicals, without checking the procedure and the safety data for that reaction.
Last updated: 2 December 2026
ADVERTISEMENT
ADVERTISEMENT