Chemical Equation Balancer – Balance Reactions Instantly

Enter an unbalanced chemical equation like H2 + O2 = H2O to get stoichiometric coefficients, the balanced equation, and an atom-count verification table.

818.7K usesUpdated · 2026-04-25Runs locally · zero upload

How to Use

  1. Type your unbalanced chemical equation in the input box using the format Reactants = Products. Separate species with +. Example: CH4 + O2 = CO2 + H2O
  2. Click Balance (or press Enter).
  3. The balanced equation appears immediately with integer stoichiometric coefficients.
  4. Review the Coefficients badge row to see each species multiplied by its coefficient.
  5. Check the Element Atom Count Verification table — every element should show equal atom counts on both sides (✓).

You can also click any of the quick-example equations (e.g., "Fe + O2 = Fe2O3") to load and balance them automatically.

Formula & Theory

Balancing a chemical equation means finding the smallest set of positive integer coefficients $(c_1, c_2, \ldots, c_n)$ such that the number of atoms of each element is equal on both sides of the reaction arrow.

Mathematically, if we denote the element-atom count matrix as $\mathbf{A}$ (rows = elements, columns = species, with positive sign for reactants and negative for products), then we need:

$$\mathbf{A} \cdot \mathbf{c} = \mathbf{0}$$

This is equivalent to finding the null space of $\mathbf{A}$.

For small equations (up to 6 species), this tool uses an integer enumeration approach: it systematically tests coefficient combinations from 1 to 10 until a combination satisfying all element-balance equations is found. The result is then reduced to the smallest integers by dividing by the greatest common divisor (GCD).

Law of Conservation of Mass guarantees that a balanced equation always exists for any valid chemical reaction — atoms are neither created nor destroyed, only rearranged.

Use Cases

  • Chemistry students checking homework or preparing for exams involving reaction stoichiometry.
  • Lab chemists quickly verifying that a reaction equation is correctly balanced before calculating reagent amounts.
  • Teachers demonstrating the concept of atom conservation and stoichiometry in class.
  • Industrial process engineers ensuring that reaction equations used in process simulations are mass-balanced.
  • Self-learners exploring chemistry who want immediate, visual feedback on equation balancing.

Frequently asked questions about Chemical Equation Balancer – Balance Reactions Instantly

What equation format does the balancer accept?

Enter reactants and products separated by = (or → or ->). Separate multiple species with +. Example: Fe + O2 = Fe2O3

Does it handle parentheses in formulas like Ca(OH)2?

Yes. The parser handles common parenthesized groups such as Ca(OH)2, Fe2(SO4)3, and Al(NO3)3.

Why can't some equations be balanced?

The balancer uses an integer search up to coefficient 10. Equations requiring very large coefficients or those that are chemically impossible may not resolve. Verify the equation is chemically correct.

How does the atom verification table work?

After balancing, the table shows the total atom count of each element on the left (reactants) and right (products) sides. All counts should match — indicated by a green check mark.

Is my data stored or sent to a server?

No. All balancing calculations happen entirely in your browser. No input data is transmitted or stored.