Ideal Gas LawCourse level: High School / HonorsCourse level: AP Chemistry

The Ideal Gas Law

What you'll be able to do: Use PV = nRT with consistent units to find any one gas variable, and derive the simple gas laws from it.

Introduction

One equation replaces every named gas law you may have memorised. Get the units right and PV = nRT will answer almost any single-state gas question.

These are recommended, not required. You can start this lesson at any time.

Learning objectives

  • Apply PV = nRT with a consistent set of units
  • Choose the correct value of R for the pressure unit given
  • Derive the Boyle, Charles and Avogadro relationships from the ideal gas law
  • Use the two-state form to handle a change in conditions

The equation and its constants

PV = nRT relates the four state variables of a gas sample. Use R = 0.08206 Latm/(molK) when pressure is in atmospheres, or R = 8.314 J/(mol*K) when you need energy units. Temperature is always in kelvin, obtained by adding 273.15 to a Celsius value.

Pressure and volume unitsCompatible R
atm and L0.08206 L atm mol⁻¹ K⁻¹
kPa and L8.314 L kPa mol⁻¹ K⁻¹
Pa and m³8.314 J mol⁻¹ K⁻¹
torr and LAbout 62.36 L torr mol⁻¹ K⁻¹

Because 1 L kPa = 1 J, the numerical value 8.314 works for both SI pressure-volume products listed. It does not work with atm and L without conversion. Use absolute pressure rather than a gauge pressure relative to the atmosphere. If a gauge reads 1.00 atm above an ambient 1.00 atm, the absolute pressure is 2.00 atm.

PV = nRT

Mixing kPa with the 0.08206 value of R is the single most common error in this unit. Check the units of R against the units of P before substituting.

Recovering the simple gas laws

Hold n and T constant and PV is a constant, which is the law of Boyle. Hold n and P constant and V/T is a constant, which is the law of Charles. Hold P and T constant and V/n is a constant, which is the law of Avogadro. You never need to memorise them separately.

Write PV/(nT) = R before deciding what cancels. With n and T fixed, P₁V₁ = P₂V₂. With n and P fixed, V₁/T₁ = V₂/T₂. With P and T fixed, V₁/n₁ = V₂/n₂. If the problem changes temperature as well as pressure, the one-variable version is no longer sufficient. Gas volume is proportional to kelvin temperature, not Celsius temperature, because the absolute scale tracks thermal energy.

With n and T fixed, halving the ideal-gas volume doubles pressure. The same representative particles are retained.

Changing conditions

When the same sample moves between two states, divide one form of the equation by the other. Anything held constant cancels, leaving P₁V₁/T₁ = P₂V₂/T₂. If moles also change, keep n in the expression as P₁V₁/(n₁T₁) = P₂V₂/(n₂T₂).

For a fixed sample initially at 1.00 atm, 2.00 L and 300 K, find its volume at 0.800 atm and 360 K. Rearranging gives V₂ = V₁(P₁/P₂)(T₂/T₁) = 2.00(1.00/0.800)(360/300) = 3.00 L. Both lower pressure and higher temperature favor expansion, so the direction checks. If the vessel is rigid, volume is constrained instead; do not solve for an expansion that the apparatus prevents. If gas escapes, n is not constant and must be retained.

P₁V₁/T₁ = P₂V₂/T₂

Molar mass and density

Substituting n = m/M into PV = nRT gives PM = dRT, where d is density in grams per litre. This is how a gas density measurement identifies an unknown gas, and it explains why warm air, at lower density, rises.

Density d is m/V. Substituting n = m/M into PV = nRT and dividing by volume gives P = dRT/M, so d = PM/(RT). At equal pressure and temperature, a gas with larger molar mass has greater density. A measured molar mass of about 44 g/mol is consistent with CO₂ but does not uniquely identify it; other gases or mixtures can have similar mean molar masses.

Check assumptions, units and standard conditions

Before solving, list P, V, n and T, mark the unknown, convert T to kelvin and choose a consistent R. Estimate the direction of change, then evaluate and check the output units. The ideal approximation is most useful at sufficiently low density and away from condensation.

“STP” has more than one pressure convention. At 273.15 K and 1 atm, the ideal molar volume is about 22.414 L/mol; at 273.15 K and 1 bar it is about 22.711 L/mol. Specify the convention instead of treating 22.4 L/mol as a universal constant. This course's 22.4 shortcut uses 0 °C and 1 atm. At room temperature, calculate RT/P rather than using that number.

Only absolute temperature can appear in a gas-law ratio.

Key ideas

Definition
Standard conditions

The 22.4 L/mol shortcut here uses an ideal gas at 273.15 K and 1 atm. A 1 bar standard gives about 22.7 L/mol; always state the convention.

Rule
Kelvin only

Every gas law calculation uses absolute temperature; Celsius values give nonsense ratios.

Key concept
State equation

PV = nRT describes one state of a sample, so a change needs the equation applied twice.

Equation
Density form

PM = dRT lets a density measurement give a molar mass.

Equation
Ideal gas law

PV = nRT

  • P = pressure, atm
  • V = volume, L
  • n = moles
  • R = 0.08206 Latm/(molK)
  • T = kelvin
Equation
Density form

PM = dRT

  • M = molar mass, g/mol
  • d = density, g/L

Worked examples

Worked example 1

What volume does 2.50 mol of nitrogen occupy at 1.20 atm and 35 °C?

Try it first: Convert the temperature and rearrange the equation before you reach for a calculator.

    0 of 4 steps revealed.

    Worked example 2

    A gas has a density of 1.96 g/L at 1.00 atm and 273 K. Identify its molar mass.

    Try it first: Choose between PV = nRT and PM = dRT based on the data you were given.

      0 of 4 steps revealed.

      Worked example 3

      A rigid tank is at 2.00 atm and 300 K. What is its pressure at 450 K if no gas escapes?

      Try it first: The volume and amount are unchanged.

        0 of 3 steps revealed.

        Common mistakes

        Common mistakes and better checks
        MistakeWhy it's wrongCheck instead
        Leaving temperature in °C.Ratios of Celsius values are not ratios of absolute temperature, so the answer can even be negative.Add 273.15 as the very first step of every gas problem.
        Using 22.4 L/mol at conditions other than STP.The molar volume changes with both pressure and temperature.Use PV = nRT unless the problem states standard conditions.
        Pairing R = 0.08206 with pressure in kPa or mmHg.The units of R must match the units substituted, or the result is off by a large factor.Convert pressure to atm, or switch to a value of R with matching units.

        Scroll horizontally if needed to read all columns.

        After the lesson · Question bank

        Independent practice

        Work through new problems on your own. The lesson's quick checks and worked examples stay above if you need to review a step.

        27 topic questions across 3 difficulty levels.

        Loading practice questions…

        What you should now know

        The ideal gas law links pressure, volume, moles and temperature through the gas constant R. With R = 0.08206 Latm/(molK), pressure must be in atmospheres, volume in litres and temperature in kelvin. Holding two variables fixed recovers the laws of Boyle, Charles and Avogadro, and the two-state form P₁V₁/T₁ = P₂V₂/T₂ handles changes.

        • PV = nRT covers every single-state gas calculation
        • Match the value of R to your pressure unit
        • Temperature is always in kelvin
        • P₁V₁/T₁ = P₂V₂/T₂ handles changes in conditions
        • PM = dRT converts a gas density into a molar mass

        Your next step

        Lesson: Not marked completed

        Marking a lesson completed records that you finished reading it. Practice establishes mastery separately. Saved on this device.

        Try a short set of different questions to check what you can do independently.

        Watch and Learn

        An optional video to support this lesson.

        Loading video resources…

        Supplementary learning resources

        More resources for this topic →

        External resources belong to their respective creators. Chem Help is not affiliated with or endorsed by these providers. Links open the original provider; their terms apply.

        Sources and further reading

        Source attribution for this lesson has not been verified. Missing source records do not establish originality or reuse permission.