Chemical Equation Balancer
Intelligent virtual tutor. Learn the balancing method step by step or practice by adjusting coefficients interactively with real-time feedback.
No equation loaded
Type a chemical equation or select an example from the bank to begin.
About This Simulator
Chemical equations are balanced by adjusting the stoichiometric coefficients of reactants and products so that the number of atoms for each element is conserved on both sides, following the Law of Conservation of Mass. This simulator analyzes your equation and uses an algebraic solver (Gauss-Jordan) to find the smallest set of whole-number coefficients.
Beyond computing the answer, the simulator explains the reasoning: it detects the reaction type (combustion, synthesis, neutralization, displacement…) and applies discipline-specific pedagogical rules to show the balancing sequence a teacher would use — not just the algorithm's output.
How to Use
- Enter an equation. Type the unbalanced chemical equation using
->as the arrow and+to separate species. Example:CH4 + O2 -> CO2 + H2O. - Choose a mode. Learning Mode walks you through each step with explanations. Training Mode lets you adjust coefficients yourself and get real-time feedback.
- Click Analyze. Or select a preset from the Exercise Bank to load it directly.
- Follow the steps (Learning) or try to balance it yourself (Training) using the Atom Count table as your guide.
Understanding the Results
Equation Display & Molecular View
The header shows the current equation with its active coefficients. The molecular view renders each species as colored circles representing the atoms — useful for visualizing how atom counts change as you adjust coefficients.
Step-by-Step Timeline (Learning Mode)
Each step focuses on one element at a time, following a didactic order specific to the reaction type. For combustion, for example, carbon is balanced first, then hydrogen, and oxygen last. The atom count table updates at each step to show progress.
Atom Count Table
Shows the number of atoms of each element on both sides of the equation under the current coefficients. A green "Balanced" badge means both sides match. Red "Unbalanced" and blue "Excess" indicators show where adjustments are still needed.
Frequently Asked Questions
Why are my coefficients reduced to smaller numbers?
What reaction types does this simulator support?
How do I enter polyatomic groups like Ca(OH)2?
Ca(OH)2.
The parser handles nested groups and subscripts correctly.
Example: Ca(OH)2 + HCl -> CaCl2 + H2O.