Work Done On vs Work Done By a Gas: AP Signs
On the AP Physics 2 equation sheet, W means the work done on the gas: the first law is delta U equals Q plus W, with W equal to minus P times delta V. So an expanding gas has negative W and a compressed gas has positive W. Work done by the gas is the same size with the opposite sign.
AP Physics: Unit 9 (topics 9.4 The First Law of Thermodynamics). This is AP Physics 2 material. Unit 9, Thermodynamics, is weighted at 15 to 18 percent of the multiple-choice section over about 10 to 16 class periods. Topic 9.4, The First Law of Thermodynamics, carries learning objective 9.4.A, describe the internal energy of a system, and learning objective 9.4.B, describe the behavior of a system using thermodynamic processes. The sign convention comes from EK 9.4.B.1.ii, which states that for a closed system the change in internal energy is the sum of energy transferred to or from the system by heating, or work done on the system, and from EK 9.4.B.1.iii, which defines the work done on a system by a constant or average external pressure as W equals minus P delta V. EK 9.4.B.2.ii adds that the absolute value of that work equals the area under a pressure against volume plot. Suggested skills for Topic 9.4 are 1.C, 2.A, 2.C and 3.C. An AP Physics 1 boundary statement under Topic 3.2 confirms that thermal transfer belongs to AP Physics 2, and neither AP Physics C sheet carries a thermal physics box.
The AP sheet settles this, and it settles it one way
Two quantities are in play and they are numerically opposite:
On the AP Physics 2 exam the bare letter always means the first one. The Table of Information's Thermal Physics symbol key defines it in words, with no ambiguity: is the work done on a system. Alongside it the key defines as energy transferred to a system by heating and as internal energy. The two equations in that box are
The CED says the same thing in prose. Essential knowledge 9.4.B.1.ii states that for a closed system, the change in internal energy is the sum of energy transferred to or from the system by heating, or work done on the system. EK 9.4.B.1.iii then defines the work term: the work done on a system by a constant or average external pressure that changes the volume of that system, for example a piston compressing a gas in a container, is defined as .
Read the minus sign as physics rather than notation. When the gas expands, is positive, so is negative: the gas pushed the piston out, spent energy doing it, and lost that energy. When the gas is compressed, is negative, so is positive: something outside pushed energy in. The sign of tells you which way energy crossed the boundary, and it always reports that from the gas's point of view.
That is the entire page. Everything below is the consequences and the ways students lose the sign anyway.
Work done on the gas vs work done by the gas, side by side
| Question you are asking | Work done ON the gas | Work done BY the gas |
|---|---|---|
| The AP symbol | , plain | Has no printed symbol; write and say so |
| Whose energy budget it belongs to | The gas | The surroundings |
| Equation on the AP Physics 2 sheet | Not printed | |
| Sign when the gas expands | Negative | Positive |
| Sign when the gas is compressed | Positive | Negative |
| Sign at constant volume | Zero | Zero |
| How it enters the first law | ||
| Relation to the other | ||
| Read off a PV diagram as | Area under the curve, sign from the direction of travel | Same area, opposite sign |
| Physical picture | Piston pushed in on the gas | Gas pushes the piston out |
| Where you meet it | The AP Physics 2 sheet and exam | Many textbooks and non-AP sources |
The row worth reading twice is the first-law row, because it is where the two conventions look like a contradiction and are not. Both equations describe the same physics. They differ only in which of the two work quantities the letter names. Substitute into the second and you recover the first exactly.
What cannot survive is mixing them, and that mixture is the defect this page exists to prevent: computing as a positive number for an expansion and then substituting it into . That produces an internal-energy change wrong by twice the work, and it usually produces a temperature change in the wrong direction as well.
The sign map, three cases and nothing else
Every constant-pressure step falls into one of three cases, and there is no fourth.
| What the gas does | on the AP sheet | Work done by the gas | Energy flow | |
|---|---|---|---|---|
| Expands | Positive | Negative | Positive | Out of the gas |
| Is compressed | Negative | Positive | Negative | Into the gas |
| Holds its volume | Zero | Zero | Zero | None by work |
The constant-volume row is the one students skip and then need. EK 9.4.B.3 lists the special thermal processes: constant volume, which the CED calls isovolumetric, constant temperature (isothermal), constant pressure (isobaric), and processes with no energy transferred through thermal processes (adiabatic). A constant-volume step does exactly zero work no matter how violently the pressure changes, because kills the product. On a PV diagram it is a vertical line, and a vertical line encloses no area.
A mnemonic that survives exam pressure: the gas is the accountant. Ask what happened to the gas's energy. Squeezed, it gained some; expanded, it spent some. Then set the sign of to match. This beats memorising "expansion is negative" as a bare rule, because the rule is what you forget at minute 68 and the picture is not.
One warning on itself. It applies when the pressure is constant, or when you are handed an average pressure to use. If the pressure varies along the path, that equation is the wrong tool and the area under the curve is the right one, which is the next section.
The area under a PV curve gives the size, never the sign
The CED is precise about this in a way that most sources are not. EK 9.4.B.2.ii says that the absolute value of the work done on a gas when the gas expands or compresses is equal to the area underneath the curve of a plot of pressure vs. volume for the gas.
That wording is doing real work. The area under a curve is a positive number: it is a pressure times a volume, and both axes are positive throughout. So the area answers "how much" and answers nothing else. You supply the sign yourself, from the direction the process runs along the volume axis.
The procedure, in the order that avoids errors:
- Find the area between the curve and the volume axis, using rectangles, triangles and trapezoids. Its units come out in joules when pressure is in pascals and volume in cubic meters.
- Look at which way the process travels. Rightward on the diagram means the volume grew, so the gas expanded.
- Attach the sign: rightward gives negative, leftward gives positive.
- Only now write .
This matters because a sloped or curved path has no single to feed into . The third worked example below runs a straight sloped path where the pressure falls as the volume grows: the area is a trapezoid, the arithmetic is easy, and the only difficulty in the whole problem is the sign.
For the full procedure on PV diagrams, including multi-step paths and cycles, the PV diagrams and the first law guide owns it. This page owns the question of which of the two work quantities you just calculated.
Why the other convention exists, and why it is not wrong
Look this up outside an AP resource and you will often meet
and a claim that is the work done by the gas. That version is not an error. It is the older engineering convention, and it exists because thermodynamics grew up around heat engines, where the useful output is the work the gas delivers to the world. Making that output the positive quantity is convenient if your job is to sell engines.
The two conventions agree on every physical prediction. They disagree on one thing only: what the letter names.
| AP Physics 2 | Common textbook and engine convention | |
|---|---|---|
| means | Work done on the gas | Work done by the gas |
| First law | ||
| Expansion of the gas | ||
| Compression of the gas | ||
| positive means | Energy in by heating | Energy in by heating |
Notice the last row. The convention for is the same in both, which is exactly why the mixed-up version is so easy to write: only one of the two terms flips, so a half-remembered rule leaves you with a plausible-looking equation that is wrong.
In the exam room, the AP sheet is the one that counts. It is printed in front of you, it defines as the work done on a system in its own symbol key, and a reader of your free-response answer marks against that definition. If a homework problem or a video uses the other one, translate it before you use it: read off the work done by the gas, flip its sign, and call the result .
Turning a question's wording into a sign
Exam questions rarely hand you " J". They describe what happened. Here is the translation table, with the signs already resolved into the AP convention.
| The question says | on the AP sheet |
|---|---|
| The gas expands against a constant pressure | Negative |
| The gas is compressed by a piston | Positive |
| The gas does J of work on its surroundings | J |
| J of work is done on the gas | J |
| The piston is locked, or the container is rigid | |
| The gas expands freely into a vacuum | , there is nothing to push against |
| The gas is heated at constant volume | , and all of goes to |
The free-expansion row is a genuine trap: the volume changes, so is not zero, yet the work is zero because the external pressure is zero. That is a reminder that carries an external pressure, not the gas's own pressure, which is what EK 9.4.B.1.iii means by "a constant or average external pressure."
Two more habits pay for themselves.
- Write down which quantity you computed, in words, next to the number. "Work done on the gas, J" costs four seconds and makes the rest of the question self-checking.
- Sanity check with the temperature. For an ideal monatomic gas, , so and always share a sign. If your signs give a compressed, insulated gas a falling temperature, the work term is backwards.
Where the confusion costs a mark
This is the specific list. Each item is a scoring event, and the first two are the reason this page exists.
- Computing the work done by the gas and substituting it into . For an expansion where the gas does J of work and absorbs J of heat, the correct answer is J. The mixed version gives J, wrong by J, which is twice the work. On a free-response question this normally loses the substitution point, the answer point, and every later point that depends on the value.
- Getting the direction of the temperature change wrong. Because and share a sign for an ideal gas, a flipped work term can turn a cooling gas into a heating one. A reasoning part that asks whether the temperature rises then fails on physics rather than arithmetic, and no partial credit survives it.
- Taking the area under a PV curve as a signed quantity. The area is a magnitude. EK 9.4.B.2.ii says so with the words "the absolute value". Read the direction of travel and attach the sign yourself.
- Using on a step where the pressure is not constant. There is no single to use. Take the area instead.
- Writing . It is final minus initial, like every other delta on the sheet. Reversing it flips every sign on the page.
- Calling the work zero because the pressure is constant. Constant pressure is the case where is easiest, not the case where it vanishes. Constant volume is the one that vanishes.
- Reporting a bare number when the question asked "by the gas". If a question asks for the work done by the gas, give it the positive J, not the sheet's J. Answer the question that was asked, and say which one you answered.
- Assuming a positive means the internal energy rose. It only does if the work term does not overwhelm it. An expanding gas can absorb heat and still cool.
What the CED asks, and what the sheet prints
This is AP Physics 2 material and only AP Physics 2 material. A boundary statement under AP Physics 1 Topic 3.2 says that course only expects students to analyze the transfer of mechanical energy, although students should be aware that mechanical energy may be dissipated in the form of thermal energy or sound, and that in AP Physics 2 students will also study how thermal energy can be transferred between systems through heating or cooling. Nothing on this page is examinable in AP Physics 1, and neither Physics C sheet carries a thermal physics box at all.
Unit 9, Thermodynamics is weighted at 15 to 18 percent of the AP Physics 2 multiple-choice section over about 10 to 16 class periods. Topic 9.4, The First Law of Thermodynamics, has two learning objectives. 9.4.A asks you to describe the internal energy of a system and carries EK 9.4.A.1 through 9.4.A.2, including that an ideal gas has no internal potential energy and that the internal energy of an ideal monatomic gas is the sum of the kinetic energies of its atoms, . 9.4.B asks you to describe the behavior of a system using thermodynamic processes and carries EK 9.4.B.1 through 9.4.B.3, which is where the sign convention, the PV diagram reading and the named processes live. Suggested skills for Topic 9.4 are 1.C, 2.A, 2.C and 3.C. Skill 3.C is justifying a claim with evidence, and a justification built on a flipped sign is worth nothing.
On the AP Physics 2 equation sheet, the Thermal Physics box prints , , , , , , and . Its symbol key spells out that is the work done on a system and that is energy transferred to a system by heating. There is no printed equation for the work done by a gas, and no printed statement of . If you want that quantity you flip the sign yourself and label it.
Going further: PV diagrams and the first law for the full procedure including cycles, heat vs work for the other half of the first law, and isothermal vs adiabatic for the two processes where one of the two terms is forced to a specific value. The CED framing is on Topic 9.4.
An isobaric expansion, and the cost of the wrong sign
A gas expands at a constant pressure of from to while absorbing J of energy by heating. Find the work done on the gas, the work done by the gas, and the change in internal energy. Then find what a student gets by using the work done by the gas in the AP form of the first law.
Find the volume change first, final minus initial: . It is positive, so the gas expanded, and you already know the sign of before computing its size.
Work done on the gas, from the sheet: . Units check: .
Work done by the gas: . The gas pushed the piston out and delivered J to the surroundings. Same number, opposite sign, different subject.
The heat term. "Absorbing J" means energy went into the gas, so . The convention is the same in every source you will meet, so nothing needs translating here.
First law, AP form: . The internal energy rose by J, so the gas got hotter, but by much less than the heat input suggests, because J of that input left again as work.
Cross-check with the other convention, which must agree: . Same answer. The two conventions are two spellings of one equation.
Now the error. A student who computes J and then writes reports . That is wrong by J, exactly twice the work, and it is wrong in a way that no units check and no order-of-magnitude check can catch: J is a perfectly plausible-looking number.
One sanity check that would have caught it. Of the J supplied, some was spent pushing the piston, so the amount left inside the gas has to be less than J. Any answer above J for an expansion with positive is impossible on inspection.
Work done on the gas is J, work done by the gas is J, and J. Both conventions give J. Feeding the work done by the gas into the AP form of the first law gives J, wrong by twice the work.
A compression, where the positive work is the whole answer
A piston compresses a gas at a constant pressure of from down to . During the compression the gas loses J of energy by heating. Find the work done on the gas, the change in internal energy, and whether the gas ends up hotter or colder.
Volume change, final minus initial: . Negative, because the gas was squeezed.
Work done on the gas: . Two minus signs, one from the equation and one from the volume change, and the result is positive. That is the compression case, and it is the one where the sheet's minus sign confuses people most, because the answer comes out positive from an equation that looks like it always produces a negative.
The heat term. "Loses J" means energy left the gas, so .
First law: .
Interpret it. The internal energy rose by J even though the gas was losing heat the whole time, because the piston was pushing energy in faster than heating was carrying it out. For an ideal gas and share a sign, so the gas ended up hotter.
Check the failure mode. A student who wrote J, treating the work as negative because the equation carries a minus sign, would get and conclude the gas cooled. That is the opposite physical claim, and on a question that asks for a justification it takes the whole part.
Physical sanity check, no algebra: you are squeezing a gas. A bicycle pump gets warm. Unless you remove a great deal of heat, compression raises the temperature, and here only J was removed against J pushed in.
The work done on the gas is J, the change in internal energy is J, and the gas ends up hotter. The compression case is where the sheet's minus sign produces a positive answer, and where reading the equation instead of the volume change flips the physical conclusion.
A sloped path, where the area is the only route to the number
A gas is taken along a straight line on a PV diagram from state A at , to state B at , . Find the work done on the gas for the path A to B, then for the reverse path B to A.
First establish that is unusable here. The pressure falls from Pa to Pa along the way, so there is no single to substitute. EK 9.4.B.1.iii applies to a constant or average external pressure; the general tool is the area.
Identify the shape. Under a straight line between two states, the region down to the volume axis is a trapezoid with parallel sides equal to the two pressures and width equal to the volume change.
Width: .
Area: . Equivalently, the average pressure is Pa and .
That J is a magnitude and nothing more. EK 9.4.B.2.ii says the absolute value of the work equals that area. Nothing about the area knows which way you travelled.
Attach the sign for A to B. The volume went from to , so the gas expanded and the path runs rightward. Expansion means the gas spent energy: , and the work done by the gas is J.
Now the reverse path, B to A. The area under the line is the identical trapezoid, so the magnitude is again J. But the volume now falls from to , a compression, so and the work done by the gas is J.
The pair is the point. One shape, one area, two answers that differ only in sign, and the sign came from the direction of travel rather than from anything you calculated. If you took a first law question on the reverse path and reused the sign from the forward path, every downstream number would be wrong by J.
The area under the line is J in both directions. For A to B the gas expands, so the work done on the gas is J and the gas does J on its surroundings. For B to A the gas is compressed, so the work done on the gas is J. The area gave the size; the direction of travel gave the sign.
Frequently asked questions
Is W on the AP Physics 2 equation sheet the work done on the gas or by the gas?
On the gas. The Thermal Physics symbol key on the AP Physics 2 Table of Information defines W in words as the work done on a system, and the two equations printed beside it are W equals minus P times delta V and delta U equals Q plus W. The CED matches: essential knowledge 9.4.B.1.iii says the work done on a system by a constant or average external pressure that changes the volume of that system is defined as W equals minus P delta V. So on the AP exam, an expanding gas has a negative W and a compressed gas has a positive W. If a source you are reading defines W the other way, translate it before you substitute.
Why is the work negative when a gas expands?
Because the gas spends energy pushing the piston outward, so energy leaves the gas, and the AP convention reports work from the gas's point of view. Written out: delta V equals final volume minus initial volume, which is positive for an expansion, and W equals minus P delta V then comes out negative. The same event described from the outside is a positive work done by the gas on its surroundings, equal in size. Both statements are true at once, and they are not in conflict, because they describe the same energy transfer from opposite sides of the boundary.
Why does my textbook write the first law as delta U equals Q minus W?
Because it defines W as the work done by the gas rather than on it. That is the older engine-oriented convention, in which the useful output of a heat engine is counted as positive. It is not wrong, and it makes identical predictions: substituting the work done by the gas as the negative of the work done on the gas turns one form into the other exactly. The convention for Q is the same in both, so only the work term flips. In the exam room, use the AP sheet, which prints delta U equals Q plus W with W as the work done on the system. The failure mode to avoid is mixing them, which produces an answer wrong by twice the work.
Is the area under a PV curve the work done on the gas or the work done by the gas?
Neither, on its own. The area is a magnitude. The AP Physics 2 CED states this precisely at essential knowledge 9.4.B.2.ii: the absolute value of the work done on a gas when the gas expands or compresses is equal to the area underneath the curve of a plot of pressure against volume. You then attach the sign from the direction the process runs. Rightward on the diagram means the volume grew, so the gas expanded and the work done on it is negative. Leftward means compression, so the work done on it is positive. A vertical line at constant volume encloses no area and does no work.
What is the sign of the work when a gas is compressed?
Positive, on the AP convention. The volume change is negative for a compression, and the equation W equals minus P delta V carries its own minus sign, so the two cancel and the work done on the gas comes out positive. Physically this is energy entering the gas from whatever is doing the squeezing. Concretely, compressing a gas at a constant 1.5 times ten to the fifth pascals from 0.040 cubic meters to 0.010 cubic meters gives W equals plus 4500 joules. If that same gas loses 1200 joules by heating, its internal energy rises by 3300 joules and it ends up hotter, even though heat was flowing out the whole time.
When is the work done on a gas zero?
Whenever the volume does not change, and also when there is nothing to push against. A rigid container or a locked piston forces delta V to zero, so W equals zero however violently the pressure or the temperature changes; on a PV diagram that is a vertical line, which encloses no area. Free expansion into a vacuum is the other case: the volume does change, but the external pressure is zero, so no work is done. The CED calls the constant-volume case isovolumetric at essential knowledge 9.4.B.3. In a constant-volume process the first law reduces to delta U equals Q, so all of the heat goes into internal energy and therefore into temperature.
How do I convert a question that talks about work done by the gas into the AP convention?
Flip the sign and relabel. If the question says the gas does 500 joules of work on its surroundings, that is a work done by the gas of plus 500 joules, so the AP quantity is W equals minus 500 joules and you substitute that into delta U equals Q plus W. If the question says 500 joules of work is done on the gas, W is already plus 500 joules and nothing needs changing. Write the words next to the number, as in work done on the gas, minus 500 joules, so the rest of your solution checks itself. If the answer is asked for as work done by the gas, report the flipped value and say which one you are giving.