Ideal Gas Law
The ideal gas law is PV = nRT. Pressure times volume equals moles times a constant times absolute temperature. Know three of the four properties of a gas and you can find the fourth.
PV = nRT and its three rearrangements.
Solve for whichever variable the problem leaves out. R is the same constant every time, and only its number changes with your units.
n = PV / RT
V = nRT / P
P = nRT / V
T = PV / nR
Ideal gas constant R follows your units.
Pick R by the pressure unit in the problem. Volume in liters (or cubic meters for SI), temperature in kelvin, amount in moles. Values are from the CODATA constant, R = 8.314462618 J/(mol·K).
Unit mismatch is the most common wrong answer. If the problem gives kPa and you use 0.08206, convert kPa to atm first (101.325 kPa = 1 atm).
Ideal gas law problems in four steps.
How many moles of nitrogen are in 2.00 L at 1.50 atm and 25 °C?
- List what you knowV = 2.00 L P = 1.50 atm T = 25 °C
- Convert to kelvinT = 25 + 273.15 = 298 K
- Pick R to match atm and LR = 0.08206 L·atm/(mol·K)
- Solve for nn = (1.50 × 2.00) / (0.08206 × 298) = 0.123 mol
Stuck on a worksheet? A photo of the problem can be worked line by line in Stephen AI, an AI tutor for gas law problems. Once you have moles, stoichiometry turns them into grams of product.
Boyle's, Charles's, combined are PV = nRT with a freeze.
Hold something constant and R drops out. That is why these laws only need a before and an after.
Boyle's law
P1V1 = P2V2
Constant n and T. Squeeze the gas and pressure rises.
Charles's law
V1/T1 = V2/T2
Constant n and P. Heat the gas and volume grows.
Gay-Lussac's law
P1/T1 = P2/T2
Constant n and V. Heat a sealed container and pressure climbs.
Combined gas law
P1V1/T1 = P2V2/T2
Constant n only. Use it when you get a start state and an end state.
Use PV = nRT when you need the moles, or when only one state is given. Temperatures are still in kelvin in every one of these.
Ideal vs. real gas where PV = nRT breaks.
The law pictures point-sized molecules that never attract each other. Real molecules take up space and pull on one another.
Works well
- Low pressure
- High temperature
- Small, nonpolar gases like He, H2, N2
Drifts off
- High pressure: molecule volume matters
- Low temperature: attractions matter, gas nears liquid
- Large or polar molecules
The van der Waals equation adds one correction for molecule volume and one for attractions. At the limit where both corrections are zero, it becomes PV = nRT. Stuck on a gas problem outside this range? The chemistry solver page covers other setups.
Questions about PV = nRT.
What is the ideal gas law?
The ideal gas law is PV = nRT. Pressure times volume equals moles times the gas constant times absolute temperature. It links the four measurable properties of a gas, so if you know three of them you can solve for the fourth.
What is the value of R in the ideal gas law?
It depends on your units. R = 0.08206 L·atm/(mol·K) when pressure is in atm and volume is in liters. R = 8.314 J/(mol·K) in SI units, with pressure in pascals and volume in cubic meters. R = 62.36 L·Torr/(mol·K) when pressure is in Torr or mmHg.
What units does the ideal gas law use?
Temperature must be in kelvin and amount in moles. Pressure and volume can be any units, as long as R matches them. With R = 0.08206, use atm and liters. With R = 8.314, use pascals and cubic meters.
Why must temperature be in kelvin?
Kelvin starts at absolute zero, so T = 0 means zero thermal energy. Celsius and Fahrenheit have arbitrary zeros. Plugging 0 °C into PV = nRT would give zero pressure or volume, which is wrong. Convert with K = °C + 273.15.
How do Boyle's law, Charles's law, and the combined gas law relate to PV = nRT?
Each one is the ideal gas law with some quantities held constant. Boyle's law (P1V1 = P2V2) holds n and T fixed. Charles's law (V1/T1 = V2/T2) holds n and P fixed. The combined gas law (P1V1/T1 = P2V2/T2) holds only n fixed. R cancels out of all of them.
When do you use the combined gas law instead of PV = nRT?
Use the combined gas law when a fixed amount of gas goes from one state to another and you are given both states. Use PV = nRT when you need the moles themselves, or when only one state is described.
What is the molar volume of an ideal gas at STP?
At 0 °C (273.15 K) and 1 atm, one mole of ideal gas occupies about 22.4 L. Some textbooks define STP with 1 bar instead of 1 atm, which gives about 22.7 L, so check which definition your course uses.
When does the ideal gas law fail?
Real gases deviate at high pressure and low temperature, where molecules are close together and attract each other. The ideal gas law assumes molecules have negligible volume and no attractions. The van der Waals equation adds corrections for both.
Match the units, then solve.
Kelvin, the right R, one unknown. Stephen AI walks gas law problems from a photo, step by step.