Blog

Gas Laws Explained: Boyle's, Charles's, and the Ideal Gas Law

Master the gas laws with clear explanations of Boyle's law, Charles's law, Gay-Lussac's law, the combined gas law, and the ideal gas law with worked examples.

Samanyu Sathyamoorthi · General Chemistry · September 29, 2026
Gas Laws Explained: Boyle's, Charles's, and the Ideal Gas Law

Gases are all around us, from the air we breathe to the carbon dioxide in a soda bottle, yet their behavior can seem mysterious because we cannot see individual gas molecules. The gas laws are a set of mathematical relationships that describe how gases respond to changes in pressure, volume, temperature, and amount. Mastering these laws is a cornerstone of high school and introductory college chemistry. In this guide, we will cover the kinetic molecular theory, walk through each gas law with worked examples, and show you how they all connect through the ideal gas law.

Introduction to gas behavior

Unlike solids and liquids, gases have no fixed shape or volume. A gas expands to fill whatever container it occupies, and it can be compressed into a much smaller space. These behaviors arise because gas molecules are widely spaced and move rapidly in random directions. The pressure a gas exerts on the walls of its container is the result of billions of molecular collisions per second. Temperature is a measure of the average kinetic energy of those molecules. Understanding these basic ideas is the key to understanding why the gas laws work the way they do.

Kinetic molecular theory

The kinetic molecular theory (KMT) provides a model for ideal gas behavior based on five assumptions. First, gas particles are in constant, random, straight-line motion. Second, the volume of the individual gas particles is negligible compared to the total volume of the container. Third, gas particles do not attract or repel each other. Fourth, collisions between gas particles and between particles and the container walls are perfectly elastic, meaning no kinetic energy is lost. Fifth, the average kinetic energy of gas particles is directly proportional to the absolute temperature in kelvins. These assumptions describe an ideal gas. Real gases approximate ideal behavior at high temperatures and low pressures, where the particles are far apart and moving fast.

Boyle's law

Boyle's law states that for a fixed amount of gas at constant temperature, the pressure and volume are inversely proportional. Mathematically, P₁V₁ = P₂V₂. If you decrease the volume of a gas, the molecules are squeezed into a smaller space, they collide with the walls more frequently, and the pressure increases. If you increase the volume, the molecules spread out, collisions become less frequent, and the pressure decreases.

Worked example: A balloon contains 2.50 L of air at 1.00 atm. If the balloon is squeezed to a volume of 1.25 L at constant temperature, what is the new pressure? Using Boyle's law: P₁V₁ = P₂V₂. Substituting: (1.00 atm)(2.50 L) = P₂(1.25 L). Solving for P₂: P₂ = (1.00 × 2.50) / 1.25 = 2.00 atm. The pressure doubles when the volume is halved, which is exactly what the inverse relationship predicts.

Charles's law

Charles's law states that for a fixed amount of gas at constant pressure, the volume is directly proportional to the absolute temperature. Mathematically, V₁/T₁ = V₂/T₂. Temperature must be in kelvins (K = °C + 273.15). When you heat a gas, the molecules move faster and push the container walls outward, increasing the volume. When you cool a gas, the molecules slow down and the volume decreases.

Worked example: A gas occupies 3.00 L at 300 K. If the temperature is raised to 450 K at constant pressure, what is the new volume? Using Charles's law: V₁/T₁ = V₂/T₂. Substituting: 3.00/300 = V₂/450. Solving for V₂: V₂ = 3.00 × 450/300 = 4.50 L. The volume increases by 50% because the temperature increased by 50% on the kelvin scale.

Gay-Lussac's law

Gay-Lussac's law states that for a fixed amount of gas at constant volume, the pressure is directly proportional to the absolute temperature. Mathematically, P₁/T₁ = P₂/T₂. This law explains why aerosol cans carry warnings about high temperatures: if you heat a sealed container, the gas molecules move faster and strike the walls harder, increasing the pressure. If the pressure exceeds what the container can withstand, it may burst.

Worked example: A sealed container holds a gas at 2.00 atm and 350 K. If the temperature increases to 700 K, what is the new pressure? Using Gay-Lussac's law: P₁/T₁ = P₂/T₂. Substituting: 2.00/350 = P₂/700. Solving for P₂: P₂ = 2.00 × 700/350 = 4.00 atm. Doubling the absolute temperature doubles the pressure, consistent with the direct proportionality.

Combined gas law

The combined gas law merges Boyle's, Charles's, and Gay-Lussac's laws into a single equation: (P₁V₁)/T₁ = (P₂V₂)/T₂. This equation is useful when pressure, volume, and temperature all change simultaneously. If one variable is held constant, the combined gas law simplifies to the appropriate individual law. For example, if temperature is constant (T₁ = T₂), the equation reduces to P₁V₁ = P₂V₂, which is Boyle's law.

Avogadro's law

Avogadro's law states that at constant temperature and pressure, the volume of a gas is directly proportional to the number of moles. Mathematically, V₁/n₁ = V₂/n₂. This means that equal volumes of different gases at the same temperature and pressure contain the same number of molecules. At standard temperature and pressure (STP, defined as 0°C and 1 atm), one mole of any ideal gas occupies 22.4 liters. This value, known as the molar volume, is a useful conversion factor in stoichiometry problems involving gases.

The ideal gas law

The ideal gas law combines all four variables — pressure, volume, temperature, and amount — into a single equation: PV = nRT. Here, P is pressure (in atm), V is volume (in liters), n is the number of moles, R is the ideal gas constant (0.08206 L·atm/(mol·K)), and T is the absolute temperature (in kelvins). This equation is the most versatile gas law because it can be used to solve for any one variable when the other three are known.

Worked example 1: How many moles of gas are in a 10.0 L container at 2.00 atm and 300 K? Using PV = nRT: n = PV/(RT) = (2.00 × 10.0)/(0.08206 × 300) = 20.0/24.618 = 0.812 mol.

Worked example 2: What volume does 0.500 mol of gas occupy at 1.00 atm and 273 K? Using PV = nRT: V = nRT/P = (0.500 × 0.08206 × 273)/1.00 = 11.2 L. Notice that this is exactly half of 22.4 L, which makes sense because we have half a mole at STP conditions.

When gases deviate from ideal behavior

Real gases deviate from ideal behavior under conditions of high pressure and low temperature. At high pressure, gas molecules are forced close together, and their own volume becomes significant relative to the container volume. At low temperature, molecules move slowly enough that intermolecular attractive forces become important, causing the gas to occupy less volume than the ideal gas law predicts. The van der Waals equation modifies the ideal gas law to account for these effects: (P + a(n/V)²)(V − nb) = nRT, where a and b are constants specific to each gas. For most problems in introductory chemistry, the ideal gas law provides sufficiently accurate results, but it is important to know its limitations.

Gases that have strong intermolecular forces, such as water vapor and ammonia, deviate more from ideal behavior than gases with weak intermolecular forces, such as helium and neon. Large, complex molecules also deviate more because they occupy more volume. Understanding when the ideal gas law applies and when it does not is a sign of deeper chemical understanding.

Real-world applications of gas laws

Gas laws are not just textbook exercises; they explain phenomena you encounter every day. When you pump air into a bicycle tire, you are using Boyle's law: compressing the air into a smaller volume increases its pressure. When a hot air balloon rises, Charles's law is at work: heating the air inside the balloon increases its volume, making the balloon less dense than the surrounding cooler air. The pressure in your car tires increases on a hot day because of Gay-Lussac's law. Scuba divers must understand Boyle's law to avoid decompression sickness: as a diver ascends and the water pressure decreases, dissolved gases in the blood expand, and ascending too quickly can cause dangerous gas bubbles to form.

In industry, the ideal gas law is used to design chemical reactors, calculate the yields of gaseous products, and determine the conditions needed for gas-phase reactions. Meteorologists use gas laws to model atmospheric behavior and predict weather patterns. Medical professionals rely on gas laws when administering anesthesia or managing ventilators. The gas laws are truly universal in their applications.

Simulating gas behavior in MyChemLab AI

Working through gas law problems on paper builds your mathematical skills, but visualizing how gases behave under different conditions builds your intuition. MyChemLab AI lets you explore gas behavior interactively. You can adjust the pressure, volume, temperature, or amount of a gas and watch how the other variables respond in real time. Want to see what happens when you double the temperature of a gas at constant volume? The simulation shows you the pressure change instantly and connects it to Gay-Lussac's law. You can also work through practice problems with the AI tutor, which provides step-by-step guidance and checks your unit conversions. By combining calculation practice with visual simulations, MyChemLab AI helps you develop both the quantitative skills and the conceptual understanding you need to master the gas laws.