Chemical Equation Balancer (with Atom and Mass Check)

A balanced chemical equation has the same number of atoms of every element, and the same total charge, on both sides. Type the reactants and products and this balancer finds the smallest whole-number coefficients, shows the element equations it solved and checks the atoms and the mass on each side. It handles ions, redox reactions and half-equations with electrons.

Inputs

Results

Balanced equation
C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O
Mass of reactants per mole of reaction
204.087
g/mol
Mass of products per mole of reaction
204.087
g/mol
Coefficients in order
1, 5, 3, 4

    RefCHM-STO-009
    MethodCoefficients from the null space of the element (and charge) matrix by exact Gaussian elimination, scaled to the smallest whole numbers
    UnitsSI
    Date2026-11-24

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. Speciesa = C₃H₈ (reactant); b = O₂ (reactant); c = CO₂ (product); d = H₂O (product)
    2. One equation per elementatoms on the left = atoms on the rightC: 3a = c; H: 8a = 2d; O: 2b = 2c + d
    3. Solveexact elimination, then the smallest whole numbers that satisfy every equationa = 1, b = 5, c = 3, d = 4
    4. Atom checkC 3 = 3; H 8 = 8; O 10 = 10
    5. Mass checkΣ coefficient × molar mass is the same on both sidesreactants 204.087 g = products 204.087 g per mole of reaction

    Balanced species

    SpeciesSideCoefficientMolar mass (g/mol)Mass per mole of reaction (g)
    C₃H₈Reactant144.09744.097
    O₂Reactant531.998159.99
    CO₂Product344.009132.027
    H₂OProduct418.01572.06

    The algebraic (matrix) method

    Give each species an unknown coefficient (a, b, c, …) and write one equation per element: in C₃H₈ + O₂ → CO₂ + H₂O, carbon gives 3a = c, hydrogen 8a = 2d and oxygen 2b = 2c + d. When ions are present, the total charge gives one more equation. Solving these linear equations exactly, then scaling to the smallest whole numbers, gives a = 1, b = 5, c = 3, d = 4. If the equations have no positive solution, a formula is wrong or a species is on the wrong side; if they have more than one independent solution, the equation mixes two separate reactions and has to be split.

    Assumptions and limits

    • Formulas are taken as typed; the balancer does not check that the reaction is chemically possible.
    • Coefficients and state symbols you type are ignored.
    • Mass balance uses CIAAW standard atomic weights; electrons are given no mass.

    References

    • Blakley, G. R. (1982), Chemical equation balancing: a general method which is quick, simple, and has unexpected applications, Journal of Chemical Education 59(9), 728–734.
    • Atkins, P., Jones, L. and Laverman, L., Chemical Principles: The Quest for Insight, 7th ed., W. H. Freeman, 2016, Fundamentals section on chemical equations.
    • Prohaska, T. et al. (2022), Standard atomic weights of the elements 2021 (IUPAC Technical Report), Pure and Applied Chemistry 94, 573–600.

    Questions

    How do you balance the combustion of propane, C₃H₈ + O₂ → CO₂ + H₂O?
    C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O. Both sides hold 3 C, 8 H and 10 O, and both weigh 204.09 g per mole of reaction.
    How do I balance a redox equation with ions?
    Type the charges with ^: MnO4^- + Fe^2+ + H^+ -> Mn^2+ + Fe^3+ + H2O gives MnO₄⁻ + 5 Fe²⁺ + 8 H⁺ → Mn²⁺ + 5 Fe³⁺ + 4 H₂O, with a charge of +17 on each side.
    Why does the balancer say an equation cannot be balanced?
    An element appears on only one side, a formula is mistyped (Co is cobalt, CO is carbon monoxide), or the species can only balance with a negative coefficient, which means one is on the wrong side.

    This calculator is a design aid. Check results against the governing code or standard and have critical work verified by a qualified engineer. Read the disclaimer.