Moles ↔ Mass ↔ Volume (Gas at STP/SATP)

Convert between moles (n), mass (m), and gas volume (V) using standard molar volume. Private, client-side.

Inputs & Options

Pick the standard matching your course/SOP.

Result

Result: Enter known values and click Calculate.

Tip: If you only know mass & volume at a chosen condition, leave MW blank — we’ll estimate it and fill it in.

How the trio relates

  • Mass ↔ Moles: \( m = n \times M_W \) and \( n = \frac{m}{M_W} \)
  • Gas Volume ↔ Moles (at chosen condition): \( V = n \times V_m \) and \( n = \frac{V}{V_m} \)

Here \(M_W\) is molecular weight (g/mol) and \(V_m\) is the molar volume you selected (e.g., 22.414 L/mol for STP at 1 atm). Real gases deviate slightly from ideal behavior; for most classroom and quick lab estimates, these values are sufficient.

Understanding Moles, Mass, and Gas Volume at STP (and SATP)

Chemists bounce between three closely related quantities all the time: moles (n), mass (m), and gas volume (V). This tool ties them together using two fundamentals: (1) the mass–mole relationship via molecular weight (MW, g/mol), and (2) the gas–mole relationship via a molar volume \(V_m\) selected for your conditions. For quick work we often use standard reference conditions:

  • STP (0 °C, 1 atm): \(V_m \approx 22.414\ \mathrm{L\,mol^{-1}}\)
  • IUPAC STP (0 °C, 1 bar): \(V_m \approx 22.711\ \mathrm{L\,mol^{-1}}\)
  • SATP (25 °C, 1 atm): \(V_m \approx 24.465\ \mathrm{L\,mol^{-1}}\) (some curricula use 25 °C, 1 bar ≈ 24.79 L/mol)

These values assume ideal behavior and are excellent for classroom, quick lab estimates, and early design work. Under non-ideal conditions, the compressibility factor \(Z\) or a full equation of state may be needed.

The trio of relationships

  • Mass ↔ Moles: \(m = n \cdot M_W\) and \(n = \dfrac{m}{M_W}\)
  • Gas Volume ↔ Moles (at selected condition): \(V = n \cdot V_m\) and \(n = \dfrac{V}{V_m}\)

Behind the scenes, molar volumes come from the ideal gas law \(PV=nRT\). For example, at 0 °C and 1 atm, \(V_m = \dfrac{RT}{P} \approx 22.414\ \mathrm{L/mol}\) using \(R=0.082057\ \mathrm{L\,atm\,mol^{-1}\,K^{-1}}\).

Worked examples

Example 1 — CO₂ mass to volume at STP. Suppose you have 22.0 g CO₂ \((M_W=44.01\ \mathrm{g/mol})\) and want the gas volume at STP (1 atm):

  1. Compute moles: \(n = m/M_W = 22.0/44.01 \approx 0.4998\ \mathrm{mol}\).
  2. Apply molar volume: \(V = n \cdot 22.414 \approx 0.4998 \times 22.414 \approx 11.2\ \mathrm{L}\).

Example 2 — Estimating molecular weight from mass & volume (gas densitometry). A gas sample has mass 1.23 g and occupies 0.950 L at SATP (1 atm). Using \(V_m = 24.465\ \mathrm{L/mol}\):

  1. Relate \(m = n \cdot M_W\) and \(V = n \cdot V_m\) ⇒ \(M_W = \dfrac{m \cdot V_m}{V}\).
  2. \(M_W \approx \dfrac{1.23 \times 24.465}{0.950} \approx 31.68\ \mathrm{g/mol}\).

In the tool, enter any known values and choose your molar volume convention; it will compute the remainder, including \(M_W\) when possible.

Common pitfalls & best practices

  • Keep units consistent: Use grams for mass, liters for volume, and g/mol for \(M_W\). If you have mL, convert to L (1000 mL = 1 L).
  • Mind the convention: STP (1 atm) vs IUPAC STP (1 bar) vs SATP. Pick the drop-down that matches your course, SOP, or instrument defaults.
  • Significant figures: Report results to match the precision of your inputs; avoid over-stating accuracy.
  • Wet gas vs dry gas: Collected gas over water? Subtract water-vapor pressure first before using \(PV=nRT\) or reference \(V_m\).
  • Non-ideal gases: At high pressure/low temperature, use a real-gas correction \(Z\) (\(PV = ZnRT\)) or an EOS; reference data sheets as needed.

When to switch tools

If you’re preparing solutions (solutes in liquids), you’ll often convert moles ↔ mass here and then move to: Molarity Calculator (moles per liter) and Dilution (C1V1=C2V2) for practical make-up volumes.

Quick reference

  • \(m \ \left[\mathrm{g}\right] = n \ \left[\mathrm{mol}\right] \times M_W \ \left[\mathrm{g/mol}\right]\)
  • \(V \ \left[\mathrm{L}\right] = n \ \left[\mathrm{mol}\right] \times V_m \ \left[\mathrm{L/mol}\right]\)
  • \(M_W = \dfrac{m}{n}\),   \(n = \dfrac{V}{V_m}\),   \(V_m \approx 22.414,\ 22.711,\ 24.465\ \mathrm{L/mol}\) (per selection)

Tip: If your organization mandates a specific convention (e.g., IUPAC STP or SATP at 1 bar), save that option as your default and note it in your lab records. Consistency is the fastest path to reproducible results.

Explore more tools