molecalculator

Moles & Molar Mass

Chemical Reaction Formula: How to Write & Balance

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

Moles of reactant 2.2722 mol
Moles of product
2.2722 mol
Result, rounded to 4 decimal places
Mass of product
100.00 g
Result, rounded to 2 decimal places
Mass of reactant
100 g
Set in the form below
You enter
Mass of reactant (g), Molar mass of reactant (g/mol), Stoichiometric coefficient of reactant, Stoichiometric coefficient of product
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 formula (more properly called a chemical equation) is a symbolic representation of a chemical change, showing which substances react (reactants) and which substances are produced (products). You write the reactants on the left, the products on the right, separate them with an arrow (→), and balance the equation so the same number of each type of atom appears on both sides.

Formula

The general form of a chemical equation is:

aA + bB → cC + dD

Where:

  • A, B = reactants (starting substances)
  • C, D = products (substances formed)
  • a, b, c, d = stoichiometric coefficients (the numbers that balance the equation; if no number is written, the coefficient is 1)

For the calculator above, the key relationship is:

moles of reactant = mass of reactant / molar mass of reactant

Then, using the balanced equation’s coefficients:

moles of product = moles of reactant × (coefficient of product / coefficient of reactant)

Finally, the mass of product is:

mass of product = moles of product × molar mass of product

All masses are in grams (g), molar masses in grams per mole (g/mol), and amounts in moles (mol). The calculator uses the molar mass of the reactant for both the reactant and the product—this is only correct when the reactant and product are the same substance, which is rarely the case in a real reaction. For a real reaction, you must enter the product’s molar mass separately. This calculator is intended to illustrate the stoichiometric arithmetic, not to replace a full reaction calculation.

Worked Example

Using the default values: mass of reactant = 100 g, molar mass = 44.01 g/mol (the molar mass of CO₂), coefficient of reactant = 1, coefficient of product = 1.

Step 1: Calculate moles of reactant.

moles = mass / molar mass = 100 g / 44.01 g/mol = 2.2722 mol (rounded to 4 significant figures)

Step 2: Apply the stoichiometric ratio.

Since both coefficients are 1, moles of product = 2.2722 mol × (1/1) = 2.2722 mol

Step 3: Calculate mass of product.

mass = moles × molar mass = 2.2722 mol × 44.01 g/mol = 100.0 g (rounded to 2 decimal places)

So the calculator returns 2.2722 mol of reactant, 2.2722 mol of product, and 100.00 g of product. This matches the block’s output.

Assumptions

  • The reaction goes to completion (100% yield).
  • The molar mass used for the product is the same as the reactant—this is only a placeholder; in real problems, the product has its own molar mass.
  • No side reactions occur.
  • The stoichiometric coefficients come from a correctly balanced equation.

How to Write a Chemical Equation

Writing a correct chemical equation involves several steps:

  1. Identify the reactants and products. For example, when methane burns, the reactants are methane (CH₄) and oxygen (O₂), and the products are carbon dioxide (CO₂) and water (H₂O).
  2. Write the unbalanced equation. CH₄ + O₂ → CO₂ + H₂O
  3. Count atoms of each element on both sides. Left: C=1, H=4, O=2. Right: C=1, H=2, O=3.
  4. Balance one element at a time. Start with hydrogen: put a 2 in front of H₂O to get 4 H on the right. Now O on the right = 2 (from CO₂) + 2 (from 2 H₂O) = 4. Put a 2 in front of O₂ to get 4 O on the left. The balanced equation is: CH₄ + 2O₂ → CO₂ + 2H₂O.
  5. Check that all coefficients are in the lowest whole-number ratio. Here they are.

Always include the physical states if known: (s) for solid, (l) for liquid, (g) for gas, (aq) for aqueous solution. For example: CH₄(g) + 2O₂(g) → CO₂(g) + 2H₂O(g).

Why Balancing Matters

Balancing reflects the law of conservation of mass: atoms are neither created nor destroyed in a chemical reaction. The same number of each type of atom must appear on both sides. This is why you cannot change subscripts (e.g., changing H₂O to H₂O₂) to balance—that would change the substance itself. You can only change coefficients, which tell you how many molecules or formula units are involved.

For example, the reaction of hydrogen and oxygen to form water is correctly written as 2H₂ + O₂ → 2H₂O. The coefficient 2 in front of H₂ means two molecules of hydrogen gas react with one molecule of oxygen gas to produce two molecules of water. This also gives you the mole ratios: 2 mol H₂ : 1 mol O₂ : 2 mol H₂O.

Common Mistakes and How to Avoid Them

  • Changing subscripts instead of coefficients. Writing H₂O₂ instead of 2H₂O changes the compound. Never alter subscripts to balance.
  • Forgetting to balance polyatomic ions as a unit. If the same polyatomic ion appears unchanged on both sides (e.g., SO₄²⁻), treat it as one group rather than balancing S and O separately.
  • Not reducing coefficients to the simplest whole numbers. 2H₂ + 2O₂ → 2H₂O is balanced but not in lowest terms; divide by 2 to get H₂ + O₂ → H₂O? No—that gives 2 H on left and 2 H on right, but O is 2 on left and 1 on right. The correct lowest form is 2H₂ + O₂ → 2H₂O.
  • Ignoring physical states. States matter for predicting whether a gas forms or a precipitate appears, but they do not affect balancing.
  • Using the wrong molar mass. Always use the molar mass of the specific substance, not a generic value.

Using Stoichiometry to Predict Quantities

Once an equation is balanced, the coefficients give you mole ratios that let you calculate how much product you can make from a given amount of reactant, or how much of one reactant you need to react completely with another. This is called stoichiometry.

For example, in the reaction 2H₂ + O₂ → 2H₂O, if you have 4 mol of H₂, you can predict that you will need 2 mol of O₂ and produce 4 mol of H₂O. To convert moles to mass, multiply by the molar mass of the substance. To convert mass to moles, divide by the molar mass.

The calculator above does the first step (mass to moles) and then applies the ratio. For a real reaction, you must enter the product’s molar mass separately and use the correct coefficients from your balanced equation.

Frequently Asked Questions

What is the difference between a chemical formula and a chemical equation?
A chemical formula shows the composition of a single substance, like H₂O for water. A chemical equation shows a reaction, with reactants on the left and products on the right, like 2H₂ + O₂ → 2H₂O.

Why do we balance chemical equations?
To obey the law of conservation of mass. Atoms are not created or destroyed in a reaction, so the number of each type of atom must be the same on both sides. Balancing gives the correct mole ratios needed for calculations.

Can I change the subscript in a formula to balance an equation?
No. Changing a subscript changes the identity of the substance. For example, H₂O is water, but H₂O₂ is hydrogen peroxide. Only coefficients can be changed to balance.

What does the arrow (→) mean in a chemical equation?
The arrow means “yields” or “produces.” It separates reactants (left) from products (right). Some equations use a double arrow (⇌) to indicate a reversible reaction that can go in both directions.

How do I know which side is the reactant and which is the product?
Reactants are always written on the left of the arrow, products on the right. In a word equation, it is often stated as “A plus B yields C and D.”

What if my equation has fractions as coefficients?
Fractions are sometimes used as intermediate steps, but the final balanced equation should have whole-number coefficients. Multiply all coefficients by the denominator to clear the fraction.

Safety and Scope

This calculator and explanation are for study and lab-planning arithmetic only. When performing actual reactions in a laboratory, always follow your lab method, the safety data sheet (SDS), and your supervisor’s instructions. Never attempt reactions without proper training, ventilation, and protective equipment.

Related

Formula used
in m | Mass of reactant | g | 100 | 0
in mm | Molar mass of reactant | g/mol | 44.01 | 0.001
in r | Stoichiometric coefficient of reactant | - | 1 | 0.001
in p | Stoichiometric coefficient of product | - | 1 | 0.001
out n | Moles of reactant | mol | m / mm | 4
out np | Moles of product | mol | n * p / r | 4
out mp | Mass of product | g | np * mm * p / r | 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 →