The ideal gas law packs four quantities into one equation:

PV=nRTPV = nRT

where PP is pressure, VV is volume, nn is the amount of gas in moles, RR is the gas constant, and TT is absolute temperature in Kelvin. Know any three and you can solve for the fourth. A common chemistry value of the constant is

R=0.08206 Latmmol1K1R = 0.08206\ \mathrm{L \cdot atm \cdot mol^{-1} \cdot K^{-1}}

which is convenient when pressure is in atm and volume in liters; other units call for a matching value of RR. Reading each symbol once: PP is pressure, VV is volume, nn is moles, RR is the gas constant tying the units together, and TT is temperature in Kelvin. The fast intuition behind the equation is direct: more gas means a larger nn, hotter gas means a larger TT, and either tends to raise pressure or volume unless one of them is held fixed.

Why the equation holds, and what it assumes

PV=nRTPV = nRT is the model for an ideal gas, one whose particles have negligible volume and no intermolecular forces except during collisions. Those assumptions are why it combines the separate gas laws into one statement: Boyle's law lives in the PP-VV trade-off at fixed nn and TT, Charles's law in the VV-TT link at fixed PP and nn, and Avogadro's law in the VV-nn link at fixed PP and TT. Picture a sealed container: heat it at fixed volume and amount and pressure rises; let it expand at roughly fixed pressure and volume rises instead. The equation keeps all of those relationships in one place.

The assumptions also set the limits. The model works best at lower pressure and higher temperature, where particles are far apart, and real gases deviate more at high pressure or near condensation. And temperature must always be in Kelvin, or the answer comes out wrong.

Worked example: solving for volume

A gas sample has n=0.50 moln = 0.50\ \mathrm{mol}, T=300 KT = 300\ \mathrm{K}, and P=1.20 atmP = 1.20\ \mathrm{atm}. Find the volume with R=0.08206 Latmmol1K1R = 0.08206\ \mathrm{L \cdot atm \cdot mol^{-1} \cdot K^{-1}}. Rearrange once:

V=nRTPV = \frac{nRT}{P}

Substitute and simplify:

V=(0.50)(0.08206)(300)1.20=12.3091.2010.26 LV = \frac{(0.50)(0.08206)(300)}{1.20} = \frac{12.309}{1.20} \approx 10.26\ \mathrm{L}

So the volume is about 10.3 L10.3\ \mathrm{L}. The workflow is the lesson: pick a matching RR, keep TT in Kelvin, rearrange once, then sanity-check. A half mole at room temperature near 1 atm1\ \mathrm{atm} taking up several liters is plausible, so it passes. The same four steps handle any of the four unknowns. To solve for pressure you would rearrange to P=nRT/VP = nRT/V; for moles, n=PV/RTn = PV/RT; for temperature, T=PV/nRT = PV/nR. Only the algebra of the first rearrangement changes, while the unit discipline and the closing sanity check stay identical.

Try your own numbers

Change one value in the example and predict the effect before computing. Double the moles to n=1.0 moln = 1.0\ \mathrm{mol}, keeping TT and PP fixed, and volume should double:

V=(1.0)(0.08206)(300)1.2020.5 LV = \frac{(1.0)(0.08206)(300)}{1.20} \approx 20.5\ \mathrm{L}

which is indeed about twice 10.3 L10.3\ \mathrm{L}. To run a different set of numbers or units, try a similar case in GPAI Solver.

Calculation pitfalls

  • Using Celsius instead of Kelvin. Convert 27C27^\circ\mathrm{C} to 300 K300\ \mathrm{K} before substituting.
  • Mixing units without changing RR. Pa and m3\mathrm{m^3} need a different constant than atm and liters.
  • Treating the law as exact for every gas. It is an approximation, often very good but not equally accurate for every gas in every condition.
  • Forgetting what is held fixed. "Higher temperature means higher pressure" is only directly true at constant volume and amount.

The ideal gas law shows up in introductory chemistry, thermodynamics, gas-collection problems, lab calculations, and engineering approximations, and it is the bridge to molar volume and real-gas deviations once the four-variable relationship feels natural.

Frequently Asked Questions

What does the ideal gas law PV = nRT mean?
The ideal gas law connects four quantities in one model: pressure, volume, amount of gas in moles, and absolute temperature. If you know three of them, you can solve for the fourth. It combines the ideas behind Boyle's law, Charles's law, and Avogadro's law into a single expression, so you do not have to switch between separate gas laws.
When does the ideal gas law work well?
It works best at lower pressure and higher temperature, where gas particles are far apart and intermolecular forces matter less. The model treats particles as having negligible volume and negligible forces except during collisions. Real gases deviate more at high pressure or near condensation conditions, so the equation is an approximation, not a perfect description.
Why must temperature be in Kelvin in the ideal gas law?
The equation requires absolute temperature. If you plug in Celsius values directly, the ratios and the final answer will be wrong. Converting to Kelvin is a condition that applies to every ideal gas law calculation, so it should be the first thing you check before substituting numbers.
What value of R should you use in gas law problems?
The value of the gas constant depends on your units. A common chemistry version is 0.08206 liter-atmospheres per mole per Kelvin, which is convenient when pressure is in atmospheres and volume is in liters. If your problem uses different units, you must choose a matching value of R so the units cancel correctly.
How do you solve for volume using the ideal gas law?
Rearrange the equation to V equals nRT divided by P, then substitute. For 0.50 moles of gas at 300 Kelvin and 1.20 atmospheres, using R equal to 0.08206, the volume is 0.50 times 0.08206 times 300 divided by 1.20, which is about 10.3 liters. The workflow is rearrange first, then substitute, then simplify.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →