Skip to content
Study Hall
Lesson 5 of 8Gases & Atmospheric Chemistry
Unit 5 · Lesson 5 of 8

The Ideal Gas Law

The ideal gas law, , connects pressure, volume, temperature, and amount of gas in a single equation — and reveals where real gases deviate from ideal behaviour.

5 min read11 practice questionsInteractiveAsk AI about this →

Key things to remember

  1. 1
  2. 2 (use with in kPa, in L, in K)
  3. 3Rearranged forms: , , ,
  4. 4Ideal behaviour is best approximated at low pressure and high temperature.
  5. 5Real gases deviate from ideal at high pressure (particle volume matters) and low temperature (intermolecular forces matter).

Every gas law so far has compared a gas sample in one state to the SAME sample in a different state — the amount of gas never changed. But often you just want to know: given some amount of gas at certain conditions right now, what is its pressure, volume, or temperature? For that, you need an equation that includes the amount of gas (, in moles) directly. That equation is the ideal gas law.

The equation

The ideal gas law.
SymbolQuantityUnit (in this course)
PressurekPa
VolumeL
Amount of gasmol
Ideal gas constant
Absolute temperatureK
The value of R depends on your units
is the value to use whenever pressure is in kPa and volume is in L (the standard combination in this course). If a problem gives pressure in atm, either convert to kPa first, or use a different tabulated value of — but for consistency, this course always converts to kPa and uses .

Where does come from? The combined gas law says that for a sealed sample is a constant. Avogadro's law says that at the same temperature and pressure, doubling the number of moles doubles the volume, so that constant must be proportional to . Writing the constant as gives , which is the ideal gas law. So is simply the value of for any ideal gas, measured once and used everywhere: for exactly 1 mol at 273.15 K and 101.325 kPa, the volume is 22.4 L, and The same number works for hydrogen, oxygen or carbon dioxide, because under the KMT assumptions the identity of the particles does not matter; only how many there are.

Rearranging for any variable

Because relates four quantities (with fixed), you can algebraically solve for whichever one is unknown, as long as you know the other three. The units of are a built-in checklist: means pressure MUST be in kPa, volume in L (so divide mL by 1000), amount in mol (so divide grams by molar mass), and temperature in K. How do you choose between this law and the combined gas law? If the problem describes ONE gas sample at ONE set of conditions, or involves moles or grams, use . If it describes the same sealed sample moving from a before-state to an after-state, use the combined gas law, where and cancel.

  • Solve for pressure:
  • Solve for volume:
  • Solve for moles:
  • Solve for temperature:
Loading interactive…
Use the interactive gas law simulation to explore how P, V, T and n relate: hold one variable, change another, and watch the computed one respond.

Molar mass and density from PV = nRT

The ideal gas law can identify an unknown gas. Weigh a sample (mass ), measure its , and , and calculate . Then the molar mass is simply , which you can compare with the molar masses of likely candidates. Combining the two steps gives . The same idea predicts gas density (): substituting into and rearranging gives . At the same temperature and pressure, a gas's density is proportional to its molar mass. Air averages about 29 g/mol, so helium (4.00 g/mol) floats up, while carbon dioxide (44.01 g/mol) sinks and collects in low spots, which is why fire extinguishers using smother flames and why can build up dangerously in basements and cellars. The formula also shows that heating a gas at constant pressure lowers its density, the principle behind hot-air balloons.

When does a gas stop behaving "ideally"?

Recall that the ideal gas law assumes the KMT postulates hold exactly — negligible particle volume and no intermolecular attractions. Real gases follow this closely under everyday conditions, but deviate in these circumstances:

  • High pressure: particles are forced close together, so their own (non-negligible) volume starts to matter, and the gas doesn't compress quite as much as the ideal law predicts.
  • Low temperature: particles move slower, giving intermolecular attractive forces enough time to actually affect motion (this is also, not coincidentally, how gases eventually condense into liquids as they cool).
  • Strongly attracting particles: polar molecules such as and attract each other more than small nonpolar ones such as He or , so they deviate more under the same conditions. Helium is the most nearly ideal real gas.
Rule of thumb
The ideal gas law works best at low pressure and high temperature — conditions where gas particles are spread far apart and moving fast, exactly what the KMT postulates assume. Most gas law problems in this course occur under conditions close enough to ideal that the equation is a very good approximation. At room temperature and normal air pressure, common gases such as , and He match to within about one percent. The errors grow in places like a scuba tank or an industrial gas cylinder, where pressures reach many thousands of kilopascals, and near the temperature where the gas is about to condense. Engineers who design those systems use corrected equations, but the ideal gas law remains the starting point, and it is the only model you need in this course.

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
How many moles of gas are in a 5.00 L container at 250.0 kPa and 300.0 K?
Example 2
What volume does 2.00 mol of an ideal gas occupy at 150.0 kPa and 350.0 K?
Example 3
A rigid 10.0 L tank holds 1.50 mol of gas at 500.0 K. What is the pressure inside the tank?
Example 4
A 0.500 L flask holds 1.32 g of an unknown gas at 25.0°C and 102.0 kPa. Find the molar mass and decide whether the gas is (44.01 g/mol), (64.07 g/mol) or (70.90 g/mol).

Where marks get lost

  • Using 's value without matching units for and — if pressure is given in atm or mmHg, it must be converted to kPa first to use .
  • Forgetting to convert temperature to Kelvin before substituting into .
  • Mixing up which variable to isolate when rearranging (a common slip: writing instead of ).
  • Forgetting units entirely on the final answer (moles, litres, kPa, or Kelvin, depending on what was solved for).
  • Assuming the ideal gas law works equally well at very high pressures or very low temperatures, where real-gas deviations become significant.

Flashcards 10

Ideal gas law equation
Value and units of R (for kPa, L, mol, K)
Solve PV = nRT for n
Solve PV = nRT for V
+ 6 more

Practice

1
Find the pressure exerted by 0.750 mol of gas in a 12.0 L container at 295.0 K. Round to one decimal place.
kPa
2
How many moles of gas occupy 22.0 L at 101.3 kPa and 273.15 K?
mol
3
Under which conditions does a real gas behave most like an ideal gas?
4
Why do real gases deviate from ideal behaviour at high pressure?
5
Match each rearranged form of the ideal gas law to what it solves for.
6
What temperature (in K) is needed for 1.20 mol of gas to occupy 30.0 L at 110.0 kPa? Round to one decimal place.
K
7
A 0.250 L sample of an unknown gas has a mass of 0.405 g at 27.0°C and 101.3 kPa. Find its molar mass. Round to one decimal place.
g/mol
8
What pressure is exerted by 0.0500 mol of gas in a 750. mL container at 35.0°C? Round to one decimal place.
kPa
9
Order the steps for solving an ideal gas law problem, from first to last.
  1. 1Rearrange PV = nRT to isolate the unknown
  2. 2Calculate and check that the units and size make sense
  3. 3Substitute the values with R = 8.314
  4. 4Convert units: P to kPa, V to L, T to K, mass to mol
10
At 25°C and 100 kPa, which gas would you expect to behave MOST like an ideal gas?
11
Using the kinetic molecular theory, explain why doubling the number of moles of gas at constant temperature and pressure doubles the volume.

Spot a mistake on this page? Let us know