How to use the chemical equation balancer
- Type the equation with the reactants on the left and the products on the right, separated by = or →, and + between substances.
- Read the balanced equation, the count of each element on both sides, and the algebra that produced the coefficients.
- To work out amounts, type the mass or moles of the reactants you have. The calculator names the limiting reagent and gives the theoretical yield of every product.
- For the percent yield, also type the mass of one product that you actually obtained.
- To plan a synthesis, leave the reactants empty and type only the amount of product you want: the calculator lists the reactants needed.
What balancing an equation means
Atoms are not created or destroyed in a chemical reaction; they only change partners. A balanced equation shows this: every element has the same number of atoms among the products as among the reactants. For an ionic equation, the total electric charge must match on both sides as well.
You balance an equation by changing the coefficients, the numbers written in front of each formula, and never the subscripts inside a formula. Changing H₂O to H₂O₂ would change the substance from water to hydrogen peroxide. The coefficients give the ratio in which the substances react, counted in molecules or in moles, and the balanced equation uses the smallest whole numbers that work.
The algebraic method, step by step
Balancing by inspection, trying numbers until the atoms add up, works for short equations but becomes guesswork when several elements appear in several substances. The algebraic method always works, and it is what this calculator does. Take the burning of propane, C₃H₈, in oxygen:
- Put an unknown in front of every formula, which turns the equation into a C₃H₈ + b O₂ → c CO₂ + d H₂O.
- Write one equation per element by counting its atoms on each side: C: 3a = c; H: 8a = 2d; O: 2b = 2c + d.
- There are more unknowns than independent equations, so fix one of them: set d = 1 and solve the equations: a = 1/4, b = 5/4, c = 3/4, d = 1.
- Clear any fractions by multiplying every value by the same whole number, which here gives a = 1, b = 5, c = 3, d = 4.
The result is C₃H₈ + 5O₂ → 3CO₂ + 4H₂O. Check: C 3, H 8, O 10 on each side. The calculator solves the equations with exact fractions rather than decimals, so even long equations with coefficients in the hundreds come out exactly.
Ions, electrons and redox reactions
In an ionic equation the charge is one more quantity to balance, and the calculator adds it as one more equation. Write the charge after a caret, as in Fe^3+ or SO4^2-, and electrons as e^-. This is how half-reactions are balanced. The reduction of dichromate in acid, for instance, balances to Cr₂O₇²⁻ + 14H⁺ + 6e⁻ → 2Cr³⁺ + 7H₂O: six electrons are gained, three by each chromium atom as it goes from +6 to +3.
Whole redox equations need no special treatment either. Potassium permanganate oxidizing hydrochloric acid balances to 2KMnO₄ + 16HCl → 2KCl + 2MnCl₂ + 8H₂O + 5Cl₂, a classic that is tedious to balance by hand because chlorine ends up in three different products.
When there is no answer, or more than one
Some equations cannot be balanced as written. If an element appears on one side only, the calculator says so. For H2 + O2 = NaOH, for example: “Na appears only among the products, so it cannot balance. Check the formulas; a substance may be missing.” If the only balance would need a substance on the other side of the arrow, or would need a coefficient of zero, it names that substance, because a formula or the arrangement is probably wrong.
Other equations can be balanced in more than one way, because they mix two or more independent reactions. Hydrogen burning to both water and hydrogen peroxide is one: H2 + O2 = H2O + H2O2 balances as 3H₂ + 2O₂ → 2H₂O + H₂O₂, but other ratios work too, depending on how much of each product forms. The calculator shows the set with the smallest coefficients and says that the answer is not unique; type your own coefficients in front of the formulas to check a different one.
From a balanced equation to amounts
The coefficients are mole ratios. In C₃H₈ + 5O₂ → 3CO₂ + 4H₂O, one mole of propane reacts with five moles of oxygen to give three moles of carbon dioxide and four moles of water. To turn masses into this language, divide each mass by the molar mass; the calculator works molar masses out from the 2024 standard atomic weights.
The amounts filled in above show the method. Moles of each reactant given, n = m ÷ M: C₃H₈ 0.2268 mol; O₂ 0.9376 mol. Divide by each coefficient: C₃H₈ 0.2268 ÷ 1 = 0.2268; O₂ 0.9376 ÷ 5 = 0.1875. The smallest belongs to the limiting reagent. So oxygen runs out first: it is the limiting reagent, and the theoretical yield of carbon dioxide is 24.76 g = 0.5625 mol. Some propane is left over: 1.731 g = 0.03926 mol.
Limiting reagent, theoretical yield and percent yield
The theoretical yield is the most product the limiting reagent can give. Real reactions give less, because of side reactions, incomplete conversion and losses during work-up, so chemists report the percent yield: the actual yield divided by the theoretical yield, times 100.
Suppose 100 g of iron(III) oxide is reduced with 60 g of carbon monoxide and 60 g of iron is collected. The balanced equation is Fe₂O₃ + 3CO → 2Fe + 3CO₂. Fe₂O₃ is the limiting reagent, the theoretical yield of iron is 69.94 g = 1.252 mol, and the percent yield is 85.78%. A yield above 100% is a warning sign rather than a success: the product is usually still wet or impure.
The calculation also runs backward. Type only the amount of product you want, and the calculator gives the reactants needed for a perfect yield. Making 1 kg of ammonia by N₂ + 3H₂ → 2NH₃ takes 822.4 g = 29.36 mol of nitrogen and 177.6 g = 88.07 mol of hydrogen. Divide by your expected yield, as a fraction, to plan for a real one.
Tips for typing formulas
- Case matters: Co is cobalt, while CO is carbon monoxide. The calculator points out the most common mix-ups.
- Use brackets for repeated groups, as in Ca(OH)2 or Fe2(SO4)3, and a dot or * for water of crystallization, as in CuSO4·5H2O.
- States such as (s), (l), (g) and (aq) may be added after a formula; they are kept in the answer and do not affect the balance.
- The organic shorthands Me, Et, Ph and Bu are read as methyl, ethyl, phenyl and butyl groups.
- The balancer needs both sides of the equation; it does not predict products.
Your equations stay on your device
Everything is worked out in your browser. Nothing you type is sent anywhere or stored.
Frequently asked questions
How do I type an equation?
Write the reactants, then = or →, then the products, with + between substances: C3H8 + O2 = CO2 + H2O. Use a capital letter for each element, brackets for groups such as Ca(OH)2, and a dot or * for hydrates such as CuSO4·5H2O. Common names such as water or methane work too.
How do I enter ions and electrons?
Put the charge after ^ (SO4^2-, Fe^3+, H^+), in curly brackets (Fe{3+}) or as superscripts (SO₄²⁻); a single + or − at the end also works, as in OH-. Write an electron as e^- or e-. The balancer then balances the charge as well as the atoms.
Why can an equation not be balanced?
Usually a formula is wrong or a substance is missing. If an element appears on one side only, no coefficients can balance it. If the only balance would need a substance on the other side, or would leave one out, the balancer says which one.
What is the limiting reagent?
The reactant that runs out first. Divide the moles of each reactant by its coefficient in the balanced equation; the smallest result belongs to the limiting reagent, and it sets how much product can form. The other reactants are left over.
How do I get the percent yield?
Enter the reactant amounts and, in the box of one product, the mass you actually obtained. The calculator divides it by the theoretical yield and multiplies by 100.
Is anything I type sent anywhere?
No. Everything is worked out in your browser and nothing you type is sent anywhere or stored.