Ideal Gas Law and Gas Properties
Master the ideal gas law, gas law calculations, partial pressures, kinetic molecular theory, and real gas behavior.
Try the Interactive Version!
Learn step-by-step with practice exercises built right in.
Ideal Gas Law and Gas Properties
The Ideal Gas Law
The most important equation in gas chemistry:
Where:
- = pressure (usually atm, but can be kPa, mmHg, torr)
- = volume (usually L)
- = number of moles
- = ideal gas constant
- = temperature (must be in Kelvin!)
Gas Constant (R) Values
Most common:
Other values (less common):
Choose R based on units of pressure and volume!
Standard Temperature and Pressure (STP)
Definition:
- Temperature: 0°C = 273.15 K
- Pressure: 1 atm = 101.3 kPa = 760 mmHg = 760 torr
At STP, one mole of any ideal gas occupies:
This is a useful conversion factor!
Using PV = nRT
The ideal gas law connects all four variables
If you know any 3, you can find the 4th:
Example problems:
- Know P, V, T → find n (moles)
- Know n, T, P → find V (volume)
- Know n, V, P → find T (temperature)
- Know n, V, T → find P (pressure)
Key conversions:
- Temperature: °C + 273.15 = K
- Pressure: 1 atm = 760 mmHg = 101.3 kPa
- Volume: Usually given in L (if not, convert!)
Gas Density and Molar Mass
Density of a gas can be related to molar mass
Starting with PV = nRT:
Where:
- = mass (g)
- = molar mass (g/mol)
Substitute into ideal gas law:
Rearrange for density:
Key relationships:
- Higher molar mass → Higher density (at same T and P)
- Higher temperature → Lower density (at same P and M)
- Higher pressure → Higher density (at same T and M)
Why this is useful:
- Calculate molar mass from density measurements
- Predict relative densities of different gases
- Explain why hot air rises (lower density)
Combined Gas Law
When amount of gas (n) is constant:
This combines:
- Boyle's Law: (constant T and n)
- Charles's Law: (constant P and n)
- Gay-Lussac's Law: (constant V and n)
Use when:
- Gas undergoes change in conditions
- Amount of gas stays the same
- Need to find final state from initial state
Special cases:
Constant temperature (isothermal):
(Boyle's Law)
Constant pressure (isobaric):
(Charles's Law)
Constant volume (isochoric):
(Gay-Lussac's Law)
Dalton's Law of Partial Pressures
In a mixture of gases, each gas exerts pressure independently
Total pressure = Sum of partial pressures:
For each gas in the mixture:
Where:
- = partial pressure of gas i
- = mole fraction of gas i
- = total pressure
Mole fraction:
Key concept: Each gas behaves as if it alone occupies the entire volume
Application: Collecting Gas Over Water
Common lab technique:
- Gas produced in reaction bubbles through water
- Collected gas is mixture of desired gas + water vapor
Pressure relationship:
Where:
- = atmospheric pressure
- = partial pressure of collected gas
- = vapor pressure of water (depends on temperature)
To find amount of dry gas:
Then use ideal gas law with :
Water vapor pressure at common temperatures:
| Temp (°C) | P(H₂O) mmHg | |-----------|-------------| | 20 | 17.5 | | 25 | 23.8 | | 30 | 31.8 | | 35 | 42.2 |
Kinetic Molecular Theory (KMT)
Model explaining ideal gas behavior
Five Postulates
1. Gas particles are in constant, random motion
- Particles move in straight lines until collision
- Collisions are perfectly elastic (no energy lost)
2. Gas particles have negligible volume
- Volume of particles << volume of container
- Most of gas volume is empty space
3. No attractive or repulsive forces between particles
- Particles don't interact except during collisions
- Move independently
4. Average kinetic energy proportional to absolute temperature
Or for a single molecule:
Where:
- = mass of particle
- = velocity
- = Boltzmann constant =
Higher temperature → Higher average KE → Faster particles
5. Collisions are perfectly elastic
- Total kinetic energy conserved
- Energy transferred between particles
- No energy lost to heat, sound, etc.
Implications of KMT
Temperature and KE:
- At same T, all gases have same average KE
- Lighter gases move faster (same KE, less mass)
Root-mean-square speed:
Where:
- = 8.314 J/(mol·K)
- = temperature (K)
- = molar mass (kg/mol)
Relationships:
- (higher T → faster)
- (lighter → faster)
At same temperature:
- He atoms move faster than O₂ molecules
- All have same average KE
Maxwell-Boltzmann Distribution
Not all particles have same speed!
Distribution of molecular speeds:
- Some particles very slow
- Most particles near average
- Some particles very fast
- Shape depends on temperature and molar mass
Effects of temperature:
- Higher T → distribution shifts right (faster average)
- Higher T → distribution broadens (wider range)
- Peak becomes lower and flatter
Effects of molar mass:
- Lower M → distribution shifts right (faster)
- Lower M → distribution broadens
Effusion and Diffusion
Graham's Law of Effusion
Effusion: Gas escapes through tiny hole into vacuum
Rate of effusion inversely proportional to square root of molar mass:
Lighter gases effuse faster
Example: He effuses faster than N₂
Helium effuses 2.65 times faster than nitrogen
Diffusion
Diffusion: Gas spreads through space or through another gas
Also follows Graham's Law (approximately):
- Lighter gases diffuse faster
- Same mathematical relationship
Example: Smell of perfume spreading across room
Why faster with lighter gases?
- Lighter → higher average velocity (from KMT)
- Higher velocity → spreads faster
Real Gases vs. Ideal Gases
When Do Real Gases Deviate from Ideal Behavior?
Ideal gas law assumes:
- No volume (particles are points)
- No intermolecular forces
Real gases deviate when:
1. High pressure
- Gas particles forced close together
- Volume of particles becomes significant
2. Low temperature
- Particles move slowly
- IMFs have more effect
- Particles attracted to each other
General rule:
Real gases behave most ideally at:
- Low pressure (particles far apart)
- High temperature (high KE overcomes IMFs)
Real gases deviate most at:
- High pressure (particles close)
- Low temperature (IMFs significant)
Van der Waals Equation
Correction to ideal gas law for real gases:
Pressure correction:
- Accounts for attractive forces
- Reduces effective pressure
- = strength of IMFs (larger for polar molecules)
Volume correction:
- Accounts for volume of particles
- Reduces available volume
- = size of particles (larger for bigger molecules)
Constants a and b:
- Specific to each gas
- Larger a → stronger IMFs
- Larger b → larger molecules
When van der Waals ≈ Ideal:
- Low pressure (correction terms become small)
- High temperature (KE >> IMFs)
Gas Stoichiometry
Using ideal gas law in chemical reactions
Mole Relationships
For reactions involving gases:
Mole ratios from balanced equation:
- At same T and P, volume ratios = mole ratios
- This is Avogadro's Law
Example:
At same T and P:
- 2 volumes H₂ + 1 volume O₂ → 2 volumes H₂O
- 2 moles H₂ + 1 mole O₂ → 2 moles H₂O
Problem-Solving Strategy
Given: Conditions of gas (P, V, T) and reaction
Steps:
- Use PV = nRT to find moles of given gas
- Use stoichiometry (mole ratios) to find moles of desired gas
- Use PV = nRT to find conditions of desired gas
Or use directly:
With from stoichiometry
Summary of Gas Laws
| Law | Equation | Constant | Relationship | |-----|----------|----------|--------------| | Boyle's | | T, n | Inverse (P↑V↓) | | Charles's | | P, n | Direct (T↑V↑) | | Gay-Lussac's | | V, n | Direct (T↑P↑) | | Avogadro's | | P, T | Direct (n↑V↑) | | Combined | | n | - | | Ideal | | - | All variables | | Dalton's | | - | Partial pressures | | Graham's | | - | Effusion rate |
Key Problem-Solving Tips
Always convert:
- Temperature to Kelvin (K = °C + 273.15)
- Pressure to match R (usually atm)
- Volume to match R (usually L)
Choose correct R:
- Match units to pressure and volume
- Most common: 0.0821 L·atm/(mol·K)
Partial pressures:
- Use mole fractions
- Account for water vapor when collecting gas
Real vs ideal:
- Real gases → use at low P, high T
- Deviations at high P, low T
Gas stoiometry:
- Convert to moles first
- Use mole ratios
- Convert back to gas conditions
📚 Practice Problems
1Problem 1easy
❓ Question:
A sample of nitrogen gas occupies 5.00 L at 25°C and 1.50 atm. How many moles of nitrogen are present?
💡 Show Solution
Solution:
Given:
- Volume (V) = 5.00 L
- Temperature (T) = 25°C
- Pressure (P) = 1.50 atm
Find: Number of moles (n)
Step 1: Convert temperature to Kelvin
Can round to 298 K for calculations
Step 2: Identify the appropriate gas constant
Units we have:
- P in atm ✓
- V in L ✓
- T in K ✓
Use:
Step 3: Apply ideal gas law
Solve for n:
Step 4: Substitute values
Answer:
Or: (2 sig figs)
Check reasonableness:
At STP (1 atm, 273 K):
- 1 mole occupies 22.4 L
- Our conditions: Higher P (1.50 atm) and higher T (298 K)
Higher P → compressed → less volume per mole Higher T → expanded → more volume per mole
Net effect: Roughly 0.3 mol in 5 L seems reasonable
Alternative check using proportions:
At STP: 1 mol in 22.4 L
Our gas: mol at STP
But P is 1.5× higher → compress → more moles fit And T is ~1.09× higher → expand → fewer moles fit
Net: mol ✓
Units check:
✓
Key concepts:
- Always convert temperature to Kelvin
- Match R units to given units
- Use PV = nRT when relating P, V, T, and n
- Check reasonableness against STP values
2Problem 2medium
❓ Question:
A mixture of gases contains 2.00 mol He, 3.00 mol Ne, and 5.00 mol Ar at a total pressure of 800 mmHg. Calculate: (a) the mole fraction of each gas, (b) the partial pressure of each gas.
💡 Show Solution
Solution:
Given:
- = 2.00 mol
- = 3.00 mol
- = 5.00 mol
- = 800 mmHg
Find: (a) Mole fractions, (b) Partial pressures
Part (a): Calculate mole fractions
Step 1: Find total moles
Step 2: Calculate mole fraction of each gas
Mole fraction formula:
For helium:
For neon:
For argon:
Check: Sum of mole fractions should equal 1
✓
Answer (a):
Part (b): Calculate partial pressures
Step 3: Use Dalton's Law of Partial Pressures
Relationship between mole fraction and partial pressure:
For helium:
For neon:
For argon:
Check: Sum of partial pressures should equal total pressure
✓
Answer (b):
Summary Table:
| Gas | Moles | Mole Fraction | Partial Pressure | |-----|-------|---------------|------------------| | He | 2.00 mol | 0.200 (20%) | 160 mmHg | | Ne | 3.00 mol | 0.300 (30%) | 240 mmHg | | Ar | 5.00 mol | 0.500 (50%) | 400 mmHg | | Total | 10.00 mol | 1.000 | 800 mmHg |
Key insights:
-
Mole fraction = fraction of total moles
- Dimensionless (no units)
- Always between 0 and 1
- Sum = 1.000
-
Partial pressure proportional to mole fraction
- Gas with most moles → highest partial pressure
- Ar has 50% of moles → 50% of pressure
-
Each gas behaves independently (Dalton's Law)
- He exerts 160 mmHg as if alone in container
- Ne exerts 240 mmHg as if alone in container
- Ar exerts 400 mmHg as if alone in container
- Total = sum of all partial pressures
Conceptual understanding:
Why does this work?
From ideal gas law for each gas:
Total pressure:
Ratio:
Therefore:
This is Dalton's Law!
3Problem 3hard
❓ Question:
Hydrogen gas is collected over water at 25°C and 745 mmHg atmospheric pressure. The volume of gas collected is 250.0 mL. The vapor pressure of water at 25°C is 23.8 mmHg. (a) What is the partial pressure of the dry hydrogen gas? (b) How many moles of H₂ were collected? (c) What mass of H₂ was collected?
💡 Show Solution
Solution:
Given:
- Temperature = 25°C
- Total pressure (atmospheric) = 745 mmHg
- Volume collected = 250.0 mL
- Vapor pressure of H₂O at 25°C = 23.8 mmHg
Find: (a) Partial pressure of H₂, (b) Moles of H₂, (c) Mass of H₂
Part (a): Partial pressure of dry H₂
Step 1: Understand the situation
Gas collected over water contains:
- H₂ gas (what we want)
- H₂O vapor (from evaporation)
Total pressure = sum of partial pressures (Dalton's Law):
Step 2: Solve for partial pressure of H₂
Answer (a):
This is the pressure of the DRY hydrogen gas
Part (b): Moles of H₂
Step 3: Convert units for ideal gas law
Temperature:
Pressure: Convert mmHg to atm
Volume: Convert mL to L
Step 4: Apply ideal gas law
Use:
Step 5: Calculate moles
Answer (b):
Or: (2 sig figs)
Part (c): Mass of H₂
Step 6: Convert moles to mass
Molar mass of H₂:
Mass formula:
Answer (c):
Or: (2 sig figs)
Summary of Results:
| Quantity | Value | |----------|-------| | (a) Partial pressure H₂ | 721 mmHg (0.949 atm) | | (b) Moles H₂ | 0.00970 mol | | (c) Mass H₂ | 0.0196 g (19.6 mg) |
Key Concepts and Explanations:
1. Why subtract water vapor pressure?
When collecting gas over water:
- Water evaporates into collection container
- Total pressure includes both H₂ and H₂O vapor
- Must subtract P(H₂O) to get P(dry gas)
Diagram of setup:
- Gas bubbles through water
- Collected in inverted tube over water
- Total P = P(H₂) + P(H₂O vapor)
2. Water vapor pressure depends on temperature
| Temperature | P(H₂O) | |-------------|--------| | 20°C | 17.5 mmHg | | 25°C | 23.8 mmHg | | 30°C | 31.8 mmHg |
Higher temperature → more evaporation → higher vapor pressure
3. Why use P(H₂) not P(total) in ideal gas law?
Ideal gas law for H₂ only:
If we used P(total):
- Would calculate moles of (H₂ + H₂O)
- Wrong answer!
Must use partial pressure of H₂ alone
4. Common mistakes to avoid:
❌ Using P(total) instead of P(H₂) ❌ Forgetting to convert °C to K ❌ Forgetting to convert mL to L ❌ Using wrong vapor pressure for temperature
5. Check reasonableness:
At STP: 1 mol H₂ = 22.4 L
Our conditions: ~0.01 mol in 0.25 L
Expected: mol/L
At STP: mol/L
Close! ✓ (Our P slightly lower, T slightly higher than STP)
Mass check:
- 0.01 mol × 2 g/mol = 0.02 g
- Our answer: 0.0196 g ✓
Everything checks out!
Application: This is how chemists measure amount of gas produced in reactions (like H₂ from metal + acid).