How to use the ideal gas law
Put the temperature in kelvin (°C + 273.15), then rearrange PV = nRT for the one you need. We turn every unit into pascals, cubic meters and kelvin first, so R is one exact number, and turn the answer back at the end.
Here it is with your numbers:
- Turn the temperature into kelvin: 0 + 273.15 = 273.15 K.
- Turn the pressure into pascals: 1 × 101,325 = 101,325 Pa.
- Multiply n, R and T, then divide by P: 1 × 8.314462618… × 273.15 ÷ 101,325 = 0.02241396954… m³.
- Turn cubic meters into liters: 0.02241396954… × 1,000 = 22.41396954… L.
- Round to 6 significant figures: 22.414 L.
It means an ideal gas under these conditions would have a volume of 22.414 L. Real gases come close at low pressures and high temperatures.
Source OpenStax Chemistry 2e · 9.2 Relating Pressure, Volume, Amount, and Temperature: The Ideal Gas Law ↗
Ideal gas law formulas
| To find | Formula |
|---|---|
| Pressure (P) | P = nRT ÷ V |
| Volume (V) | V = nRT ÷ P |
| Amount (n) | n = PV ÷ RT |
| Temperature (T) | T = PV ÷ nR |
What is the gas constant R?
R is the same in every gas; only its number changes with the units. Since 2019 it is exact: the Avogadro constant times the Boltzmann constant.
| Units | R |
|---|---|
| J/(mol·K) | 8.31446261815… |
| kPa·L/(mol·K) | 8.31446 |
| L·atm/(mol·K) | 0.0820574 |
| L·torr/(mol·K) | 62.3636 |
Values after the first are rounded to 6 significant figures; textbooks often round to 8.314 and 0.08206.
Source NIST CODATA · Molar gas constant ↗
FAQs
What is the formula for the ideal gas law?
PV = nRT: pressure × volume = moles × the gas constant × temperature, with the temperature in kelvin.
Source OpenStax Chemistry 2e · 9.2 Relating Pressure, Volume, Amount, and Temperature: The Ideal Gas Law ↗
Is 0.0821 always R?
No. R is the same constant, but its number depends on the units: 0.08206 L·atm/(mol·K), 8.314 kPa·L/(mol·K), or exactly 8.314 462 618… J/(mol·K). Use 0.0821 only with liters, atmospheres, moles and kelvin.
How to calculate R for ideal gas?
Since 2019, R is the Avogadro constant times the Boltzmann constant, both exact: 6.022 140 76 × 10²³ × 1.380 649 × 10⁻²³, which is 8.314 462 618… J/(mol·K).
What are the assumptions of the ideal gas law?
It treats the gas as an ideal gas, which real gases match well only at fairly low pressures and high temperatures. At high pressure or low temperature, real gases drift from the answer.
Source OpenStax Chemistry 2e · 9.2 Relating Pressure, Volume, Amount, and Temperature: The Ideal Gas Law ↗
How to calculate PV nRT?
Put the temperature in kelvin and use an R that matches your units. Then rearrange for the one you need: P = nRT ÷ V, V = nRT ÷ P, n = PV ÷ RT or T = PV ÷ nR.
Sources
- OpenStax Chemistry 2e: 9.2 Relating Pressure, Volume, Amount, and Temperature: The Ideal Gas Law
- NIST CODATA: Molar gas constant