Gas Laws Lab
Boyle's, Charles's, Gay-Lussac's, the combined gas law and PV = nRT: understand every step, and test your knowledge.
A stage is mastered when you finish all 3 of its checks and get at least 2 questions right on the first try (extra practice and Challenge Mode count too).
Learning objectives
By the end of this module you should be able to:
Need moles from grams for PV = nRT? Use the Mole Conversions Lab.
How to use the gas laws: Boyle's, Charles's, combined and PV = nRT
This gas laws calculator solves Boyle's law, Charles's law, Gay-Lussac's law, the combined gas law and the ideal gas law (PV = nRT) for any unknown. Pressures can be in atm, kPa, mmHg or torr, volumes in L or mL, and temperatures in °C or K. Every conversion is shown, including the step students forget most: changing °C to kelvin. For PV = nRT it picks the value of R that matches your pressure unit.
The lab above teaches the gas laws in five stages: units, Boyle's law, Charles's and Gay-Lussac's laws, the combined gas law, and the ideal gas law, with checks and feedback on the exact slip. It's free and needs no sign-in.
The laws in brief
- Boyle's law (temperature constant): P₁V₁ = P₂V₂. Pressure up, volume down.
- Charles's law (pressure constant): V₁/T₁ = V₂/T₂. Volume rises with kelvin temperature.
- Gay-Lussac's law (volume constant): P₁/T₁ = P₂/T₂.
- Combined gas law: P₁V₁/T₁ = P₂V₂/T₂.
- Ideal gas law: PV = nRT, with R = 0.08206 L·atm/(mol·K) or 8.314 L·kPa/(mol·K). Temperatures always in kelvin: K = °C + 273.15.
Worked example: a 2.50 L balloon heated from 25 °C to 100 °C
- Change to kelvin: T₁ = 25 + 273.15 = 298.15 K; T₂ = 100 + 273.15 = 373.15 K
- Charles's law: V₂ = V₁ × T₂ ÷ T₁ = 2.50 L × 373.15 K ÷ 298.15 K = 3.13 L
- Sense check: the gas got hotter at constant pressure, so it expanded. Using °C (2.50 × 100 ÷ 25 = 10.0 L) would be far too big.
- Ideal gas law check: 1.00 mol at 273.15 K in 22.414 L has P = nRT ÷ V = 1.00 × 0.08206 × 273.15 ÷ 22.414 = 1.00 atm.
Common mistakes
- Using °C instead of kelvin: gas laws only work with kelvin, because 0 K is a true zero and 0 °C isn't.
- Treating Boyle's law as direct: when the pressure goes up, the volume goes down.
- Getting temperature backwards: heating a gas makes its volume (or pressure) go up, not down.
- Forgetting the temperature changed: when P, V and T all change, use the combined gas law.
- Using the wrong value of R: R must match the pressure unit: 0.08206 for atm, 8.314 for kPa.
- Using mL in PV = nRT: R is in liters, so the volume must be in liters.
Questions students ask
Why must temperature be in kelvin?
Gas volume and pressure are proportional to absolute temperature, and only the kelvin scale starts at a true zero. Using °C in a ratio gives wrong answers, and divides by zero at 0 °C. Convert with K = °C + 273.15 before using any gas law.
Which gas law should I use?
Look at what stays constant. Temperature constant: Boyle's law. Pressure constant: Charles's law. Volume constant: Gay-Lussac's law. P, V and T all changing: the combined gas law. Moles involved: PV = nRT.
Which value of R do I use?
The one whose units match your pressure: 0.08206 L·atm/(mol·K) for atm, 8.314 L·kPa/(mol·K) for kPa, or 62.36 L·mmHg/(mol·K) for mmHg. The volume must be in liters.
What is STP?
Standard temperature and pressure. Many courses use 0 °C (273.15 K) and 1 atm, where 1 mole of an ideal gas fills about 22.4 L. Some use 1 bar instead, where the volume is about 22.7 L, so check your course. At STP you can change moles of gas to liters by multiplying by 22.4 L/mol.
Do pressure units matter in Boyle's law?
Only that both pressures are in the same unit. 1 atm = 101.325 kPa = 760 mmHg; the calculator converts mixed units for you and shows the step. In PV = nRT it's different: the pressure unit must match the units of R.
Guides on this topic
Everything on gas laws in one place: the topic page →
Play the game
Related calculators
Teaching the gas laws? Poll your class on it
A live poll shows you in seconds who has the idea and who doesn't. Every student answers the same question on their phone, the big screen shows the spread of answers without any names, and you see where the class is before you explain.
Ready-made questions: the three checks in each stage of this lab work well as poll questions. They're built around the slips students make most with the gas laws: leaving temperatures in °C, using an R that doesn't match the pressure units and treating Boyle's law as a direct relationship. Stage 1: Gas units: kelvin and pressure is a good place to start.
Students join at pollwithali.com with the code on the screen; no account needed. Presenter accounts are by invitation during the pilot.
The lessons in this lab, stage by stage
The text of every Learning Mode stage, to read or revise from. Open a stage to read it; open the lab above to practice it with checks, hints and feedback.
Stage 1: Gas units: kelvin and pressure
Three things describe a gas
- Pressure (P): how hard the gas pushes on its container.
- Volume (V): the space it fills, in L or mL.
- Temperature (T): how fast its particles move, always in kelvin in gas laws.
A fourth, the amount of gas (n, in moles), joins them in the ideal gas law.
Temperature: always kelvin
K = °C + 273.15
At 0 K (−273.15 °C) particles stop moving: it's a true zero. Gas volume and pressure are proportional to the kelvin temperature, so only kelvin can go into a ratio. 40 °C is not “twice as hot” as 20 °C: 313 K vs 293 K.
| °C | K |
|---|---|
| −40 | 233 |
| 0 | 273 |
| 25 (room) | 298 |
| 100 (water boils) | 373 |
Many textbooks use 273 instead of 273.15; the answers come out the same to 3 significant figures.
Pressure units
1 atm = 760 mmHg = 760 torr = 101.325 kPa
Convert with a factor that cancels the old unit: 745 mmHg × (1 atm ÷ 760 mmHg) = 0.980 atm.
These are defined values, so they don't limit significant figures.
Try it: Charles's law with °C
- Change temperatures to kelvin
Why: Gas laws need absolute temperature. 0 K is a true zero (no motion left), but 0 °C is just the freezing point of water, so °C numbers can't be put in a ratio.
T₁ = 25 °C + 273.15 = 298.15 K
T₂ = 100 °C + 273.15 = 373.15 K
- Write the law: Charles's law
Why: Pressure and the amount of gas stay the same. Volume is directly proportional to the kelvin temperature: double the kelvin temperature and the volume doubles.
V₁ ÷ T₁ = V₂ ÷ T₂
- Rearrange and solve for V₂
Why: Get the unknown on its own, then put in the numbers (temperatures in kelvin).
V₂ = V₁ × T₂ ÷ T₁
V₂ = 2.50 L × 373.15 K ÷ 298.15 K = 3.1289 L
- Sense check
Why: Each simple gas law says which way the answer should move.
The kelvin temperature went up, so the volume went up: they move together (direct relationship). ✓
- Round the answer
Why: An answer can't be more precise than the least precise number used to get it. Unit-conversion numbers (760, 273.15) are exact and don't count.
The least precise number given has 3 significant figures, so V₂ = 3.13 L.
Answer: V₂ = 3.13 L
Stage 2: Boyle's law (pressure and volume)
Boyle's law: squeeze it and the pressure rises
Boyle: P1 V1 = P2 V2. Charles: V1 over T1 = V2 over T2. Gay-Lussac: P1 over T1 = P2 over T2. Combined: P1 V1 over T1 = P2 V2 over T2.
P₁ × V₁ = P₂ × V₂
At constant temperature, pressure × volume stays the same. Halve the volume and the particles hit the walls twice as often, so the pressure doubles: an inverse relationship.
| Pressure | Volume | P × V |
|---|---|---|
| 1.00 atm | 6.00 L | 6.00 |
| 2.00 atm | 3.00 L | 6.00 |
| 3.00 atm | 2.00 L | 6.00 |
Sense check: if the pressure goes up, the volume must go down. Both pressures must be in the same unit (and both volumes).
Try it
- Write the law: Boyle's law
Why: Temperature and the amount of gas stay the same. Pressure and volume are inversely proportional: squeeze a gas into half the volume and its pressure doubles.
P₁ × V₁ = P₂ × V₂
- Rearrange and solve for V₂
Why: Get the unknown on its own, then put in the numbers (temperatures in kelvin).
V₂ = P₁ × V₁ ÷ P₂
V₂ = 1.00 atm × 5.00 L ÷ 2.50 atm = 2.0000 L
- Sense check
Why: Each simple gas law says which way the answer should move.
The pressure went up, so the volume went down: they move in opposite directions (inverse relationship). ✓
- Round the answer
Why: An answer can't be more precise than the least precise number used to get it. Unit-conversion numbers (760, 273.15) are exact and don't count.
The least precise number given has 3 significant figures, so V₂ = 2.00 L.
Answer: V₂ = 2.00 L
Stage 3: Charles's and Gay-Lussac's laws (temperature)
Heat a gas and it pushes out
Boyle: P1 V1 = P2 V2. Charles: V1 over T1 = V2 over T2. Gay-Lussac: P1 over T1 = P2 over T2. Combined: P1 V1 over T1 = P2 V2 over T2.
Charles's law (constant pressure, like a balloon): V₁ ÷ T₁ = V₂ ÷ T₂. Volume is directly proportional to kelvin temperature.
Gay-Lussac's law (constant volume, like a sealed can or a tyre): P₁ ÷ T₁ = P₂ ÷ T₂. Pressure is directly proportional to kelvin temperature.
This is why a balloon shrinks in the freezer and why aerosol cans warn you not to heat them. Change °C to K before dividing!
Try it: a heated tyre
- Change temperatures to kelvin
Why: Gas laws need absolute temperature. 0 K is a true zero (no motion left), but 0 °C is just the freezing point of water, so °C numbers can't be put in a ratio.
T₁ = 20 °C + 273.15 = 293.15 K
T₂ = 50 °C + 273.15 = 323.15 K
- Write the law: Gay-Lussac's law
Why: Volume and the amount of gas stay the same (a sealed, rigid container). Pressure is directly proportional to the kelvin temperature: heat a sealed can and its pressure rises.
P₁ ÷ T₁ = P₂ ÷ T₂
- Rearrange and solve for P₂
Why: Get the unknown on its own, then put in the numbers (temperatures in kelvin).
P₂ = P₁ × T₂ ÷ T₁
P₂ = 232 kPa × 323.15 K ÷ 293.15 K = 255.74 kPa
- Sense check
Why: Each simple gas law says which way the answer should move.
The kelvin temperature went up, so the pressure went up: they move together (direct relationship). ✓
- Round the answer
Why: An answer can't be more precise than the least precise number used to get it. Unit-conversion numbers (760, 273.15) are exact and don't count.
The least precise number given has 3 significant figures, so P₂ = 256 kPa.
Answer: P₂ = 256 kPa
Stage 4: The combined gas law
When P, V and T all change
Boyle: P1 V1 = P2 V2. Charles: V1 over T1 = V2 over T2. Gay-Lussac: P1 over T1 = P2 over T2. Combined: P1 V1 over T1 = P2 V2 over T2.
P₁V₁ ÷ T₁ = P₂V₂ ÷ T₂
The combined gas law holds only the amount of gas constant. Cross out whatever doesn't change and you get Boyle's, Charles's or Gay-Lussac's law back.
- List P₁, V₁, T₁ and P₂, V₂, T₂; mark the unknown.
- Temperatures to kelvin; matching units for each pair.
- Rearrange for the unknown, then substitute.
STP (standard temperature and pressure) in many courses means 0 °C (273.15 K) and 1 atm. Check your course: some use 1 bar.
Try it
- Change temperatures to kelvin
Why: Gas laws need absolute temperature. 0 K is a true zero (no motion left), but 0 °C is just the freezing point of water, so °C numbers can't be put in a ratio.
T₁ = 25 °C + 273.15 = 298.15 K
T₂ = 0 °C + 273.15 = 273.15 K
- Write the law: Combined gas law
Why: Only the amount of gas stays the same: pressure, volume and temperature can all change. It is Boyle's, Charles's and Gay-Lussac's laws in one equation.
P₁ × V₁ ÷ T₁ = P₂ × V₂ ÷ T₂
- Rearrange and solve for V₂
Why: Get the unknown on its own, then put in the numbers (temperatures in kelvin).
V₂ = P₁ × V₁ × T₂ ÷ (T₁ × P₂)
V₂ = 1.20 atm × 2.50 L × 273.15 K ÷ (298.15 K × 1.00 atm) = 2.7484 L
- Round the answer
Why: An answer can't be more precise than the least precise number used to get it. Unit-conversion numbers (760, 273.15) are exact and don't count.
The least precise number given has 3 significant figures, so V₂ = 2.75 L.
Answer: V₂ = 2.75 L
Stage 5: The ideal gas law (PV = nRT)
One equation for one gas sample
PV = nRT
With the moles (n) included, you need only one set of conditions. R is the gas constant; choose the R whose units match your pressure:
| Pressure in | R |
|---|---|
| atm | 0.08206 L·atm/(mol·K) |
| kPa | 8.314 L·kPa/(mol·K) |
| mmHg or torr | 62.36 L·mmHg/(mol·K) |
Volume always in liters and temperature in kelvin.
Check: 1.00 mol at 0 °C and 1.00 atm fills 22.4 L, the molar volume at STP.
Try it
- Change temperatures to kelvin
Why: Gas laws need absolute temperature. 0 K is a true zero (no motion left), but 0 °C is just the freezing point of water, so °C numbers can't be put in a ratio.
T = 25 °C + 273.15 = 298.15 K
- Write the law: Ideal gas law
Why: One state of one gas: no before and after. PV = nRT links pressure, volume, moles and kelvin temperature through the gas constant R.
P × V = n × R × T
R = 8.314 L·kPa/(mol·K) (it matches the pressure in kPa)
- Rearrange and solve for P
Why: Get the unknown on its own, then put in the numbers (temperatures in kelvin).
P = n × R × T ÷ V
P = 0.500 mol × 8.314 × 298.15 K ÷ 10.0 L = 123.94 kPa
- Round the answer
Why: An answer can't be more precise than the least precise number used to get it. Unit-conversion numbers (760, 273.15) are exact and don't count.
The least precise number given has 3 significant figures, so P = 124 kPa.
Answer: P = 124 kPa
Got grams instead of moles? Find n with the Mole Conversions Lab first.