A PV diagram plots the pressure of a gas against its volume, and the area under the path is the work the gas does. Because that area depends on the route, the same two end states joined by different paths give different work; a path that closes on itself encloses the net work of one complete cycle.
Put your thumb over the outlet of a bicycle pump and push. The gas shoves back, harder the further in you go, and the energy you are spending is going straight into it. Nothing about that fight is mysterious — but nothing about it is a single number either.
Now draw the squeeze instead of feeling it. Pressure up the page, volume across it, and the whole stroke becomes one line on a sheet of paper. Engineers have been reading engines off that picture for two centuries, because the energy is not hidden in the line — it is the space underneath it.
What Is a PV Diagram?
A PV diagram is a plot of a gas’s pressure against its volume, in which every point is one equilibrium state of the gas and every line is a process that carries it from one state to another.
Two words carry all the weight here: point and path. A point is a state — one pressure, one volume, settled and uniform throughout the gas. A path is a process, and it is drawable only because the gas passes through states that are each close enough to equilibrium to have a pressure at all.
That condition has a name: quasi-static. Push the piston slowly and the gas keeps up, so there is a curve. Burst a membrane and let the gas tear into a vacuum and there is no curve to draw, because mid-flight the gas has no single pressure to plot.
Notice what the two axes do not carry. There is no temperature on a PV diagram, no amount of gas, no gas constant — which is exactly why the work expressions on this page never need any of them. If you want the temperature or the amount behind an end point, the gas laws are the relations your paths obey, and the flat-temperature case, Boyle’s law, is the curve this page calls an isotherm.
The picture is older than thermodynamics itself. Wikipedia’s article on the pressure-volume diagram records that “PV diagrams, originally called indicator diagrams, were developed in the 18th century as tools for understanding the efficiency of steam engines”, and that the diagram “was developed in 1796 by James Watt and his employee John Southern”. A pencil, a moving plate and a pressure gauge drew the first one.
The PV Diagram Formula: Why the Area Under the Path Is the Work
The work a gas does as its volume changes is the integral of its pressure with respect to volume, which on a PV diagram is exactly the area between the path and the zero-pressure axis.
Here is where that comes from, and it is geometry rather than algebra. A gas at pressure P pushing a piston out through a sliver of volume does P times that sliver of work. Add the slivers from the start volume to the end volume and you have added up the heights of every strip under the curve — which is what an area is.
Hold the pressure still and every strip has the same height, so the sum collapses into one rectangle: height P, width V2 minus V1.
| Symbol | What it is | SI unit |
|---|---|---|
| W | Work done by the gas: the area between the path and the zero-pressure axis | joule (J) |
| P | Pressure of the gas at each point along the path — the height of every strip you are adding up | pascal (Pa) |
| V1 | Volume at the start of the leg | cubic metre (m^3) |
| V2 | Volume at the end of the leg | cubic metre (m^3) |
| gamma | Heat capacity ratio, needed for the adiabatic leg only | dimensionless |
A word about units before you reach for a calculator. Pressures arrive in kilopascals and volumes in litres far more often than in pascals and cubic metres, and the happy accident is that 1 kPa multiplied by 1 L is exactly 1 J — so 100 kPa through 6.00 L is 600 J without a single conversion. In practice that is the sanity check worth doing first: if your answer is a million times too big, you have mixed the two systems.
Once the four quantities are in front of you, any one of them follows from the other three, so you can read off a pressure or a volume just as easily as a work. Type three of them into the PV diagram calculator and it returns the fourth, and prints the areas the same volume change would have swept along the other three paths beside it.
That zero on the pressure axis is not a stylistic choice. The height of every strip is the pressure, so a plot cropped to begin at 20 kPa would shade a region that is not the integral of anything, and any area you read off it would be too small.
The lab above plots whatever start state you give it and shades the area as you move the sliders. Pick a starting pressure and two volumes, choose which path joins them, and the work card is the shaded region read as a number; switch the mode to a closed cycle and a fifth slider, the return pressure, decides which way round the loop runs. The row marked as a check measures that same area off the plotted points instead of using a formula, so the picture and the arithmetic have to agree.
The Four Paths, Side by Side
Take the same start state and the same final volume, join them four different ways, and you get three different areas and a zero: 600.000 J along the isobar, 277.259 J along the isotherm, 212.825 J along the adiabat, and nothing at all along the isochore.
The start state is A, at 100 kPa and 2.00 L, and every path ends at 8.00 L — a four-to-one expansion. NASA Glenn puts the consequence in one sentence in its note on work done by a gas: “The work done by a gas not only depends on the initial and final states of the gas but also on the process used to change the state.”
| Path | What is held fixed | Work, in P and V alone | W (J) | Pressure at 8.00 L (kPa) | Area kept, vs the isobaric rectangle |
|---|---|---|---|---|---|
| Isobaric | pressure | W = P·(V2 – V1) | 600.000 | 100.000 | 100.000 % |
| Isothermal | P V = constant | W = P1·V1·ln(V2/V1) | 277.259 | 25.0000 | 46.2098 % |
| Adiabatic (gamma 1.40) | P V^gamma = constant | W = (P1·V1 – P2·V2) / (gamma – 1) | 212.825 | 14.3587 | 35.4709 % |
| Isochoric | volume | W = 0 | 0 | — | — |
The isochore in that last row is the odd one: it is the vertical segment at 8.00 L joining the isobar’s endpoint to the adiabat’s, so it has no single end pressure to quote and no rectangle to be a fraction of.
Each of those four expressions is the same area measured under a different curve, and not one of them needs a temperature. For a constant-pressure leg the rectangle is the form that turns up inside the first law of thermodynamics, where that area becomes one term in an energy balance. Hold the temperature instead and you get the logarithm, which is worked out in full on the isothermal process page; it equals the familiar n R T ln(V2/V1) only because n R T is the same thing as P1 V1 along an isotherm.
That leaves the adiabatic form, (P1 V1 – P2 V2) divided by (gamma – 1), which is this page’s own. Notice how little it asks of you: two end states and a heat capacity ratio, and no temperature anywhere.
Now read the last two columns together, because that is the lesson. The end pressures descend in the opposite order to the areas — 100 kPa, then 25.0000 kPa, then 14.3587 kPa — so the path that gives up pressure fastest is the path that keeps the least area.
Steeper path, less area. The adiabat is the steepest of the three for exactly that reason, and the gap is not cosmetic: the flat leg does 2.16404 times the work of the isotherm between the very same pair of volumes.
The isochore is the odd one out, and it is worth being precise about why. It is the vertical segment at 8.00 L joining the isobar’s endpoint to the adiabat’s: a real process, with the pressure falling from 100 kPa to 14.3587 kPa, and a real change in the state of the gas. It simply has no horizontal extent, so there is no strip to sum and no area to shade, which is why its work is exactly zero rather than merely small.
Work done on a gas without changing its volume — stirring it, or running a current through a resistor inside it — is not pressure-volume work at all, and it never shows up as an area on this plot. It has its own name in the literature: isochoric work.
Closing the Loop: the Enclosed Area Is the Net Work
Join legs into a closed loop and the enclosed area is the net work of the cycle: everything the gas does on the way out, minus everything you have to pay to put it back where it started.
Take the cleanest possible example. Run out along a constant 300 kPa from 2.00 L to 8.00 L, drop the pressure to 100 kPa without moving the piston, come back along that lower pressure, then climb back up to 300 kPa. Four legs, two of them vertical, and the loop is a plain rectangle.
| Leg | What is held fixed | From | To | W (J) |
|---|---|---|---|---|
| 1 | pressure, 300 kPa | 2.00 L | 8.00 L | +1800 |
| 2 | volume, 8.00 L | 300 kPa | 100 kPa | 0 |
| 3 | pressure, 100 kPa | 8.00 L | 2.00 L | -600 |
| 4 | volume, 2.00 L | 100 kPa | 300 kPa | 0 |
| Net work round the loop | +1200 |
There are two independent routes to that +1200 J, which is why this particular loop is worth memorising. Add the legs: 1800 + 0 – 600 + 0. Or treat the rectangle as a rectangle: the pressure difference, 200 kPa, times the volume difference, 6.00 L, is 1200 J.
Every other cycle on this page needs the first route, because its top edge is a curve.
The return leg is the whole story of an engine in one number. Here it costs 33.3333 % of what the forward leg produced, and the loop keeps the rest. Raise that return pressure and the cost climbs; the gas is still doing 1800 J on the way out, but you are handing more and more of it back.
Round any closed loop the gas finishes in the state it started in, so its internal energy is unchanged and the net heat must equal the net work. That is the first law read round a loop, and it is one of the four laws of thermodynamics. Treat it as an identity, not a measurement: the diagram hands you the net work, and says nothing about how much heat went in to produce it.
NASA Glenn’s note on the ideal Otto cycle states the geometry plainly: “The difference between the work done by the gas and the work done on the gas is the area enclosed by the cycle curve and is the work produced by the cycle.” Every engine cycle you will meet is read this way, including the one that sets the theoretical ceiling — the Carnot cycle, which gets its own treatment in Carnot efficiency and is not drawn here.
The Sign Convention, and Which Way the Arrow Runs
Throughout this page W is the work done by the gas, so an expansion gives a positive W and a compression a negative one, and the arrowhead on the path is the only thing that tells you which.
Reverse a path and the area keeps its size and changes its sign. The isotherm from A out to 8.00 L gives +277.259 J; walked back from that endpoint to A it gives exactly -277.259 J, and the two cancel because nothing but the direction changed.
Do not read that as “compressions are just expansions with a minus sign”, though. Compress the same gas from 100 kPa and 8.00 L down to 2.00 L along an isotherm and the work is -1109.04 J, because this time the pressure is climbing to 400.000 kPa as you squeeze rather than sagging to 25.0000 kPa as you let go. Same volumes, four times the magnitude: the area depends on where on the P axis you are working.
In a cycle the sign is the direction, and the rectangle proves it. Run it clockwise and it nets +1200 J; run exactly the same four legs anticlockwise and it nets -1200 J, to the last digit.
A clockwise loop is an engine, because the expansion happens at the higher pressure. An anticlockwise loop is a heat pump or a refrigerator: you put work in to move heat the way it does not want to go.
What decides the direction, in the general case, is the return pressure. Keep the default isotherm as the forward leg and the loop nets +127.259 J with a 25 kPa return, but -172.741 J with a 75 kPa return. Somewhere between the two the enclosed area passes through zero.
That crossing point is the mean pressure of the forward path: 46.2098 kPa. And here is a coincidence that is not one.
The area-kept figure for that same isotherm is 46.2098 % — the same digits, because a path’s mean pressure expressed as a fraction of P1 is the fraction of the rectangle it keeps. One fact in two forms, not two pieces of evidence.
Where the Simple Picture Breaks Down
A PV diagram is a complete account of the work and a silent one about almost everything else, and four limits are worth knowing before you trust one in an exam answer.
- It gives you the net work, not the efficiency. Efficiency needs the heat in, and no area on this plot measures heat. The diagram will tell you that a loop nets 1200 J and will not tell you how much heat had to be supplied to get it; for the ceiling on that ratio you need the Carnot limit.
- No quasi-static path, no curve. A gas expanding freely into a vacuum changes volume and does no work at all, because there is no opposing pressure to push against — the free-expansion case is worked through on the isothermal process page. Its start and end points are plottable; the journey between them is not.
- Check the x axis before you read the area. Specific volume is often plotted instead of volume, and the Wikipedia article linked earlier is explicit that in that case “the area under the curve represents work per unit mass of the working fluid”. The number you lift is then in joules per kilogram, and multiplying by the mass is on you.
- Textbook loops are idealised. Straight lines and right-angled corners are a teaching convenience: that same article calls its own four-leg figure “highly idealized” and says a real device traces a more complex shape enclosing the work cycle.
Common Misconceptions About PV Diagrams
1. “The work depends only on the start and end states”
It does not, and this is the single most expensive mistake on the topic. Internal energy is a state function; work is a path quantity. The fan in Figure 2 is the counter-example in one picture: identical end volumes, identical start state, areas that differ by nearly a factor of three.
2. “A steeper curve means more work”
Steeper means less. Steepness is pressure being shed quickly, and pressure is the height of the strip you are summing, so a fast-falling path has less area beneath it. The adiabat falls fastest and keeps 35.4709 % of the rectangle; the isotherm falls more gently and keeps 46.2098 %.
3. “An isochoric process does no work because nothing happens”
Plenty happens. The pressure can double, the temperature with it, and heat can pour in or out all the while. What is missing is width: there is no volume change to integrate over, so there is no pressure-volume work — not because the gas is idle, but because the one quantity the area needs is standing still.
4. “Any closed loop on a PV diagram is an engine”
Only the clockwise ones. An anticlockwise loop encloses exactly the same area and consumes it instead of producing it, which is precisely what a refrigerator does. Erase the arrowheads from a diagram and you have thrown away the sign of the answer.
5. “The enclosed area tells you how good the engine is”
It tells you how much work the engine delivers per cycle, which is not the same claim. Two cycles can enclose exactly the same area while one of them needs far more heat to do it. Work out the area, by all means — then stop, because the next step needs a heat input the diagram never recorded.