10.2 Gas Laws Including the Ideal Gas Law

Gas Laws
The Ideal Gas Law and Everything Else
General Chemistry 10.2
The gas laws of general chemistry describe the mathematical relationships among pressure, volume, temperature, and the number of moles of a gas. Boyle’s Law, Charles’s Law, and Avogadro’s Principle each isolate a two-variable relationship, while the Combined Gas Law and the Ideal Gas Law (PV = nRT) unify them into comprehensive equations grounded in kinetic molecular theory. Root mean square speed and the Maxwell distribution further characterize molecular motion, connecting macroscopic gas behavior to the speeds of individual molecules.
The 4 Gas Variables
To describe the state of any gas sample, you need exactly four variables: pressure (P), volume (V), number of moles (n), and temperature (T). The classical gas laws — Boyle’s Law, Charles’s Law, and Avogadro’s Principle — each isolate the relationship between two of these variables while holding the other two constant. This constraint is not just a technicality; it is the very foundation that makes each relationship valid.
This lesson covers that trio of foundational gas laws, then builds toward the Combined Gas Law and ultimately the Ideal Gas Law, PV = nRT. Along the way, we will explore the kinetic molecular theory that underpins ideal gas behavior and close with root mean square speed — a measure of just how fast gas molecules are actually moving.
Boyle’s Law, Charles’s Law, and Avogadro’s Principle
3 Classical Gas Laws at a Glance
Each of the three classical gas laws describes a two-variable relationship within the four-variable gas system:
- Boyle’s Law — Pressure and volume are inversely proportional (constant n and T). As volume increases, pressure decreases, and vice versa.
- Charles’s Law — Volume and temperature are directly proportional (constant n and P). As temperature rises, volume expands proportionally.
- Avogadro’s Principle — Volume and the number of moles of gas are directly proportional (constant P and T). Adding more gas to a container at fixed pressure and temperature increases its volume.
Pressure is the lone variable with an inverse relationship to volume. Temperature and moles of gas both share a direct proportional relationship with volume. Keep in mind that every one of these statements is only valid when the other two variables are held constant.
| GAS LAWS | |
|---|---|
| Boyle's Law (constant n, T) | PV = constant or P1V1 = P2V2 or P ∝ 1/V |
| Charles' Law (constant n, P) | V/T = constant or V1/T1 = V2/T2 or V ∝ T |
| Avogadro's Law (constant T, P) | V/n = constant or V1/n1 = V2/n2 or V ∝ n |
| Combined Gas Law | P1V1/T1 = P2V2/T2 |
| Better Combined Gas Law | P1V1/(n1T1) = P2V2/(n2T2) |
| Ideal Gas Law | PV = nRT (R = 0.0821 L·atm/mol·K) |
Avogadro’s Principle: The Birthday Party Analogy
Picture Amedeo Avogadro at a child’s birthday party, picking an uninflated balloon off the floor and blowing it up. With each breath he adds more moles of gas, and the balloon grows larger. His formal conclusion was more rigorous: two gas samples at identical conditions of pressure and temperature will occupy equal volumes if and only if they contain equal numbers of particles — that is, equal numbers of moles. The practical takeaway is straightforward: at constant pressure and temperature, volume is proportional to the number of moles of gas.
Boyle’s Law: The Squeezed Balloon Analogy
Not to be outdone at the same party, Robert Boyle inflates his own balloon, ties it off, and squeezes. As he compresses the balloon — reducing its volume — the internal pressure climbs until, finally, it pops. His conclusion: at constant temperature and moles of gas, pressure and volume are inversely proportional. Reduce the volume, and the pressure rises; increase the volume, and the pressure falls.
Charles’s Law: The Hot Air Balloon Analogy
Consider an ordinary air-filled balloon taken from a 75°F air-conditioned house into 110°F Arizona heat. The balloon visibly expands — a direct demonstration that as temperature rises, volume increases. The temperature difference is large enough to make the effect unmistakable.
This same principle explains how a hot air balloon gains altitude. When the pilot fires the burner, the air inside the balloon heats up and expands. Recall that density equals mass divided by volume: as volume increases while the mass of air inside stays roughly the same, the density of that air decreases. Once the air inside is less dense than the surrounding atmosphere, a net buoyant force pushes the balloon upward — exactly like releasing a ping-pong ball at the bottom of a swimming pool.
Important Caveat: These proportional relationships only hold when the other two variables are fixed. Boyle’s Law does not guarantee that compressing a gas always raises its pressure — that is only true when n and T are constant. Similarly, if someone says a process is carried out isothermally (at constant temperature) on a fixed gas sample, that simultaneously fixes T and n, which is precisely the condition under which Boyle’s Law applies.
Boyle’s Law in Detail
3 Mathematical Forms of Boyle’s Law
Boyle’s Law states that pressure and volume are inversely proportional — not merely inversely related. Double the volume, and the pressure is exactly halved. Triple the volume, and the pressure drops to one-third. There are three equivalent mathematical forms you should recognize:
- Proportionality: P ∝ 1/V
- Constant product: PV = constant
- Two-state form: P₁V₁ = P₂V₂
The two-state form is the most useful for Boyle’s Law calculations. You are given a gas under an initial set of conditions and asked to find one unknown after conditions change. With four variables and three given, you solve for the fourth.
Example: Boyle’s Law Calculation
A gas starts at P₁ = 1 atm and V₁ = 1 L. The pressure is reduced to P₂ = 0.5 atm. What is the final volume?
The pressure has been cut in half, so by Boyle’s Law the volume must double: V₂ = 2 L.
Verification: P₁V₁ = (1)(1) = 1; P₂V₂ = (0.5)(2) = 1. The product is constant.
Charles’s Law in Detail
Why Charles’s Law Requires Kelvin, Not Celsius
Charles’s Law states that volume is directly proportional to temperature — but only when temperature is measured on the Kelvin (absolute) scale, never Celsius. This requirement is not arbitrary. The Celsius scale sets its zero at the freezing point of water, which is a completely arbitrary reference point. Temperatures below 0°C are perfectly real and common. Celsius zero is not a true zero.
Kelvin zero — absolute zero — is the complete absence of thermal energy. Nothing can be colder. Because it is a genuine zero, ratios of Kelvin temperatures are physically meaningful: 200 K really is twice as hot as 100 K. Ratios of Celsius temperatures are not meaningful in this way.
Common Mistake: A temperature change from 10°C to 20°C is not a doubling of temperature. On the Kelvin scale, that is 283 K to 293 K — a change of less than 4%, not 100%. Applying Charles’s Law with Celsius values will produce drastically wrong answers. Always convert to Kelvin first: K = °C + 273.
3 Mathematical Forms of Charles’s Law
The three equivalent forms of Charles’s Law are:
- Proportionality: V ∝ T
- Constant ratio: V/T = constant
- Two-state form: V₁/T₁ = V₂/T₂
Example: Charles’s Law Calculation
A gas occupies 1 L at T₁ = 50 K. The temperature is raised to T₂ = 100 K. What is the final volume?
The temperature has doubled on the absolute scale, so the volume doubles: V₂ = 2 L.
Verification: V₁/T₁ = 1/50 = 0.02; V₂/T₂ = 2/100 = 0.02. The ratio is constant.
Avogadro’s Principle in Detail
Avogadro’s Principle states that volume is directly proportional to the number of moles of gas at constant pressure and temperature. Its three equivalent forms mirror those of Charles’s Law:
- Proportionality: V ∝ n
- Constant ratio: V/n = constant
- Two-state form: V₁/n₁ = V₂/n₂
Double the moles of gas and the volume doubles (at fixed P and T). The mathematical structure is identical to Charles’s Law — just with moles substituted for temperature.
Exam Tip: You should recognize all three forms of each gas law, because an exam question might ask “which of the following is an expression of Charles’s Law?” and present any of the three equivalent forms as answer choices. Know them all. In practice, however, you will most often bypass these individual laws entirely and reach straight for the Combined Gas Law.
The Combined Gas Law
The “Better” Combined Gas Law (All 4 Variables)
The standard Combined Gas Law merges Boyle’s Law and Charles’s Law into a single expression that describes how a gas behaves as both pressure and temperature change simultaneously:
P₁V₁/T₁ = P₂V₂/T₂
However, this standard form omits the number of moles, which is a real limitation — what if you add or remove gas during the process? Including Avogadro’s Principle gives what can be called the better Combined Gas Law:
P₁V₁/(n₁T₁) = P₂V₂/(n₂T₂)
This expanded form is not always found in textbooks, but it is derived directly from the Ideal Gas Law. Rearranging PV = nRT gives PV/nT = R, a constant. If this ratio equals the same constant under any two sets of conditions, the two-state equation above follows immediately.
Working a Combined Gas Law Problem
Consider a fixed sample of gas (so n₁ = n₂, and they cancel) at initial conditions P₁ = 1 atm, V₁ = 1 L, T₁ = 0°C = 273 K. The conditions are changed to P₂ = 2 atm and T₂ = 273°C = 546 K. What is V₂?
Example: Combined Gas Law — 2 Simultaneous Changes
Analyze each change independently, then combine:
- Pressure effect: Pressure doubles (1 atm → 2 atm). By Boyle’s Law, this alone would cut the volume in half.
- Temperature effect: Temperature doubles on the Kelvin scale (273 K → 546 K). By Charles’s Law, this alone would double the volume.
The two effects exactly cancel: the volume is halved by pressure and doubled by temperature, yielding V₂ = 1 L — unchanged from the initial volume.
How the Combined Gas Law Reduces to Each of the 3 Classical Laws
The better Combined Gas Law is the parent of all three classical gas laws. Hold any two variables constant and they cancel, leaving the appropriate two-variable law:
- Hold n and T constant → P₁V₁ = P₂V₂ (Boyle’s Law)
- Hold n and P constant → V₁/T₁ = V₂/T₂ (Charles’s Law)
- Hold P and T constant → V₁/n₁ = V₂/n₂ (Avogadro’s Principle)
Combined Gas Law vs. Ideal Gas Law: When to Use Each
Key Distinction: The Ideal Gas Law (PV = nRT) involves one set of conditions — one pressure, one volume, one temperature, one mole count. You are given three of the four and solve for the fourth. The Combined Gas Law involves two sets of conditions — initial and final — where conditions are being changed. If a problem gives you “before and after” data, use the Combined Gas Law. If a problem gives you a single snapshot of a gas, use the Ideal Gas Law.
The Ideal Gas Law (PV = nRT)
What Makes a Gas “Ideal”? Kinetic Molecular Theory Explained
The Ideal Gas Law, PV = nRT, describes gases that behave ideally — and here is the catch: no gas behaves perfectly ideally under all conditions. An ideal gas is like an ideal anything — it does not truly exist. However, under low pressure and high temperature, real gases come very close to ideal behavior, and the equation holds up beautifully.
The theoretical framework behind this law is called kinetic molecular theory (KMT), which rests on a set of postulates about how gas molecules behave.
KMT Postulate: Gas Molecules Have Negligible Volume
The molecules of a gas occupy negligible volume compared to the total volume of the container. At the macroscopic level, a gas is overwhelmingly empty space — the actual molecules represent such a tiny fraction of the total volume that we treat their contribution as zero. This assumption becomes most accurate at low pressure, when molecules are widely spaced and the empty space between them greatly exceeds the space they themselves occupy.
KMT Postulate: No Attractive Forces Between Gas Molecules
Ideal gas molecules exert no attractive forces on one another. In reality, all molecules have at least some attractive interactions — but kinetic molecular theory sets these to zero. This simplification is most accurate at high temperatures, where molecules are moving fast enough that they zip past each other without having time to “feel” any stickiness.
Analogy: Fast-Moving Magnets
Imagine slowly bringing two magnets together — they attract and stick. Now hurl those same magnets at each other at 500 miles per hour. They collide and bounce apart before the attractive force has any significant effect. The kinetic energy of the collision overwhelms the attractive interaction. Gas molecules at high temperatures behave the same way: their thermal kinetic energy is sufficient to overcome intermolecular attractions, making the “no attractive forces” assumption a reasonable approximation.
KMT Postulate: All Collisions Are Elastic
All molecular collisions — whether molecule-molecule or molecule-wall — are elastic, meaning no kinetic energy is lost during the collision. This postulate follows directly from the previous one: if molecules have no tendency to stick to each other, they cannot lose kinetic energy upon collision. Stickiness is precisely what causes inelastic collisions, in which kinetic energy is transferred into potential energy or heat. No attractive forces means no stickiness, which guarantees elastic collisions.
KMT Postulate: Random Molecular Motion and Temperature
A gas consists of an enormous number of molecules moving in completely random directions with a range of speeds. No direction of motion is preferred over another. One important corollary: the average kinetic energy of the molecules is directly proportional to the absolute temperature of the gas. Double the Kelvin temperature, and you double the average kinetic energy. Note the word “average” — individual molecules span a wide distribution of speeds, as we will see when discussing the Maxwell distribution.
Summary of the 5 KMT Postulates: (1) Gas molecules have negligible volume. (2) There are no attractive forces between molecules. (3) All collisions are elastic. (4) Molecules are in constant random motion. (5) Average kinetic energy is proportional to absolute temperature. Postulates 1 and 2 are the most critical — they directly explain why the Ideal Gas Law is most accurate at low pressure and high temperature.
| Kinetic Molecular Theory (Ideal Gas Theory) | |
|---|---|
| 1 | Gas molecules have negligible volume. |
| 2 | Gas molecules don't have any attractive forces between themselves. |
| 3 | All collisions are elastic (no loss of kinetic energy). |
| 4 | A gas is composed of a large number of atoms/molecules in random motion. |
| 5 | KEavg ∝ T (KEavg = 3 / 2 RT) |
| Ideal Behavior |
|---|
| 1. Gases behave more ideally at low Pressure and high Temperature. |
| 2. Gases with less Intermolecular Forces tend to behave more ideally. |
Using the Ideal Gas Law: The Universal Gas Constant R
In PV = nRT, R is the universal gas constant. It can be expressed in many unit systems, but in a general chemistry course you will use two values:
- R = 0.0821 L·atm/(mol·K) — Use this when pressure is in atmospheres and volume is in liters.
- R = 8.314 J/(mol·K) — Use this when working with energy, or when pressure is in pascals (Pa) and volume is in cubic meters (m³).
Both liter-atmospheres and joules are units of energy — the choice of R simply reflects the unit system you are working in. In practice, the vast majority of Ideal Gas Law calculations use the 0.0821 value, because pressure is almost always given in atmospheres and volume in liters. The 0.0821 value also serves as a built-in unit reminder: volume must be in liters, pressure in atmospheres, temperature in Kelvin, and n in moles. The 8.314 value becomes essential for root mean square speed calculations, as we will see shortly.
Ideal Gas Law Calculations
Example: Straightforward Plug-and-Chug
Example: Volume of an Ideal Gas
What is the volume of 2.0 moles of argon gas behaving ideally at 298 K and 2.0 atm?
Solve for volume: V = nRT/P
All values are already in the correct units:
- n = 2.0 mol
- R = 0.0821 L·atm/(mol·K)
- T = 298 K
- P = 2.0 atm
The 2.0 in the numerator (moles) and denominator (pressure) cancel, leaving: V = 0.0821 × 298 = 24.5 L.
Note: the identity of the gas — argon, nitrogen, oxygen, carbon dioxide — is irrelevant. The Ideal Gas Law depends only on the number of moles, not the type of molecule.
Example: 3 Required Unit Conversions
Example: Volume of Argon with Unit Conversions
What is the volume of 80 g of argon gas behaving ideally at 25°C and 1520 torr?
None of the given quantities are in the required units. Convert each before plugging in:
- Mass → moles: The molar mass of Ar is 40 g/mol. 80 g ÷ 40 g/mol = 2.0 mol
- Celsius → Kelvin: 25°C + 273 = 298 K
- Torr → atm: 1520 torr ÷ 760 torr/atm = 2.0 atm
After conversion, the values are identical to the previous example: V = nRT/P = 24.5 L.
Exam Tip: Real exam questions almost always require at least one unit conversion before you can plug into PV = nRT. Common conversions to memorize: °C + 273 = K; 1 atm = 760 torr = 760 mmHg = 101,325 Pa; grams ÷ molar mass = moles.
Root Mean Square Speed
Why Average Velocity Is Zero — and What RMS Speed Measures Instead
Gas molecules in a container are moving in every direction simultaneously with no preferred orientation. As a result, the simple average velocity of all the molecules is exactly zero — any molecule moving left is cancelled out by one moving right with equal speed. That tells us nothing useful about how energetically the molecules are actually moving.
Root mean square (RMS) speed solves this problem by squaring each velocity (making all values positive), averaging those squares, and then taking the square root of the result. The direction information is eliminated, leaving a meaningful measure of the typical speed of a molecule in the gas. Think of it as a direction-neutral average speed.
Deriving the RMS Speed Formula from Kinetic Molecular Theory
From kinetic molecular theory, the average kinetic energy of a monatomic ideal gas is:
KE_avg = (3/2)RT
From physics, kinetic energy is (1/2)mv². Setting these equal:
(1/2)mv² = (3/2)RT
Solving for v and replacing it with the RMS speed symbol u:
u_rms = √(3RT/M)
where M is the molar mass of the gas.
3 Critical Units for the RMS Speed Calculation
To obtain RMS speed in SI units (meters per second), every quantity in the formula must be in SI units:
- R = 8.314 J/(mol·K) — This is the one place in the gas laws chapter where you use the 8.314 value of R rather than 0.0821, because joules are SI units of energy.
- M in kg/mol — Molar mass must be in kilograms per mole, not grams per mole. The SI unit of mass is the kilogram. Divide the familiar g/mol value by 1000 to convert.
- T in Kelvin — As always.
Common Mistake: Forgetting to convert molar mass from g/mol to kg/mol will give an answer that is off by a factor of √1000 ≈ 31.6 — a dramatically wrong result. Always check: is M in kg/mol?

Example Calculation: Root Mean Square Speed of O₂
Example: RMS Speed of Oxygen Gas at 273 K
What is the root mean square speed of O₂ molecules at 273 K?
- R = 8.314 J/(mol·K)
- T = 273 K
- M(O₂) = 32 g/mol = 0.032 kg/mol
u_rms = √(3 × 8.314 × 273 / 0.032)
Evaluate the expression under the radical: 3 × 8.314 × 273 ÷ 0.032 ≈ 213,000 m²/s²
Taking the square root: u_rms ≈ 461 m/s
At room temperature (~298 K), O₂ molecules move slightly faster than this — on the order of 480 m/s. That is over a thousand miles per hour, which is why gas molecules fill a room near-instantaneously and why diffusion and effusion happen at the rates they do.
The Maxwell Distribution of Speeds
Not all molecules in a gas sample travel at the same speed. Kinetic molecular theory tells us the average kinetic energy, but individual molecules span a continuous range of speeds. The Maxwell distribution of speeds is a graph showing the fraction of molecules moving at each speed, producing a characteristic bell-shaped curve (technically not a perfect Gaussian, but close).

How to Read a Maxwell Distribution Graph
A typical Maxwell distribution plot shows speed along the horizontal axis and the fraction of molecules at that speed along the vertical axis. The peak of the curve represents the most probable speed — the speed most molecules are traveling. The average and RMS speeds both fall slightly to the right of this peak.
A single plot often overlays three curves for comparison. These three curves can be interpreted in two different ways:
- 3 temperatures, same gas: Higher temperature shifts the Maxwell distribution to the right (higher speeds) and flattens it. The curve for the highest temperature is the broadest and most spread out; the lowest temperature gives the narrowest, tallest peak concentrated at lower speeds.
- 3 molar masses, same temperature: RMS speed is inversely proportional to the square root of molar mass — heavier molecules move more slowly. The curve for the heaviest gas appears narrow and concentrated at low speeds (like the low-temperature curve above), while the lightest gas has a broad distribution shifted to high speeds.
Exam Tip: When a Maxwell distribution problem asks you to compare curves, decide first whether the variable being changed is temperature or molar mass. Both produce the same qualitative effect on the shape of the curve (broader and faster vs. narrower and slower), but the direction of the effect is opposite: higher temperature means higher speed, while higher molar mass means lower speed.
One thing all Maxwell distributions share: every curve starts at zero on the left. There are always a few molecules traveling very slowly, regardless of temperature or molar mass. What changes is the proportion of slow molecules — at low temperature or high molar mass, slow molecules make up a larger fraction of the population. At high temperature or low molar mass, the distribution stretches toward higher speeds and the peak shifts to the right.
10 Key Takeaways
- 4 variables describe a gas: pressure (P), volume (V), moles (n), and temperature (T). Each classical gas law compares two variables while holding the other two constant.
- Boyle’s Law (P₁V₁ = P₂V₂): pressure and volume are inversely proportional at constant n and T.
- Charles’s Law (V₁/T₁ = V₂/T₂): volume and temperature are directly proportional at constant n and P. Temperature must always be in Kelvin.
- Avogadro’s Principle (V₁/n₁ = V₂/n₂): volume and moles are directly proportional at constant P and T.
- The Better Combined Gas Law (P₁V₁/n₁T₁ = P₂V₂/n₂T₂) unifies all three classical laws and reduces to each when the appropriate variables are held constant.
- Use the Combined Gas Law when a problem gives two sets of conditions (initial and final). Use the Ideal Gas Law (PV = nRT) when a problem gives a single set of conditions.
- The 4 kinetic molecular theory postulates: (1) gas molecules have negligible volume; (2) no attractive forces between molecules; (3) all collisions are elastic; (4) molecules move randomly and average KE is proportional to T. The Ideal Gas Law is most accurate at low pressure and high temperature.
- The universal gas constant R = 0.0821 L·atm/(mol·K) for PV = nRT calculations, and 8.314 J/(mol·K) for energy and RMS speed calculations.
- RMS speed formula: u_rms = √(3RT/M). Use R = 8.314 J/(mol·K) and M in kg/mol to obtain speed in m/s.
- The Maxwell distribution of speeds shows that gas molecules span a range of speeds. Higher temperature or lower molar mass shifts the distribution toward higher speeds and broadens the curve.

