# Chemical equation balancer > How do you balance a chemical equation? Type the reactants and products and get the smallest whole-number coefficients, with an atom count for each side. Balance any chemical equation, ions and redox included, with the smallest whole coefficients and a side-by-side count of every element's atoms. - Page: https://how.box/balance/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/balance/?e={e} - `e` (text): The unbalanced equation, e.g. C3H8 + O2 -> CO2 + H2O. Example: `H2 + O2 -> H2O`. Example answer: https://how.box/balance/?e=H2+%2B+O2+-%3E+H2O A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `balance_equation`: Balances a chemical equation with the smallest whole-number coefficients (exact linear algebra; atoms of every element and the total charge equal on both sides). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"balance_equation","arguments":{"equation":"H2 + O2 -> H2O"}}}` - GET: https://how.box/mcp/run/balance_equation?equation=H2+%2B+O2+-%3E+H2O ## How it works Atoms are neither made nor destroyed in a chemical reaction, so every element must appear as many times after the arrow as before it. Balancing puts a coefficient in front of each substance, the number of its formula units, until the counts match. Only coefficients change: changing a subscript would make a different substance. For each element j, Σ νᵢ × aᵢⱼ over the reactants equals the same sum over the products, where νᵢ is substance i's coefficient and aᵢⱼ its count of atoms of element j. For burning propane, C₃H₈ + 5 O₂ → 3 CO₂ + 4 H₂O: carbon 3 = 3 × 1, hydrogen 8 = 4 × 2 and oxygen 5 × 2 = 3 × 2 + 4 × 1 = 10. With ions, the total charge must match too. The calculator solves these equations exactly and gives the smallest whole numbers, as in OpenStax Chemistry 2e, section 4.1. An equation that mixes two independent reactions can be balanced in more than one way and is refused: enter each reaction on its own. A balanced equation says nothing about whether the reaction actually happens, how fast, or how much heat it gives. ## FAQ **Why are Co and CO treated as different substances?** Element symbols are case-sensitive: Co is cobalt, while CO contains carbon and oxygen. Check capital letters if the atom counts or result look unexpected. **How do I enter an ion or an electron?** Write the charge after a caret, such as Fe^3+ or SO4^2-, and an electron as e-. Then both atoms and charge are balanced: Fe^3+ + e- -> Fe^2+. **Can I enter a reversible reaction?** Yes. Use an arrow such as <=> between the two sides. The coefficients balance the reaction but do not tell you its equilibrium position. **Do I need to type the coefficients I already know?** No. Typed coefficients are ignored for the answer; the chart only shows them as typed, so you can see what changed. **Can the calculator fill in a missing reactant or product?** No. Enter every substance in the reaction before balancing; the calculator finds coefficients but does not predict missing chemicals. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)