Gas Law Examples: Solved Step-by-Step

Practice with these fully worked gas law problems. Each example shows the formula, substitution, and final answer.

Ideal Gas Law Examples (PV = nRT)

Example 1: Find Pressure

Problem: 3.0 moles of an ideal gas occupy 15.0 L at 350 K. What is the pressure in atm?

Given: n = 3.0 mol, V = 15.0 L, T = 350 K, R = 0.08206 L·atm/(mol·K)
Find: P
Formula: P = nRT / V
Substitute: P = (3.0)(0.08206)(350) / 15.0
Answer: P = 86.163 / 15.0 = 5.744 atm

Example 2: Find Volume at STP

Problem: What volume does 2.5 mol of gas occupy at STP (1 atm, 273.15 K)?

Formula: V = nRT / P
Substitute: V = (2.5)(0.08206)(273.15) / 1.0
Answer: V = 56.04 L (or simply 2.5 × 22.4 = 56.0 L)

Example 3: Find Moles

Problem: A 8.0 L tank at 4.0 atm and 400 K. How many moles of gas are inside?

Formula: n = PV / RT
Substitute: n = (4.0)(8.0) / (0.08206)(400)
Answer: n = 32.0 / 32.824 = 0.9749 mol

Try these in the PV=nRT Calculator →

Combined Gas Law Examples

Example 4: Find Final Pressure

Problem: A gas at 1.0 atm, 4.0 L, 300 K is compressed to 2.0 L and heated to 450 K. Find P₂.

Formula: P₂ = P₁V₁T₂ / (T₁V₂)
Substitute: P₂ = (1.0)(4.0)(450) / (300)(2.0)
Answer: P₂ = 1800 / 600 = 3.0 atm

Example 5: Find Final Volume

Problem: P₁ = 3.0 atm, V₁ = 2.0 L, T₁ = 250 K, P₂ = 1.5 atm, T₂ = 500 K. Find V₂.

Formula: V₂ = P₁V₁T₂ / (T₁P₂)
Substitute: V₂ = (3.0)(2.0)(500) / (250)(1.5)
Answer: V₂ = 3000 / 375 = 8.0 L

Try these in the Combined Gas Law Calculator →

Boyle's Law Examples

Example 6: Compressing a Gas

Problem: A gas at 1.0 atm occupies 10.0 L. What is the pressure if compressed to 2.5 L?

Formula: P₂ = P₁V₁ / V₂
Substitute: P₂ = (1.0)(10.0) / 2.5
Answer: P₂ = 4.0 atm

Example 7: Expanding a Gas

Problem: A gas at 5.0 atm in a 3.0 L container. What volume at 1.0 atm?

Formula: V₂ = P₁V₁ / P₂
Substitute: V₂ = (5.0)(3.0) / 1.0
Answer: V₂ = 15.0 L

Try these in the Boyle's Law Calculator →

Charles's Law Examples

Example 8: Heating a Gas

Problem: A gas occupies 5.0 L at 300 K. What volume at 600 K?

Formula: V₂ = V₁T₂ / T₁
Substitute: V₂ = (5.0)(600) / 300
Answer: V₂ = 10.0 L (doubled, as expected)

Example 9: Converting °C to K

Problem: V₁ = 2.0 L at 20°C. Find V₂ at 80°C.

Convert: T₁ = 20 + 273.15 = 293.15 K, T₂ = 80 + 273.15 = 353.15 K
Formula: V₂ = V₁T₂ / T₁
Substitute: V₂ = (2.0)(353.15) / 293.15
Answer: V₂ = 2.409 L

Try these in Charles's Law Calculator →

Gay-Lussac's Law Example

Example 10: Heating a Sealed Container

Problem: A sealed can has P₁ = 1.0 atm at 300 K. What is the pressure at 450 K?

Formula: P₂ = P₁T₂ / T₁
Substitute: P₂ = (1.0)(450) / 300
Answer: P₂ = 1.5 atm

Example 11: Cooling a Sealed Container

Problem: A rigid tank holds gas at 4.0 atm and 500 K. The tank cools to 250 K. Find P₂.

Formula: P₂ = P₁T₂ / T₁
Substitute: P₂ = (4.0)(250) / 500
Answer: P₂ = 2.0 atm

Try in Gay-Lussac's Calculator →

Dalton's Law Examples

Example 12: Total Pressure of a Gas Mixture

Problem: A mixture contains 0.50 atm N₂, 0.30 atm O₂, 0.15 atm Ar. Find P_total.

Formula: P_total = P(N₂) + P(O₂) + P(Ar)
Substitute: P_total = 0.50 + 0.30 + 0.15
Answer: P_total = 0.95 atm

Example 13: Finding a Partial Pressure from Mole Fraction

Problem: A gas mixture at 2.0 atm total pressure contains 40% O₂ by moles. Find the partial pressure of O₂.

Given: P_total = 2.0 atm, X(O₂) = 0.40
Formula: P(O₂) = X(O₂) × P_total
Substitute: P(O₂) = 0.40 × 2.0
Answer: P(O₂) = 0.80 atm

Try in Dalton's Law Calculator →

Avogadro's Law Example

Example 14: Doubling the Moles

Problem: A container holds 2.0 mol of gas occupying 44.8 L at constant T and P. If 3.0 more moles are added (total 5.0 mol), what is the new volume?

Given: V₁ = 44.8 L, n₁ = 2.0 mol, n₂ = 5.0 mol
Formula: V₂ = V₁ × n₂ / n₁
Substitute: V₂ = (44.8)(5.0) / 2.0
Answer: V₂ = 112.0 L

Try in Avogadro's Law Calculator →

Tips for Solving Gas Law Problems

  1. Identify the law: Determine which variables are given and what is constant. This tells you which gas law to use.
  2. Convert to Kelvin: All gas law calculations require absolute temperature. K = °C + 273.15. Never use °C or °F directly in formulas.
  3. Check unit consistency: Make sure pressure and volume units match the R constant you are using. If unsure, convert everything to atm and liters and use R = 0.08206.
  4. Rearrange before substituting: Solve the formula algebraically for the unknown variable first, then plug in numbers. This reduces arithmetic errors.
  5. Sanity check your answer: Does the result make physical sense? If you compressed a gas, the pressure should increase. If you heated a gas at constant pressure, the volume should increase.

Use our Gas Law Formulas reference to quickly find the right equation. For unit guidance, see PV=nRT Units.

Frequently Asked Questions

  • Follow these steps: (1) Identify which gas law to use based on what's constant. (2) Convert all temperatures to Kelvin. (3) Make sure units are consistent. (4) Rearrange the formula for the unknown. (5) Plug in values and calculate.

  • The most common mistake is forgetting to convert temperature to Kelvin. Gas law formulas require absolute temperature (Kelvin). Using °C or °F directly will give wrong answers.