# The Ideal Gas Law: Chemistry Review

Source: https://www.albert.io/blog/the-ideal-gas-law-chemistry-review/ · Updated November 17, 2026

Car airbags inflate in a fraction of a second when a chemical reaction suddenly releases nitrogen gas. Engineers must know exactly how much gas the reaction produces, and how much space that gas will fill at the temperature and pressure inside the bag. One equation connects the amount of a gas to its pressure, volume, and temperature all at once. That equation, the ideal gas law, is one of the most useful tools in chemistry.

This article covers **Topic 8.4: The Ideal Gas Law** in Unit 8, States of Matter and Gases. The topic asks you to use the ideal gas law to solve for any gas variable, apply molar volume at STP, find molar mass from gas data, and use Dalton's law of partial pressures.

By the end, you should be able to:

1. State the ideal gas law and choose the correct value of R.
2. Solve for pressure, volume, moles, or temperature.
3. Use molar volume at STP and find molar mass from gas data.
4. Apply Dalton's law of partial pressures.

## The Equation

\(PV=nRT\)

![The gas laws at a glance.](https://www.albert.io/blog/wp-content/uploads/2026/11/gaslaws-chemistry.png) The gas laws at a glance.

Here \(P\) is pressure, \(V\) is volume in liters, \(n\) is moles, \(T\) is temperature in kelvins, and \(R\) is the **ideal gas constant**. The value of R depends on the pressure unit:

| Pressure Unit | Value of R |
| --- | --- |
| atm | \(0.0821\ \frac{\text{L}\cdot\text{atm}}{\text{mol}\cdot\text{K}}\) |
| kPa | \(8.314\ \frac{\text{L}\cdot\text{kPa}}{\text{mol}\cdot\text{K}}\) |

**Why does this matter?** The gas laws in the previous topic compare a gas before and after a change. The ideal gas law describes a gas at one moment, and it includes the amount of gas. That makes it the bridge between gas measurements and moles, which is what stoichiometry needs.

## Solving for a Variable

**Worked example 1:** How many moles of gas are in a 10.0 L tank at 2.00 atm and 300 K?

1. Rearrange: \(n=\frac{PV}{RT}\).
2. Substitute: \(n=\frac{(2.00)(10.0)}{(0.0821)(300)}\).
3. Calculate: \(n=\frac{20.0}{24.63}=0.812\text{ mol}\).

Always check that the units of R match your pressure and volume units, and that temperature is in kelvins.

The same equation can be rearranged for any other variable. To find volume, use \(V=\frac{nRT}{P}\). To find temperature, use \(T=\frac{PV}{nR}\). Rather than memorizing four versions, write \(PV=nRT\), circle the unknown, and divide both sides by everything else on its side.

## Molar Volume at STP

**Standard temperature and pressure**, or STP, is commonly defined in high school chemistry as 0°C (273 K) and 1 atm. At STP, one mole of any ideal gas occupies about **22.4 L**, its **molar volume**. Some newer references define STP at a slightly lower pressure of 1 bar, which gives about 22.7 L, so check which value your course uses.

**Worked example 2:** What volume does 0.500 mol of nitrogen gas occupy at STP? \(0.500\text{ mol}\times 22.4\text{ L/mol}=11.2\text{ L}\).

## Finding Molar Mass

Combining gas measurements with a sample's mass reveals its molar mass, which can identify an unknown gas.

**Worked example 3:** A 1.00 g sample of an unknown gas occupies 0.560 L at STP. Identify the gas.

1. Moles: \(\frac{0.560\text{ L}}{22.4\text{ L/mol}}=0.0250\text{ mol}\).
2. Molar mass: \(\frac{1.00\text{ g}}{0.0250\text{ mol}}=40.0\text{ g/mol}\).
3. A noble gas with this molar mass is argon.

## Dalton's Law of Partial Pressures

In a mixture of gases, each gas exerts its own **partial pressure**, as if it were alone. The total pressure is the sum:

\(P_{\text{total}}=P_{1}+P_{2}+P_{3}+\cdots\)

![Gas pressure comes from molecules colliding with the container walls.](https://www.albert.io/blog/wp-content/uploads/2026/11/kinetic-theory-gas-pressure.png) Gas pressure comes from molecules colliding with the container walls.

This matters when gas is collected over water, because the collected gas is mixed with water vapor. If hydrogen collected over water at 25°C has a total pressure of 101.3 kPa, and water vapor contributes about 3.2 kPa at that temperature, the hydrogen's own pressure is \(101.3-3.2=98.1\text{ kPa}\).

**Why does this matter?** Air is about 21 percent oxygen. At high altitude, the total air pressure is lower, so the partial pressure of oxygen is lower too. Each breath delivers less oxygen, which explains why climbers on very high mountains often carry extra oxygen.

## When the Ideal Gas Law Works

The law assumes particles have no volume and no attractions, as in the kinetic molecular theory. It works well for most gases at ordinary conditions. It becomes less accurate at very high pressures and very low temperatures, where real gas particles crowd together and attract each other.

![Real gases deviate from PV = nRT at high pressure: attractions pull the ratio down, particle volume pushes it up.](https://www.albert.io/blog/wp-content/uploads/2026/11/real-vs-ideal-gas-pv-nrt.png) Real gases deviate from PV = nRT at high pressure: attractions pull the ratio down, particle volume pushes it up.

## Test-Taking Strategies

### Mnemonic Devices and Memory Shortcuts

"PV equals nRT" is often remembered as "Piv Nert." For STP, "zero, one, twenty-two point four": 0°C, 1 atm, 22.4 L per mole.

### Cross-Topic Connections

- The before-and-after gas laws are covered in [Topic 8.3: Gas Laws](https://www.albert.io/blog/gas-laws-chemistry-review/).
- Ideal gas assumptions come from [Topic 8.1: Kinetic Molecular Theory](https://www.albert.io/blog/kinetic-molecular-theory-chemistry-review/).
- Moles connect to particles in [Topic 5.3: The Mole and Avogadro's Number](https://www.albert.io/blog/the-mole-and-avogadros-number-chemistry-review/).
- Gas volumes feed into reaction calculations in [Topic 7.2: Stoichiometry Calculations](https://www.albert.io/blog/what-is-stoichiometry-examples-and-practice/).

### Common Question Formats

- Solve for one variable using PV = nRT.
- Convert between moles and volume at STP.
- Find the molar mass of an unknown gas.
- Calculate a partial pressure in a gas mixture.

### Frequent Student Mistakes

- Using an R value whose units do not match the pressure unit.
- Forgetting to convert Celsius to Kelvin.
- Using 22.4 L/mol when the gas is not at STP.

### Test-Day Shortcuts

Before calculating, write each given value with its unit beside the matching variable. Any mismatch with the units of R will stand out immediately.

### Time Management Tips

Ideal gas law problems on Chemistry unit tests and end-of-course exams take one to two minutes. Molar mass and partial pressure problems take two to three minutes.
