💨
General Chemistry16 min read

Gas Laws Explained: Boyle's, Charles's, Avogadro's, and the Ideal Gas Law (PV = nRT)

By ChemistryIQ Team · March 12, 2026

What Are the Gas Laws?

The gas laws are a set of mathematical relationships that describe how gases behave when temperature, pressure, volume, and amount of gas change. They are some of the oldest quantitative laws in chemistry, developed through careful experimentation in the 17th-19th centuries, and they remain fundamental to everything from stoichiometry calculations to understanding atmospheric science and industrial processes. The individual gas laws each describe the relationship between two variables while holding the others constant. The ideal gas law (PV = nRT) combines all of them into a single equation that relates all four variables simultaneously. If you understand the ideal gas law thoroughly — including when it works, when it does not, and how to handle the units — you have the foundation for virtually every gas-phase calculation in general chemistry.

Boyle's Law: Pressure and Volume

Boyle's Law states that at constant temperature and constant amount of gas, the pressure and volume of a gas are inversely proportional: P₁V₁ = P₂V₂. If you compress a gas (decrease volume), the pressure increases. If you expand it (increase volume), the pressure decreases. This is intuitive if you think about it at the molecular level: gas molecules are constantly bouncing off the walls of their container, and each collision exerts a tiny force. If you halve the container's volume, the same number of molecules now hits the walls twice as frequently (because they have half the distance to travel between collisions), so the pressure doubles. A practical example: when you push down on a sealed syringe, you decrease the volume inside the syringe. The air pressure inside increases proportionally — push the volume to half, and the pressure doubles. When you solve Boyle's Law problems, the most common mistake is forgetting that the temperature must be constant. If the problem says 'a gas at 25°C is compressed from 5.0 L to 2.0 L,' you can use Boyle's Law. If the temperature changes during the compression, you need the combined gas law instead.

Charles's Law: Volume and Temperature

Charles's Law states that at constant pressure and constant amount of gas, the volume of a gas is directly proportional to its absolute temperature: V₁/T₁ = V₂/T₂. Heat a gas and it expands. Cool it and it contracts. The critical detail that trips up students is that temperature MUST be in Kelvin, not Celsius. Charles's Law describes a direct proportionality — if you double the absolute temperature, the volume doubles. This proportionality only works with the Kelvin scale because Kelvin starts at absolute zero. On the Celsius scale, doubling from 10°C to 20°C is NOT doubling the absolute temperature (it is going from 283 K to 293 K, an increase of only 3.5%). If you plug Celsius into Charles's Law, you will get a wrong answer every time. To convert: T(K) = T(°C) + 273.15. Get in the habit of converting to Kelvin immediately when you see any gas law problem — do it before you even start setting up the equation. Charles's Law has a beautiful physical interpretation: it predicts that if you could cool a gas to 0 K (-273.15°C), its volume would reach zero. In reality, every gas liquefies before reaching absolute zero, but extrapolating the volume-temperature line to zero volume is how absolute zero was first estimated experimentally — a remarkable achievement of 19th-century science.

Gay-Lussac's Law and Avogadro's Law

Gay-Lussac's Law states that at constant volume and constant amount of gas, pressure is directly proportional to absolute temperature: P₁/T₁ = P₂/T₂. This is why aerosol cans warn you not to heat them — the volume of the can is fixed, so increasing the temperature increases the pressure until the can potentially ruptures. Again, temperature must be in Kelvin. Avogadro's Law states that at constant temperature and pressure, the volume of a gas is directly proportional to the number of moles: V₁/n₁ = V₂/n₂. Equal volumes of gas at the same temperature and pressure contain equal numbers of molecules — regardless of what the gas is. One mole of helium at STP occupies the same volume as one mole of sulfur hexafluoride at STP, despite the enormous difference in molecular mass. This volume is approximately 22.4 L at STP (0°C, 1 atm) — a conversion factor that appears throughout general chemistry. Avogadro's Law is the reason we can use volume ratios as mole ratios in gas-phase stoichiometry. If a balanced equation shows 2 moles of H₂ reacting with 1 mole of O₂, then 2 liters of H₂ react with 1 liter of O₂ (at the same temperature and pressure). This enormously simplifies gas stoichiometry problems.

The Combined Gas Law

The combined gas law merges Boyle's, Charles's, and Gay-Lussac's laws into one equation that handles changes in pressure, volume, and temperature simultaneously: (P₁V₁)/T₁ = (P₂V₂)/T₂. This is useful when a gas undergoes a change where more than one variable shifts — for example, a balloon rising from ground level (high pressure, low altitude, warm temperature) to high altitude (low pressure, high altitude, cold temperature). The combined gas law is also a useful shortcut because the individual laws are just special cases: if temperature is constant (T₁ = T₂), it reduces to Boyle's Law. If pressure is constant (P₁ = P₂), it reduces to Charles's Law. If volume is constant (V₁ = V₂), it reduces to Gay-Lussac's Law. So if you memorize the combined gas law, you have effectively memorized all three individual laws. When solving combined gas law problems, always: (1) convert temperatures to Kelvin, (2) make sure pressure units are consistent on both sides (both in atm, or both in mmHg, etc.), (3) make sure volume units are consistent, and (4) solve algebraically for the unknown variable before plugging in numbers. Students who plug in numbers too early make more arithmetic errors.

The Ideal Gas Law: PV = nRT

The ideal gas law is the single most important equation in gas chemistry: PV = nRT, where P is pressure, V is volume, n is the number of moles, R is the gas constant, and T is the absolute temperature in Kelvin. This equation relates all four gas variables and allows you to calculate any one of them if you know the other three. The gas constant R has different values depending on the units you use for pressure and volume. The two most common are: R = 0.08206 L·atm/(mol·K) when pressure is in atmospheres and volume is in liters, and R = 8.314 J/(mol·K) when working in SI units (Pascals and cubic meters), which is also used in thermodynamics. The value of R you choose determines the units you must use for every other variable in the equation — this is the number one source of errors on gas law exams. Before plugging anything into PV = nRT, check: Is P in atm (use 0.08206) or kPa (use 8.314 and convert kPa to Pa)? Is V in liters (with 0.08206) or m³ (with 8.314)? Is T in Kelvin? If any unit is mismatched, your answer will be wrong by orders of magnitude. Develop the habit of writing out units alongside every number — dimensional analysis catches unit mismatches before they become wrong answers.

Solving Ideal Gas Law Problems: Worked Examples

Example 1: What volume does 2.50 moles of O₂ occupy at 25°C and 1.00 atm? Convert temperature: T = 25 + 273.15 = 298.15 K. Choose R = 0.08206 L·atm/(mol·K). Rearrange PV = nRT to V = nRT/P. V = (2.50 mol)(0.08206 L·atm/(mol·K))(298.15 K) / (1.00 atm) = 61.2 L. Example 2: A 10.0 L container holds a gas at 2.00 atm and 300 K. How many moles of gas are present? n = PV/(RT) = (2.00 atm)(10.0 L) / [(0.08206 L·atm/(mol·K))(300 K)] = 20.0 / 24.618 = 0.812 mol. Example 3: Finding molar mass from gas data. If 3.20 g of an unknown gas occupies 1.85 L at 27°C and 0.980 atm, what is the molar mass? First find moles: n = PV/(RT) = (0.980)(1.85) / [(0.08206)(300.15)] = 1.813 / 24.636 = 0.0736 mol. Then: Molar mass = mass/moles = 3.20 g / 0.0736 mol = 43.5 g/mol. This is consistent with propane (C₃H₈, M = 44.10 g/mol) or CO₂ (M = 44.01 g/mol). This type of problem — using gas properties to determine molecular identity — is extremely common on exams and demonstrates the practical power of PV = nRT.

When Ideal Gas Law Fails: Real Gases and the Van der Waals Equation

The ideal gas law assumes two things that are not true for real gases: (1) gas molecules have zero volume (they are point particles), and (2) there are no attractive or repulsive forces between gas molecules. These assumptions work well under most conditions — low to moderate pressures and temperatures well above the boiling point. But at high pressures, gas molecules are packed close together and their actual volume becomes a significant fraction of the container volume. At low temperatures, intermolecular attractions (Van der Waals forces) become significant relative to the kinetic energy of the molecules, pulling them closer together and reducing the pressure below what the ideal gas law predicts. The Van der Waals equation corrects for both effects: [P + a(n/V)²][V - nb] = nRT. The constant 'a' corrects for intermolecular attractions (larger for molecules with stronger intermolecular forces like H₂O, smaller for weakly interacting molecules like He). The constant 'b' corrects for the actual volume of the molecules (larger for bigger molecules). For most general chemistry courses, you need to understand conceptually when and why real gases deviate from ideal behavior, but you rarely need to do calculations with the Van der Waals equation. The key exam points: real gases deviate most from ideal behavior at high pressure and low temperature. Gases with strong intermolecular forces (like NH₃ and H₂O) deviate more than gases with weak forces (like He and N₂). Small, nonpolar, high-temperature gases are the most 'ideal' in behavior.

Gas Stoichiometry: Connecting Gas Laws to Chemical Reactions

Gas stoichiometry problems combine the ideal gas law with balanced chemical equations. The general approach: use PV = nRT to convert gas volumes to moles (or moles to volumes), then use mole ratios from the balanced equation to connect reactants and products. Example: How many liters of O₂ at STP are needed to completely combust 5.00 g of propane (C₃H₈)? Balanced equation: C₃H₈ + 5O₂ → 3CO₂ + 4H₂O. Step 1: Convert mass of propane to moles: 5.00 g ÷ 44.10 g/mol = 0.1134 mol C₃H₈. Step 2: Use mole ratio: 0.1134 mol C₃H₈ × (5 mol O₂/1 mol C₃H₈) = 0.5669 mol O₂. Step 3: Convert moles O₂ to volume at STP using the molar volume (22.4 L/mol at STP): 0.5669 mol × 22.4 L/mol = 12.7 L O₂. If the gas is not at STP, use PV = nRT instead of the 22.4 L/mol shortcut. The molar volume shortcut only works at STP (0°C, 1 atm). Using it at any other conditions gives an incorrect answer — this is one of the most common gas stoichiometry errors. ChemistryIQ can walk you through gas law problems step by step — photograph the problem and get a guided solution that shows unit conversions, equation selection, and the calculation at each stage.

Need Help with Your Chemistry Problems?

Snap a photo of any equation, structure, or diagram for instant step-by-step solutions at three detail levels.

Download ChemistryIQ

FAQs

Common questions about gas laws explained

STP stands for Standard Temperature and Pressure: 0°C (273.15 K) and 1 atm (101.325 kPa). At STP, one mole of any ideal gas occupies approximately 22.4 L. Note that IUPAC updated the standard pressure to 1 bar (100 kPa) in 1982, which changes the molar volume to 22.7 L, but many textbooks and exams still use the 1 atm / 22.4 L convention. Check which definition your course uses.

The gas laws describe direct proportionalities (V ∝ T, P ∝ T) that require a scale starting at true zero. Kelvin starts at absolute zero (0 K = -273.15°C), where molecular motion theoretically ceases. Using Celsius, which has an arbitrary zero point (the freezing point of water), breaks the proportionality — doubling 10°C to 20°C is not doubling the thermal energy, but doubling 283 K to 566 K is.

Use the combined gas law (P₁V₁/T₁ = P₂V₂/T₂) when the same sample of gas changes conditions — you know the initial state and want to find a variable in the final state. Use the ideal gas law (PV = nRT) when you need to find moles from P, V, T data, or find V/P/T from known moles, or when converting between gas volume and moles for stoichiometry.

Use R = 0.08206 L·atm/(mol·K) when pressure is in atmospheres and volume is in liters — this is the most common choice in general chemistry. Use R = 8.314 J/(mol·K) when working in SI units (Pascals and m³) or in thermodynamics/kinetics equations. Use R = 62.36 L·mmHg/(mol·K) when pressure is given in mmHg. Always match R to your pressure and volume units.

Real gases deviate most at high pressure (molecules are close together, so their actual volume matters and intermolecular forces are significant) and low temperature (molecules move slowly, so intermolecular attractions are more effective at pulling them together). Gases with strong intermolecular forces (polar molecules, hydrogen bonding molecules) and large molecular sizes deviate more than small nonpolar gases.

More Articles