Guide

THE TOOLBOX / SCHOOL & CHEMISTRY

Chemical Equation Balancer —
Stoichiometry & Molar Mass Solver.

Balance combustion, redox, and acid-base equations instantaneously using exact rational algebra, verify atom conservation, and convert grams to moles across every reactant and product.

Balanced Chemical Equation
C3H8+5O2→3CO2+4H2O

Atom Conservation Check

ElementReactantsProductsStatus
C33✓ Balanced
H88✓ Balanced
O1010✓ Balanced

Stoichiometry & Molar Mass Calculator

Given:g of
CompoundRoleMolar MassMolesMass (g)
C3H8Reactant44.10 g/mol1.000 mol44.10 g
5 O2Reactant32.00 g/mol5.000 mol160.00 g
3 CO2Product44.01 g/mol3.000 mol132.04 g
4 H2OProduct18.02 g/mol4.000 mol72.06 g

Standalone Molar Mass & Elemental % Composition

Enter any compound (supports parentheses & hydrates like CuSO4·5H2O).

Molar Mass
180.156 g/mol
C × 6
72.07 g (40.0%)
H × 12
12.10 g (6.7%)
O × 6
95.99 g (53.3%)

CHEMISTRY BALANCING GUIDE

How conservation of mass, molar mass, and stoichiometry work together.

1. Law of Conservation of Mass

Every atom present in the reactants must appear in the exact same count in the products. Balancing adjusts only the leading coefficients—never the subscripts inside a chemical formula.

2. Worked Example: Propane Combustion

Starting from C3H8 + O2 → CO2 + H2O, balance Carbon first (3 CO2), Hydrogen next (4 H2O), and finally Oxygen (6 + 4 = 10 O → 5 O2), yielding C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O.

3. Gram-to-Mole Stoichiometry

Using standard IUPAC atomic weights, 1 mole of C3H8 weighs 44.10 g and reacts with 5 mol O2 (160.00 g) to yield 3 mol CO2 (132.03 g) and 4 mol H2O (72.06 g).

Common Balanced Reaction Types Reference

Reaction TypeGeneral FormBalanced Example
SynthesisA + B → ABN2 + 3 H2 → 2 NH3
CombustionCₓHᵧ + O2 → CO2 + H2OC3H8 + 5 O2 → 3 CO2 + 4 H2O
Single ReplacementA + BC → AC + BFe2O3 + 2 Al → 2 Fe + Al2O3
Acid-Base NeutralizationAcid + Base → Salt + H2OH2SO4 + 2 NaOH → Na2SO4 + 2 H2O

Frequently Asked Questions

How does this chemical equation balancer solve complex reactions automatically?

It builds an element-conservation matrix from every reactant and product, solves the nullspace using exact rational (BigInt fraction) Gaussian elimination, clears denominators, and reduces coefficients by their greatest common divisor—guaranteeing the smallest whole-number balanced equation.

Can I enter parentheses and hydrates like Ca(OH)2 or CuSO4·5H2O?

Yes. Both round parentheses (e.g., Ca(OH)2, Al2(SO4)3), square brackets, and hydrate dots (· or .) are parsed recursively for both equation balancing and molar mass calculations.

How do I calculate grams of product from grams of a reactant?

Once your equation is balanced, enter your starting mass in grams in the Stoichiometry table and pick that compound from the dropdown. The solver divides by its molar mass and coefficient to compute exact moles and gram yields for every other species.

Why does capitalization matter in chemical formulas?

Element symbols are case-sensitive in chemistry: "Co" is Cobalt (58.933 g/mol), whereas "CO" is Carbon Monoxide (1 Carbon + 1 Oxygen = 28.010 g/mol). Always capitalize the first letter of each element symbol.

What if an equation says it cannot be balanced?

That happens when an element appears on only one side of the arrow (for example, forgetting "+ H2O" on the product side) or when a chemical formula has a typo. Double-check every element symbol on both sides.

Does this chemistry solver work offline in my browser?

Yes. The IUPAC atomic mass table, matrix balancer, and stoichiometry engine all run 100% locally in your browser with instant updates as you type.