Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Stoichiometry calculator

Turn grams (or moles) of one substance into grams of another, using the coefficients from your balanced equation. Molar masses are worked out from the formulas.

From your balanced equation, enter the substance you have (A), the one you want (B) and their coefficients.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Got less than this in the lab? Compare with the percent yield calculator.

What it does

Stoichiometry is the bookkeeping of a chemical reaction: how much of one substance reacts with, or produces, how much of another. Give this calculator the formulas of two substances in a balanced equation, their coefficients, and the amount you have of the first. It finds the molar masses from the formulas (using IUPAC standard atomic weights), converts to moles, applies the mole ratio and converts back to grams. It's the same parser as the molar mass calculator, so brackets and hydrates work.

How it's calculated

moles of A = grams of A ÷ molar mass of A
moles of B = moles of A × (coefficient of B ÷ coefficient of A)
grams of B = moles of B × molar mass of B

The middle step is the key. The coefficients of a balanced equation give the ratio in which moles react, not grams. So you always go through moles. The calculator doesn't balance equations for you: balance it first, then type the two coefficients you need.

Worked example 1: making NaOH from Mg(OH)₂

In MgCl₂ + 2NaOH → Mg(OH)₂ + 2NaCl, how much NaOH goes with 16 g of Mg(OH)₂? (This is OpenStax Example 4.10.)

  • Molar mass of Mg(OH)₂ = 24.305 + 2 × (15.999 + 1.0080) = 58.319 g/mol, so 16 g ÷ 58.319 = 0.27435 mol.
  • The ratio NaOH : Mg(OH)₂ is 2 : 1, so 0.27435 × 2 = 0.54871 mol NaOH.
  • Molar mass of NaOH = 22.990 + 15.999 + 1.0080 = 39.997 g/mol, so 0.54871 × 39.997 = 21.95 g of NaOH. OpenStax rounds to 22 g.

Worked example 2: burning octane

In 2C₈H₁₈ + 25O₂ → 16CO₂ + 18H₂O, how much oxygen burns 702 g of octane? Octane is 8 × 12.011 + 18 × 1.0080 = 114.232 g/mol, so 702 ÷ 114.232 = 6.1454 mol. Oxygen needed: 6.1454 × 25/2 = 76.817 mol. O₂ is 31.998 g/mol, so 76.817 × 31.998 = 2,458 g (2.46 kg) of O₂.

Getting a realistic number

  • Balance the equation first. Wrong coefficients give wrong answers, and the calculator can't tell.
  • This is the theoretical amount. It assumes the reaction goes all the way and A is the limiting reactant. Real reactions give less; the percent yield calculator compares what you got with this figure.
  • Type formulas with capital letters for each element (Co is cobalt, CO is carbon monoxide), and put coefficients in their own boxes, not in front of the formula.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • 16 g Mg(OH)₂ with 2 NaOH : 1 Mg(OH)₂ is 21.9466 g NaOH (OpenStax 4.10) ✓
  • 702 g octane burns with 2.458 kg O₂ (2C₈H₁₈ + 25O₂) ✓
  • 2 mol H₂ makes 36.03 g of water (2H₂ + O₂ → 2H₂O) ✓
  • A hydrate works: 24.9677 g CuSO₄·5H₂O is 0.1 mol, giving 15.9602 g CuSO₄ ✓
  • Unknown element symbol is explained ✓
  • A coefficient typed into the formula is caught ✓
  • A coefficient of zero is refused ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What is stoichiometry?

The calculation of how much of each substance takes part in a chemical reaction, based on the mole ratios in the balanced equation.

How do you convert grams to grams in stoichiometry?

Divide grams of A by A's molar mass to get moles, multiply by the coefficient ratio B/A, then multiply by B's molar mass.

Why can't I use the coefficients as a gram ratio?

Because coefficients count particles (moles), and different molecules have different masses. 2 mol of H₂ (4.03 g) react with 1 mol of O₂ (32.00 g), not 2 g with 1 g.

How many grams of water come from 4 g of hydrogen?

In 2H₂ + O₂ → 2H₂O, 4 g of H₂ is 4 ÷ 2.016 = 1.984 mol, which makes 1.984 mol of water, or 1.984 × 18.015 = 35.74 g.

Does this calculator find the limiting reactant?

No. It assumes the substance you enter is the one that runs out. If you have amounts of two reactants, run each one and the one giving less product is limiting.

Related calculators