Stoichiometry Calculator

Type any reaction, balanced or not, and convert grams, moles, gas litres or particles of one substance into any other, with the mole ratio and each step shown.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Stoichiometry Calculator?

Type a chemical equation, say how much of one substance you have, and pick the substance you want to know about. The stoichiometry calculator balances the equation, converts your amount to moles, applies the mole ratio from the coefficients and converts back to grams, moles, litres of gas or number of particles. The answer is rounded to the significant figures of the amount you typed, with a switch to show more digits.

Below the answer you get the dimensional-analysis chain written out the way a chemistry teacher expects it (702 g C8H18 ÷ 114.232 g/mol = 6.14539 mol, × 25/2 = 76.8174 mol O2, × 31.998 g/mol = 2458 g), plus a table of every reactant and product at the same extent of reaction, so one entry answers "how much of everything".

You do not need to balance the equation first. Coefficients you type are kept when they already balance; otherwise the calculator finds the smallest whole-number set that conserves every element and, for ionic equations, the charge.

  • Balances molecular and ionic equations with exact fractions, including charges and electrons
  • Grams, kilograms, milligrams, moles, millimoles, litres or millilitres of gas and particles, in and out
  • Mole ratio and a written dimensional-analysis chain
  • Amounts of every species at the same extent of reaction
  • Significant figures from your input, with a switch for more digits
  • Selectable STP convention with exact molar volumes
Read the guide: Stoichiometry, Limiting Reactant and Percent Yield, Worked Through

Updated

How to use the Stoichiometry Calculator

  1. Type the reaction with correct capitalisation, using ->, → or = for the arrow, or click an example. The balanced equation appears underneath.
  2. Under "I have", pick the substance you know the amount of, then enter the amount and its unit: g, kg, mg, mol, mmol, L or mL of gas, or particles.
  3. Under "Find", pick the substance you want and the unit for the answer.
  4. If either amount is a gas volume, choose the STP convention your course uses: 0 °C and 1 bar, 0 °C and 1 atm, or 25 °C and 1 bar.
  5. Read the answer, the mole ratio and the step-by-step chain, and copy the result or share a link with your inputs.

Worked examples

Oxygen to burn 702 g of octane

Input

C8H18 + O2 -> CO2 + H2O; 702 g C8H18; find O2 in g

Output

2.46 × 10^3 g O2 (2458.0 g with more digits)

The equation balances to 2C8H18 + 25O2 → 16CO2 + 18H2O. 702 g ÷ 114.232 g/mol = 6.1454 mol octane, × 25/2 = 76.817 mol O2, × 31.998 g/mol. This matches OpenStax Example 4.11.

Molecules of CO2 from propane

Input

C3H8 + O2 -> CO2 + H2O; 0.75 mol C3H8; find CO2 in particles

Output

1.4 × 10^24 molecules

Each mole of propane gives three of CO2, so 2.25 mol, times 6.02214076 × 10^23. Two significant figures because 0.75 has two.

Ammonia from a gas volume

Input

N2(g) + H2(g) -> NH3(g); 10.0 L N2 at 0 °C and 1 bar; find NH3

Output

20.0 L NH3, or 15.0 g

For gases at the same temperature and pressure the volume ratio equals the mole ratio, so 10.0 L of nitrogen gives 20.0 L of ammonia. At 0 °C and 1 atm the mass is 15.2 g instead, because 22.414 L/mol holds more gas per litre.

Carbon monoxide to reduce iron ore

Input

Fe2O3 + CO -> Fe + CO2; 25.13 g Fe2O3; find CO in g

Output

13.22 g CO

25.13 g ÷ 159.687 g/mol = 0.15737 mol Fe2O3, × 3 = 0.47211 mol CO, × 28.010 g/mol. Four significant figures follow from 25.13.

Background and insight

Stoichiometry rests on one idea: a balanced equation counts particles, not grams. In 2C8H18 + 25O2 → 16CO2 + 18H2O, two molecules of octane react with twenty-five of oxygen, so two moles react with twenty-five moles. To move from a mass of one substance to a mass of another you therefore go through moles: divide by the molar mass, multiply by the coefficient ratio, multiply by the other molar mass. OpenStax Chemistry 2e calls the coefficient ratio the stoichiometric factor (often taught as the mole ratio) and sets the problems out exactly this way in section 4.3.

Balancing is a linear algebra problem. Each element (and the charge) gives one equation that the coefficients must satisfy, and the coefficients are the null space of that matrix. The calculator solves it with exact fractions, so 2KMnO4 + 16HCl → 2KCl + 2MnCl2 + 8H2O + 5Cl2 comes out without rounding. Some reactions, such as the acetylation of salicylic acid to aspirin, can be split into separate reactions by atom counting alone; for those the equation is accepted as you typed it if it balances, and otherwise you are asked to type the coefficients.

Molar masses use the IUPAC/CIAAW abridged standard atomic weights, the same table as the molecular weight calculator. The Avogadro constant is exactly 6.02214076 × 10^23 per mole since the 2019 SI redefinition, and because the gas constant is now exact too, the molar volume of an ideal gas is exact: 22.71095 L/mol at 0 °C and 1 bar (the IUPAC standard since 1982) and 22.41397 L/mol at 0 °C and 1 atm, the older convention many textbooks still print as 22.4 L/mol. You choose which one applies.

Common use cases

  • Homework and exam practice

    Check a grams-to-grams, moles-to-grams or particles problem and compare your working with the step chain.

  • Planning a lab preparation

    Work out how much of each reagent a reaction needs for the amount of product you want.

  • Gas volumes

    Convert between litres of a gas at STP and grams of a solid or liquid in the same reaction.

  • Teaching

    Show students the balanced equation, the mole ratio and the dimensional analysis on one screen.

Tips and limitations

  • Capital letters matter: Co is cobalt and CO is carbon monoxide. Write charges with a caret, such as Fe^3+ or SO4^2-.
  • The gas options assume ideal behaviour at STP or SATP. For any other temperature or pressure, get the moles from the ideal gas law calculator and enter them in mol.
  • For a solution, multiply molarity by volume in litres to get moles (the molarity calculator does this), then enter the moles.
  • Whole numbers without a decimal point, such as 100, count as one significant figure under the textbook rule. Type 100. or 100.0 if you measured more precisely.
  • Stoichiometry assumes the reaction goes to completion as written. If you have amounts for two reactants, use the limiting reactant calculator instead.

Sources and further reading

  1. 4.3 Reaction Stoichiometry, OpenStax, Chemistry 2e. Mole ratios and the worked examples used in the tests
  2. Abridged standard atomic weights, IUPAC Commission on Isotopic Abundances and Atomic Weights. The atomic weights behind every molar mass
  3. Avogadro constant, NIST, CODATA recommended values. Exact value since 2019
  4. Molar volume of ideal gas (273.15 K, 100 kPa), NIST, CODATA recommended values. 22.710 954 64 L/mol, exact

Frequently asked questions

What are the steps of a stoichiometry problem?

Balance the equation, convert the amount you know to moles (divide grams by molar mass), multiply by the coefficient of the substance you want over the coefficient of the one you have, then convert those moles to the unit you need. The calculator writes out each of these steps.

Do I need to balance the equation before using the calculator?

No. Type it as you have it and the calculator balances it. If you type coefficients and they already balance, they are kept, which is how to enter a reaction that atom counting alone could balance in more than one way.

Which molar volume does the calculator use for gases at STP?

You choose. 22.711 L/mol is for 0 °C and 1 bar, the IUPAC standard. 22.414 L/mol is for 0 °C and 1 atm, the older definition behind the familiar 22.4 L/mol. There is also 24.790 L/mol for 25 °C and 1 bar.

How does the calculator decide significant figures?

It counts the significant figures in the amount you typed, using the usual rules (leading zeros never count; trailing zeros count only after a decimal point) and rounds the answer to match. Atomic weights carry more figures than typical measurements, so they do not limit the result.

Can it handle ionic equations and half-reactions?

Yes. A caret is clearest (Fe^3+, SO4^2-), and electrons are e-. Plain notation also works: a single element with a digit and a sign, such as Cu2+ or Fe3+, is read as a charged ion, and for polyatomic ions such as SO42- or NH4+ the calculator keeps the reading that balances. A note under the equation always shows how each ion was read. Charge is balanced along with the atoms, so Cr2O7^2- + H+ + e- → Cr^3+ + H2O balances to 1, 14, 6, 2 and 7.

Why does my equation say it can be balanced in more than one way?

Some sets of formulas allow several independent balances, for example H2 + O2 → H2O + H2O2, which is really two reactions. Type the coefficients that describe your reaction and the calculator checks them.

Is there an in-depth guide to the Stoichiometry Calculator?

Yes. “Stoichiometry, Limiting Reactant and Percent Yield, Worked Through” covers the background, how it works, common pitfalls and worked examples. Read the full guide.