Chemical Equation Balancer with Step-by-Step Output
This calculator balances combustion, net ionic, and redox equations using the matrix method, returning the smallest integer coefficients.
Ready to Balance
Enter a chemical equation to automatically balance it using matrix methods, handle redox reactions, or convert to net ionic form.
How It Works
1. Parse Equation
Break down the equation into species, extracting elements, charges, and states.
2. Build Matrix
Create stoichiometry matrix where rows are elements and columns are species.
3. Solve System
Use Gaussian elimination to find the smallest whole-number coefficients.
Balance Combustion and Net Ionic Equations
Combustion of methane and a silver chloride precipitation look like different reactions in a textbook. They aren't, at least not as far as the balancing procedure is concerned. CH₄ + 2 O₂ → CO₂ + 2 H₂O and Ag⁺ + Cl⁻ → AgCl both reduce to the same problem: assign coefficients so the atom counts on each side of the arrow match, and so the total charge does too. Combustion needs no charge balance because everything is neutral. Net ionic equations make charge the dominant constraint and let solubility rules pick the precipitate. This calculator balances combustion, net ionic, and redox forms using the matrix method, returning the smallest integer coefficients.
The matrix method treats balancing as a linear algebra problem. Each element becomes a row, each compound becomes a column, and you solve for the null space. Sounds intimidating, but it's actually more reliable than guessing. For propane combustion (C₃H₈ + O₂ → CO₂ + H₂O), the matrix approach sets up three equations: carbon balance, hydrogen balance, oxygen balance. Gaussian elimination finds coefficients [1, 5, 3, 4] every time. No trial, no error.
When should you use which? Inspection is fine for 2-3 species with small coefficients. Anything with polyatomic ions, combustion products, or redox processes—use the systematic approach. This tool uses matrix algebra internally, so it handles the ugly equations that make students cry.
Atom Count Verification Table
After you get coefficients, verify them. Count every atom on both sides. For 2 H₂ + O₂ → 2 H₂O: left side has 4 H and 2 O, right side has 4 H and 2 O. Match confirmed. Skip this step and you'll submit wrong answers on exams because you trusted your arithmetic.
Build a verification table: element in column one, reactant total in column two, product total in column three. If any row doesn't match, the equation isn't balanced. The tool generates this table automatically, but you need to understand how to build one by hand for exams.
Example: C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O
C: 3 left, 3 right ✓
H: 8 left, 8 right ✓
O: 10 left, 10 right ✓
Parentheses trip people up constantly. In Ca(OH)₂, that subscript 2 applies to everything inside: 1 Ca, 2 O, 2 H. Miss that distribution and your oxygen count is wrong before you even start balancing.
Net Ionic Equation Support
Complete ionic equations show every ion that's actually floating around in solution. Net ionic equations strip out spectator ions—the ones that don't participate in the reaction. For AgNO₃ + NaCl → AgCl + NaNO₃, the complete ionic form is Ag⁺ + NO₃⁻ + Na⁺ + Cl⁻ → AgCl + Na⁺ + NO₃⁻. Cancel Na⁺ and NO₃⁻ from both sides, and you get the net ionic: Ag⁺ + Cl⁻ → AgCl.
Solubility rules determine what stays ionic versus what precipitates. AgCl is insoluble, so it forms a solid. NaNO₃ is soluble, so it stays as separate ions. You can't write net ionic equations without knowing which compounds dissociate. Most nitrates are soluble. Most chlorides are soluble except with silver, lead, and mercury. Memorize the rules or keep a table handy.
The tool balances molecular equations, but the ionic form shows what is actually happening in the beaker. When your lab TA asks why precipitate formed, "because AgCl is insoluble" is the right answer, not "because the equation said so."
Combustion & Synthesis Shortcuts
Combustion follows a pattern: hydrocarbon + O₂ → CO₂ + H₂O. Always. For CₙH₂ₙ₊₂ alkanes, you need (3n+1)/2 moles of O₂. Methane (CH₄) needs 2 O₂. Ethane (C₂H₆) needs 3.5 O₂. Propane (C₃H₈) needs 5 O₂. If you get fractional coefficients, multiply everything by 2 to clear them.
Synthesis reactions combine elements to make compounds: A + B → AB. Decomposition does the opposite: AB → A + B. Single replacement: A + BC → AC + B. Double replacement: AB + CD → AD + CB. Knowing the reaction type tells you what products to expect before you even balance.
Common patterns:
Combustion: CₓHᵧ + O₂ → CO₂ + H₂O
Metal oxide: 4 Fe + 3 O₂ → 2 Fe₂O₃
Neutralization: HCl + NaOH → NaCl + H₂O
Recognizing these patterns speeds up balancing. You know combustion will have big O₂ coefficients. You know neutralization usually gives 1:1:1:1 ratios. Pattern recognition is half the battle.
Worked Balancing Run
Problem: Balance the combustion of octane: C₈H₁₈ + O₂ → CO₂ + H₂O
Step 1: Balance carbon
8 carbons on left, need 8 CO₂ on right
C₈H₁₈ + O₂ → 8 CO₂ + H₂O
Step 2: Balance hydrogen
18 hydrogens on left, need 9 H₂O on right
C₈H₁₈ + O₂ → 8 CO₂ + 9 H₂O
Step 3: Balance oxygen
Right side: 8(2) + 9(1) = 25 oxygen atoms
Need 25/2 = 12.5 O₂ on left
Step 4: Clear fractions
Multiply everything by 2:
2 C₈H₁₈ + 25 O₂ → 16 CO₂ + 18 H₂O
Verification: C = 16, H = 36, O = 50 on both sides. The coefficients 2:25:16:18 are the smallest whole numbers. This is the equation used for calculating gasoline combustion in car engines—every chemistry student should be able to balance it.
Assumptions & Limits
• Balanced ≠ feasible: Just because an equation balances doesn't mean the reaction actually happens. Thermodynamics and kinetics determine feasibility, not atom counts.
• Molecular equations only: This tool balances molecular forms. For complete/net ionic, you need to apply solubility rules and separate ions manually.
• Standard notation required: Use proper chemical formulas (H2O, not water). Capitalization matters: Co is cobalt, CO is carbon monoxide.
• Smallest integers: Results are simplified to smallest whole-number coefficients. If your textbook uses different multiples, they're mathematically equivalent.
Sources
- IUPAC Nomenclature — Standard chemical notation rules
- OpenStax Chemistry 2e — Chapter 4: Stoichiometry
- LibreTexts Chemistry — Balancing equations tutorials
Balancer Pitfalls Q&A
What is a balanced chemical equation and why is it important?
A balanced chemical equation has equal numbers of each type of atom on both sides of the reaction arrow, satisfying the law of conservation of mass—atoms are neither created nor destroyed. Balancing is essential because it gives the correct mole ratios needed for stoichiometry calculations, predicting yields, and planning experiments. Unbalanced equations are scientifically meaningless and cannot be used for quantitative chemistry. For example, H₂ + O₂ → H₂O is unbalanced (2 O on left, 1 on right), but 2 H₂ + O₂ → 2 H₂O is balanced (4 H and 2 O on each side).
How do I enter a chemical equation into the balancer?
Enter equations in the format "reactants → products" or "reactants -> products". Separate multiple species with + signs. Use standard chemical formulas: H2, O2, CO2, H2O, Ca(OH)2, Al2(SO4)3. Examples: "Fe + O2 -> Fe2O3", "C3H8 + O2 → CO2 + H2O", "NaOH + H2SO4 -> Na2SO4 + H2O". You can include state symbols (s, l, g, aq) and charges (use ^ notation like SO4^2- or Fe^3+). Don't worry about coefficients—the balancer finds them automatically. Just make sure formulas are correct (typos will cause errors).
Can the balancer handle complex combustion equations?
Yes! Combustion equations (hydrocarbons + O₂ → CO₂ + H₂O) often have large coefficients and can be tedious to balance manually. The balancer handles them instantly. For example, input "C8H18 + O2 -> CO2 + H2O" (octane combustion), and it returns 2 C₈H₁₈ + 25 O₂ → 16 CO₂ + 18 H₂O in milliseconds. This works for any hydrocarbon—propane, butane, ethanol, glucose—saving you 5-10 minutes of trial-and-error per equation.
What balancing methods does the calculator use?
The calculator offers multiple methods: (1) **Matrix/Gaussian Elimination** (default)—uses linear algebra to solve atom balance as a system of equations, works for all equation types; (2) **Inspection** (trial-and-error with smart fallback to matrix method); (3) **Redox in acidic/basic media**—half-reaction method with electron balancing for oxidation-reduction reactions, automatically adds H⁺/OH⁻/H₂O; (4) **Net Ionic**—removes spectator ions from ionic equations; (5) **Verify mode**—checks if an already-balanced equation is correct. Most users use matrix method as it's fast, accurate, and universal.
How does the matrix method work mathematically?
The matrix method treats balancing as a linear algebra problem. It builds a stoichiometry matrix where each row represents an element (H, O, C, etc.) and each column represents a chemical species (H₂, O₂, H₂O). Entries are atom counts (positive for reactants, negative for products). The goal: find coefficients (one per species) that make each row sum to zero (atoms balance). The calculator uses Gaussian elimination to find the null space of this matrix, then scales the result to smallest whole numbers. This method works for any equation, no matter how complex, and guarantees the mathematically correct solution.
Can I balance redox reactions with electron transfer?
Absolutely! Redox reactions (oxidation-reduction) involve electron transfer between species. The balancer has a dedicated redox mode that uses the half-reaction method: separate oxidation and reduction half-reactions, balance atoms and charge in each (adding H⁺, OH⁻, H₂O, and e⁻ as needed), then combine so electrons cancel. You can specify acidic or basic media. Example: Fe²⁺ + MnO₄⁻ → Fe³⁺ + Mn²⁺ in acid becomes 5 Fe²⁺ + MnO₄⁻ + 8 H⁺ → 5 Fe³⁺ + Mn²⁺ + 4 H₂O. The calculator handles all the electron accounting automatically.
What are spectator ions and how does net ionic balancing work?
Spectator ions appear on both sides of an ionic equation unchanged—they don't participate in the reaction. For example, in NaCl(aq) + AgNO₃(aq) → AgCl(s) + NaNO₃(aq), Na⁺ and NO₃⁻ are spectators (they're in solution before and after). The **net ionic equation** removes spectators to show only the actual reaction: Ag⁺(aq) + Cl⁻(aq) → AgCl(s). Our balancer's net ionic mode identifies and cancels spectators, simplifying equations and highlighting the chemistry. This is essential for understanding precipitation, acid-base, and redox reactions in solution.
Why does the balancer sometimes fail to balance my equation?
If the balancer says "Cannot balance" or "No solution," it means the equation is chemically impossible or has typos. Common causes: (1) **Typo in formula**—writing H2O2 instead of H2O, or CaOH2 instead of Ca(OH)2; (2) **Missing products**—forgot to include a product (e.g., C3H8 + O2 → CO2, omitting H2O); (3) **Impossible reaction**—the products don't contain the same elements as reactants (e.g., trying to get Na from H2O decomposition); (4) **Wrong reaction type**—mixing up reactants and products. Double-check formulas, ensure all products are listed, and verify the reaction makes chemical sense. The balancer is a diagnostic tool—failures point to input errors.
Can I verify if my manually balanced equation is correct?
Yes! Use the balancer's verify mode (or just input your balanced equation with coefficients). The tool will check atom-by-atom and charge balance, showing a detailed verification table: element counts on each side, with checkmarks (✓) if balanced or red flags if not. This is perfect for checking homework, confirming exam answers, or validating equations before using them in stoichiometry. It's faster and more reliable than manually counting atoms, especially for complex equations with 5+ species.
Do I need to balance equations before doing stoichiometry?
**Absolutely yes!** Stoichiometry requires a balanced equation because the coefficients provide the mole ratios you need for conversions. If you try stoichiometry with an unbalanced equation, your mole ratios will be wrong, leading to incorrect masses, volumes, or yields. Always balance first. Workflow: (1) Balance equation (use this tool), (2) Convert given quantity to moles, (3) Use mole ratio from coefficients, (4) Convert to desired units. Balancing is the foundation; stoichiometry is the building on that foundation.
Can the balancer handle equations with polyatomic ions and parentheses?
Yes! The balancer correctly parses formulas with parentheses and polyatomic ions. For Ca(OH)₂, it understands this is Ca:1, O:2, H:2 (the subscript 2 outside parentheses multiplies everything inside). For Al₂(SO₄)₃, it gets Al:2, S:3, O:12. Always use proper parentheses notation: Ca(OH)2, not CaOH2 (which is wrong). The parser handles nested structures and complex formulas automatically. Just type them as you would write them in a textbook.
Is this balancer accurate enough for academic and professional use?
Yes, the balancer uses mathematically rigorous algorithms (linear algebra, rational arithmetic) to guarantee correct results. It's suitable for homework, exams, teaching, lab planning, and professional chemistry work. The matrix method is the same approach taught in computational chemistry courses and used in research software. However, always apply chemical judgment: verify the input reaction makes sense, check for typos, and ensure products are chemically feasible. The balancer is a powerful math tool; you provide the chemistry expertise. Together, they ensure accurate, reliable results.
Was this calculator helpful?
Your rating helps us improve every EverydayBudd tool.
Need More Chemistry & Biochemistry Tools?
Explore our other calculators for chemistry, biochemistry, and more