Standard temperature and pressure is the reference point every gas measurement is compared against.
Standard temperature and pressure, STP, means 0 °C and 1 atm in most general chemistry courses. This calculator takes a pressure, a volume and a temperature, turns them into moles with the ideal gas law, n = PV / RT, and shows the temperature in kelvin, the pressure in kPa and mmHg, and the molar volume.
Please check the inputs: the pressure and volume must be numbers greater than zero and the temperature must be above -273.15 °C.
| Pressure (atm) | Volume (L) | Temperature (°C) | Temperature (K) | Amount (mol) | Molar Volume (L/mol) |
|---|
Eight STP cases, from 0.4997 mol to 1.999 mol. The highlighted row matches your inputs: 1.0 atm, 22.4 L and 0.0 °C, giving 0.9994 mol.
Founder & CEO, Techraxy
Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.
User Ratings:
ADVERTISEMENT
ADVERTISEMENT
Standard temperature and pressure is the reference point every gas measurement is compared against. This free STP calculator takes a pressure, a volume and a temperature and turns them into moles with the ideal gas law. Run 1.000 atm, 22.4 L and 0 °C through it, and the answer is 0.9994 mol at 273.1 K, with a pressure of 101.3 kPa and 760.0 mmHg and a molar volume of 22.4 L/mol. One mole of an ideal gas fills 22.4 L at 0 °C and 1 atm, and this calculator shows where that number comes from.
The calculator takes three inputs: the pressure in atm, the volume in L, and the temperature in °C. It returns the amount of gas in mol, the temperature in K, the pressure in kPa and in mmHg, the molar volume in L/mol, and the formula used. The diagram shows a gas cylinder with a piston that moves with the volume, a thermometer, and a gauge showing the molar volume on a scale of 0 to 30 L/mol.
A STP calculator is a tool that works with standard temperature and pressure, the fixed conditions chemists use to compare gas measurements from different labs. In most general chemistry courses STP means 0 °C (273.15 K) and 1 atm (101.325 kPa, 760 mmHg). At those conditions one mole of an ideal gas has a volume of about 22.4 L, which is called the standard molar volume. This calculator finds the amount of gas in moles from any pressure, volume and temperature with the ideal gas law, n = PV / RT, and shows the molar volume, which is the volume divided by the amount.
The ideal gas law says the pressure times the volume equals the amount times the gas constant times the absolute temperature, so the amount is the pressure times the volume divided by the gas constant times the temperature in kelvin. The gas constant here is 0.082057 L atm / (mol K). Because the temperature must be absolute, 0 °C goes into the formula as 273.15 K, never as 0. The Molar Mass of Gas Calculator finds the molar mass of a gas from its density, while this calculator finds how many moles a gas sample holds.
There is a second definition of STP to watch for. IUPAC changed the standard pressure from 1 atm to 1 bar (100 kPa) in 1982, and under that definition the molar volume is 22.7 L/mol instead of 22.4 L/mol. Many textbooks still use 1 atm, and this calculator uses the classic 1 atm definition, so check which one your course uses before you quote a number.
Enter the pressure in atm, the volume in L, and the temperature in °C. The temperature must be above absolute zero, -273.15 °C, because the ideal gas law needs an absolute temperature. The calculator updates as soon as you change any input, and the Calculate button runs it again at any time. At the defaults the pressure is 1.000 atm, the volume is 22.4 L, the temperature is 0 °C, and the amount is 0.9994 mol.
Read the results in order. The headline numbers are the amount of gas in mol, the temperature in K, and the pressure in kPa, then the pressure in mmHg, then the molar volume in L/mol, and the formula used. The highlight sentence repeats the answer in plain words, with the inputs it used, so you can check that nothing was mistyped.
The diagram shows the gas cylinder on the left and the thermometer on the right. The piston sits on top of the gas, which runs from 20 px to 150 px on the volume over 50 L, so changing the volume moves the piston and the three gas dots, which sit at a quarter, a half and three quarters of the gas height. The thermometer fills on the temperature from -50 to 100 °C, from 0 px to 150 px, so changing the temperature moves the red column even when the moles barely change. The gauge fills on the molar volume over a 0 to 30 L/mol scale.
The Compare Cases tab puts eight STP cases side by side, from 0.4997 mol to 1.999 mol, with the pressure, the volume, the temperature in °C and in K, the amount, and the molar volume. The row matching your inputs is highlighted. The molar volume column is the part that needs care: it stays near 22.4 L/mol whenever the pressure and temperature stay near STP, and it moves only when they move away from it.
The formula is n = PV / RT, where P is the pressure in atm, V is the volume in L, n is the amount in mol, R is 0.082057 L atm / (mol K), and T is the absolute temperature in K, which is the temperature in °C plus 273.15. Written out for the defaults, 1.000 atm, 22.4 L and 0 °C: the temperature in kelvin is 0 plus 273.15, which is 273.1 K. The amount is 1.000 times 22.4 divided by 0.082057 times 273.15, which is 22.4 divided by 22.41, giving 0.9994 mol. The molar volume is 22.4 divided by 0.9994, which is 22.4 L/mol. The pressure in kPa is 1.000 times 101.325, which is 101.3 kPa, and in mmHg it is 1.000 times 760, which is 760.0 mmHg.
The molar volume is the same calculation collapsed into one number: V divided by n, which is RT divided by P. At 0 °C and 1 atm that is 0.082057 times 273.15 divided by 1, which is 22.41 L/mol, the famous 22.4 L. At the IUPAC standard pressure of 100 kPa it is 22.7 L/mol, and at 25 °C and 1 atm it is 24.5 L/mol. The Mole Calculator covers the other side of the amount story, converting between mass, moles and particles, which is the number this calculator feeds into once the moles are known.
Take 22.414 L of gas at 0 °C and 1 atm. First, the temperature in kelvin is 0 plus 273.15, which is 273.1 K. The amount is 1.000 times 22.414 divided by 0.082057 times 273.15, which is 22.414 divided by 22.41, giving 1.000 mol. The molar volume is 22.414 divided by 1.000, which is 22.4 L/mol. That is why 22.414 L is the textbook volume of one mole at STP: it is the volume that holds exactly one mole, while the rounded 22.4 L holds 0.9994 mol.
The same steps check room temperature, where the molar volume is larger. Take 24.45 L of gas at 25 °C and 1 atm. First, the temperature in kelvin is 25 plus 273.15, which is 298.1 K. The amount is 1.000 times 24.45 divided by 0.082057 times 298.15, which is 24.45 divided by 24.47, giving 0.9994 mol. The molar volume is 24.45 divided by 0.9994, which is 24.5 L/mol. A mole takes up more room when it is warmer, because the gas expands at constant pressure.
A third check shows doubling the pressure doubling the amount. Take 22.4 L of gas at 0 °C and 2 atm. First, the temperature in kelvin is 0 plus 273.15, which is 273.1 K. The amount is 2.000 times 22.4 divided by 0.082057 times 273.15, which is 44.8 divided by 22.41, giving 1.999 mol. The molar volume is 22.4 divided by 1.999, which is 11.2 L/mol. Twice the pressure squeezes twice the moles into the same volume, so each mole takes half the room.
The first benefit is seeing where 22.4 L comes from instead of memorising it. The calculator runs the ideal gas law in front of you, with the temperature converted to kelvin and the gas constant shown, so the molar volume appears as a result of the arithmetic rather than a number to trust on faith. A student who has seen 22.414 L give exactly 1.000 mol understands the standard molar volume in a way a memorised figure never gives.
The second benefit is keeping the two definitions of STP apart. The calculator states openly that it uses the classic 1 atm definition and shows the IUPAC 100 kPa figure of 22.7 L/mol alongside it, so a student whose course uses the newer definition can spot the 1.3 percent difference before it costs marks. The compare table shows both: the 22.4 L cases at 1 atm and the 24.5 L case at 25 °C.
The third benefit is converting between moles and litres without the full ideal gas law every time. Once the molar volume at the conditions is known, any volume converts to moles by dividing by it, and any amount converts to volume by multiplying. The calculator gives both the moles and the molar volume in one run, so either direction is one division away.
The fourth benefit is a sense of scale across conditions. The compare table runs from 0.4997 mol in 11.2 L to 1.999 mol in 44.8 L, and the molar volume runs from 11.2 L/mol at 2 atm to 30.6 L/mol at 100 °C. Seeing that spread in one table shows that the molar volume is not a property of the gas at all, it is a property of the conditions, and it is the same for nitrogen, helium or carbon dioxide as long as the gas behaves ideally.
STP is standard temperature and pressure, the fixed conditions chemists use to compare gas measurements. In most general chemistry courses it means 0 °C (273.15 K) and 1 atm (101.325 kPa, 760 mmHg). At those conditions one mole of an ideal gas fills about 22.4 L. IUPAC now defines standard pressure as 100 kPa (1 bar), which gives 22.7 L/mol, so check which definition your course uses.
22.4 L at 0 °C and 1 atm holds 0.9994 mol, and 22.414 L holds exactly 1.000 mol. The amount is the pressure times the volume divided by the gas constant times the temperature in kelvin: 1.000 times 22.4 divided by 0.082057 times 273.15, which is 0.9994 mol. The famous 22.4 L figure is a rounded molar volume, so the exact volume of one mole is 22.414 L.
Because the ideal gas law is proportional to absolute temperature, so 0 °C must go into the formula as 273.15 K. Putting 0 °C in directly would divide by zero and give no answer at all, and doubling 10 °C to 20 °C raises the absolute temperature by only 3.5 percent, not 100 percent. The calculator converts °C to K for you, adding 273.15 to every temperature you enter.
No, not for an ideal gas. One mole of helium, nitrogen or carbon dioxide fills almost the same volume at the same temperature and pressure, because the ideal gas law has no term for the identity of the gas. Real gases deviate a little, especially near condensation, but at everyday temperatures and pressures the difference is small, which is why the same 22.4 L figure works for all of them.
STP is standard temperature and pressure, 0 °C and 1 atm in the classic definition, or 0 °C and 100 kPa in the current IUPAC definition. SATP is standard ambient temperature and pressure, 25 °C (298.15 K) and 100 kPa, the conditions of a normal laboratory. At SATP one mole of an ideal gas fills about 24.8 L, and at 25 °C and 1 atm it fills 24.5 L. This calculator uses the classic STP of 0 °C and 1 atm.
Wikipedia — Standard temperature and pressure, with STP as 0 °C and 1 atm in the classic definition, the IUPAC change to 100 kPa in 1982, and the molar volumes 22.414 L/mol at 1 atm and 22.711 L/mol at 100 kPa.
University of Calgary — Standard Conditions of Temperature and Pressure, with STP as 273.15 K and 1 atm, the standard molar volume of about 22.4 L, and the IUPAC change from 1 atm to 1 bar.
Wikipedia — Ideal gas law, with PV = nRT, the gas constant R as 8.314 J / (mol K) and 0.082057 L atm / (mol K), and the molar volume of an ideal gas at STP.
NIST — NIST Chemistry WebBook, with thermochemical data for gases, including the gas constant and the standard reference data behind the molar volume.
This calculator finds the amount of gas in moles from a pressure, a volume and a temperature using the ideal gas law, n = PV / RT, with the classic STP definition of 0 °C and 1 atm, and it is for study, homework and general reference only. It assumes the gas behaves ideally, with molecules that take up no volume and do not attract each other, so real gases near condensation deviate a little, and it is not a substitute for measured data. Do not use a result from this calculator to set a batch size, a dose, or a process parameter without checking the procedure it specifies. If your course uses the IUPAC standard pressure of 100 kPa instead of 1 atm, use 22.7 L/mol for your coursework instead of the 22.4 L/mol this calculator shows.
Last updated: 2 December 2026
ADVERTISEMENT
ADVERTISEMENT