Why chemists agree on a standard gas
One mole of gas fills a very different volume at room temperature than on a cold mountaintop, because gases expand and contract with temperature. If every lab used its own local conditions, no two measurements would be comparable. The solution is STP, standard temperature and pressure: a fixed reference condition (0 C and 1 atm in the classic definition) against which all gas volumes are quoted. At STP, one mole of an ideal gas occupies 22.4 liters, This calculator applies the gas relationships at standard conditions so you can move between moles, volume, and mass without manual algebra.
The gas relationship
Formula: PV = nRT; at STP the molar volume is 22.4 liters per mole, so volume = moles x 22.4 L
The ideal gas law ties pressure P, volume V, amount n in moles, and temperature T through the gas constant R. At the fixed standard temperature and pressure, the relationship collapses to a simple proportionality: volume scales directly with the number of moles. Note that newer conventions sometimes define standard pressure as 1 bar (100 kPa) instead of 1 atm, which changes the molar volume slightly to about 22.7 L.
How to use the calculator
- Choose what you know: moles of gas, mass in grams, or a target volume.
- If entering mass, you will also need the molar mass to convert grams to moles first.
- Confirm the STP convention (1 atm / 0 C for the classic 22.4 L figure).
- Read the volume in liters, or the moles that a given volume represents.
Worked example, step by step
What volume does 2 moles of an ideal gas occupy at classic STP?
Step 1: Identify the relationship. At STP, each mole takes 22.4 L.
Step 2: Multiply. 2 mol x 22.4 L/mol = 44.8 L.
Step 3: Cross-check with the full gas law. Using P = 1 atm, T = 273.15 K, R = 0.0821 L atm / (mol K): V = nRT / P = 2 x 0.0821 x 273.15 / 1 = 44.86 L, which matches within rounding.
Step 4: Try a mass-based input. 64 grams of oxygen (O2, molar mass 32 g/mol) is 64 / 32 = 2 mol, so it also occupies 44.8 L at STP.
Converting grams to moles is the step most students trip on, and the grams to moles calculator does exactly that conversion. For solutions rather than gases, the mole fraction calculator handles mixture composition, and the ml to moles calculator connects solution volumes to amounts.
Practical uses and tips
Stoichiometry problems constantly ask for the volume of a gas product, and STP is the standard shortcut. Scuba and medical gas planning converts between tank pressure and breathable volume using the same law with real pressures.
Common mistakes to avoid
- Using 22.4 L at non-standard conditions. The figure is valid only at STP. At room temperature the molar volume is about 24.0 L, and using 22.4 there underestimates by 7 percent.
- Confusing STP with standard state. Thermodynamic standard state is usually 25 C, not 0 C. The two conventions differ, and enthalpy tables use the latter.
- Applying the ideal law to liquefying gases. Near condensation, real gases deviate strongly from PV = nRT.
A note on limits
The ideal gas law is an approximation that ignores molecular size and intermolecular forces. It is excellent for light gases at low pressure and high temperature, and progressively worse for heavy, polar, or near-condensing gases. Treat STP conversions as accurate to a few percent for real gases, and reach for real-gas equations when precision matters.