BrainJoy logo
← All chemistry guides Chemistry guide

Gas laws explained: Boyle, Charles and the ideal gas equation

Gases are described by four properties: pressure (P), volume (V), temperature (T) and amount in moles (n). The gas laws link them. Two rules apply to every problem: temperature must be in kelvin (K = °C + 273.15), and the units for pressure and volume must match on both sides.

Boyle's law: pressure and volume

At constant temperature and amount, pressure and volume are inversely related: P1V1 = P2V2.

Example: 3.0 L of gas at 100 kPa is compressed until the pressure is 150 kPa. V2 = (100 × 3.0) / 150 = 2.0 L.

Charles's law: volume and temperature

At constant pressure and amount, volume is directly proportional to the kelvin temperature: V1 / T1 = V2 / T2.

Example: 2.00 L of gas at 300 K is heated to 360 K at constant pressure. V2 = 2.00 × 360 / 300 = 2.40 L.

The combined gas law

For a fixed amount of gas: P1V1 / T1 = P2V2 / T2. It covers cases where more than one property changes.

The ideal gas equation

PV = nRT. The gas constant R depends on the units: R = 8.314 J/(mol·K) when pressure is in pascals and volume in cubic metres, and R = 0.08206 L·atm/(mol·K) when pressure is in atmospheres and volume in litres.

Example 1: what is the pressure of 0.50 mol of gas in a 10.0 L container at 25 °C? T = 298.15 K. P = nRT / V = (0.50 × 0.08206 × 298.15) / 10.0 = 1.22 atm.

Example 2: how many moles of gas are in 5.0 L at 1.00 atm and 273.15 K? n = PV / RT = (1.00 × 5.0) / (0.08206 × 273.15) = 0.223 mol.

Why gases behave this way

Gas particles move constantly and collide with the container walls. Pressure is the effect of those collisions. Less volume means the same particles hit the walls more often, so pressure rises. A higher temperature means faster particles, which hit harder and more often.

Common mistakes

Practice questions

Try each one on paper first, then open the answer.

  1. 4.0 L of gas at 200 kPa expands to 100 kPa at constant temperature. What is the new volume?
    Show answer

    Boyle's law: V2 = 200 × 4.0 / 100 = 8.0 L.

  2. 1.50 L of gas at 20 °C is heated to 50 °C at constant pressure. What is the new volume?
    Show answer

    T1 = 293.15 K, T2 = 323.15 K. V2 = 1.50 × 323.15 / 293.15 = 1.65 L.

  3. How many moles of gas are in 2.00 L at 1.50 atm and 300 K?
    Show answer

    n = PV / RT = (1.50 × 2.00) / (0.08206 × 300) = 0.122 mol.

Common questions

What is STP?

Standard temperature and pressure is commonly 0 °C (273.15 K) and 1 atm, where one mole of ideal gas has a volume of about 22.4 L. Some sources use 1 bar instead, giving about 22.7 L, so check which your course uses.

Why must temperature be in kelvin?

The kelvin scale starts at absolute zero, so the volume and pressure of a gas are directly proportional to it. Celsius has an arbitrary zero.

What is an ideal gas?

A model where particles have no volume and no attractions between them. Real gases act close to ideal at low pressure and high temperature.

Practise with the free tools

All tools are free, run in your browser and need no account.

Keep going

The mole concept · Stoichiometry and limiting reagent · All guides

Written by a working chemistry teacher. Values are for the common textbook conditions stated in each example. Check your own syllabus or exam board for the exact conventions it expects.