Chemical Equation Balancer

Chemical Equation Balancer. A chemical equation must have the same number of atoms on both sides — the Chemical Equation Balancer finds the correct coefficients so your reaction satisfies the law of conservation of mass. Enter your unbalanced chemical equation using element symbols and a = sign between reactants and products to get the balanced equation, along with a balance status and an atom conservation check confirming each element's count matches across both sides. Also try the Net Ionic Equation Calculator.

Chemical Equation Balancer inputs

Use uppercase for first letter, lowercase for second (e.g., Fe, Au, Co). Use + for reactants, = for products

Results

Balanced Equation

--

Status

--

Atom Conservation Check

--

Results Table

Use this chemical equation balancer in chemistry class to balance any chemical equation: type the reactants and products, and the balancer returns the smallest whole-number coefficients that keep every element's atoms equal on both sides. Students get a quick check for homework, and anyone holding an unbalanced equation gets an answer in seconds.

How to Use This Chemical Equation Balancer

This balancer reads whatever you type, so enter the equation with a plus sign between compounds, press the calculate button, and the solver returns an exact answer rather than a guess, like any good calculator.

The calculator also flags impossible inputs. If an element shows up on only one side, no whole-number answer exists, and the tool says so instead of forcing coefficients. Conservation only holds when every atom has somewhere to go, so a missing product is the usual culprit; check the formulas you typed first.

Enter an unbalanced equation

Write each formula in standard notation, such as Al2(SO4)3, with an arrow between the reactants and products. Parentheses and nested parentheses are fine, and polyatomic groups stay intact. Any coefficients you type are ignored, so a half-finished input works.

Read the balanced equation and element counts

The calculator shows your input beside the balanced equation, plus atom counts for each element, so you can check that every one of the elements matches. The tool never edits a formula; only the numbers in front change.

How Balancing Equations Works with the Nullspace Method

Every species becomes a column and every element a row in an atom-balance matrix. Reactant counts are positive and product counts negative, so a balanced set of coefficients is a vector in the nullspace:

$$A \cdot x = 0$$

The solver finds that vector by Gaussian elimination, using exact fractions through row-reduction instead of floating-point rounding. Because each element gives one linear equation, an integer solution exists whenever the equation is chemically consistent.

Heat map of atoms per molecule for carbon, hydrogen and oxygen across C4H10, O2, CO2 and H2O, the atom-balance matrix behind a chemical equation balancer
Each element is one row of the atom-balance matrix; the nullspace solution gives the coefficients 2, 13, 8 and 10.

Smallest whole-number coefficients

Row-reduction often leaves denominators, so it multiplies through by the least common multiple, then divides by the greatest common divisor to reach lowest terms. Any common factor left over would mean the coefficients are not minimal.

How to Balance Chemical Equations by Hand

The law of conservation of mass says atoms are never created or destroyed, so each element needs the same count on both sides. Work step by step:

  1. Write correct formulas for every reactant and product, and leave them alone afterward.
  2. Pick an element that appears in one compound per side and fix it with a coefficient.
  3. Balance hydrogen and oxygen last, since free H2 and O2 can change without disturbing anything else.
  4. Clear any fraction by multiplying every coefficient through.
  5. Tally every element on both sides again, and confirm the mass using each molar mass.

Why subscripts never change

A subscript is part of a compound's identity: turning H2O into H2O2 gives hydrogen peroxide, not water. Only the coefficients can move, because they state how many molecules or formula units join the chemical reaction.

Balancing Chemical Equations: A Butane Combustion Example

Take butane burning in a lighter: C4H10 + O2 → CO2 + H2O. Four carbons demand 4 CO2, ten H atoms demand 5 H2O, and the products then hold 13 oxygen atoms, which means 6.5 O2. Double everything to get whole numbers:

\(2\,\mathrm{C_4H_{10}} + 13\,\mathrm{O_2} \rightarrow 8\,\mathrm{CO_2} + 10\,\mathrm{H_2O}\)

Dumbbell chart showing reactant and product atom counts for carbon, hydrogen and oxygen in the unbalanced butane combustion equation
Before balancing, hydrogen is furthest off at 10 atoms against 2.
ElementReactant atomsProduct atoms
Carbon2 × 4 = 88 × 1 = 8
Hydrogen2 × 10 = 2010 × 2 = 20
Oxygen13 × 2 = 268 × 2 + 10 = 26
Waterfall chart adding 16 oxygen atoms in CO2 and 10 in H2O to reach the 26 oxygen atoms supplied by 13 O2 molecules
16 oxygen atoms in carbon dioxide plus 10 in water make the 26 that 13 O2 molecules supply.

Read the table as a conservation check: each molecule of butane contributes four carbon atoms, and the totals match row by row, so mass is conserved. Propane combustion lands on whole numbers straight away, whereas ethane and butane both force the doubling step; methane, with a single carbon, is the easiest of the family. Other examples include iron meeting oxygen to form rust, or iron with chlorine; the balancer returns each of these the same way. Reach for the doubling step whenever a half-integer coefficient appears, and never leave a fraction in the final answer.

Common Chemical Reaction Types You Can Balance

Each type is solved the same way: combination, decomposition, displacement and double displacement. A precipitation reaction leads to net ionic equations, where the totals must match as well. Redox problems also track electrons and oxidation numbers, but the atom balance works identically. A double displacement check: 2 Na3PO4 + 3 CaCl2 → Ca3(PO4)2 + 6 NaCl keeps 6 sodium, 2 phosphorus, 8 oxygen, 3 calcium and 6 chlorine on each side, with the phosphate and calcium simply swapping partners.

Balancing Equations for a Chlorine Prep: A Lab Walkthrough

My lab partner and I need chlorine gas for a bleaching demo, and the question is how much concentrated acid to measure for 3.16 g of potassium permanganate. Before touching a pipette, I open the chemical equation balancer and type KMnO4 + HCl -> KCl + MnCl2 + Cl2 + H2O.

The tool returns a balanced equation: 2 KMnO4 + 16 HCl → 2 KCl + 2 MnCl2 + 5 Cl2 + 8 H2O. The element counts agree on both sides: 2 potassium, 2 manganese, 8 oxygen, 16 hydrogen, 16 chlorine. Those coefficients give the mole ratios I need, 2 : 16 : 5, so I convert with the molar mass of 158.03 g/mol: 3.16 g is 0.02000 mol of permanganate.

KMnO4HCl needed12.0 M acidCl2 at 25 °C
3.16 g (0.02000 mol)0.1600 mol13.3 mL1.22 L
4.74 g (0.03000 mol)0.2400 mol20.0 mL1.83 L

The sensitivity rerun is the useful part: raising the permanganate by half raises everything by half, which is why the 8 : 1 acid-to-permanganate ratio is the number to watch. I read 12.0 M as the usual strength of reagent-grade acid and 24.47 L/mol as the molar volume of a gas at 25 °C and 1 atm.

One caveat before pouring: only 10 of the 16 chlorine atoms leave as Cl2; the other 6 stay behind as chloride in KCl and MnCl2. The balancer also checks atoms only, so a mistyped formula such as KMnO3 would still return a tidy answer. I confirm each formula against the bottle label before trusting the coefficients.

Common Mistakes When You Balance an Equation

  • Forgetting the multiplier. A coefficient multiplies the whole formula, so 2 Al(NO3)3 holds 6 nitrogen and 18 oxygen atoms.
  • Ignoring charge. Ionic equations need matching totals of atoms and charge.
  • Stopping early. Coefficients 4, 26, 16 and 20 balance but share a factor of 2.

Polyatomic ions as one block

When balancing by hand, count a sulfate or nitrate group that appears unchanged on both sides as a single unit instead of tallying sulfur and oxygen separately, as in Al2(SO4)3. The balancer keeps these groups intact for you.

Why Balancing Matters for Stoichiometry and Lab Practice

Coefficients are the mole ratios behind stoichiometry: they tell you how many moles react, which reagent is the limiting reactant, and the ratio of product you can expect. In a classroom or lab, students who can balance equations quickly spot errors before they reach the answer key. Board exams, electrochemistry and organic chemistry all rely on this theory, and one wrong coefficient breaks every later mole calculation, so regular practice pays off. Try balancing Al + O2 → Al2O3 by hand first, then confirm it here with the calculator: the result should read 4 Al + 3 O2 → 2 Al2O3, and every row of the element counts should agree.