Boyle's Law Explained: Squeeze a Gas to Half Its Volume and the Pressure Doubles

Squeeze the end of a bicycle pump with your thumb over the nozzle and you can feel the air push back harder the more you press. That push-back follows a very simple rule discovered by Robert Boyle in the 17th century.
The animation below traps a fixed mass of air in a cylinder and squeezes it slowly with a piston. You can change the smallest volume and the gas temperature, and watch the pressure, the volume, the product p × V, and the number of wall hits.
The short answer
If you compress a gas slowly enough that its temperature does not change, its pressure goes up in proportion as its volume goes down:
p × V = constant
Halve the volume and the pressure doubles. At the particle level, the gas particles keep the same average speed, but in a smaller space they reach the walls more often, so each square centimetre of wall is hit more times per second.
In the animation, 100 cm³ of air starts at 100 kPa and 300 K. Squeezed to 40 cm³ it reaches 250 kPa, and the product p × V stays at 10,000 kPa·cm³ the whole time.
What the animation shows, stage by stage
A fixed mass of gas. 100 cm³ of air at 100 kPa, with particles flying about and hitting the walls.
Squeezing slowly. The piston moves in slowly, so the gas stays at the same temperature and the particles keep their speed.
More hits. In less room each particle reaches the walls more often, so the pressure rises.
p × V stays the same. The gauge shows the product staying at the same value as at the start.
The answer. At constant temperature, pressure is inversely proportional to volume.
The physics: pressure as particle hits
Pressure is force per unit area, and for a gas it is the result of countless particle collisions with the walls. If the average particle speed stays the same (the same temperature), then the pressure depends on how often particles hit the wall. A particle in half the volume meets the wall about twice as often, so the pressure is about twice as high.
The straight line in the animation's second chart makes the rule easy to see: plotted against 1/V, pressure gives a straight line through the origin, and its slope is the constant pV.
What the numbers say
Squeezing the 100 cm³ of air at 300 K to different smallest volumes:
Smallest volume | Pressure at the end | p × V |
80 cm³ | 125 kPa | 10,000 |
40 cm³ | 250 kPa | 10,000 |
30 cm³ | 333 kPa | 10,000 |
The temperature slider changes the constant, because the model starts at a pressure proportional to the temperature:
Gas temperature | Starting pressure | p × V |
250 K | 83 kPa | 8,333 |
300 K | 100 kPa | 10,000 |
400 K | 133 kPa | 13,333 |
Boyle's law holds only for a fixed amount of gas at a fixed temperature. A hotter gas has a larger p × V, which is the ideal-gas law, pV = nRT.
Honest limits of the model
The squeeze has to be slow, so the heat made by compression can leave and the temperature stays constant. If you compress the same gas quickly, it heats up and the pressure rises more than Boyle's law predicts. Real gases also deviate at high pressures. The animation uses ideal numbers and a simple particle picture, and the wall-hit rate is simply proportional to the pressure.
Frequently asked questions
What does Boyle's law say? For a fixed mass of gas at constant temperature, pressure times volume is constant, so pressure is inversely proportional to volume.
Why does pressure rise when you squeeze a gas? The particles keep the same speed but have less room, so they hit the walls more often.
Does the gas get hotter when squeezed? If you squeeze quickly, yes. Boyle's law applies to slow compression at constant temperature, which lets the heat escape.
What is the difference between Boyle's law and the ideal gas law? Boyle's law is the special case of pV = nRT with fixed temperature and amount of gas.
Why does the graph of p against 1/V make a straight line? Because p = constant × (1/V), which is the equation of a straight line through the origin.
Which units does the animation use? Pressure in kilopascals and volume in cubic centimetres, so p × V is in kPa·cm³.
Related
Figures in this article come from the animation's model: 100 cm³ of air at 100 kPa and 300 K, squeezed slowly (isothermal) to 30 to 80 cm³, and the temperature slider from 250 to 400 K. They are ideal-gas numbers for a fixed amount of gas.




Comments