Ideal Gas Law Calculator (PV = nRT)
Enter any three of pressure, volume, amount of gas and temperature to find the fourth using the ideal gas law, PV = nRT.
| Result | 22.414 L (0.022414 m³) |
|---|---|
| Working | V = 1 mol × 8.314 × 273.15 K ÷ 101.325 kPa = 22.414 L |
Link to this calculation – copied!
Formula
P = nRT ÷ V V = nRT ÷ P n = PV ÷ RT T = PV ÷ nR
| Symbol | Meaning |
|---|---|
| P | Absolute pressure, in kilopascals (kPa) |
| V | Volume, in liters (L) |
| n | Amount of gas, in moles (mol) |
| R | Gas constant, 8.314 J/(mol·K) = 8.314 L·kPa/(mol·K) |
| T | Absolute temperature, in kelvin (K) |
How to Use This Calculator
- Choose the Solve for (Pressure (P), Volume (V), Moles (n), Temperature (T)).
- Enter the Pressure (kPa). Absolute pressure; 1 atm = 101.325 kPa.
- Enter the Volume (L) when Solve for is Pressure (P) or Moles (n) or Temperature (T). 1 m³ = 1000 L.
- Enter the Amount of gas (mol).
- Enter the Temperature (K). Kelvin = °C + 273.15.
- Press Calculate. Results also update automatically as you type.
Worked Example
Using the values pre-filled in the calculator above:
| Solve for | Volume (V) |
|---|---|
| Pressure | 101.325 kPa |
| Amount of gas | 1 mol |
| Temperature | 273.15 K |
| Result | 22.414 L (0.022414 m³) |
|---|---|
| Working | V = 1 mol × 8.314 × 273.15 K ÷ 101.325 kPa = 22.414 L |
About This Calculation
The ideal gas law ties together the four properties that describe a sample of gas: pressure, volume, amount and temperature. It treats gas molecules as tiny points that do not attract each other, which is a surprisingly good description of most gases near room temperature and atmospheric pressure. One mole of any ideal gas at 0 °C and 1 atm occupies about 22.4 liters, the classic "molar volume" used in stoichiometry.
The gas constant R is 8.314 J/(mol·K). Because one kilopascal multiplied by one liter is exactly one joule, the same number works with pressure in kPa and volume in liters, which is what this calculator uses. If you work in pascals and cubic meters the result is identical. In atmospheres and liters you would need R = 0.08206 L·atm/(mol·K) instead.
Two pitfalls cause most wrong answers. Temperature must be absolute, in kelvin: add 273.15 to a Celsius reading, since using °C directly can even give negative volumes. Pressure must also be absolute, not gauge pressure from a tyre gauge. The law becomes inaccurate at high pressures or low temperatures, where molecules are close together and intermolecular forces matter; real-gas equations such as van der Waals are used there. For a fixed amount of gas changing conditions, the combined gas law calculator is more direct.
Frequently Asked Questions
- Why must temperature be in kelvin?
- Gas volume and pressure are proportional to absolute temperature, which starts at absolute zero. The Celsius scale has an arbitrary zero, so using it gives wrong (even negative) results. Convert with K = °C + 273.15, or use the temperature converter.
- Which value of R should I use?
- It depends on your units. 8.314 J/(mol·K) works for Pa with m³ and for kPa with L. Use 0.08206 L·atm/(mol·K) for atmospheres and liters, or 62.36 L·mmHg/(mol·K) for mmHg.
- What is STP?
- IUPAC defines standard temperature and pressure as 273.15 K and 100 kPa, where one mole occupies 22.71 L. The older definition of 1 atm (101.325 kPa) gives 22.41 L.