📘 CodingMarble Learn

Gas Laws: How Pressure, Volume and Temperature Are Linked

Gas pressure comes from particles hitting the walls. For a fixed amount of gas: Boyle's law P₁V₁ = P₂V₂ (constant T); Charles's law V₁/T₁ = V₂/T₂ (constant P); pressure (Gay-Lussac's) law P₁/T₁ = P₂/T₂ (constant V). Temperature must be in kelvin. Combined: P₁V₁/T₁ = P₂V₂/T₂. Dalton's law: in a mixture, total pressure = sum of partial pressures, and each partial pressure = mole fraction × total pressure.

🎬 Step-by-step story

  1. Gas particles rush around in a box. Each hit on the lid is a tiny push. All the pushes together make pressure.
  2. Boyle: keep temperature the same and squeeze the gas to half the volume. Hits double, so pressure doubles.
  3. Charles: keep pressure the same and heat the gas. Faster particles push the lid up, so volume grows with temperature.
  4. Pressure law: lock the lid and heat the gas. The volume cannot change, so pressure rises with temperature.
  5. Dalton: add a second gas. Each gas pushes on its own. Total pressure is the sum of the two parts.
  6. Free play: change particles, temperature and volume, and predict the pressure before you look.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why does a gas push on the walls at all?

Its particles never stop moving. Every bounce off a wall changes their direction, and that needs a push from the wall; the particle pushes back equally. Billions of such pushes make pressure.

Why does pressure double, not just rise, when volume halves?

With half the room, each particle travels half the distance between hits on the lid, so it hits twice as often. Same speed, twice the hits, twice the pressure.

Why must we use kelvin, not °C?

Particle speed depends on absolute temperature. 0 °C still has moving particles; 0 K is the true zero. Ratios like T₂/T₁ only make sense from the true zero.

What is the difference between Charles's law and the pressure law?

Both heat the gas. In Charles's law the lid is free, so volume grows and pressure stays. In the pressure law the lid is locked, so pressure grows instead.

Does a heavier gas make more partial pressure?

No. At the same temperature, partial pressure depends on the number of particles (moles), not on their mass. Heavier particles move slower but hit harder, and the two effects cancel.

What happens if I add particles and squeeze at the same time?

Both raise the hit rate, so pressure goes up on both counts. Try it in free play: double the particles and halve the volume to get four times the pressure.

Where does gas pressure come from?

A gas is made of tiny particles that move fast and in random directions. They hit each other and the walls of their container.

Each hit gives the wall a tiny push (a force). Pressure is the total force on each square metre of wall: P = F ÷ A. Its SI unit is the pascal (Pa); 1 kPa = 1000 Pa. Air around us is about 101 kPa.

Pressure goes up when particles hit more often or harder. Every gas law is just a way of changing one of these two things.

Boyle's law: pressure and volume

Keep the amount of gas and the temperature fixed. Squeeze the gas into half the space. The particles now have less room, so they hit the walls twice as often. Pressure doubles.

P × V = constant, or P₁V₁ = P₂V₂.

P and V are inversely proportional: one goes up as the other goes down. A graph of P against V is a curve; P against 1/V is a straight line through the origin.

Doing work on a gas

When you push a piston in, you do work on the gas. The particles bounce off a moving wall and speed up a little, so the gas warms. That is why a bicycle pump gets warm.

Charles's law and the pressure law

Heating a gas makes its particles move faster.

Charles's law (pressure fixed)

If the lid can move, faster particles push it up until the pressure is back to normal. Volume grows: V ÷ T = constant, or V₁/T₁ = V₂/T₂.

Pressure law, also called Gay-Lussac's law (volume fixed)

If the container is rigid, the particles hit harder and more often. Pressure grows: P ÷ T = constant, or P₁/T₁ = P₂/T₂.

Why kelvin?

These laws only work with the absolute (kelvin) temperature. T(K) = T(°C) + 273. At 0 K (−273 °C), called absolute zero, the particles would have the least possible motion. Using °C gives wrong answers because 0 °C is not "no motion".

Combined gas law

Put the three together: P₁V₁/T₁ = P₂V₂/T₂. With the amount of gas n as well, this becomes the ideal gas equation PV = nRT.

Dalton's law of partial pressures

In a mixture of gases that do not react, each gas behaves as if it were alone in the container.

The partial pressure of a gas is the pressure it would make on its own. Dalton's law: P(total) = P₁ + P₂ + P₃ + …

The mole fraction x of a gas is its moles divided by the total moles. Then P(gas) = x(gas) × P(total). Example: air is about 21% oxygen, so at 101 kPa oxygen's partial pressure is about 0.21 × 101 ≈ 21 kPa.

Gas collected over water contains water vapour too: P(dry gas) = P(total) − P(water vapour).

Try it: the 3D and at home

In the 3D: on the last step set volume to 10 L, note the pressure, then set 5 L. Predict first: what should the pressure be? Then change the temperature from 300 K to 600 K at a fixed volume.

At home: blow up a balloon a little and tie it. Put it in the fridge for 20 minutes, then in a bowl of warm water. Watch it shrink and swell (Charles's law). Hold your finger over the end of a syringe and push: feel the pressure rise (Boyle's law).

Limits and exam focus

The gas laws are exact only for an ideal gas. Real gases follow them well at low pressure and high temperature. At very high pressure or very low temperature, particles take up space and attract each other, so real gases differ.

Exam questions usually ask you to: state a law with its condition, sketch its graph, explain it with particles, and solve a two-state numerical (remember kelvin and same units on both sides).

Key formulas and definitions

Worked examples

1. A gas has volume 6 L at 100 kPa. It is squeezed to 2 L at the same temperature. Find the new pressure.

Boyle: P₁V₁ = P₂V₂ → 100 × 6 = P₂ × 2 → P₂ = 600 ÷ 2 = 300 kPa.

2. A balloon holds 3.0 L at 27 °C. What is its volume at 127 °C, pressure unchanged?

Change to kelvin: T₁ = 300 K, T₂ = 400 K. Charles: V₂ = V₁ × T₂/T₁ = 3.0 × 400/300 = 4.0 L.

3. A sealed can is at 200 kPa and 27 °C. It is heated to 327 °C. Find the pressure.

T₁ = 300 K, T₂ = 600 K. Pressure law: P₂ = 200 × 600/300 = 400 kPa. (This is why aerosol cans must not be heated.)

4. A gas occupies 500 mL at 100 kPa and 300 K. Find its volume at 150 kPa and 360 K.

Combined law: V₂ = V₁ × (P₁/P₂) × (T₂/T₁) = 500 × (100/150) × (360/300) = 500 × 0.667 × 1.2 = 400 mL.

5. A container holds 2 mol N₂ and 3 mol O₂ at total pressure 250 kPa. Find each partial pressure.

Total moles = 5. x(N₂) = 2/5 = 0.4, x(O₂) = 0.6. P(N₂) = 0.4 × 250 = 100 kPa; P(O₂) = 0.6 × 250 = 150 kPa. Check: 100 + 150 = 250 kPa.

6. Hydrogen is collected over water at 25 °C. Total pressure is 100.0 kPa and water vapour pressure at 25 °C is 3.2 kPa. Find the pressure of dry hydrogen.

Dalton: P(H₂) = P(total) − P(water) = 100.0 − 3.2 = 96.8 kPa.

Common mistakes

Practice quiz

1. In Boyle's law, which quantity is kept constant?
2. If the volume of a gas is halved at constant temperature, the pressure:
3. 27 °C in kelvin is:
4. Gas pressure is caused by:
5. A mixture has total pressure 120 kPa; gas X has mole fraction 0.25. Partial pressure of X is:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the main gas laws?

Boyle's law (P × V constant at fixed T), Charles's law (V/T constant at fixed P), the pressure or Gay-Lussac's law (P/T constant at fixed V), Avogadro's law (V ∝ moles) and Dalton's law of partial pressures.

What is the combined gas law?

P₁V₁/T₁ = P₂V₂/T₂, for a fixed amount of gas. It joins Boyle's, Charles's and the pressure law into one equation.

What is partial pressure?

The pressure one gas in a mixture would make if it were alone in the same container at the same temperature. It equals its mole fraction times the total pressure.

Where this is taught

England (GCSE, A level)Year 106.3 Particle model of matter
England (GCSE, A level)Year 104.3 Particle model of matter
USA (Common Core, NGSS, AP)Grade 11Properties of Substances and Mixtures
Japan高校(専門学科)1〜3年Industrial Chemistry
Japan高校2年States of matter and equilibrium
South Korea중학교 3학년Chemical reactions: laws and energy
South Korea고등학교 2학년Three states of matter
South Korea고등학교 3학년States of matter and solutions

Learn first

Learn next

Related lessons

All Chemistry lessons