Boyle’s Law is used to explain and predict how gases behave whenever pressure or volume changes, from the mechanics of breathing to scuba diving safety to engine design. The law states that for a fixed amount of gas at a constant temperature, pressure and volume are inversely proportional. When one goes up, the other goes down. That simple relationship turns out to be surprisingly useful across medicine, engineering, aviation, and everyday life.
The mathematical form is straightforward: P × V = K, where P is pressure, V is volume, and K is a constant. If you know the starting pressure and volume of a gas, you can calculate what happens when either one changes. Robert Boyle first described this inverse relationship in 1662, building on air pump experiments he conducted with Robert Hooke. More than 350 years later, the principle still underpins technologies and safety protocols people rely on daily.
How Your Lungs Use Boyle’s Law
Every breath you take is Boyle’s Law in action. When you inhale, your diaphragm and the muscles between your ribs contract, expanding the chest cavity. That expansion increases the volume inside your lungs, which drops the pressure below atmospheric pressure. Air rushes in from the higher-pressure environment outside your body to fill the gap.
The pressure changes are small but measurable. At rest, the pressure inside your lung’s air sacs equals atmospheric pressure. During a normal breath in, that pressure dips to about -1 cm H₂O as the volume expands, enough to pull air through your nose or mouth and down into the lungs. The pressure in the space surrounding the lungs drops even further, to roughly -8 cm H₂O.
Exhaling reverses the process. Your breathing muscles relax, the chest cavity shrinks, volume decreases, and pressure rises above atmospheric. That pressure increase pushes air back out. You don’t have to think about any of this because it’s automatic, but the underlying physics is pure Boyle’s Law: bigger volume means lower pressure, smaller volume means higher pressure.
Scuba Diving and Decompression Safety
One of the most critical real-world applications of Boyle’s Law is in scuba diving, where ignoring it can be fatal. Underwater, pressure increases roughly 1 atmosphere for every 10 meters of depth. A diver at 30 meters is under 4 atmospheres of pressure, which compresses the gas in their lungs and equipment to a fraction of its surface volume.
The danger comes during ascent. If a diver at 30 meters has 1 liter of air in their lungs at 4 atmospheres of pressure and ascends to the surface while holding their breath, that air expands to 4 liters as the surrounding pressure drops to 1 atmosphere. Lungs cannot stretch to four times their normal volume. The result is severe lung overexpansion, which can be fatal. This is why the most fundamental rule in scuba diving is to never hold your breath during ascent. Breathing out continuously allows expanding gas to escape safely.
Boyle’s Law also explains why divers experience sinus and ear pain during depth changes. Sinuses and the middle ear are fixed-volume, gas-filled spaces. As external pressure increases on descent, the gas inside compresses, creating painful pressure imbalances that divers must equalize.
Engines, Syringes, and Aerosol Cans
Internal combustion engines depend on Boyle’s Law during the compression stroke. As a piston moves upward inside a cylinder, it reduces the volume of the air-fuel mixture. That compression raises the pressure dramatically, creating the conditions needed for ignition. Without this pressure increase from volume reduction, the engine couldn’t generate power.
Syringes work on the same principle in miniature. When you pull back the plunger, you increase the volume inside the barrel. The pressure inside drops below the pressure of the surrounding fluid, and that pressure difference draws liquid or air into the syringe. Push the plunger forward, volume decreases, pressure rises, and fluid is pushed out.
Aerosol spray cans store propellant gas under high pressure in a small, sealed volume. When you press the valve, the gas suddenly has access to a much larger space (the outside atmosphere). The gas expands rapidly, carrying the product out with it. Whether it’s a can of spray paint or cooking spray, the delivery mechanism is Boyle’s Law at work.
Aviation and Cabin Pressurization
Commercial aircraft cruise at altitudes between 9,000 and 12,000 meters, where atmospheric pressure is so low that exposure without protection would be fatal. Above roughly 7,600 meters, supplemental oxygen is required for survival. Above about 10,400 meters, even 100% oxygen in a mask isn’t sufficient, and pressurized cabins or pressure suits become necessary.
Aircraft cabins are pressurized to simulate conditions at a much lower altitude, typically around 1,800 to 2,400 meters. Boyle’s Law explains what happens when that pressurization fails: gas in your body’s air-filled spaces expands as the surrounding pressure plummets. This is why oxygen masks deploy automatically during a depressurization event and why even minor altitude changes can cause ear discomfort during takeoff and landing.
Hyperbaric Medicine
Hyperbaric oxygen therapy places patients inside a sealed chamber where air pressure is raised well above normal atmospheric levels. Boyle’s Law is central to how this treatment works. The increased pressure shrinks gas bubbles that may have formed in the blood, a condition that can occur in divers who surface too quickly (decompression sickness). As the pressure inside the chamber rises, the volume of those gas bubbles decreases, and the gas is driven back into solution in the blood.
Beyond treating decompression sickness, hyperbaric chambers are used for carbon monoxide poisoning, non-healing wounds, and certain infections. The elevated pressure also forces more oxygen to dissolve in blood plasma, improving oxygen delivery to damaged tissues even when red blood cells can’t reach them efficiently.
When the Law Breaks Down
Boyle’s Law assumes you’re dealing with an “ideal” gas, meaning the gas particles don’t attract or repel each other and take up negligible space. Real gases behave close to this ideal under low pressures or high temperatures, where particles are spread far apart and moving fast enough that their interactions are minimal.
At very high pressures or low temperatures, gas molecules are forced close together and start interacting with each other. Under those conditions, the neat inverse relationship between pressure and volume becomes less accurate. For most everyday applications, from breathing to diving to pumping a bicycle tire, the conditions stay well within the range where Boyle’s Law holds reliably. It’s only at extremes that more complex equations are needed to account for how real gas molecules actually behave.

