On this page
On a pressure-volume (PV) diagram, use the pressure opposing the gas to find work. The area under one expansion or compression leg gives the magnitude of work for that leg, and the area inside a simple closed loop gives the magnitude of net work. Follow the arrows to assign the sign for work by the gas or work on it.
Take the gas as your system and start with pressure, volume, and the direction of motion. For a quick review of why the route matters, see thermodynamic systems and state functions.
Work from a PV diagram
Pressure is on the vertical axis and volume is on the horizontal axis. Think of a gas pushing a piston. The same piston travel gives the same volume change. Against a higher opposing pressure, the gas must push harder and does more work.
At constant external pressure, the area under the path is a rectangle. In the chemistry convention, the work on the gas is
Here is the pressure opposing the piston and . For a slow process in which gas pressure stays in near balance with that opposing pressure, you can read the gas-pressure curve. This is the quasistatic approximation.
When pressure changes, add the contributions along the path using . For a single leg, measure the area down to , even if the graph starts above zero. For a straight sloping leg, use the average of the two end pressures times the width. For a curved leg, add up thin strips. Pressure times volume has energy units: and .
For a straight path that rises during expansion, split the trapezoid into a rectangle and a triangle. The rectangle accounts for the starting pressure across the entire volume change. The triangle accounts for the pressure increase and contributes half its height times its width. Together they give the same area as the average endpoint pressure times the volume change. If the path curves above the straight line between those endpoints, the gas pushes against higher pressure at intermediate volumes and does more work. Averaging the endpoint pressures would miss that extra area.
Net work in a cycle
Follow the arrows. The gas expands at and compresses at over the same span. The vertical legs contribute zero PV work because the piston stays put. The expansion delivers more work than the compression takes back, so subtract the smaller area from the larger one. The difference is the shaded rectangle, .
For this clockwise loop, the gas does of net work and work on the gas is . Trace the same loop counterclockwise and the signs reverse because the high-pressure leg becomes compression.
Worked example with two piston paths
Work signs and common traps
On the MCAT, check who does the work before assigning a sign. The work done by the gas and the work done on it have opposite signs.
| Process | Work by the gas | Work on the gas () |
|---|---|---|
| Expansion against positive pressure | Positive | Negative |
| Compression against positive pressure | Negative | Positive |
| Constant volume | Zero | Zero |
| Free expansion into a vacuum | Zero | Zero |
- Check which pressure the graph shows. A gas expanding freely into a vacuum starts with a positive gas pressure. The opposing pressure is zero, so the PV work is zero.
- Check the units of the graph feature. Area in gives joules. Slope in tells you how pressure changes with volume.
- Check what returns to its starting value. A cycle has because the gas returns to its initial state. Work depends on the route, so a cycle can still transfer energy as net work.
For how pressure-volume work fits into energy conservation, continue to the first law of thermodynamics.