AP Physics 2 · Unit 9 · Topic 9.2

    9.2 The Ideal Gas Law

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    Pressure, volume, temperature and amount of an ideal gas are tied together by PV=nRT=NkBTPV = nRT = Nk_BT, with TT in kelvin. When the amount of gas is fixed, P1V1T1=P2V2T2\frac{P_1V_1}{T_1} = \frac{P_2V_2}{T_2}. A PV diagram shows the state of a gas as a point, and the work done on the gas as it changes is W=−PΔVW = -P\Delta V at constant pressure, the negative of the area under the path.

    What you need to know

    • Use PV = nRT and PV = Nk_BT to relate the state variables of an ideal gas.
    • Solve before-and-after problems for a fixed amount of gas using ratios.
    • Represent gas processes on a PV diagram.
    • Determine the work done on a gas from the area under a PV graph.

    One equation, two forms

    PV=nRT=NkBT,R=8.31 J/(mol\cdotpK)PV = nRT = Nk_BT, \qquad R = 8.31\ \text{J/(mol·K)}

    Use nn (moles) with the gas constant RR, or NN (number of molecules) with kBk_B; the two forms agree because R=NAkBR = N_Ak_B. Pressure must be in pascals, volume in cubic metres and temperature in kelvin. Example. 2.0 mol of gas at 300 K in a 0.050 m³ tank has P=nRTV=(2.0)(8.31)(300)0.050≈1.0×105P = \frac{nRT}{V} = \frac{(2.0)(8.31)(300)}{0.050} \approx 1.0 \times 10^5 Pa, about atmospheric pressure.

    The law is the large-scale version of 9.1. More molecules, or faster molecules, mean more momentum delivered to the walls per second; a bigger volume spreads the collisions over more area and makes them less frequent. Real gases follow it closely when their density is low and they are well above the temperature at which they would condense.

    Before-and-after problems

    For a sealed container, nn is fixed, so PVT\frac{PV}{T} stays constant: P1V1T1=P2V2T2\frac{P_1V_1}{T_1} = \frac{P_2V_2}{T_2}. Cross out whatever is held constant. Example. A rigid tank at 1.0×1051.0 \times 10^5 Pa is warmed from 300 K to 450 K. Volume is fixed, so P2=P1T2T1=1.5×105P_2 = P_1\frac{T_2}{T_1} = 1.5 \times 10^5 Pa. Halve the volume at constant temperature and the pressure doubles.

    The same method answers questions about the amount of gas. A bicycle pump pushing air into a tyre of fixed volume at constant temperature raises nn, and PP rises in proportion: double the number of moles and the pressure doubles. If some gas leaks out while the temperature and volume stay fixed, the pressure falls by the same fraction as the moles. In every case, decide first which of PP, VV, nn and TT are fixed, then let the equation say how the others must change.

    PV diagrams and work

    Each point is a state of the gas. The area under a path is the magnitude of the work; expansion means the gas does work, so the work done on it is negative.

    A gas pushing a piston outward by ΔV\Delta V at pressure PP does work PΔVP\Delta V on the surroundings. AP Physics 2 uses WW for the work done on the gas, so W=−PΔVW = -P\Delta V: negative for expansion, positive for compression, zero at constant volume. Example. At 2.0×1052.0 \times 10^5 Pa, expanding from 1.0×10−31.0 \times 10^{-3} m³ to 3.0×10−33.0 \times 10^{-3} m³ gives W=−(2.0×105)(2.0×10−3)=−400W = -(2.0 \times 10^5)(2.0 \times 10^{-3}) = -400 J.

    When pressure changes along the path, the magnitude of the work is still the area under the curve, which you can find from rectangles and triangles. Points on a curve PV=constantPV = \text{constant} share a temperature, so these curves, called isotherms, are useful landmarks: states further from the origin are hotter.

    Key terms

    Ideal gas law
    PV=nRT=NkBTPV = nRT = Nk_BT, relating pressure, volume, amount and absolute temperature.
    Mole
    6.02×10236.02 \times 10^{23} particles (Avogadro's number).
    PV diagram
    A graph of pressure against volume on which each point is a state of the gas.
    Isotherm
    A curve on a PV diagram along which temperature is constant, with PVPV constant.

    Common mistakes

    • Using Celsius or litres in PV = nRT.

      Use kelvin, pascals and cubic metres (1 L = 10⁻³ m³).

    • Giving positive work for an expansion.

      W is work done on the gas, so W = −PΔV is negative when the gas expands.

    • Mixing n with k_B or N with R.

      Pair moles with R and molecule counts with k_B.

    How this topic is tested

    • Write the ratio form and cross out the constant variable before substituting.
    • On a PV diagram, shade the area under the path to find |W|, then decide the sign from the direction.
    • Moving up and to the right on a PV diagram means higher temperature.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · SP 2 · Mathematical Routines

      What is the pressure of 2.0 mol of ideal gas at 300 K in 0.050 m³? (R=8.31R = 8.31 J/(mol·K))

    2. Question 2 · SP 2 · Mathematical Routines

      A sealed gas is compressed to half its volume while its kelvin temperature doubles. What happens to its pressure?

    3. Question 3 · SP 2 · Mathematical Routines

      A gas expands at constant pressure 3.0×1053.0 \times 10^5 Pa from 2.0×10−32.0 \times 10^{-3} m³ to 5.0×10−35.0 \times 10^{-3} m³. What is the work done on the gas?

    4. Question 4 · SP 1 · Creating Representations

      On a PV diagram, a gas moves straight down at constant volume. What is the work done on the gas?

    5. Question 5 · SP 3 · Scientific Questioning and Argumentation

      A rigid tank of gas is heated from 27 °C to 327 °C. By what factor does the pressure change?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Free response (calculator) · 5 points

    A cylinder with a movable piston contains 0.10 mol of ideal gas. It starts at 1.0×1051.0 \times 10^5 Pa and 2.5×10−32.5 \times 10^{-3} m³ (state A). It expands at constant pressure to 5.0×10−35.0 \times 10^{-3} m³ (state B), then is cooled at constant volume to 5.0×1045.0 \times 10^4 Pa (state C).

    1. (a) Calculate the temperature at state A.
    2. (b) Determine the temperatures at B and C.
    3. (c) Calculate the total work done on the gas from A to C.

    Connected topics

    Frequently asked questions

    Why does W have a minus sign in AP Physics 2?

    The course defines W as work done on the system, so energy added by compression is positive, matching ΔU = Q + W in 9.4.

    When does the ideal gas law fail?

    At high density or near condensation, where molecular size and attractions matter.

    Does the type of gas matter?

    Not in PV = nRT: one mole of any ideal gas at the same P and T fills the same volume.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions. See what each FRQ type asks you to do.

    Free Unit 9 cheat sheet

    Every topic in Unit 9: Thermodynamics on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Physics 2 practice material is ready. No spam, and we'll delete it if you ask.

    Full-length AP Physics 2 practice examsUnit 9 is one of 7 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Related lessons in other AP courses

    All topics in Unit 9: Thermodynamics

    1. 9.1 Kinetic Theory of Temperature and Pressure
    2. 9.2 The Ideal Gas Law
    3. 9.3 Thermal Energy Transfer and Equilibrium
    4. 9.4 The First Law of Thermodynamics
    5. 9.5 Specific Heat and Thermal Conductivity
    6. 9.6 Entropy and the Second Law of Thermodynamics

    Other units in AP Physics 2

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.