molecalculator

Moles & Molar Mass

Volume of Reacting Gases: How to Calculate

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

Volume of gas at STP 1.121 L
Mass of reactant
2.922 g
Set in the form below
Molar mass of reactant
58.44 g/mol
Set in the form below
Gas volume at STP (L/mol)
22.414 L/mol
Set in the form below
Moles gas per mole reactant
1 mol/mol
Set in the form below
You enter
Mass of reactant (g), Molar mass of reactant (g/mol), Gas volume at STP (L/mol) (L/mol), Moles gas per mole reactant (mol/mol)
You get
Volume of gas at STP (L)
Rounding
3 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.

The volume of reacting gases is determined using the ideal gas law and stoichiometry: at constant temperature and pressure, gas volumes react in simple whole-number ratios, and you can calculate the volume of any gas in a reaction from the balanced equation and the volume of one reactant or product. For example, 2 volumes of hydrogen react with 1 volume of oxygen to give 2 volumes of steam (at the same conditions). This article explains the principles, shows you how to do the calculations, and gives a practical calculator for the most common case: finding the volume of gas produced from a given mass of reactant.

Formula

The volume of a gas produced or consumed in a reaction is calculated from the amount of substance (moles) and the molar volume of the gas under the given conditions. For a reaction at standard temperature and pressure (STP, 0 °C and 1 atm), the molar volume of an ideal gas is 22.414 L/mol. The formula is:

Vgas = (m / M) × r × Vm

  • m = mass of the reactant (g)
  • M = molar mass of the reactant (g/mol)
  • r = mole ratio of gas to reactant, from the balanced equation (mol gas / mol reactant)
  • Vm = molar volume of the gas at the given conditions (L/mol). At STP, Vm = 22.414 L/mol; at 25 °C and 1 atm, it is 24.465 L/mol.

If the reaction is not at STP, use the ideal gas law to find Vm = RT/P, where R = 0.0820574 L·atm/(mol·K), T is in kelvin, and P is in atm.

Worked Example

Using the calculator defaults: 2.922 g of sodium chloride (NaCl, molar mass 58.44 g/mol) is the reactant, and the reaction produces 1 mole of gas per mole of NaCl. At STP, the molar volume is 22.414 L/mol.

  1. Convert mass to moles: moles NaCl = 2.922 g / 58.44 g/mol = 0.05000 mol.
  2. Apply the mole ratio: moles gas = 0.05000 mol × 1 = 0.05000 mol.
  3. Convert to volume: volume = 0.05000 mol × 22.414 L/mol = 1.1207 L.

The calculator gives 1.121 L (rounded to 3 decimals), matching the hand calculation.

Assumptions

  • The gas behaves ideally (no intermolecular forces, negligible molecular volume).
  • Temperature and pressure are constant during the reaction.
  • For STP, the conditions are exactly 0 °C (273.15 K) and 1 atm.
  • The reactant is pure, and the reaction goes to completion.
  • The mole ratio is correctly taken from the balanced chemical equation.

Background: Gay-Lussac’s Law and Avogadro’s Principle

The idea that gas volumes react in simple ratios dates to Joseph Louis Gay-Lussac (1808), who observed that volumes of gases consumed and produced in a reaction are in small whole-number ratios when measured at the same temperature and pressure. For example, 2 volumes of hydrogen combine with 1 volume of oxygen to form 2 volumes of water vapor. Amedeo Avogadro explained this in 1811 by proposing that equal volumes of gases at the same temperature and pressure contain the same number of molecules. This is why the coefficients in a balanced equation for gases directly translate to volume ratios. For instance, in the reaction N2(g) + 3H2(g) → 2NH3(g), 1 L of nitrogen reacts with 3 L of hydrogen to produce 2 L of ammonia, assuming all volumes are measured under identical conditions.

How to Calculate Gas Volumes in Reactions

To find the volume of a gas in a reaction, follow these steps:

  1. Write and balance the chemical equation.
  2. Convert the given quantity (mass, volume, or moles) to moles.
  3. Use the mole ratio from the balanced equation to find moles of the desired gas.
  4. Convert moles to volume using the molar volume (Vm) at the reaction conditions.

If the reaction is not at STP, use the ideal gas law: V = nRT/P. For example, to find the volume of CO2 produced at 25 °C and 1 atm when 10.0 g of CaCO3 decomposes (CaCO3 → CaO + CO2):

  • Moles CaCO3 = 10.0 g / 100.09 g/mol = 0.0999 mol.
  • Mole ratio CO2:CaCO3 = 1:1, so moles CO2 = 0.0999 mol.
  • V = nRT/P = 0.0999 × 0.0820574 × (25 + 273.15) / 1 = 2.44 L.

Common Mistakes and Misconceptions

One frequent error is using the molar volume at STP (22.414 L/mol) when the reaction is at a different temperature or pressure. Always check the conditions. Another mistake is forgetting to balance the equation—the mole ratio must come from the balanced coefficients. Also, students sometimes confuse volume of gas with mass; remember that for gases, volume is proportional to moles, not mass. A common misconception is that the molar volume is always 22.4 L, but that is only true at STP; at room temperature (25 °C, 1 atm) it is about 24.5 L. Finally, when measuring gas volumes over water, you must correct for water vapor pressure—the collected gas is a mixture, and the partial pressure of the dry gas is Ptotal − PH2O.

Real-World Applications

Calculating gas volumes is essential in many areas:

  • Industrial chemistry: Determining reactor sizes for ammonia synthesis (Haber process) or sulfuric acid production.
  • Environmental science: Estimating CO2 emissions from combustion reactions.
  • Laboratory work: Preparing gases like O2 or CO2 and calculating expected yields.
  • Everyday life: Understanding airbag inflation (sodium azide decomposes to N2 gas) or baking soda and vinegar volcanoes.

For example, the decomposition of hydrogen peroxide (2H2O2 → 2H2O + O2) is used to generate oxygen. If you start with 34.0 g of H2O2 (molar mass 34.0 g/mol), you get 1.00 mol of H2O2, which produces 0.50 mol of O2. At STP, that is 0.50 × 22.414 = 11.2 L of oxygen gas.

Limits of the Ideal Gas Assumption

The ideal gas law works well for most gases at moderate pressures and temperatures, but it fails at high pressures (where molecules are close together) or low temperatures (where intermolecular forces become significant). For real gases, the van der Waals equation (P + a(n/V)2)(V − nb) = nRT accounts for these effects, with constants a and b specific to each gas. For example, CO2 has a = 3.59 L²·atm/mol² and b = 0.0427 L/mol. At 1 atm and 25 °C, the ideal gas law gives a molar volume of 24.5 L, while the van der Waals equation gives about 24.4 L—a small difference. But at 100 atm, the difference can be several percent. For most classroom calculations, the ideal gas law is sufficient.

Safety and Practical Notes

When working with gases in the laboratory, always follow your lab method, the safety data sheet (SDS) and your supervisor. Many gases are toxic, flammable, or under pressure. Never inhale gases directly, and use a fume hood when necessary. When collecting gas over water, remember to correct for water vapor pressure. Also, ensure that temperature and pressure are measured accurately, as small changes can affect volume significantly. For example, a 1 °C rise at room temperature increases gas volume by about 1/298, roughly 0.3%.

Frequently Asked Questions

What is the molar volume of a gas at STP?

At STP (0 °C and 1 atm), one mole of an ideal gas occupies 22.414 liters. This is derived from the ideal gas law: V = nRT/P = 1 × 0.0820574 × 273.15 / 1 = 22.414 L.

How do I find the volume of gas produced from a mass of reactant?

Convert the mass to moles (divide by molar mass), multiply by the mole ratio from the balanced equation to get moles of gas, then multiply by the molar volume (22.414 L/mol at STP, or use RT/P for other conditions). For example, 5.0 g of CaCO3 (0.050 mol) gives 0.050 mol CO2, which is 1.12 L at STP.

Does the volume of gas depend on the type of gas?

Under ideal conditions, no—all ideal gases have the same molar volume at the same temperature and pressure. This is Avogadro’s principle. Real gases deviate slightly, but for most calculations the difference is negligible.

What if the reaction is not at STP?

Use the ideal gas law to find the molar volume at the actual conditions: Vm = RT/P. For example, at 25 °C (298 K) and 1 atm, Vm = 0.0820574 × 298 / 1 = 24.5 L/mol. Then multiply moles by this value.

Why do gas volumes react in simple ratios?

Because equal volumes of gases at the same temperature and pressure contain the same number of molecules (Avogadro’s law). Therefore, the coefficients in a balanced equation represent volume ratios directly. For example, 2H2 + O2 → 2H2O means 2 L H2 + 1 L O2 → 2 L H2O vapor.

How do I correct for water vapor when collecting gas over water?

Subtract the vapor pressure of water at the collection temperature from the total pressure to get the partial pressure of the dry gas. Then use that pressure in the ideal gas law. For example, at 20 °C, water vapor pressure is 17.5 mmHg, so if total pressure is 760 mmHg, dry gas pressure is 742.5 mmHg.

Related

Formula used
in m | Mass of reactant | g | 2.922 | 0
in mm | Molar mass of reactant | g/mol | 58.44 | 0.001
in v | Gas volume at STP (L/mol) | L/mol | 22.414 | 0.01
in r | Moles gas per mole reactant | mol/mol | 1 | 0.001
out vgas | Volume of gas at STP | L | (m / mm) * r * v | 3

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 →