Chemical Equation Balancer
Balance a chemical equation in your browser with exact rational arithmetic: coefficients plus the per-element check. ASCII formulas only.
What this chemical equation balancer does
The page balances the equation with exact rational row-reduction — no floating point, so a coefficient is never almost right — and prints the balanced form with the per-element check beneath: H2 + O2 -> H2O becomes 2H2 + O2 -> 2H2O with H: 4 = 4 and O: 2 = 2. Formulas are ASCII only, written with -> or = between the sides and + between compounds; anything the parser cannot read is refused naming the formula, and an equation with no balance (atoms on one side only) is refused rather than invented. Parenthesised groups are outside the grammar and refused by name.
How to use it
Chemical Equation Balancer: paste the chemical equation into the box above, and press Run to get the balanced equation below.
Worked example
Input:
H2 + O2 -> H2O
Output:
2H2 + O2 -> 2H2O
H: 4 = 4
O: 2 = 2
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads chemical equation and returns balanced equation; reloading the page discards both.
The page balances the equation with exact rational row-reduction — no floating point, so a coefficient is never almost right — and prints the balanced form with the per-element check beneath: H2 + O2 -> H2O becomes 2H2 + O2 -> 2H2O with H: 4 = 4 and O: 2 = 2. Formulas are ASCII only, written with -> or = between the sides and + between compounds; anything the parser cannot read is refused naming the formula, and an equation with no balance (atoms on one side only) is refused rather than invented. Parenthesised groups are outside the grammar and refused by name.
Balance a chemical equation in your browser with exact rational arithmetic: coefficients plus the per-element check. ASCII formulas only.
How to use it
Chemical Equation Balancer: paste the chemical equation into the box above, and press Run to get the balanced equation below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads chemical equation and returns balanced equation; reloading the page discards both.
What to Expect
Best for
- Converting chemical equation to balanced equation when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
H2 + O2 -> H2O
Sample output
2H2 + O2 -> 2H2O H: 4 = 4 O: 2 = 2
Frequently asked questions
How do I use the chemical equation balancer?
Chemical Equation Balancer: paste the chemical equation into the box above, and press Run to get the balanced equation below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.