A litre of gas measured on a warm bench at altitude is not the same amount of gas as a litre measured in a cold room at sea level, because gas volume stretches and shrinks with temperature and pressure. The STP Calculator removes that confusion by converting your measured gas values to standard temperature and pressure, the agreed reference conditions chemists use when they compare amounts of gas. It is built for chemistry students working through gas-law problems, lab technicians recording sample volumes, and researchers who need measurements from different days and places to sit on the same footing.
Quick Answer
At STP (0 °C / 273.15 K and 1 bar), one mole of an ideal gas occupies 22.711 litres. To convert a measured volume to STP conditions, use the combined gas law: V₂ = V₁ × (P₁ ÷ P₂) × (T₂ ÷ T₁), with every temperature in kelvin.
What "Standard" Conditions Actually Mean
STP sounds like a single fixed point, but two definitions circulate and the calculator handles the conversion between your conditions and the standard. The modern IUPAC definition sets standard pressure at exactly 100 kPa (1 bar) and the temperature at 273.15 K, which gives a molar volume of 22.711 L. The older definition still printed in many textbooks uses 1 atmosphere (101.325 kPa) instead, giving the familiar 22.414 L per mole. Neither is wrong; they are simply different reference points, and mixing them mid-problem is a classic source of mismatched answers.
Behind the conversion sits the ideal gas law, PV = nRT, where P is pressure, V is volume, n is the amount in moles, T is absolute temperature, and R is the gas constant (0.08206 L·atm/(mol·K), or 8.314 J/(mol·K) in SI units). Because the amount of gas does not change when you squeeze or cool the container, the quantity PV/T stays constant for a fixed sample, which is exactly why the combined gas law works: measure P, V and T anywhere, then ask what V would be once P and T are the standard values. The STP result can then be turned into moles by dividing by the molar volume, and from moles you can reach mass with the molar mass or particle counts with Avogadro's number.
How to Use the STP Calculator
- Measure or note the volume of your gas sample in litres.
- Enter the temperature at which the gas was measured, and convert it to kelvin in your head as a check (add 273.15 to the Celsius value).
- Enter the pressure of the gas, paying attention to the unit — atm, kPa, bar or mmHg.
- Choose the STP definition your course or protocol uses: 1 bar (IUPAC) or 1 atm (traditional).
- Read the converted volume at STP, and the equivalent amount in moles if shown.
- If you need the mass, multiply the moles by the gas's molar mass.
Worked Example: A Nitrogen Sample Brought to STP
Suppose you collect 5.0 L of nitrogen at 25 °C and 1.2 atm, and you want the volume at STP (273.15 K, 1 atm). First convert the temperature: 25 °C = 298.15 K. Then apply the combined gas law step by step. Multiply the starting volume by the pressure ratio: 5.0 × (1.2 ÷ 1.0) = 6.0 L — this step alone says the volume would grow as pressure falls to 1 atm. Next multiply by the temperature ratio: 6.0 × (273.15 ÷ 298.15) = 6.0 × 0.9162 = 5.497 L. Cooling wins over the pressure drop, so the sample occupies about 5.50 L at STP. Dividing by the traditional molar volume, 5.50 ÷ 22.414 = 0.245 mol of nitrogen, which is 0.245 × 28.02 ≈ 6.87 g.
For quick reference, the volumes one mole of an ideal gas occupies at common reference conditions are:
- STP, traditional (273.15 K, 1 atm): 22.414 L
- STP, IUPAC (273.15 K, 1 bar): 22.711 L
- SATP (298.15 K, 1 bar): 24.79 L
- Room conditions (298.15 K, 1 atm): 24.47 L
Where STP Conversions Go Wrong
The single most common error is forgetting to convert Celsius to kelvin. Plugging 25 instead of 298.15 into a ratio throws the answer off by more than a factor of ten, and the result still looks like a plausible number, so it slips through. Second, check which STP definition your textbook, exam board or lab protocol expects; the 1 atm and 1 bar molar volumes differ by about 1.3 percent, enough to cost marks. Third, keep pressure units consistent: 1 atm equals 101.325 kPa and 760 mmHg, and gauge pressure (what a tyre gauge reads) is not absolute pressure. Finally, remember the ideal gas assumption. Real gases deviate measurably at high pressures, at temperatures near their condensation point, and for strongly polar molecules like ammonia or water vapour — the calculator gives the ideal-gas answer, which is an excellent approximation for gases like nitrogen, oxygen and hydrogen at ordinary conditions, but an approximation all the same.
The Wet-Gas Correction: Collecting Over Water
One refinement separates classroom answers from laboratory ones. Gas is often collected by displacing water, and the gas in the jar is not pure — it is saturated with water vapour, which contributes its own partial pressure to the total. Before converting to STP, subtract the vapour pressure of water at the collection temperature from the measured pressure to get the pressure of the dry gas alone. At 25 °C that vapour pressure is 23.8 mmHg. So a sample collected over water at 25 °C under a total pressure of 762 mmHg is really dry gas at 762 − 23.8 = 738.2 mmHg, and 738.2 is the figure that belongs in the combined gas law. Skip the correction and every result runs about 3 percent high at room temperature — small, but larger than the precision of the glassware you measured with. The same care applies to altitude: a barometer reading, not a weather app's sea-level-adjusted figure, is the pressure your gas actually experienced.
From Standard Volumes to the Rest of the Problem
An STP volume is rarely the final goal; it is the bridge to moles, and moles are the currency of chemistry. Once you have the amount, the Grams to Moles Calculator moves you between mass and moles for the weighing steps before and after a gas measurement, while the Percent Yield Calculator helps when the gas you collected is the product of a reaction and you want to compare the actual amount against theory. You will find these and the rest of the chemistry set in the science calculators collection.