When you study gases in chemistry, one equation stands above the rest: PV = nRT. This simple formula connects pressure, volume, temperature, and amount of substance. If you can master it, you gain the ability to predict how a gas will behave in nearly any situation. Whether you are filling a balloon, analyzing a car engine, or solving a textbook problem, the ideal gas law is your go to tool. In this guide we will break it down step by step so you can use it with confidence in 2026 and beyond.
The ideal gas law (PV = nRT) relates pressure, volume, moles, and temperature of an ideal gas. It combines Boyle’s, Charles’s, and Avogadro’s laws into one equation. To solve problems, convert all units to match the gas constant R (0.08206 L·atm/mol·K). Identify known variables, plug into PV = nRT, and solve for the unknown. Watch for unit mismatches and always use absolute temperature in Kelvin. Practice with varied examples to build your skill.
What is the ideal gas law?
The ideal gas law is an equation of state that describes the behavior of an ideal gas. In chemistry, we use it to find one property of a gas when we know the other three. The equation looks like this:
PV = nRT
Each symbol stands for a measurable property:
- P = pressure (usually in atmospheres, atm)
- V = volume (usually in liters, L)
- n = number of moles of gas (mol)
- T = absolute temperature (always in Kelvin, K)
- R = the ideal gas constant (0.08206 L·atm / mol·K)
The word “ideal” tells us that this law assumes gas particles take up no volume and do not attract or repel each other. Real gases come close to this behavior at low pressure and high temperature, which is why the ideal gas law works well for most classroom and lab situations.
Where does the ideal gas law come from?
You do not need to memorize the derivation, but understanding where PV = nRT comes from helps you remember it. The ideal gas law is actually four simpler gas laws combined into one:
- Boyle’s Law: At constant temperature, P and V are inversely proportional (P1V1 = P2V2).
- Charles’s Law: At constant pressure, V and T are directly proportional (V1/T1 = V2/T2).
- Avogadro’s Law: At constant temperature and pressure, V and n are directly proportional (V1/n1 = V2/n2).
- Gay-Lussac’s Law: At constant volume, P and T are directly proportional (P1/T1 = P2/T2).
When you mash these together, you get PV = nRT. The constant R ties all the units together. For a deeper look at how gas laws fit into chemical reactions, check out our guide on understanding the laws of thermodynamics and their impact on modern physics.
How to use the ideal gas law in chemistry problems
Solving ideal gas law problems is a skill you can build with a reliable process. Follow these steps every time:
-
List what you know and what you need to find. Write down the values given in the problem and label the units. For example, a problem might give you pressure in atm, volume in mL, and temperature in degrees Celsius. Circle the unknown variable.
-
Convert all units to match the gas constant R. The standard value of R is 0.08206 L·atm / mol·K. That means pressure must be in atm, volume in liters, and temperature in Kelvin. If the problem gives you pressure in mmHg or torr, convert to atm (1 atm = 760 mmHg). If volume is in mL, divide by 1000 to get liters. To convert Celsius to Kelvin, add 273.15.
-
Rearrange PV = nRT to solve for the unknown. If you need n, the equation becomes n = PV / RT. If you need P, it becomes P = nRT / V. Write the rearranged formula clearly before plugging in numbers.
-
Plug in the values and calculate. Use parentheses on your calculator to avoid order-of-operations errors. Cancel units as you go to make sure your answer has the right unit.
-
Check your answer. Does the result make sense? For example, one mole of gas at STP (0 °C, 1 atm) should occupy about 22.4 L. If your volume is way off, double check your conversions.
Common pitfalls when solving ideal gas law problems
Even experienced students trip up on the same issues. The table below shows the most frequent mistakes and how to avoid them.
| Mistake | Consequence | How to avoid |
|---|---|---|
| Using Celsius instead of Kelvin | All answers will be wrong | Always add 273.15 to Celsius temperatures |
| Using the wrong gas constant R | Number is off by a factor | Stick with R = 0.08206 for L·atm units |
| Forgetting to convert pressure units | Pressure mismatch with R | Convert mmHg, torr, or kPa to atm first |
| Mixing volume units (mL vs L) | Answer ten or a thousand times off | Convert mL to L before plugging in |
| Rearranging the equation incorrectly | Wrong formula, wrong answer | Solve algebraically before substituting numbers |
Expert advice: “Always write down your units next to every number,” says Dr. Maria Chen, a chemistry professor at a large state university. “When you see that the units cancel properly, you know you are on the right track. If they don’t cancel, you made a conversion error early on.”
For more help avoiding exam day slip ups, read our article on common chemistry mistakes that cost you points on AP exams. It covers gas law errors and many others.
When does the ideal gas law break down?
The ideal gas law is a model, and models have limits. Real gases deviate from ideal behavior under two main conditions:
- High pressure: When gas molecules are squeezed together, the volume they occupy becomes significant. They also start to feel intermolecular attractions.
- Low temperature: As temperature drops, gas molecules slow down and attractions become more important. They can even condense into a liquid.
For most chemistry problems in high school and introductory college courses, the ideal gas law is accurate enough. If you ever need to account for real gas behavior, you can use the van der Waals equation, which adds correction factors for molecular size and attraction.
Practice problems to test your understanding
Try these two problems on your own. Cover the answer side and then check yourself.
- Problem 1: A sample of nitrogen gas has a volume of 5.00 L at a pressure of 1.50 atm and a temperature of 300 K. How many moles of nitrogen are present?
Solution: Use n = PV / RT = (1.50 atm)(5.00 L) / (0.08206 L·atm/mol·K)(300 K) = 7.5 / 24.618 = 0.305 mol.
- Problem 2: What is the pressure in atm exerted by 0.500 mol of oxygen gas in a 10.0 L container at 25 °C?
Solution: First convert 25 °C to Kelvin: 25 + 273.15 = 298.15 K. Then P = nRT / V = (0.500 mol)(0.08206)(298.15 K) / (10.0 L) = (0.500 * 24.455) / 10.0 = 12.2275 / 10.0 = 1.22 atm (rounded).
If you get stuck, check your unit conversions. Many errors hide in that step.
Building long term recall for the ideal gas law
Chemistry exams often include gas law problems, and the ideal gas law appears again in later topics like stoichiometry and thermodynamics. To make the equation stick, practice with spaced repetition. Write down PV = nRT on a flash card and quiz yourself on what each variable means and its required units. For a complete study system, look at our guide on how to use spaced repetition to master stem exam material in 2026.
Your next steps toward gas law mastery
You now understand what the ideal gas law is, where it comes from, and how to use it correctly in chemistry problems. The key is consistent practice. Grab a worksheet from your textbook or search online for additional problems. Start with the easy ones where all units are ready, then move to problems that require conversion. Each time you solve one, you are building a stronger chemical intuition.
Remember, even the most experienced chemists started with PV = nRT. They just practiced until the process became second nature. You can do the same. Keep your gas constant handy, watch those units, and you will handle any ideal gas law question that comes your way.




