Gas Laws for Changing Conditions

General Chemistry · Gas Laws and Ideal Gas Calculations

Dr. Ray’s Learning Center · covers: Gas Laws for Changing Conditions

  • 25 to 35 min
  • 9 figures
  • 4 worked examples
  • 5 practice sets
  • 1 simulator

Before this lesson:

Squeeze a sealed syringe and the air inside takes up less room. Leave a party balloon in a hot car and it swells. Heat a closed can and the pressure inside climbs until the can may burst. In each case the amount of gas stays the same while its pressure, volume or temperature changes. The gas laws for changing conditions predict the new state from the old one.

In this lesson you will use Boyle’s, Charles’s and Gay-Lussac’s laws and the combined gas law for a fixed amount of gas, and you will correct a measured gas volume to standard conditions, saying which standard you use (Figure 1).

  1. State 1 and state 2P, V, T before and after
  2. +273.15+ 273.15every T to K; same P and V units
  3. Consistent units
  4. PVT\dfrac{PV}{T}cross out what is constant
  5. One lawBoyle, Charles, Gay-Lussac or combined
  6. ×T2T1\times \dfrac{T_2}{T_1}one factor per change
  7. Answercheck the direction; 3 s.f.

P1V1T1=P2V2T2\dfrac{P_1V_1}{T_1} = \dfrac{P_2V_2}{T_2} with T in K.No R is needed: the units cancel.STP: 273.15K, 1atm273.15\,\text{K},\ 1\,\text{atm}.

Figure 1. The changing-conditions roadmap: list both states, put the temperatures in K, cross out what is constant, then solve with one factor for each change and check its direction.

Learning Objectives

After this lesson, you should be able to:

  1. Use the combined gas law (and Boyle, Charles, Gay-Lussac) for a fixed amount of gas.
  2. Convert gas volumes to standard conditions, stating which standard is used.

Key Ideas

In The Ideal Gas Law you used PV=nRTPV = nRT for one set of conditions. Here a sample of gas goes from a first state (subscript 1, before) to a second state (subscript 2, after). No gas gets in or out, so nn is constant, and RR is a constant. Rearranging PV=nRTPV = nRT to PVT=nR\frac{PV}{T} = nR shows that PVT\frac{PV}{T} has the same value in both states:

P1V1T1=P2V2T2\dfrac{P_1V_1}{T_1} = \dfrac{P_2V_2}{T_2}

This is the combined gas law. Because the same quantity appears on both sides, the units of PP and VV cancel: use any pressure unit and any volume unit, as long as both states use the same one. You do not need a value of RR. The temperature is different: it must be in K, because only the Kelvin scale starts at zero (Key Idea 2).

Key idea: for a fixed amount of gas, PVT\frac{PV}{T} is constant. Write state 1 and state 2 side by side, put both temperatures in K, and keep the same pressure and volume units in both states.

1. Boyle’s Law: Pressure and Volume

If the temperature also stays constant, T1=T2T_1 = T_2 cancels from the combined gas law and leaves Boyle’s law:

P1V1=P2V2P_1V_1 = P_2V_2

Pressure and volume are inversely proportional: double the pressure and the volume halves. On a graph of VV against PP every state of the sample lies on one curve (Figure 2). Solving for the new volume gives V2=V1×P1P2V_2 = V_1 \times \frac{P_1}{P_2}: when the pressure goes up, the pressure ratio is less than 1 and the volume goes down.

Boyle’s law: volume against pressure at constant temperatureA curve drawn to scale shows the volume of a fixed gas sample falling as its pressure rises at constant temperature; the product of pressure and volume is the same, 9.1800 liter atmospheres, at every point. State 1 is at 1.35 atmospheres and 6.80 liters; state 2 is at 2.25 atmospheres and 4.080 liters.012304812P (atm)V (L)state 11.35 atm, 6.80 Lstate 22.25 atm, 4.080 LT constant
Figure 2. Boyle’s law: at constant temperature the volume falls as the pressure rises, and PVPV is the same at every point. The two states are those of Worked Example 1.

Key idea: Boyle’s law holds at constant TT and nn. Higher pressure, smaller volume.

2. Charles’s Law: Volume and Absolute Temperature

If the pressure stays constant (a balloon or a freely moving piston), P1=P2P_1 = P_2 cancels and leaves Charles’s law:

V1T1=V2T2\dfrac{V_1}{T_1} = \dfrac{V_2}{T_2}

The volume is proportional to the Kelvin temperature. Extend the straight line of volume against temperature to lower temperatures and it reaches zero volume at 0 K, which is −273.15 °C, absolute zero (Figure 3, panel (a)). A real gas liquefies long before that, but the line shows where the Kelvin scale starts.

This is why Celsius temperatures never go into a gas-law ratio. The zero of the Celsius scale is just the freezing point of water, so a ratio of Celsius temperatures means nothing. Warming a gas from 22.0 °C to 85.0 °C multiplies its volume by 1.21 (the Kelvin ratio), not by 3.86 (the Celsius ratio), as Figure 3, panel (b) shows.

Charles’s law: volume against Kelvin temperaturePanel (a): a straight line drawn to scale shows the volume of a gas sample at constant pressure rising in proportion to its Kelvin temperature. The dashed part extends the line to zero volume at 0 kelvins, minus 273.15 degrees Celsius, absolute zero. State 1 is 2.75 liters at 295.15 kelvins and state 2 is 3.337 liters at 358.15 kelvins.(a)010020030040001234T (K)V (L)state 1state 20 K, −273.15 °CP constantKelvin ratio and Celsius ratio for the same warmingPanel (b): two bars drawn to scale. Warming from 22.0 to 85.0 degrees Celsius multiplies the volume by the Kelvin ratio, 358.15 over 295.15, which is 1.21. The Celsius ratio, 85.0 over 22.0, would be 3.86, more than three times too large.(b)Warming from 22.0 °C to 85.0 °CKelvin ratio (correct)358.15 K295.15 K×1.21Celsius ratio (wrong)85.0 °C22.0 °C×3.86bars drawn to scale from 0;the volume is multiplied by the ratio
Figure 3. Panel (a): at constant pressure the volume is proportional to the Kelvin temperature; extended, the line reaches zero volume at 0 K (−273.15 °C). Panel (b): the same warming multiplies the volume by the Kelvin ratio, not the much larger Celsius ratio.

Key idea: Charles’s law holds at constant PP and nn, with TT in K. Hotter gas, larger volume.

3. Gay-Lussac’s Law and the Combined Gas Law

In a rigid container the volume cannot change. With V1=V2V_1 = V_2, the combined gas law becomes Gay-Lussac’s law: the pressure is proportional to the Kelvin temperature.

P1T1=P2T2\dfrac{P_1}{T_1} = \dfrac{P_2}{T_2}

Each of the three simple laws is the combined gas law with one more variable held constant: cross it out of both sides (Figure 4). When pressure and temperature both change, keep the full combined law. Solving it for the new volume gives one factor for each change:

V2=V1×P1P2×T2T1V_2 = V_1 \times \dfrac{P_1}{P_2} \times \dfrac{T_2}{T_1}

Check each factor against what the change should do. A higher pressure should shrink the gas, so its pressure factor must be less than 1; a higher temperature should expand it, so its temperature factor must be more than 1.

Combined (only nn constant): P1V1T1=P2V2T2\dfrac{P_1V_1}{T_1} = \dfrac{P_2V_2}{T_2}

Boyle (TT also constant): P1V1=P2V2P_1V_1 = P_2V_2

Charles (PP also constant): V1T1=V2T2\dfrac{V_1}{T_1} = \dfrac{V_2}{T_2}

Gay-Lussac (VV also constant): P1T1=P2T2\dfrac{P_1}{T_1} = \dfrac{P_2}{T_2}

Figure 4. One law, three special cases: cross out the variable that is held constant and the combined gas law becomes Boyle’s, Charles’s or Gay-Lussac’s law. Temperatures are always in K.

Key idea: cross out what is held constant. Then check that each pressure or temperature factor pushes the answer in the direction you expect.

4. Standard Conditions

A gas volume means little unless you know its pressure and temperature, so measured volumes are often corrected to a standard set of conditions. This lesson uses STP as Whitten defines it: 273.15 K (0 °C) and exactly 1 atm, which is 760 torr or 101.325 kPa. To correct a volume to STP, use the combined gas law with state 2 at STP.

Note: IUPAC defines standard pressure as 1 bar (100 kPa) at the same 273.15 K. One mole of ideal gas occupies 22.414 L at 1 atm and 22.711 L at 1 bar, about 1.3% more (Figure 5). Every problem in this lesson says which standard it uses; do the same in your answers.

STP (this lesson, Whitten): 273.15K, 1atm273.15\,\text{K},\ 1\,\text{atm}

1atm=760torr=101.325kPa1\,\text{atm} = 760\,\text{torr} = 101.325\,\text{kPa}; molar volume 22.414L/mol22.414\,\text{L/mol}

IUPAC standard: 273.15K, 1bar273.15\,\text{K},\ 1\,\text{bar}

1bar=100kPa1\,\text{bar} = 100\,\text{kPa}; molar volume 22.711L/mol22.711\,\text{L/mol}

Figure 5. Two standards at the same temperature: STP (273.15 K and 1 atm, used in this lesson) and the IUPAC standard (273.15 K and 1 bar). A gas occupies about 1.3% more volume at 1 bar, so name the standard.

Key idea: STP here is 273.15 K and 1 atm (760 torr, 101.325 kPa). The IUPAC standard is 273.15 K and 1 bar. Always name the standard.

Try it: change the conditions of a gas

Choose a law, set state 1 and state 2, and predict whether the new value will be larger, smaller or the same before the answer appears. Try the Celsius ratio to see why it fails, set state 2 to STP or to the IUPAC standard, and use the worked-example buttons to replay each example.

Loading the simulator…

5. A Strategy for Changing Conditions

Follow the roadmap in Figure 1:

  1. Make a table of state 1 and state 2 with units, and mark the unknown.
  2. Convert every temperature to K. Put both pressures in the same unit and both volumes in the same unit.
  3. Choose the law: cross out what is constant (TT for Boyle, PP for Charles, VV for Gay-Lussac; nothing but nn for the combined law).
  4. Solve for the unknown and substitute. For a standard volume, state 2 is the named standard.
  5. Check the direction of every factor, and round the answer to 3 significant figures.

Exam tip: predict before you calculate. Decide whether the new volume, pressure or temperature should be larger or smaller; if your answer moves the other way, a ratio is upside down.

Worked Example 1: Compressing a Gas (Boyle’s Law)

Problem: A cylinder with a movable piston holds 6.80 L of helium at 1.35 atm. At constant temperature the piston pushes in until the pressure is 2.25 atm. What is the new volume, in L?

Step 1. List the two states. The temperature and the amount of gas are constant, so use Boyle’s law. Both pressures are in atm.

P1=1.35atmV1=6.80LP2=2.25atmV2=?\begin{aligned} P_1 &= 1.35\,\text{atm} \\ V_1 &= 6.80\,\text{L} \\ P_2 &= 2.25\,\text{atm} \\ V_2 &= ? \end{aligned}

Step 2. Predict. The pressure goes up, so the volume must go down.

Step 3. Solve P1V1=P2V2P_1V_1 = P_2V_2 for V2V_2 and substitute. The atm cancel, leaving L.

V2=V1×P1P2=6.80L×1.35atm2.25atm=4.080L=4.08L\begin{aligned} V_2 &= V_1 \times \dfrac{P_1}{P_2} \\ &= 6.80\,\text{L} \times \dfrac{1.35\,\text{atm}}{2.25\,\text{atm}} \\ &= 4.080\,\text{L} = 4.08\,\text{L} \end{aligned}

Final Answer: 4.08 L

Check: the pressure factor, 0.600, is less than 1, so the volume went down, as predicted.

  1. State 11.35atm, 6.80L1.35\,\text{atm},\ 6.80\,\text{L}
  2. ×1.35atm2.25atm\times \dfrac{1.35\,\text{atm}}{2.25\,\text{atm}}Steps 1 to 3: P up to 2.25 atm: factor below 1
  3. New volumeV2=4.080L=4.08LV_2 = 4.080\,\text{L} = 4.08\,\text{L}smaller, as predicted
Figure 6. Worked Example 1: the pressure rises at constant temperature, so the volume is multiplied by a pressure factor less than 1.

Your turn: Boyle’s law

Same steps as Worked Example 1: list both states, predict, then use P1V1=P2V2P_1V_1 = P_2V_2 (the unknown may be a volume or a pressure).

Loading the practice problem…

Worked Example 2: Warming a Balloon (Charles’s Law)

Problem: A balloon holds 2.75 L of air at 22.0 °C. It is warmed to 85.0 °C at constant pressure. What is its new volume, in L?

Step 1. Convert both temperatures to K.

T1=(22.0+273.15)K=295.15KT2=(85.0+273.15)K=358.15K\begin{aligned} T_1 &= (22.0 + 273.15)\,\text{K} = 295.15\,\text{K} \\ T_2 &= (85.0 + 273.15)\,\text{K} = 358.15\,\text{K} \end{aligned}

Step 2. Predict. The pressure is constant and the gas gets hotter, so use Charles’s law; the volume must go up.

Step 3. Solve V1T1=V2T2\frac{V_1}{T_1} = \frac{V_2}{T_2} for V2V_2 and substitute. The K cancel, leaving L.

V2=V1×T2T1=2.75L×358.15K295.15K≈3.337L≈3.34L\begin{aligned} V_2 &= V_1 \times \dfrac{T_2}{T_1} \\ &= 2.75\,\text{L} \times \dfrac{358.15\,\text{K}}{295.15\,\text{K}} \\ &\approx 3.337\,\text{L} \approx 3.34\,\text{L} \end{aligned}

Final Answer: 3.34 L

Check: the temperature factor, 1.21, is more than 1, so the volume went up, as predicted. Using the Celsius temperatures would give 10.6 L, nearly four times the starting volume, which is far too large for a modest warming.

  1. Temperatures22.0°C→85.0°C22.0\,\text{°C} \rightarrow 85.0\,\text{°C}
  2. +273.15+ 273.15Step 1: both to kelvins
  3. Temperatures in K295.15K→358.15K295.15\,\text{K} \rightarrow 358.15\,\text{K}
  4. ×358.15K295.15K\times \dfrac{358.15\,\text{K}}{295.15\,\text{K}}Steps 2 and 3: V₁ 2.75 L; factor above 1
  5. New volumeV2≈3.337L≈3.34LV_2 \approx 3.337\,\text{L} \approx 3.34\,\text{L}larger, as predicted
Figure 7. Worked Example 2: both temperatures in K, then a temperature factor greater than 1 for a warming at constant pressure.

Your turn: Charles’s law

Same steps as Worked Example 2: both temperatures to K, predict, then V1T1=V2T2\frac{V_1}{T_1} = \frac{V_2}{T_2} (the unknown may be a volume or a temperature; give a temperature in K).

Loading the practice problem…

Worked Example 3: Pressure and Temperature Both Change

Problem: A weather balloon holds 485 mL of helium at 96.5 kPa and 28.5 °C. A test chamber changes the conditions to 185 kPa and −15.5 °C. What is the new volume, in mL?

Step 1. Convert both temperatures to K. Both pressures are in kPa.

T1=(28.5+273.15)K=301.65KT2=(−15.5+273.15)K=257.65K\begin{aligned} T_1 &= (28.5 + 273.15)\,\text{K} = 301.65\,\text{K} \\ T_2 &= (-15.5 + 273.15)\,\text{K} = 257.65\,\text{K} \end{aligned}

Step 2. Predict. Only the amount of gas is constant, so use the combined gas law. The pressure goes up and the temperature goes down: both changes shrink the gas.

Step 3. Solve P1V1T1=P2V2T2\frac{P_1V_1}{T_1} = \frac{P_2V_2}{T_2} for V2V_2 and substitute. The kPa and the K cancel, leaving mL.

V2=V1×P1P2×T2T1=485mL×96.5kPa185kPa×257.65K301.65K≈216.1mL≈216mL\begin{aligned} V_2 &= V_1 \times \dfrac{P_1}{P_2} \times \dfrac{T_2}{T_1} \\ &= 485\,\text{mL} \times \dfrac{96.5\,\text{kPa}}{185\,\text{kPa}} \\ &\times \dfrac{257.65\,\text{K}}{301.65\,\text{K}} \\ &\approx 216.1\,\text{mL} \approx 216\,\text{mL} \end{aligned}

Final Answer: 216 mL

Check: both factors are less than 1, so the volume went down, as predicted.

If the volume does not change, VV cancels and this is Gay-Lussac’s law, P1T1=P2T2\frac{P_1}{T_1} = \frac{P_2}{T_2}: the same steps then give a new pressure or a new temperature.

  1. Temperatures28.5°C→−15.5°C28.5\,\text{°C} \rightarrow -15.5\,\text{°C}
  2. +273.15+ 273.15Step 1: both to kelvins
  3. Temperatures in K301.65K→257.65K301.65\,\text{K} \rightarrow 257.65\,\text{K}
  4. 485mL×96.5kPa185kPa485\,\text{mL} \times \dfrac{96.5\,\text{kPa}}{185\,\text{kPa}}Step 3: P up: factor below 1
  5. After the pressure factor253.0mL253.0\,\text{mL}rounded to 4 s.f.
  6. ×257.65K301.65K\times \dfrac{257.65\,\text{K}}{301.65\,\text{K}}Step 3: T down: factor below 1
  7. New volumeV2≈216.1mL≈216mLV_2 \approx 216.1\,\text{mL} \approx 216\,\text{mL}smaller, as predicted
Figure 8. Worked Example 3: temperatures in K, then one factor for the pressure change and one for the temperature change; both shrink the gas.

Your turn: the combined gas law

Same steps as Worked Example 3: both temperatures to K, predict the effect of each change, then solve the combined gas law for the unknown.

Loading the practice problem…

Worked Example 4: Correcting a Volume to STP

Problem: A student collects 3.65 L of hydrogen at 742 torr and 24.5 °C. What volume would the gas occupy at STP (273.15 K and 1 atm), in L?

Step 1. Write state 2 as the standard and convert the measured temperature to K. Use 760 torr for 1 atm so that both pressures are in torr.

T1=(24.5+273.15)K=297.65KP2=760torrT2=273.15K\begin{aligned} T_1 &= (24.5 + 273.15)\,\text{K} = 297.65\,\text{K} \\ P_2 &= 760\,\text{torr} \\ T_2 &= 273.15\,\text{K} \end{aligned}

Step 2. Predict. The pressure rises a little and the temperature drops, so the volume must go down.

Step 3. Solve the combined gas law for V2V_2 and substitute. The torr and the K cancel, leaving L.

V2=V1×P1P2×T2T1=3.65L×742torr760torr×273.15K297.65K≈3.270L≈3.27L\begin{aligned} V_2 &= V_1 \times \dfrac{P_1}{P_2} \times \dfrac{T_2}{T_1} \\ &= 3.65\,\text{L} \times \dfrac{742\,\text{torr}}{760\,\text{torr}} \\ &\times \dfrac{273.15\,\text{K}}{297.65\,\text{K}} \\ &\approx 3.270\,\text{L} \approx 3.27\,\text{L} \end{aligned}

Final Answer: 3.27 L at STP (273.15 K and 1 atm)

At the IUPAC standard (273.15 K and 1 bar), P2P_2 is 100 kPa. Converting 742 torr gives 98.93 kPa (rounded to 4 significant figures; the unrounded value gives the same answer), and the volume is 3.314L≈3.31L3.314\,\text{L} \approx 3.31\,\text{L}, about 1.3% larger. The two standards give different answers, so always say which one you used.

  1. Measured state3.65L, 742torr, 24.5°C3.65\,\text{L},\ 742\,\text{torr},\ 24.5\,\text{°C}
  2. +273.15+ 273.15Step 1: state 2 is STP
  3. Standard stateP2=760torr, T2=273.15KP_2 = 760\,\text{torr},\ T_2 = 273.15\,\text{K}STP: 273.15 K and 1 atm
  4. ×742torr760torr\times \dfrac{742\,\text{torr}}{760\,\text{torr}} ×273.15K297.65K\times \dfrac{273.15\,\text{K}}{297.65\,\text{K}}Steps 2 and 3: T₁ 297.65 K; both factors below 1
  5. Volume at STPV2≈3.270L≈3.27LV_2 \approx 3.270\,\text{L} \approx 3.27\,\text{L}smaller, as predicted
Figure 9. Worked Example 4: state 2 is STP (273.15 K and 1 atm, written as 760 torr), so the measured volume is multiplied by a pressure factor and a temperature factor.

Your turn: a volume at standard conditions

Same steps as Worked Example 4: state 2 is the named standard, temperatures in K, the same pressure unit in both states. Read which standard each problem uses.

Loading the practice problem…

Common Mistakes

Throughout, keep at least 4 significant figures in intermediate values and round only the final answer to 3.

Common mistake: Using Celsius temperatures in a ratio. In Worked Example 2, 85.022.0\frac{85.0}{22.0} gives 10.6 L instead of 3.34 L. In Worked Example 3 a Celsius ratio would even give a negative volume, which is impossible. Add 273.15 to every temperature first.

Common mistake: Turning a ratio upside down. In Worked Example 1, V1×P2P1V_1 \times \frac{P_2}{P_1} gives 11.3 L: a larger volume at a higher pressure, which cannot be right. In Worked Example 2 the inverted temperature ratio gives 2.27 L for a gas that was warmed. Predict the direction first, then check each factor.

Common mistake: Leaving out the temperature change. In Worked Example 3, using only the pressure factor gives 253 mL. Both the pressure and the temperature changed, so the combined gas law needs both factors.

Common mistake: Leaving out the pressure change. In Worked Example 3, using only the temperature factor gives 414 mL. Include every variable that changes.

Common mistake: Using 298.15 K as the standard temperature. Standard temperature is 273.15 K (0 °C), not room temperature. In Worked Example 4, using 298.15 K gives 3.57 L instead of 3.27 L.

Common mistake: Mixing pressure units. In Worked Example 4, P1P_1 is in torr, so 1 atm must be written as 760 torr. Writing 1 for P2P_2 while P1P_1 is in torr would make the volume 760 times too large.

Key Takeaway

For a fixed amount of gas, P1V1T1=P2V2T2\frac{P_1V_1}{T_1} = \frac{P_2V_2}{T_2}. Hold TT constant and it becomes Boyle’s law; hold PP constant and it becomes Charles’s law; hold VV constant and it becomes Gay-Lussac’s law. Temperatures must be in K; pressures and volumes need only the same unit in both states. To correct a volume to standard conditions, make state 2 the standard and say which one: STP here is 273.15 K and 1 atm; the IUPAC standard is 273.15 K and 1 bar.

Practice: randomized problems

Each problem below uses fresh numbers every time and mixes every kind of problem in this lesson: work it out, check your answer, then open the worked solution to compare your steps.

Loading the practice problem…

Your results

This summary collects every practice problem you try on this page and suggests what to review next.

Loading your results…

Figures and simulator: original work by Dr. Ray’s Learning Center, licensed CC BY 4.0. Data: Whitten, Davis, Peck and Stanley, Chemistry, 9th ed. (Brooks/Cole, Cengage Learning, 2010), Section 12-4 (pp. 406 to 409) for Boyle’s law; Section 12-5 (pp. 409 to 411) for Charles’s law, absolute zero and the Kelvin scale; Section 12-6 (p. 411) for standard temperature and pressure; Section 12-7 (pp. 412 to 413) for the combined gas law and Gay-Lussac’s law. Standard molar volumes (Figure 5): from R = NAk, the 2019 SI defining constants (CODATA 2022, NIST). The simulator and the practice problems are audited; see the lesson audit log.