Calculate pressure, volume, temperature, or amount using PV = nRT. Perfect for chemistry and physics students.
Pressure (P) arises from gas molecules colliding with container walls. Higher temperature or more moles increases collision frequency and thus pressure.
Left plot: P decreases as V increases (inverse relation).
Middle plot: V increases linearly with T.
Right plot: P increases linearly with T.
The ideal gas law is one of the most fundamental equations in chemistry and physics. Written as, it describes the state of a hypothetical “ideal gas” — a gas whose molecules occupy no volume and exert no intermolecular forces on one another. Despite being a simplification, the ideal gas law is remarkably accurate for most common gases at moderate temperatures and pressures.
The equation was first stated in its complete form in 1834 by Benoît Paul Émile Clapeyron, who unified earlier empirical gas laws into a single relationship. Each variable in the equation has a specific physical meaning:
The law tells us that if you know any three of these four variables (P, V, n, T), you can calculate the fourth. This makes it an indispensable tool for chemists, physicists, engineers, and students across many disciplines.
The universal gas constant is a physical constant that relates energy to temperature and amount of substance. Its value is precisely defined as:
Depending on the units you use for pressure and volume, R takes different numerical values:
| Value of R | Units | Common use |
|---|---|---|
| 8.314 | J/(mol·K) | SI standard, physics, engineering |
| 0.08206 | L·atm/(mol·K) | General chemistry courses |
| 62.36 | L·mmHg/(mol·K) | Lab settings using mmHg/torr |
| 8314 | L·Pa/(mol·K) | SI with litres for volume |
Always match your choice of R to the units you use for P and V. Using mismatched units is one of the most common sources of error in gas law calculations.
The ideal gas law unifies three earlier empirical laws. Each one describes what happens when two variables are held constant:
At constant temperature and amount, pressure and volume are inversely proportional. Compressing a gas increases its pressure.
Derived from PV = nRT by holding n, R, T constant.
At constant pressure and amount, volume is directly proportional to absolute temperature. Heating a gas causes it to expand.
Derived from PV = nRT by holding n, R, P constant.
At constant volume and amount, pressure is directly proportional to absolute temperature. This is why pressure cookers build up pressure when heated.
Derived from PV = nRT by holding n, R, V constant.
At constant pressure and temperature, volume is directly proportional to amount. Equal volumes of gases at the same conditions contain equal numbers of molecules.
Derived from PV = nRT by holding P, R, T constant.
Chemists often quote gas properties at defined standard conditions to allow fair comparison. Three reference conditions are commonly used:
Note that IUPAC redefined STP in 1982 to use 1 bar (100,000 Pa) rather than 1 atm. Some older textbooks still use the pre-1982 definition. Always check which standard your source is using.
The ideal gas law assumes two things that are never exactly true: (1) gas molecules have zero volume, and (2) there are no intermolecular attractions or repulsions. Real gases deviate from this model most noticeably under:
For more accurate results in these regimes, chemists use the van der Waals equation:
where corrects for intermolecular attractions and corrects for molecular volume. However, for most introductory chemistry and engineering problems, the ideal gas law gives results accurate to within a few percent.
Official thermophysical property data for hundreds of real gases from the National Institute of Standards and Technology.
Free video lessons on PV = nRT with worked examples covering AP Chemistry and general chemistry courses.
Open-access textbook chapter on the ideal gas equation with derivations, examples, and practice problems.
Pressure inversely proportional to volume
Volume directly proportional to temperature
Pressure directly proportional to temperature
Volume directly proportional to amount