The Ideal Gas Law Explained -- PV = nRT Made Simple

Understand the ideal gas law, what each variable means, and how to solve problems using PV = nRT with real examples.

What is the Ideal Gas Law?

The ideal gas law is one of the most fundamental equations in chemistry and physics. It describes the relationship between pressure, volume, temperature, and the amount of gas in a container. The equation looks simple at first glance:

PV = nRT

But behind those four letters lies a powerful principle that helps scientists, engineers, and technicians solve real-world problems every day. Whether you're inflating a tire, scuba diving, or working in a laboratory, understanding this formula gives you insight into how gases behave under different conditions.

The ideal gas law isn't just theoretical. It works because it makes one key assumption: the gas molecules are far enough apart that they don't interact with each other, and the volume of the molecules themselves is negligible compared to the container. This assumption holds true for most everyday situations, which is why the formula is so useful.

Breaking Down Each Variable

To use the ideal gas law effectively, you need to understand what each letter represents.

P = Pressure

Pressure is the force that gas molecules exert on the walls of their container. When you fill a balloon with air, the air molecules are bouncing around inside, hitting the balloon's walls. That continuous bombardment creates pressure.

Pressure can be measured in several units: atmospheres (atm), pascals (Pa), bars, or pounds per square inch (psi). For the ideal gas law, you typically use atmospheres (atm) or pascals (Pa). Understanding your units is critical because using the wrong unit will make your answer completely wrong.

V = Volume

Volume is the space the gas occupies, measured in liters (L) or cubic meters (m3). A 2-liter soda bottle holds 2 liters of space. A car tire might have a volume of 30 liters. Gases expand to fill whatever container holds them, so the volume in the equation is the volume of the container, not the "volume of the gas" itself.

n = Number of Moles

A mole is a unit that measures the amount of substance. One mole of any substance contains 6.022 x 10^23 particles (Avogadro's number). For gases, one mole of any ideal gas at the same temperature and pressure occupies about 22.4 liters.

To find the number of moles, divide the mass of the gas by its molar mass. For example, oxygen gas (O2) has a molar mass of 32 grams per mole. If you have 64 grams of oxygen, that's 2 moles.

T = Temperature

Temperature must always be in Kelvin (K) when using the ideal gas law. This is non-negotiable. Kelvin is an absolute temperature scale where 0 K is absolute zero, the lowest possible temperature.

To convert Celsius to Kelvin, add 273.15. So room temperature (20 degrees Celsius) equals 293.15 K. This is crucial because the ideal gas law works with ratios of temperatures, and those ratios only make physical sense with an absolute scale.

R = Gas Constant

The gas constant is a proportionality constant that connects all the other variables. Its value depends on your units:

  • R = 0.0821 Latm/(molK) - use this when P is in atm and V is in liters
  • R = 8.314 J/(mol*K) - use this when working in SI units
  • R = 62.364 LmmHg/(molK) - use this when P is in millimeters of mercury

Choosing the correct R value for your units is essential. Mismatched units are the most common mistake when solving ideal gas law problems.

Solving for Different Variables

The beauty of PV = nRT is that you can rearrange it to solve for any variable if you know the other three.

Solve for P: P = nRT/V

Solve for V: V = nRT/P

Solve for n: n = PV/(RT)

Solve for T: T = PV/(nR)

The process is always the same: identify what you know, identify what you need to find, pick the correct form of the equation, and plug in your numbers with careful attention to units.

Worked Example 1: Inflating a Car Tire

Let's say you're filling a car tire with an air compressor. The tire has a volume of 40 liters, and you want the pressure inside to reach 2.0 atmospheres. The air temperature is 25 degrees Celsius (298 K). How many moles of air do you need to pump into the tire?

Using n = PV/(RT):

n = (2.0 atm * 40 L) / (0.0821 Latm/(molK) * 298 K)

n = 80 / 24.47

n = 3.27 moles

To put this in perspective, 3.27 moles of air weighs about 95 grams. That's the amount of air a typical car tire needs.

Worked Example 2: A Scuba Diving Tank

A scuba diver has a tank containing 10 liters of compressed air at 200 atmospheres. The water temperature during the dive is 10 degrees Celsius (283 K). How many moles of air are in the tank?

Using n = PV/(RT):

n = (200 atm * 10 L) / (0.0821 Latm/(molK) * 283 K)

n = 2000 / 23.23

n = 86.1 moles

This represents a huge amount of air because it's compressed to 200 atmospheres. When the diver breathes this air, the regulator reduces the pressure, and the air expands, providing breathable air at depth.

Worked Example 3: A Weather Balloon

A weather balloon contains 500 liters of helium at sea level (1.0 atmosphere) and 20 degrees Celsius (293 K). As the balloon rises, the external pressure drops. When the external pressure reaches 0.5 atmospheres, and the gas temperature drops to 0 degrees Celsius (273 K), what is the new volume of the balloon?

This requires the combined gas law because multiple variables are changing. The combined gas law is:

(P1V1)/T1 = (P2V2)/T2

(1.0 * 500) / 293 = (0.5 * V2) / 273

V2 = (1.0 * 500 * 273) / (293 * 0.5)

V2 = 931 liters

The balloon expands to nearly twice its original volume as the external pressure decreases, even though the temperature drops.

When Does the Ideal Gas Law Break Down?

The ideal gas law works wonderfully for most situations, but it has limits. It assumes gas molecules don't interact with each other and occupy negligible volume. These assumptions fail under extreme conditions:

High Pressure: When you compress a gas to very high pressures (hundreds of atmospheres), the molecules get so close together that the volume they occupy becomes significant compared to the container. The van der Waals equation accounts for this.

Low Temperature: As temperature approaches absolute zero, gases liquefy and become incompressible. The ideal gas law no longer applies because the gas phases transitions to liquid.

Polar Gases: Some gases, like ammonia or water vapor, have molecules that attract each other. These intermolecular forces violate the ideal gas assumption.

For most practical applications below about 10 atmospheres and above about 200 Kelvin, the ideal gas law gives accurate results within 5 percent.

Real-World Applications

The ideal gas law appears everywhere in practical work:

  • HVAC Systems: Engineers calculate how much heating or cooling is needed by understanding how temperature changes affect gas volume in ducts.
  • Industrial Manufacturing: Chemical plants use the ideal gas law to determine reactor volumes and pressures needed for efficient production.
  • Medical Oxygen: Hospitals calculate oxygen tank contents and flow rates using gas law principles.
  • Weather Prediction: Meteorologists use the ideal gas law to model atmospheric behavior and predict weather patterns.
  • Pneumatic Tools: Air compressors, nail guns, and paint sprayers all rely on gas behavior described by PV = nRT.

Final Thoughts

The ideal gas law is deceptively simple but incredibly powerful. By understanding the relationships between pressure, volume, temperature, and the amount of gas, you can predict how gases will behave in countless situations. Keep your units consistent, remember that temperature must be in Kelvin, and always double-check your math.

Most importantly, recognize that the ideal gas law is a model that works in most everyday situations but breaks down under extreme conditions. Real gases behave slightly differently, but those differences are usually small enough to ignore. That's what makes the ideal gas law so valuable: it's simple enough to use quickly, but accurate enough to solve real problems.

Related Tools