Free · No sign-up · Runs in your browser

Chemical Equation Balancer

Balance chemical equations instantly, verify every atom, and understand the balancing process with step-by-step explanations. Enter an equation with ->, = or and press Enter.

  • Free to use
  • Instant results
  • No signup
  • Browser-based
  • Step-by-step explanations

Equation

Press Enter to balance. Supports parentheses Ca(OH)2, hydrates CuSO4·5H2O, states H2O(l) and charges Fe3+, SO4^2-.

Try an example

Balanced equation

The balanced equation will appear here.

Copy

Export

Atom verification

Before balancing

Atom counts for the equation exactly as typed
ElementReactantsProductsMatch

After balancing

Atom counts after the coefficients are applied
ElementReactantsProductsMatch

Step-by-step solution

    Educational use. This tool balances equations mathematically. Always verify advanced or experimentally important reactions against an appropriate chemistry reference — a mathematically balanced equation is not by itself evidence that a reaction occurs or that the products are the ones written.

    What is a chemical equation?

    A chemical equation is a written record of a reaction. The starting substances — the reactants — go on the left, the substances formed — the products — go on the right, and an arrow between them shows the direction of change.

    Take the reaction that forms water: H₂ + O₂ → H₂O. Read aloud, that is "hydrogen reacts with oxygen to give water". Each formula carries two kinds of number, and telling them apart is the single most important skill in balancing:

    • A subscript sits inside the formula and belongs to the substance. The 2 in H₂O says each water molecule contains two hydrogen atoms.
    • A coefficient sits in front and says how many whole units take part. The 2 in 2H₂O means two complete water molecules.

    Equations often carry extra information: (s), (l), (g) and (aq) mark solid, liquid, gas and aqueous solution. This balancer recognises those labels, sets them aside while calculating because they contain no atoms, and puts them back in the answer.

    What does it mean to balance a chemical equation?

    An equation as first written is usually just a sketch of what reacts and what forms. H₂ + O₂ → H₂O names the right substances, but count the oxygen: two atoms on the left, one on the right. As written, one oxygen atom has vanished.

    Balancing means placing coefficients in front of the formulas until every element appears the same number of times on both sides. For water the answer is 2H₂ + O₂ → 2H₂O: four hydrogen and two oxygen atoms on each side.

    The rule that makes this necessary is the law of conservation of mass: matter is neither created nor destroyed in a chemical reaction. Atoms are rearranged, not made or lost. An unbalanced equation claims something impossible, which is why it is not merely untidy but wrong.

    One constraint governs everything: you may change coefficients, never subscripts. Rewriting H₂O as H₂O₂ would balance the oxygen, but it also replaces water with hydrogen peroxide — a different compound entirely. The substances are fixed by the chemistry; only their quantities are yours to adjust.

    How to balance chemical equations

    Two methods are worth knowing. Inspection is quicker for simple reactions; the algebraic method always works.

    Balancing by inspection

    1. Count every element on both sides and note which ones differ.
    2. Start with an element that appears in only one formula on each side. Leave elements that appear in several compounds until later.
    3. Balance free elements — those appearing alone, such as O₂ or Fe — last, because a coefficient there disturbs nothing else.
    4. If you end up needing a fraction, multiply every coefficient through to clear it.
    5. Recount everything.

    The algebraic method

    Inspection relies on judgement, which runs out on larger equations. The algebraic method never does. Give every formula an unknown coefficient and write one equation per element. For water:

    aH₂ + bO₂ → cH₂O

    Hydrogen gives 2a = 2c. Oxygen gives 2b = c. Set c = 2, and it follows that a = 2 and b = 1 — the ratio 2 : 1 : 2.

    This is exactly what the balancer above does, which is why it can show its working for any equation rather than only familiar ones.

    How this chemical equation balancer works

    Under the surface the tool treats balancing as a linear algebra problem.

    Each species becomes a column of element counts. H₂O becomes "2 hydrogen, 1 oxygen". Stack the columns, make the product columns negative, and you have a matrix A. Balancing means finding a coefficient vector x for which A·x = 0 — every element's net change is zero. In linear algebra terms, the coefficients are a vector in the null space of the matrix.

    Three engineering decisions matter more than the algorithm itself:

    • The arithmetic is exact. Gaussian elimination runs over fractions held as arbitrary-precision integers, not floating-point numbers. A coefficient of one third stays exactly one third until the final scaling, so no rounding error can creep into an answer and no tolerance value has to be guessed.
    • The answer is re-checked independently. Once coefficients are found, a separate routine multiplies each formula out and recounts every atom and the net charge from the parsed formulas, without consulting anything the solver produced. Nothing is displayed as balanced unless that second pass agrees.
    • Refusal is a valid outcome. If the system has no solution, or more than one independent solution, or the solution would need a zero or negative coefficient, the tool explains the limitation. It never shows a guess.

    That last point is why C + O₂ → CO + CO₂ is declined. It is not a failure of the algorithm; that equation genuinely has infinitely many valid coefficient sets, and any single answer would be an arbitrary pick presented as the truth.

    Step-by-step example

    Take propane burning: C₃H₈ + O₂ → CO₂ + H₂O.

    Count first. Left: 3 carbon, 8 hydrogen, 2 oxygen. Right: 1 carbon, 2 hydrogen, 3 oxygen. Nothing matches.

    Carbon. Three carbons on the left, so three CO₂ on the right: C₃H₈ + O₂ → 3CO₂ + H₂O.

    Hydrogen. Eight hydrogens on the left; water carries two each, so four waters: C₃H₈ + O₂ → 3CO₂ + 4H₂O.

    Oxygen last. The right now holds 3×2 + 4×1 = 10 oxygen atoms. O₂ supplies two at a time, so five molecules: C₃H₈ + 5O₂ → 3CO₂ + 4H₂O.

    Verify. Carbon 3 = 3, hydrogen 8 = 8, oxygen 10 = 10. Balanced.

    Notice the order: carbon and hydrogen were fixed first because each appears in only one product, and oxygen came last because it appears in both products and alone as O₂. Choosing that order is what makes inspection feel like a knack — and what the algebraic method removes the need for.

    How to count atoms in a chemical formula

    Atom counting is where most errors start, particularly with brackets.

    Simple formulas

    Read left to right, with a missing subscript meaning one. H₂SO₄ is 2 hydrogen, 1 sulfur, 4 oxygen.

    Formulas with parentheses

    The subscript outside the bracket multiplies everything inside it. Ca(OH)₂ is 1 calcium, and 2 × (1 oxygen + 1 hydrogen) = 2 oxygen and 2 hydrogen.

    A harder one: Al₂(SO₄)₃. Aluminium is 2. The bracket holds 1 sulfur and 4 oxygen, multiplied by 3, giving 3 sulfur and 12 oxygen. The oxygen count is the step people miss — it is 12, not 4 and not 7.

    Repeated elements

    An element can appear more than once and the counts add. CH₃COOH is 2 carbon, 4 hydrogen and 2 oxygen once the separate appearances are totalled.

    Hydrates

    A raised dot joins loosely bound water. CuSO₄·5H₂O is the sulfate plus five waters: 1 copper, 1 sulfur, 4 + 5 = 9 oxygen, and 10 hydrogen. This balancer parses that notation rather than rejecting it.

    Coefficients vs subscripts

    FeatureCoefficientSubscript
    PositionIn front of a formulaInside a formula
    Example2H₂OH₂O
    MeaningTwo water moleculesTwo hydrogen atoms per molecule
    Changing itChanges the amountChanges the substance
    Allowed when balancing?YesNever

    A worked contrast: 2H₂O is four hydrogen atoms and two oxygen atoms of water. H₂O₂ is two hydrogen and two oxygen atoms of hydrogen peroxide — a bleach, not a drink. Same letters, entirely different chemistry.

    Common balancing rules that speed things up

    • Leave free elements until last. O₂, H₂, Fe and other lone elements can be adjusted without disturbing anything else.
    • Treat unchanged polyatomic ions as single units. If sulfate survives the reaction intact, count "SO₄" as one item rather than tracking sulfur and oxygen separately.
    • Start with the most complicated formula. The species with the most elements constrains the others fastest.
    • Fractions are allowed mid-working. Reaching 7/2 O₂ is fine; multiply everything by 2 at the end.
    • Even out odd counts. An odd atom count on one side and an even one on the other usually means doubling a coefficient.
    • Always recount at the end. Every element, both sides, no exceptions.

    Balancing combustion reactions

    Combustion is a fuel reacting with oxygen. For a hydrocarbon the products are carbon dioxide and water, which makes the pattern highly predictable:

    1. Balance carbon using CO₂.
    2. Balance hydrogen using H₂O.
    3. Total the oxygen atoms on the right, then divide by two for the O₂ coefficient.
    4. If that division gives a fraction, double everything.

    Methane is the easy case: CH₄ + 2O₂ → CO₂ + 2H₂O. Ethane shows the fractional step: one C₂H₆ needs 2 CO₂ and 3 H₂O, giving 7 oxygen atoms, so 7/2 O₂ — double everything for 2C₂H₆ + 7O₂ → 4CO₂ + 6H₂O. Octane is the same idea at larger scale: 2C₈H₁₈ + 25O₂ → 16CO₂ + 18H₂O.

    Balancing acid–base reactions

    A neutralisation reaction gives a salt and water. Hydrochloric acid with sodium hydroxide needs no coefficients at all: HCl + NaOH → NaCl + H₂O.

    Mismatched valencies are where coefficients appear. Sulfuric acid is diprotic, so it takes two hydroxides: H₂SO₄ + 2NaOH → Na₂SO₄ + 2H₂O. Calcium hydroxide supplies two hydroxides, so it takes two acids: Ca(OH)₂ + 2HCl → CaCl₂ + 2H₂O.

    The shortcut is to count replaceable hydrogens against available hydroxides and match them before touching anything else.

    Balancing ionic equations

    Ionic equations add a second condition: as well as every element balancing, the net charge must match on both sides. Charge is conserved just as strictly as mass.

    Write charges as Fe3+, Cl-, Ca++, or with a caret for polyatomic ions: SO4^2-. When any charge is present the balancer adds a charge row to the system and solves for both conditions at once.

    Zinc displacing silver is a clear example: Zn + 2Ag⁺ → Zn²⁺ + 2Ag. Atoms balance, and so does charge — 2+ on the left, 2+ on the right. Without the charge condition, Zn + Ag⁺ → Zn²⁺ + Ag would look acceptable on atoms alone while being physically impossible.

    One notation deliberately fails. NH4+ is refused, because the 4 could be a subscript (ammonium, charge 1+) or the charge magnitude (NH with charge 4+), and text alone cannot distinguish them. Writing NH4^+ removes the ambiguity. Refusing is the right behaviour here: silently choosing one reading could balance a different species than you meant.

    Balancing redox reactions

    Redox reactions involve electron transfer, with one species oxidised and another reduced. Because the algebraic method only enforces conservation of atoms and charge, it balances redox equations without needing to know which species does which. The permanganate reaction below balances normally, despite being a textbook redox problem:

    2KMnO₄ + 16HCl → 2KCl + 2MnCl₂ + 8H₂O + 5Cl₂

    What this version does not do is the half-reaction method — splitting the reaction into oxidation and reduction halves, balancing each with H⁺, OH⁻ and electrons, and combining them for acidic or basic solution. That is a genuinely different procedure with its own teaching value, and it is listed under future features rather than implied by the ordinary balancer.

    Common mistakes when balancing equations

    1. Changing a subscript. The most serious error, because it silently swaps one substance for another.
    2. Forgetting the bracket multiplier. Al₂(SO₄)₃ has 12 oxygen atoms, not 4.
    3. Missing a repeated element. In CH₃COOH the carbons and hydrogens appear twice each and must be added together.
    4. Splitting a two-letter symbol. Co is cobalt; C followed by o is not a valid reading. Case matters.
    5. Leaving a fraction in the final answer. Coefficients must be whole numbers, so clear fractions before finishing.
    6. Not reducing the ratio. 4 : 2 : 4 is arithmetically correct but not the conventional answer; 2 : 1 : 2 is.
    7. Writing a coefficient of 1. It is implied, so H₂ + O₂ is written rather than 1H₂ + 1O₂.
    8. Ignoring charge in ionic equations. Balanced atoms with unbalanced charge is still wrong.
    9. Stopping before verifying. Recounting takes seconds and catches nearly everything above.

    Worked equation examples

    UnbalancedBalancedType
    H₂ + O₂ → H₂O2H₂ + O₂ → 2H₂OSynthesis
    Fe + O₂ → Fe₂O₃4Fe + 3O₂ → 2Fe₂O₃Synthesis
    CH₄ + O₂ → CO₂ + H₂OCH₄ + 2O₂ → CO₂ + 2H₂OCombustion
    C₃H₈ + O₂ → CO₂ + H₂OC₃H₈ + 5O₂ → 3CO₂ + 4H₂OCombustion
    N₂ + H₂ → NH₃N₂ + 3H₂ → 2NH₃Synthesis
    KClO₃ → KCl + O₂2KClO₃ → 2KCl + 3O₂Decomposition
    Na + Cl₂ → NaCl2Na + Cl₂ → 2NaClSynthesis
    AgNO₃ + NaCl → AgCl + NaNO₃Already balancedDouble replacement
    C₆H₁₂O₆ + O₂ → CO₂ + H₂OC₆H₁₂O₆ + 6O₂ → 6CO₂ + 6H₂OCombustion
    Al + O₂ → Al₂O₃4Al + 3O₂ → 2Al₂O₃Synthesis

    Every row above can be pasted into the balancer to see the atom check and the working behind it.

    Frequently asked questions

    How do I balance a chemical equation?

    Count each element on both sides, then put whole-number coefficients in front of the formulas until every element appears the same number of times on the left and the right. You may only change the coefficients, never the subscripts inside a formula.

    What is a chemical equation balancer?

    It is a tool that works out the stoichiometric coefficients for you. You type the unbalanced reaction, and it returns the smallest set of whole numbers that satisfies the law of conservation of mass, along with the atom counts that prove it.

    Is this chemical equation balancer free?

    Yes, completely. There is no account, no usage limit and no paywall on any feature, including the step-by-step working and the downloads.

    How does the equation balancing actually work?

    Each formula becomes a column of element counts, which forms a matrix. Balancing means finding a vector of coefficients that the matrix sends to zero, in other words a null-space solution. That vector is then scaled to the smallest whole numbers.

    Can I balance H2 + O2 = H2O?

    Yes, and it is the default example. The answer is 2H2 + O2 = 2H2O, giving 4 hydrogen and 2 oxygen atoms on each side.

    Can I balance combustion equations?

    Yes. Hydrocarbon combustion is handled like any other reaction, including the cases with an odd oxygen count such as C2H6 + O2, which balances to 2C2H6 + 7O2 = 4CO2 + 6H2O.

    Can I balance equations with parentheses?

    Yes. Formulas such as Ca(OH)2, Mg(NO3)2 and Al2(SO4)3 are parsed correctly, including nested groups, and the multiplier outside the bracket is applied to everything inside it.

    Can I balance ionic equations?

    Yes. Write charges as Fe3+, Cl- or SO4^2-, and the balancer adds the net charge as an extra condition alongside the elements. It will not report an equation as balanced unless the charge matches on both sides too.

    Can I balance redox equations?

    Ordinary redox reactions balance normally, because the algebraic method does not care whether electrons are transferred. What this version does not yet provide is the half-reaction method with separate acidic and basic steps, which is listed under future features rather than pretended to exist.

    What is the law of conservation of mass?

    Matter is neither created nor destroyed in a chemical reaction, so every atom present among the reactants must still be present among the products. Balancing an equation is simply making the written equation obey that law.

    What is the difference between coefficients and subscripts?

    A coefficient sits in front of a formula and says how many of that whole unit take part, so 2H2O means two water molecules. A subscript sits inside a formula and says how many atoms of one element are in that unit, so the 2 in H2O means two hydrogen atoms per molecule.

    Why can't I change subscripts when balancing?

    Changing a subscript changes the substance. Turning H2O into H2O2 does not balance the oxygen, it swaps water for hydrogen peroxide, which is a different compound with different properties. Only the coefficients may change.

    How do I know if an equation is balanced?

    Multiply each formula by its coefficient, then count every element on both sides. If every element matches, and the net charge matches for an ionic equation, it is balanced. The atom table on this page shows that check for you.

    Can this tool show the steps?

    Yes. It shows the atom counts as typed, which elements are out of balance, the algebraic system with one equation per element, the solved ratio and the final verification. The full algebraic solution can be opened separately.

    Can I copy the balanced equation?

    Yes, in four formats: Unicode with proper subscripts, plain text for a code editor, LaTeX for a document, and HTML for a web page. You can also download the working as a text file or the atom comparison as CSV.

    Does it work on mobile?

    Yes. On a narrow screen the layout stacks into the order you use it, the equation input stays large and easy to tap, and long equations and tables scroll sideways instead of overflowing the page.

    Can I balance equations with polyatomic ions?

    Yes. Groups like sulfate, nitrate and hydroxide are handled through the normal parentheses parsing, so Al2(SO4)3 + Ca(OH)2 = 2Al(OH)3 + 3CaSO4 balances correctly without treating the group as a single unit.

    Can I use physical states like (aq), (s), (l) and (g)?

    Yes. State labels are recognised, ignored while the coefficients are calculated because they contain no atoms, and preserved in the displayed equation so your answer looks the way your textbook writes it.

    Does the tool support charges?

    Yes, written as Fe3+, Cl-, Ca++ or with a caret as SO4^2-. A polyatomic ion written without the caret, such as NH4+, is refused as ambiguous, because the digit could be a subscript or the charge and guessing could balance the wrong species.

    Is the balancing mathematically guaranteed?

    The coefficients come from exact integer arithmetic, so there is no rounding error, and every answer is re-checked atom by atom before it is displayed. If an equation has no solution, more than one independent solution, or would need a zero or negative coefficient, the tool says so instead of showing a guess.

    Why does it sometimes refuse to balance an equation?

    Usually because the equation genuinely cannot balance, for example when an element appears on only one side. It also refuses equations with more than one independent solution, such as C + O2 = CO + CO2, where several different coefficient sets are equally valid and picking one would be arbitrary.

    Is my equation sent to a server?

    No. The parser and the solver both run in your browser, and the recent-equation history is stored only in your own browser storage. Nothing is uploaded, and the tool keeps working if you disconnect after the page has loaded.

    Balancing is usually the first step in a longer problem. The Interactive Periodic Table gives atomic masses for the mole calculations that follow, and the Electron Configuration Builder explains the electron structure behind why elements combine in the ratios they do. For decay rather than reaction, the Half-Life & Radioactive Decay Calculator handles nuclear change, and the 3D Molecular Structure Viewer shows the shapes of the molecules involved.

    For the arithmetic around a balanced equation, the Scientific Calculator covers logarithms and powers, the Percentage Calculator handles percentage yield and composition, and the Unit Converter deals with mass and volume conversions.

    What this tool does, and what may come later

    Available now: balancing any equation with a unique solution; exact whole-number coefficients reduced to the smallest ratio; independent atom and charge verification; before and after atom tables; step-by-step working plus the full algebraic solution; parentheses, nested groups and hydrate notation; physical state labels; ionic equations with charge balancing; conservative reaction type detection; copy as Unicode, plain text, LaTeX or HTML; TXT and CSV export; and local equation history.

    Not implemented yet: the redox half-reaction method for acidic and basic solution, a molar mass calculator, stoichiometry and limiting reagent calculations, percentage yield, a searchable reaction database, and image or OCR equation input. These are listed so the current scope is unambiguous — none of them are available on this page today.