01 / 21

The Ideal Gas Law
\( PV = nRT \)

Master the relationship between pressure, volume, temperature, and amount of an ideal gas: the single equation that unifies all gas behavior.

AP Chemistry

What Is an Ideal Gas?

An ideal gas is a theoretical gas whose particles obey two simplifying assumptions that make the math tractable:

No Volume
Gas particles are treated as point masses with zero volume: they occupy no space themselves.
No Forces
There are no intermolecular attractions or repulsions between particles: they only collide elastically.

The Four Variables of Gas Behavior

\( P \) : Pressure
Force per unit area exerted by gas on container walls. Units: atm, kPa, mmHg, torr.
\( V \) : Volume
Space occupied by the gas. Units: liters (L) or mL.
\( n \) : Moles
Amount of gas in moles. Related to mass by molar mass \( M \).
\( T \) : Temperature
Must always be in Kelvin: \( T_\text{K} = T_{^\circ\text{C}} + 273.15 \).

Why Does the Ideal Gas Law Matter?

The ideal gas law is the master equation for gas behavior. It unifies the earlier "named" gas laws into one relationship and lets you solve for any unknown variable when the other three are known.

1
Stoichiometry: Calculate volumes of gaseous reactants and products at any conditions.
2
Molar mass: Determine the identity of an unknown gas from \( P \), \( V \), \( T \), and mass data.
3
Density: Derive gas density at any temperature and pressure using \( d = \frac{PM}{RT} \).

The Ideal Gas Law Equation

\(\color{#818cf8}P\color{#4ade80}V \color{#e2e8f0}= \color{#fbbf24}n\color{#a78bfa}R\color{#f87171}T\)
\( P \)
Pressure (atm)
\( V \)
Volume (L)
\( n \)
Moles (mol)
\( R \)
\( 0.08206 \frac{\mathrm{L\,atm}}{\mathrm{mol\,K}} \)
\( T \)
Temperature (K)

Rearranging for Any Variable

Since \( PV = nRT \) has four variables plus a constant, you can isolate whichever quantity is unknown:

Solve for \( P \)
$$ P = \frac{nRT}{V} $$
Solve for \( V \)
$$ V = \frac{nRT}{P} $$
Solve for \( n \)
$$ n = \frac{PV}{RT} $$
Solve for \( T \)
$$ T = \frac{PV}{nR} $$

Component Laws vs. Ideal Gas Law

The ideal gas law contains the earlier gas laws as special cases. Each older law holds two variables constant:

Law Relationship Held Constant
Boyle's Law \( P \propto \frac{1}{V} \) \( n, T \)
Charles's Law \( V \propto T \) \( n, P \)
Avogadro's Law \( V \propto n \) \( P, T \)
Gay-Lussac's Law \( P \propto T \) \( n, V \)
Ideal Gas Law \( PV = nRT \) None: all vary

Watch the boundary move—or stay fixed

A loaded piston in a thermal bath beside a sealed rigid glass vessel with a probe.A movable boundary permits volume to change, while a rigid boundary fixes volume. For a fixed amount of ideal gas, the pressure relationship depends on which variables remain constant.

Movable boundary: an isothermal change

Movable boundary: an isothermal change. A movable boundary permits volume to change, while a rigid boundary fixes volume. For a fixed amount of ideal gas, the pressure relationship depends on which variables remain constant.A movable boundary permits volume to change, while a rigid boundary fixes volume. For a fixed amount of ideal gas, the pressure relationship depends on which variables remain constant.

Rigid boundary: pressure rises with kelvin T

Rigid boundary: pressure rises with kelvin T. At fixed amount and volume, ideal-gas pressure is proportional to absolute temperature. Doubling temperature from 300 K to 600 K doubles pressure.At fixed amount and volume, ideal-gas pressure is proportional to absolute temperature. Doubling temperature from 300 K to 600 K doubles pressure.

STP and Molar Volume

Standard Temperature and Pressure (STP) is defined as \( T = 273.15 \text{ K} \) (\(0\,{}^\circ\text{C}\)) and \( P = 1 \text{ atm} \). At STP, one mole of any ideal gas occupies a special volume:

\(22.4 \text{ L/mol}\)
Molar volume at STP
\(T = 273.15 \text{ K}, P = 1 \text{ atm}\)

How to Solve Ideal Gas Problems

1
Identify the unknown. Which variable (\( P \), \( V \), \( n \), or \( T \)) are you solving for?
2
List given values. Write down every quantity provided in the problem.
3
Convert units. Temperature to K, pressure to atm, volume to L (to match \( R = 0.08206 \)).
4
Rearrange \( PV = nRT \) to isolate the unknown variable.
5
Plug in and solve. Substitute values and compute. Check that units cancel properly.

Example 1: Finding Pressure

A balloon contains 0.50 mol of helium in a 12.0 L container at \(25\,{}^\circ\text{C}\). What is the pressure?

1
Unknown: \( P \)
2
Given: \( n = 0.50 \text{ mol} \), \( V = 12.0 \text{ L} \), \( T = 25\,{}^\circ\text{C} \)
3
Convert: \( T = 25 + 273.15 = 298.15 \text{ K} \)
4
Rearrange: \( P = \frac{nRT}{V} \)
5
Solve: \( P = \frac{(0.50)(0.08206)(298.15)}{12.0} \)

Example 2: Finding Volume

What volume does 2.00 mol of \( \text{N}_2 \) occupy at 1.50 atm and 350 K?

1
Unknown: \( V \)
2
Given: \( n = 2.00 \text{ mol} \), \( P = 1.50 \text{ atm} \), \( T = 350 \text{ K} \)
3
No conversion needed: all units already match \( R \).
4
Rearrange: \( V = \frac{nRT}{P} \)
5
Solve: \( V = \frac{(2.00)(0.08206)(350)}{1.50} \)

Example 3: Finding Molar Mass

A 3.20 g sample of an unknown gas occupies 1.75 L at 1.00 atm and \(20.0\,{}^\circ\text{C}\). Find its molar mass.

1
Convert: \( T = 20.0 + 273.15 = 293.15 \text{ K} \)
2
Find \( n \): \( n = \frac{PV}{RT} = \frac{(1.00)(1.75)}{(0.08206)(293.15)} = 0.0727 \text{ mol} \)
3
Molar mass: \( M = \frac{\text{mass}}{n} = \frac{3.20}{0.0727} \)

Visualizing \( P \) vs. \( V \) at Constant \( T \)

Volume (L) Pressure (atm)
\(T_1\)
\(T_2 > T_1\)
0

Deriving Gas Density

Since \( n = \frac{m}{M} \) (mass / molar mass), substituting into \( PV = nRT \):

\( d \)
Density in g/L
\( M \)
Molar mass in g/mol
Key Insight
Heavier molecules are denser at the same \( P \) and \( T \).

The same bulb, a different gas mass

Two matching sealed glass gas bulbs on balances beside a disconnected filling manifold.For ideal nitrogen at 1 atm and 298 K, a 1.00 L bulb contains about 1.146 g of gas. Subtract the evacuated-bulb mass from the filled-bulb mass to obtain the gas sample mass.

Subtract the vessel, compare the gas

Subtract the vessel, compare the gas. For ideal nitrogen at 1 atm and 298 K, a 1.00 L bulb contains about 1.146 g of gas. Subtract the evacuated-bulb mass from the filled-bulb mass to obtain the gas sample mass.For ideal nitrogen at 1 atm and 298 K, a 1.00 L bulb contains about 1.146 g of gas. Subtract the evacuated-bulb mass from the filled-bulb mass to obtain the gas sample mass.

Common Mistakes to Avoid

✕ Using \(^\circ\text{C}\) for Temperature
The ideal gas law requires Kelvin. Using Celsius gives wildly wrong answers. Always add 273.15.
✕ Mismatched Units
If \( P \) is in kPa but you use \( R = 0.08206 \) (which requires atm), your answer will be off by a factor of ~101.
✕ Confusing Mass and Moles
The variable \( n \) is moles, not grams. You must divide mass by molar mass: \( n = \frac{m}{M} \).

Summary: Values of \( R \)

The gas constant \( R \) has different numerical values depending on the units you choose. Pick the one that matches your pressure units:

Value of \( R \) Pressure Unit Volume Unit
\( 0.08206 \) atm L
\( 8.314 \) kPa L
\( 62.36 \) mmHg (torr) L
\( 8.314 \) Pa m³

Question 1 of 5

A 5.00 L container holds 0.250 mol of oxygen gas at 300. K. What is the pressure inside the container?

Question 2 of 5

Which temperature unit must be used in the ideal gas law?

Question 3 of 5

At STP, what volume does 2.00 mol of an ideal gas occupy?

Question 4 of 5

A gas sample has \( P = 2.00 \text{ atm} \), \( V = 10.0 \text{ L} \), and \( T = 400. \text{ K} \). How many moles of gas are present?

Question 5 of 5

An unknown gas has a density of 1.96 g/L at 1.00 atm and 273.15 K. What is its molar mass?