Thermodynamics

Boyle’s Law: Pressure, Volume and the P₁V₁ = P₂V₂ Rule

Definition

Boyle’s Law states that for a fixed mass of gas at constant temperature, absolute pressure is inversely proportional to volume: pressure times volume stays constant, so P₁V₁ = P₂V₂. Halve the volume and the pressure doubles. It is exact for an ideal gas and accurate for real gases at ordinary pressures.

Take a breath. Right now, a sheet of muscle under your lungs has pulled downward, your chest cavity has grown by roughly half a litre, and the pressure inside it has dropped about one per cent below the pressure of the room. Air rushed in to close the gap.

You did not pull the air in. You made space, and the atmosphere did the rest. That trade — more room, less pressure — is Boyle’s Law, and you have been running it about twenty thousand times a day since the moment you were born.

What Is Boyle’s Law?

Boyle’s Law says that if you seal a fixed amount of gas in a container and keep its temperature steady, squeezing the gas into a smaller space raises its pressure by exactly the same factor that the volume shrinks. Squeeze it to one-third the volume, and the pressure triples.

Stated formally: at constant temperature, the absolute pressure of a fixed mass of gas is inversely proportional to its volume. “Inversely proportional” is the whole idea in two words. As one goes up, the other goes down, and their product refuses to move.

Three conditions are doing quiet work in that sentence, and every one of them matters:

  • Fixed amount of gas — nothing leaks in or out. The number of molecules is locked.
  • Constant temperature — the process is isothermal. The gas has time to shed or absorb heat and settle back to its surroundings’ temperature.
  • Absolute pressure — measured from a perfect vacuum, not from atmospheric pressure. This is where most mistakes begin.

Who Was Robert Boyle?

In 1662 the Anglo-Irish natural philosopher Robert Boyle published the result that carries his name. He poured mercury into a sealed J-shaped glass tube, trapping air in the short arm, and recorded how the trapped column shortened as he added more mercury.

Boyle was building on a suggestion from Richard Towneley and Henry Power, and the apparatus was largely the work of his assistant Robert Hooke — the same Hooke of spring fame. The French physicist Edme Mariotte reported the relationship independently in the 1670s, which is why continental textbooks often call it the Boyle–Mariotte law. NASA’s Glenn Research Center still teaches it to aeronautics students in exactly the form Boyle left it.

Portrait of Robert Boyle, who published Boyle's Law in 1662
Robert Boyle published the pressure–volume relationship in 1662, using a J-shaped mercury tube.

The Boyle’s Law Formula

The law is usually written as a statement about a constant:

PV = constant (fixed amount of gas, constant temperature)

Because the product cannot change, the initial state and the final state must give the same answer. That gives the form you will actually use:

P₁V₁ = P₂V₂

Rearranged for whichever quantity is missing:

P₂ = P₁V₁ / V₂ V₂ = P₁V₁ / P₂

Every symbol, with its SI unit:

  • P₁ — initial absolute pressure of the gas. SI unit: pascal (Pa). 1 Pa = 1 N/m².
  • V₁ — initial volume of the gas. SI unit: cubic metre (m³).
  • P₂ — final absolute pressure. SI unit: pascal (Pa).
  • V₂ — final volume. SI unit: cubic metre (m³).

Here is the practical mercy of this equation: the units cancel. Because pressure appears on both sides and volume appears on both sides, you may work in kilopascals and litres, or atmospheres and millilitres, provided you are consistent within each pair.

What you may not do is mix. Litres on the left and cubic metres on the right will hand you an answer that is wrong by a factor of a thousand — and it will look perfectly reasonable.

Prefer to skip the algebra? Drop your three known values into our Boyle’s Law Calculator and it returns the missing pressure or volume, in whatever units you choose.

compress slowly T constant, n constant State 1: pressure P₁, volume V₁ State 2: pressure 2P₁, volume ½V₁ 12 molecules, roomy same 12 molecules, half the room P₁V₁ = P₂V₂

Halving the volume of a sealed gas at constant temperature doubles its absolute pressure. The molecules never speed up — they simply hit the walls twice as often.

How Boyle’s Law Works: Inside the Gas

Pressure is not a substance sitting inside a container. It is a drumroll. Billions of molecules are hammering the walls every second, and pressure is nothing more than the average force of that hammering, divided by the wall area.

So ask the obvious question: what happens to the drumroll when the room shrinks?

Two things, and they reinforce each other. First, each molecule has less distance to cross before it slams into a wall, so it returns more often. Second, the same crowd is now packed into less space, so more of them are near any given patch of wall at any moment.

Halve the volume and you double the collision rate on every square metre. Double the collision rate and you double the pressure. Nothing about the individual molecule has changed — it is still travelling at the same speed, delivering the same punch. It is just punching more often.

Why Temperature Must Stay Constant

That last point is the hinge of the whole law. The speed of the molecules is set by temperature: absolute temperature is a direct measure of the average kinetic energy of the molecules.

Hold the temperature fixed and you hold the molecular speeds fixed. Only the geometry changes, and the pressure obeys a clean inverse rule. Let the temperature climb, and the molecules start hitting harder as well as more often — a second effect, on top of Boyle’s, which the equation P₁V₁ = P₂V₂ knows nothing about. If the distinction between heat and temperature feels slippery, this is the sentence to anchor it to.

The Shape of the Graph

Plot pressure against volume for a gas at fixed temperature and you get a curve that falls steeply, then flattens, never quite touching either axis. That curve is a rectangular hyperbola, and physicists call it an isotherm.

Plot pressure against 1/V instead, and the same data snaps into a straight line through the origin, with gradient equal to the constant PV. That is the plot examiners want when they ask you to “verify Boyle’s law graphically” — a hyperbola is hard to judge by eye, a straight line is not.

P against V — a hyperbola P against 1/V — a straight line A B Volume V Pressure P B has twice the volume of A, so half the pressure A 1 / Volume Pressure P gradient of this line = the constant PV

The same Boyle’s Law data, plotted two ways. The hyperbola is the physics; the straight line is the proof.

See Boyle’s Law in Action

Drag the piston and watch the pressure gauge climb while the product PV sits stubbornly still. Push the volume down to a tenth and the needle goes tenfold — the hyperbola on the graph traces itself as you go.

Boyle's Law Lab

Boyle’s Law vs the Other Gas Laws

Boyle’s Law is one of four experimental laws that were eventually stitched into a single equation. Each one freezes two variables and watches the other two dance. Learn which variable is being held and you will never confuse them again.

Law Held constant Relationship Equation Graph shape
Boyle’s Temperature, amount P ∝ 1/V P₁V₁ = P₂V₂ Hyperbola on a P–V plot
Charles’s Pressure, amount V ∝ T V₁/T₁ = V₂/T₂ Straight line aimed at 0 K
Gay-Lussac’s Volume, amount P ∝ T P₁/T₁ = P₂/T₂ Straight line aimed at 0 K
Avogadro’s Pressure, temperature V ∝ n V₁/n₁ = V₂/n₂ Straight line through origin
Combined gas law Amount only PV/T fixed P₁V₁/T₁ = P₂V₂/T₂ Family of isotherms
Ideal gas law Nothing All four linked PV = nRT A surface in P–V–T space

Every temperature in that table is an absolute temperature, in kelvin. Celsius will destroy Charles’s law and Gay-Lussac’s law instantly. Boyle’s law is the one law in the family where temperature never appears — which is precisely why it is the one students reach for by reflex, sometimes when they shouldn’t.

Real-World Examples of Boyle’s Law

1. Breathing

Your diaphragm contracts and flattens; the chest cavity expands. By Boyle’s Law the pressure inside your lungs drops roughly 1–2 kPa below atmospheric, and air floods in. Exhaling reverses it. You are a soft-walled piston, running at about twelve strokes a minute.

2. Scuba Diving and the Growing Bubble

Sea water adds about one atmosphere of pressure for every 10 metres of depth. At 10 m a diver breathes air at roughly twice atmospheric pressure; at 30 m, four times.

Release a bubble at 30 m and it swells to about four times its volume by the time it reaches the surface. So does the air in a diver’s lungs. This is why the first rule of scuba is never to hold your breath while ascending — a full breath taken at 30 m would expand to four lungfuls at the surface, and lungs do not stretch.

3. The Bicycle Pump and the Syringe

Block the outlet of a bicycle pump and push. The barrel volume falls, the pressure climbs, and the handle fights back harder with every centimetre. A syringe with its nozzle capped does the same thing with your thumb.

4. Weather Balloons

A meteorological balloon launched limp and floppy at ground level swells as it climbs, because the outside pressure falls away. By around 30 km it may be many times its launch volume — and eventually it bursts, which is exactly what the design expects.

5. Aerosols, Vacuum Packing and the Marshmallow Trick

Put a marshmallow under a bell jar and pump the air out. The tiny bubbles trapped in the sugar foam find themselves at a fraction of their original external pressure, so they expand, and the marshmallow inflates like a balloon. Let the air back in and it collapses into a sad, dense lump.

Common Misconceptions About Boyle’s Law

Trap 1: Using the Pressure Your Gauge Shows

This is the single most expensive error in gas-law questions. A tyre gauge, a pressure sensor on a lab bench, most everyday instruments — they read gauge pressure, the excess above atmospheric. Boyle’s Law demands absolute pressure.

Reading Measured from Safe to put into P₁V₁ = P₂V₂?
Gauge pressure Local atmospheric pressure No — convert it first
Absolute pressure A perfect vacuum Yes
Conversion Pabs = Pgauge + Patm Patm ≈ 101 kPa at sea level

In practice: a flat tyre reads zero on a gauge, but it is emphatically not a vacuum. It still holds air at 101 kPa absolute.

Trap 2: Assuming Any Squeeze Is a Boyle’s Law Squeeze

Pump a bicycle tyre vigorously and grip the barrel. It is hot. That heat is real work being converted into internal energy, and it means the temperature did not stay constant — so Boyle’s Law does not describe what just happened.

A fast compression is approximately adiabatic, following PVγ = constant, where γ ≈ 1.4 for air. The pressure rises faster than Boyle predicts. Boyle’s Law needs a slow squeeze, or a container that leaks heat away quickly enough for the gas to keep pace with its surroundings. How fast that happens depends on the material’s specific heat capacity.

Trap 3: Expecting a Straight Line on a P–V Graph

“Inversely proportional” is not “decreasing”. A student who sketches a downward-sloping straight line has drawn P = a − bV, which is a different physical claim entirely. The Boyle isotherm curves, hugging both axes without ever meeting them. Only the P against 1/V plot is straight.

Trap 4: Believing It Works Everywhere

Boyle’s Law is exact for an ideal gas — one whose molecules have no volume and no attraction for one another. Real molecules have both.

Squeeze hard enough and the molecules’ own volume stops being negligible, so the gas resists more than Boyle predicts. Cool it enough and intermolecular attraction pulls molecules inward, so the pressure comes in lower than predicted. Near the point where a gas is about to liquefy, PV stops being constant altogether. The van der Waals equation exists to patch exactly these two effects.

How Boyle’s Law Relates to the Ideal Gas Law and Thermodynamics

Boyle’s Law is not a separate truth. It is a special case, and it falls out of the ideal gas law in one line. Start with:

PV = nRT

where n is the amount of gas in moles, R is the universal gas constant (8.314 J mol⁻¹ K⁻¹) and T is the absolute temperature in kelvin. Hold n and T fixed. The entire right-hand side is now a number that cannot change — so PV must be constant, and P₁V₁ = P₂V₂. Georgia State’s HyperPhysics sets out the same one-line reduction, alongside the Charles’s law case.

Freeze pressure instead and you recover Charles’s law. Freeze volume and you get Gay-Lussac’s. Three famous laws, one parent equation.

Boyle’s Law and the First Law of Thermodynamics

Compress a gas isothermally and you do work on it. Where does that energy go? Not into internal energy — internal energy depends only on temperature for an ideal gas, and temperature has not moved.

It leaves as heat. Every joule you put in through the piston flows straight out through the walls into the surroundings. That bookkeeping is the first law of thermodynamics in its cleanest possible costume, and the work done comes out as W = nRT ln(V₁/V₂). Problem 7 below puts numbers on it.

Worked Problems

Problem 1
A sealed syringe holds 2.00 L of air at an absolute pressure of 100 kPa. The plunger is pushed in slowly until the volume is 0.500 L. The temperature does not change. What is the new absolute pressure?
Show Solution
Solution: Step 1: Temperature and amount of gas are constant, so Boyle’s Law applies: P₁V₁ = P₂V₂ Step 2: Rearrange for the unknown: P₂ = P₁V₁ / V₂ Step 3: Substitute with units: P₂ = (100 kPa × 2.00 L) / 0.500 L = 200 kPa·L / 0.500 L Step 4: Solve: P₂ = 400 kPa Sanity check: the volume fell to one quarter, so the pressure rose four-fold. It did. Answer: P₂ = 400 kPa (absolute)
Problem 2
A gas occupies 3.60 L at an absolute pressure of 1.50 atm. At constant temperature, to what volume must it be compressed to raise the pressure to 4.00 atm?
Show Solution
Solution: Step 1: Apply Boyle’s Law: P₁V₁ = P₂V₂ Step 2: Rearrange for volume: V₂ = P₁V₁ / P₂ Step 3: Substitute with units: V₂ = (1.50 atm × 3.60 L) / 4.00 atm = 5.40 atm·L / 4.00 atm Step 4: Solve: V₂ = 1.35 L The atmospheres cancel, leaving litres. Mixed but consistent units are fine. Answer: V₂ = 1.35 L
Problem 3
The volume of a sealed sample of gas is reduced by 20 per cent at constant temperature. By what percentage does its absolute pressure increase?
Show Solution
Solution: Step 1: A 20 per cent reduction means V₂ = 0.800 V₁ Step 2: From Boyle’s Law: P₂ = P₁V₁ / V₂ = P₁V₁ / (0.800 V₁) Step 3: The V₁ terms cancel: P₂ = P₁ / 0.800 = 1.25 P₁ Step 4: The pressure is 1.25 times its original value, an increase of 0.25 P₁ A common student slip is to answer “20 per cent”. Inverse proportionality is not symmetric — a 20 per cent cut in volume gives a 25 per cent rise in pressure. Answer: the absolute pressure increases by 25 per cent
Problem 4
A bicycle pump barrel contains 500 cm³ of air at atmospheric pressure, with the outlet blocked. The gauge reads 0 kPa. The plunger is pushed in slowly until the trapped air occupies 125 cm³. Take atmospheric pressure as 101 kPa. What will the gauge now read?
Show Solution
Solution: Step 1: Convert to absolute pressure before touching Boyle’s Law: P₁ = P_gauge + P_atm = 0 + 101 = 101 kPa Step 2: Apply P₁V₁ = P₂V₂, so P₂ = P₁V₁ / V₂ Step 3: Substitute with units: P₂ = (101 kPa × 500 cm³) / 125 cm³ = 50 500 kPa·cm³ / 125 cm³ Step 4: Solve for absolute pressure: P₂ = 404 kPa Step 5: Convert back to gauge pressure: P_gauge = 404 − 101 = 303 kPa Skipping Step 1 gives 0 × 500 / 125 = 0 kPa — an “answer” that says compressing air does nothing. Answer: the gauge reads 303 kPa (404 kPa absolute)
Problem 5
A bubble of volume 25.0 mL is released at a depth of 30.0 m in sea water of density 1025 kg/m³. Take g = 9.81 m/s² and atmospheric pressure as 101 kPa. Assuming the water temperature is uniform, what is the bubble's volume just before it reaches the surface?
Show Solution
Solution: Step 1: Absolute pressure at depth is atmospheric plus the water column: P₁ = P_atm + ρgh Step 2: Substitute with units: ρgh = 1025 kg/m³ × 9.81 m/s² × 30.0 m = 301 658 Pa = 301.7 kPa So P₁ = 101 + 301.7 = 402.7 kPa Step 3: At the surface, P₂ = 101 kPa Step 4: Apply Boyle’s Law: V₂ = P₁V₁ / P₂ = (402.7 kPa × 25.0 mL) / 101 kPa Step 5: Solve: V₂ = 99.7 mL Sanity check: 30 m of sea water is roughly three extra atmospheres, so the total is about four. The bubble should grow about four-fold, and 99.7 / 25.0 = 3.99. Answer: V₂ ≈ 99.7 mL, about four times its original volume
Problem 6
A rigid 2.00 L cylinder holds gas at an absolute pressure of 500 kPa. It is connected by a valve to a rigid, fully evacuated 3.00 L cylinder. The valve is opened and the gas is allowed to settle back to its original temperature. What is the final pressure?
Show Solution
Solution: Step 1: The amount of gas is unchanged and the final temperature equals the initial temperature, so Boyle’s Law applies between the initial and final equilibrium states. Step 2: The gas now fills both cylinders: V₂ = 2.00 L + 3.00 L = 5.00 L Step 3: Apply P₁V₁ = P₂V₂, so P₂ = P₁V₁ / V₂ Step 4: Substitute with units: P₂ = (500 kPa × 2.00 L) / 5.00 L = 1000 kPa·L / 5.00 L Step 5: Solve: P₂ = 200 kPa Note the evacuated cylinder contributes volume but no gas, so its initial pressure of 0 kPa never enters the arithmetic. Answer: P₂ = 200 kPa (absolute)
Problem 7
One mole of an ideal gas at 300 K is compressed isothermally and reversibly from 20.0 L to 10.0 L. Take R = 8.314 J/(mol·K). Find the initial and final pressures, verify Boyle's Law, and calculate the work done on the gas.
Show Solution
Solution: Step 1: Find the initial pressure from PV = nRT, so P₁ = nRT / V₁ nRT = 1.00 mol × 8.314 J/(mol·K) × 300 K = 2494.2 J V₁ = 20.0 L = 0.0200 m³ P₁ = 2494.2 J / 0.0200 m³ = 124 710 Pa = 125 kPa (3 s.f.) Step 2: Find the final pressure the same way, with V₂ = 0.0100 m³ P₂ = 2494.2 J / 0.0100 m³ = 249 420 Pa = 249 kPa (3 s.f.) Step 3: Verify Boyle’s Law: P₁V₁ = 124 710 × 0.0200 = 2494.2 J and P₂V₂ = 249 420 × 0.0100 = 2494.2 J. The products match, and the pressure has doubled as the volume halved. Step 4: The work done on the gas during a reversible isothermal compression is W = nRT ln(V₁ / V₂) Step 5: Substitute with units: W = 2494.2 J × ln(20.0 / 10.0) = 2494.2 J × ln 2 = 2494.2 × 0.6931 Step 6: Solve: W = 1729 J Because the temperature never changed, the internal energy did not change either — all 1729 J left the gas as heat. Answer: P₁ = 125 kPa, P₂ = 249 kPa, and the work done on the gas is W ≈ 1.73 kJ, all of it released as heat

Frequently Asked Questions

What is Boyle's law in simple terms?
Boyle’s law says that squeezing a fixed amount of gas into a smaller space raises its pressure by the same factor, as long as the temperature stays the same. Halve the volume and the absolute pressure doubles. The product of pressure and volume never changes, which is written as P₁V₁ = P₂V₂.
What is the formula for Boyle's law?
The formula for Boyle’s law is P₁V₁ = P₂V₂, where P₁ and V₁ are the initial absolute pressure and volume, and P₂ and V₂ are the final absolute pressure and volume. Rearranged, P₂ = P₁V₁/V₂ and V₂ = P₁V₁/P₂. Units cancel, so any consistent pressure and volume units work.
Does Boyle's law use gauge pressure or absolute pressure?
Boyle’s law requires absolute pressure, measured from a perfect vacuum. Most instruments report gauge pressure, which is the excess above atmospheric pressure. Convert first using P_absolute = P_gauge + P_atmospheric, taking atmospheric pressure as roughly 101 kPa at sea level. Using gauge pressure directly is the most common source of wrong answers.
Why does Boyle's law require constant temperature?
Temperature sets the average speed of the gas molecules. If the temperature is constant, the molecules hit the walls with the same force as before, and only the collision rate changes when the volume changes. Raise the temperature and the molecules hit harder as well as more often, which breaks the simple inverse relationship.
Is Boyle's law the same as the ideal gas law?
No — Boyle’s law is a special case of the ideal gas law. Starting from PV = nRT, hold the amount of gas n and the absolute temperature T constant. The right-hand side becomes a fixed number, so PV must also be fixed, giving P₁V₁ = P₂V₂. The ideal gas law is more general.
What are real-life examples of Boyle's law?
Breathing is the everyday example: your diaphragm enlarges the chest cavity, the pressure inside drops, and air flows in. Others include a bubble expanding as it rises from a diver, a weather balloon swelling as it climbs, a syringe or bicycle pump building pressure, and a marshmallow inflating inside a vacuum jar.
When does Boyle's law break down?
Boyle’s law breaks down at very high pressures and very low temperatures, where a real gas stops behaving ideally. At high pressure the molecules’ own volume becomes significant, so the gas resists compression more than predicted. Near liquefaction, intermolecular attraction lowers the pressure below prediction. The van der Waals equation corrects for both effects.
P

Written by PhysicsFundamentals Editorial Team

Articles on PhysicsFundamentalsinfo.com are researched, written, and fact-checked by our editorial team. Every piece is reviewed for accuracy before publishing, with formulas and worked examples checked against standard physics references.

View All Authors →