A gas law is a mathematical rule that describes how gases behave when you change their pressure, volume, temperature, or amount. These laws capture predictable relationships between four physical properties: pressure (P), volume (V), temperature (T), and the number of molecules present (n). Change one variable and the others respond in specific, measurable ways. The individual gas laws each isolate one of these relationships, while the ideal gas law combines them all into a single equation.
The Four Variables That Define a Gas
Every gas law works with some combination of four properties. Pressure is the force a gas exerts on the walls of its container, measured in atmospheres (atm) or kilopascals (kPa). Volume is the space the gas occupies, typically in liters. Temperature reflects how fast the gas molecules are moving, and it must always be expressed in Kelvin for gas law calculations (you convert from Celsius by adding 273.15). The amount of gas is measured in moles, a chemistry unit that counts molecules in very large batches.
A useful reference point is “standard temperature and pressure,” or STP: 0°C (273.15 K) and 1 atm. At STP, one mole of any gas occupies exactly 22.4 liters. That number holds regardless of whether the gas is oxygen, nitrogen, or helium, which is one of the surprising things about how gases work.
Boyle’s Law: Pressure and Volume
Boyle’s law is the simplest gas law and often the first one taught. It states that pressure and volume are inversely proportional when temperature stays constant. If you compress a gas into a smaller space, its pressure goes up. If you let it expand, its pressure drops. The formula is P₁V₁ = P₂V₂, meaning the product of pressure and volume before a change equals the product after.
You experience Boyle’s law every time you breathe. When your diaphragm contracts, it increases the volume inside your chest cavity. That drops the pressure in your lungs below atmospheric pressure, and air rushes in. When your diaphragm relaxes and the chest cavity shrinks, pressure rises and pushes air back out. The same principle explains why divers must never hold their breath while ascending: as they rise toward the surface and water pressure decreases, the air in their lungs expands. A rapid ascent can cause the lungs to rupture, a condition called pulmonary barotrauma.
Charles’s Law: Volume and Temperature
Charles’s law describes what happens when you heat or cool a gas while keeping its pressure constant. Volume and temperature are directly proportional: heat a gas and it expands, cool it and it contracts. The formula is V₁/T₁ = V₂/T₂.
This is why temperature must be in Kelvin rather than Celsius. The Kelvin scale starts at absolute zero, the point where molecular motion theoretically stops. Using Celsius would break the math because a “zero” in Celsius doesn’t mean zero energy. A hot air balloon is a straightforward example of Charles’s law: heating the air inside the balloon increases its volume, making it less dense than the cooler air outside, and the balloon rises.
Gay-Lussac’s Law: Pressure and Temperature
Gay-Lussac’s law connects pressure and temperature when volume is held constant. The relationship is direct: as temperature rises, pressure rises proportionally. The formula is P₁/T₁ = P₂/T₂. A pressure cooker works on this principle. Sealing the pot fixes the volume, so heating the contents raises the internal pressure, which in turn raises the boiling point of water and cooks food faster. The same law explains why aerosol cans carry warnings about heat exposure. A fixed-volume can heated in a fire experiences rapidly rising internal pressure until it ruptures.
Avogadro’s Law: Volume and Amount
Avogadro’s law says that the volume of a gas is directly proportional to the number of moles present, as long as temperature and pressure don’t change. The formula is V₁/n₁ = V₂/n₂. Double the amount of gas in a flexible container and the volume doubles. This law established a foundational idea in chemistry: equal volumes of different gases at the same temperature and pressure contain the same number of molecules, regardless of the type of gas.
The Ideal Gas Law: Everything Combined
The ideal gas law merges all four individual relationships into one equation: PV = nRT. Here, P is pressure, V is volume, n is the number of moles, T is absolute temperature in Kelvin, and R is the universal gas constant, which has a value of 8.314 J/(mol·K). This equation lets you solve for any single variable as long as you know the other three.
The word “ideal” matters. The equation assumes that gas molecules have no size and don’t attract or repel each other. No real gas behaves this way perfectly, but the equation works remarkably well under normal conditions. According to data from Purdue University, real gases typically agree with ideal gas predictions to within 5% at everyday temperatures and pressures.
When Gas Laws Break Down
Real gases deviate from ideal behavior under two conditions: very high pressures and very low temperatures. At high pressure, gas molecules are forced close together, and their physical size starts to matter. They take up space that the ideal gas law assumes doesn’t exist. At low temperatures, molecules slow down enough for attractive forces between them to become significant, pulling molecules together and reducing pressure below what the equation predicts. This is ultimately why gases can be compressed into liquids, something the ideal gas law doesn’t account for at all.
For most everyday and introductory chemistry purposes, though, these deviations are small enough to ignore. The ideal gas law remains one of the most useful equations in science precisely because it’s simple and accurate across a wide range of conditions.
Gas Laws in Everyday Life
Beyond breathing and cooking, gas laws show up in situations you might not expect. At high altitudes, the drop in atmospheric pressure causes trapped gases in the body to expand. A gas pocket of 40 mL can grow by about 16% at just 1.5 km (roughly 5,000 feet) above sea level. At 2.5 km (about 8,200 feet), enclosed gas volumes in the body can expand by up to 30%. This is why flights can cause discomfort in your ears and sinuses, and why doctors sometimes need to account for altitude when transporting patients with certain chest injuries.
Scuba diving involves gas laws even more directly. As divers descend, increasing water pressure compresses the air in their lungs and forces more nitrogen to dissolve into their blood, a process governed by Henry’s law. On the way back up, that nitrogen comes out of solution. If a diver ascends too quickly, the nitrogen forms bubbles in the bloodstream rather than being exhaled gradually. This is decompression sickness, commonly called “the bends.” Safe ascent rates and decompression stops exist specifically because of what gas laws predict about pressure changes and dissolved gases.

