molecalculator

Moles & Molar Mass

Chemical Reaction Equation: How to Write & Balance One

Calculator No. 01-10609 · Updated · Formula and assumptions shown below

Moles of reactant 1.0000 mol
Moles of product
1.0000 mol
= Moles of reactant × Mole ratio (product÷reactant)
Mass of product
44.01 g
= Moles of product × Molar mass of product
Mass of reactant
16.04 g
Set in the form below
You enter
Mass of reactant (g), Molar mass of reactant (g/mol), Mole ratio (product/reactant), Molar mass of product (g/mol)
You get
Moles of reactant (mol), Moles of product (mol), Mass of product (g)
Rounding
4 dp · 2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

A chemical reaction equation is a symbolic representation of a chemical change, showing the formulas of the reactants on the left, an arrow, and the formulas of the products on the right. For example, the combustion of methane is written as CH4 + 2 O2 → CO2 + 2 H2O. This page explains how to read, write, and balance such equations, what the symbols mean, and the common pitfalls to avoid.

Formula

The calculator above performs a stoichiometric mass-to-mass conversion. The core relation is:

n = m / M

where n is the amount of substance in moles (mol), m is the mass in grams (g), and M is the molar mass in grams per mole (g/mol). To find the product mass, you multiply the moles of reactant by the mole ratio from the balanced equation (r), then multiply by the product’s molar mass:

mass of product = (m / Mreactant) × r × Mproduct

The mole ratio r comes directly from the coefficients in the balanced equation. For example, in 2 H2 + O2 → 2 H2O, the ratio of H2O to H2 is 2/2 = 1, and the ratio of H2O to O2 is 2/1 = 2.

Worked Example

Using the default values: you start with 16.04 g of methane (CH4, molar mass 16.04 g/mol) and want the mass of CO2 produced from the balanced equation CH4 + 2 O2 → CO2 + 2 H2O. The mole ratio of CO2 to CH4 is 1/1 = 1, and the molar mass of CO2 is 44.01 g/mol.

  1. Moles of CH4 = 16.04 g / 16.04 g/mol = 1.000 mol
  2. Moles of CO2 = 1.000 mol × 1 = 1.000 mol
  3. Mass of CO2 = 1.000 mol × 44.01 g/mol = 44.01 g

The calculator returns 44.01 g, matching the step-by-step result.

Assumptions

  • The reaction goes to completion (100% yield).
  • The reactant is pure; no impurities are considered.
  • The balanced equation coefficients are correct and represent the actual mole ratios.
  • No limiting reagent is considered; the given reactant is assumed to be fully consumed.

Parts of a Chemical Equation

A complete equation includes more than just formulas. The key components are:

  • Reactants: substances present before the reaction, written left of the arrow.
  • Products: substances formed, written right of the arrow.
  • Arrow (→): indicates the direction of change. A double arrow (⇌) means the reaction is reversible and reaches equilibrium.
  • State symbols: (s) solid, (l) liquid, (g) gas, (aq) dissolved in water. They appear after each formula, e.g., NaCl(s).
  • Coefficients: whole numbers before formulas that indicate the relative number of particles or moles, e.g., the “2” in 2 H2O.
  • Conditions: sometimes written above or below the arrow, such as “heat”, “catalyst”, or “Δ” for heat.

For example, the electrolysis of water is written as 2 H2O(l) → 2 H2(g) + O2(g), with the state symbols and the coefficient 2 on H2O and H2.

How to Balance a Chemical Equation

Balancing means adjusting coefficients so the number of each atom is identical on both sides. The steps are:

  1. Write the correct formulas for all reactants and products. Do not change subscripts.
  2. Count the atoms of each element on both sides.
  3. Start balancing with the element that appears in only one reactant and one product.
  4. Use coefficients to balance that element, then re-count.
  5. Continue with the remaining elements, typically leaving hydrogen and oxygen for last.
  6. Check that all coefficients are in the smallest whole-number ratio.

Example: balance the reaction between hydrogen and oxygen to form water. Start with H2 + O2 → H2O. Oxygen is unbalanced (2 on left, 1 on right). Place a 2 before H2O: H2 + O2 → 2 H2O. Now hydrogen is unbalanced (2 left, 4 right). Place a 2 before H2: 2 H2 + O2 → 2 H2O. Now both sides have 4 H and 2 O. The equation is balanced.

Common Mistakes and Misconceptions

Several errors appear frequently when students and practitioners write equations:

  • Changing subscripts instead of coefficients: Writing H2O2 instead of 2 H2O changes the substance itself. Subscripts define the compound; coefficients only change the amount.
  • Forgetting diatomic elements: Hydrogen, nitrogen, oxygen, fluorine, chlorine, bromine, and iodine exist as diatomic molecules (H2, N2, O2, F2, Cl2, Br2, I2) in their elemental form. Writing O instead of O2 for oxygen gas is wrong.
  • Ignoring state symbols: They are not decoration; they matter for predicting whether a precipitate forms or whether a gas evolves.
  • Balancing by fractions: Coefficients must be whole numbers in the final answer. If you get a fraction, multiply all coefficients by the denominator.
  • Confusing mass and moles: The coefficients represent mole ratios, not mass ratios. One mole of CH4 (16 g) reacts with two moles of O2 (64 g), not 2 g of O2.

Types of Chemical Reactions

Recognizing reaction types helps you predict products. The main categories are:

  • Synthesis (combination): A + B → AB, e.g., 2 Na + Cl2 → 2 NaCl.
  • Decomposition: AB → A + B, e.g., 2 H2O → 2 H2 + O2.
  • Single replacement: A + BC → AC + B, e.g., Zn + 2 HCl → ZnCl2 + H2.
  • Double replacement: AB + CD → AD + CB, e.g., AgNO3 + NaCl → AgCl + NaNO3.
  • Combustion: A hydrocarbon + O2 → CO2 + H2O, e.g., C3H8 + 5 O2 → 3 CO2 + 4 H2O.

For double replacement reactions, a reaction occurs only if a precipitate, gas, or weak electrolyte (like water) forms. Otherwise, you write “no reaction”.

Using Mole Ratios in Calculations

The balanced equation is the key to converting between amounts of different substances. The mole ratio is the bridge. For the reaction N2 + 3 H2 → 2 NH3:

  • 1 mol N2 reacts with 3 mol H2.
  • 1 mol N2 produces 2 mol NH3.
  • 3 mol H2 produces 2 mol NH3.

If you start with 28.0 g of N2 (molar mass 28.0 g/mol), you have 1.00 mol. This produces 2.00 mol of NH3 (molar mass 17.03 g/mol), which is 34.06 g. The calculator above automates this for any reactant-product pair.

Limitations of the Equation

A chemical equation is a simplification. It does not show:

  • Reaction mechanism: the actual steps at the molecular level.
  • Energy changes: whether the reaction is exothermic or endothermic, unless ΔH is written separately.
  • Reaction rate: how fast the reaction proceeds.
  • Equilibrium position: for reversible reactions, the extent of conversion is not given by the equation alone.
  • Real-world yield: side reactions and incomplete conversion mean actual product mass is less than the theoretical mass.

For lab work, always follow your lab method, the safety data sheet (SDS) and your supervisor.

Frequently Asked Questions

Why do we balance chemical equations?
Balancing obeys the law of conservation of mass: atoms are neither created nor destroyed in a chemical reaction. The same number of each atom must appear on both sides, so the total mass of reactants equals the total mass of products.

Can I change the subscript to balance an equation?
No. Changing a subscript changes the identity of the substance. For example, H2O is water, but H2O2 is hydrogen peroxide, a different chemical. Only coefficients can be changed.

What does the arrow ⇌ mean?
The double arrow indicates a reversible reaction that reaches equilibrium, meaning both forward and reverse reactions occur at the same rate. The concentrations of reactants and products remain constant, but not necessarily equal.

How do I know the physical state (s, l, g, aq) to write?
You need to know the substance’s state at the reaction temperature. Common rules: most metals are solid; most covalent compounds like CO2 are gases at room temperature; ionic compounds dissolved in water are (aq). When in doubt, check a solubility table or reference data.

What is a limiting reagent?
The limiting reagent is the reactant that runs out first, stopping the reaction. The calculator above assumes the given reactant is limiting. To find the true product amount with two reactants, calculate the moles of product from each and take the smaller value.

Related

Formula used
in m | Mass of reactant | g | 16.04 | 0
in mm | Molar mass of reactant | g/mol | 16.04 | 0.001
in r | Mole ratio (product/reactant) | - | 1 | 0
in mp | Molar mass of product | g/mol | 44.01 | 0.001
out n | Moles of reactant | mol | m / mm | 4
out np | Moles of product | mol | n * r | 4
out massp | Mass of product | g | np * mp | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →