Pressure-Volume Work
Push a piston, inflate a balloon, or let a gas escape into a vacuum. Every one of these events moves a boundary and does work. Pressure-volume work is the currency by which gases trade energy with their surroundings. This happens whenever their volume changes. It is the first concrete term chemists learn to compute in the First Law of Thermodynamics. It also sets up everything that follows in thermochemistry. Understanding this work term matters for an important reason. It separates the energy a system exchanges as ordered mechanical work from disordered heat. That distinction is the foundation for defining enthalpy. It also helps in predicting whether a process can do useful work. And it allows comparing engines, batteries, and chemical reactions on the same energetic footing. This article derives the general expression for expansion and compression work. You will see how it reduces to a simple formula for constant external pressure. Then you will work two fully numeric examples. Finally you will see why the sign convention matters. You will also see where students most often go wrong.
- Pressure-volume work arises whenever a system's volume changes against an external pressure.
- The general definition is , valid for any process, reversible or not.
- Against a constant external pressure this collapses to .
- Expansion () makes negative: the system loses energy doing work on the surroundings.
- Free expansion into a vacuum does zero work, because .
- Key idea: work done by a gas depends on the external pressure it pushes against, not on the gas's own internal pressure.
Pressure-volume work is force times distance rewritten in terms of pressure and volume; because the system does work against an external pressure, the work done on the system carries a minus sign, , and this single integral is the starting point for every constant-pressure, constant-volume, isothermal, or adiabatic calculation that follows in thermochemistry.
The physical picture
Picture a gas confined in a cylinder by a frictionless, weightless piston of cross-sectional area . The surroundings press on the piston with a fixed external pressure , perhaps because a stack of weights sits on it, or because the atmosphere itself pushes down. If the gas expands, the piston moves outward through a distance , sweeping out a volume . The mechanical work done by the gas on the piston is force times distance:
Thermodynamics, however, tracks energy from the system's point of view. When the system does positive work on the surroundings, the system's own energy decreases. The convention adopted throughout modern physical chemistry (the "surroundings" or IUPAC convention baked into the First Law, ) defines as the work done on the system. Expansion work done by the gas therefore enters the system's energy balance with a negative sign:
If instead the surroundings compress the gas (), is positive: work flows into the system, raising its energy. The external pressure, not the internal gas pressure, controls how much work is exchanged, because it is the external pressure that actually supplies or absorbs the force at the moving boundary. This distinction becomes critical when comparing reversible and irreversible paths.
The core relations
where: is the infinitesimal work done on the system, is the pressure the surroundings exert at the moving boundary, is the infinitesimal volume change of the system.
where: are initial and final volumes; valid for expansion, compression, reversible, or irreversible paths, since it uses only .
where: this special case holds only when is constant throughout the change, e.g. a piston opposed by a fixed atmospheric pressure.
where: is the change in internal energy, is heat absorbed by the system, is work done on the system (First Law, assumed known from the prerequisite article).
Goal. Derive the work done on a gas-filled cylinder when its piston moves against a constant external pressure, starting only from the mechanical definition of work.
Step 1: Define the geometry. Let the piston have cross-sectional area and let measure its position, increasing as the gas expands. The gas volume is , so a small displacement corresponds to .
Step 2: Write the mechanical work. The external surroundings exert a force on the piston face (Newton's third law pairs this with the force the gas exerts on the piston). The work done by the gas as the piston moves outward by is
Step 3: Switch to the system's energy bookkeeping. The First Law tracks work done on the system. Since work done by the gas on the surroundings is energy leaving the system,
Step 4: Integrate over the whole process. For an arbitrary path from to , sum (integrate) these infinitesimal contributions:
This holds even if varies with along the path — it is the fully general expansion-work integral.
Step 5: Specialize to constant external pressure. If a single fixed weight or the constant atmosphere supplies , it can be pulled outside the integral:
Step 6: Box the result.
Check the signs: if the gas expands, , so — energy leaves the system as work, exactly as expected for a gas pushing back a piston. If the gas is compressed, , so — the surroundings do work on the gas, increasing its energy. If the gas expands into a vacuum, , so regardless of how much the volume changes — this is "free expansion," and no work crosses the boundary because there is nothing to push against.
Worked examples
Example 1 — Foundational: gas expanding against constant atmospheric pressure. A sample of gas in a cylinder expands from to at constant external pressure . Find the work done on the gas, in joules. Step 1. Compute :
Step 2. Apply the constant-pressure formula:
Step 3. Convert to joules using :
Sanity check: the gas expanded, so it did work on the surroundings; the system's energy from work alone should decrease, matching the negative sign. The magnitude (~456 J) is a modest, chemically reasonable value for a few liters of expansion at one atmosphere.
Example 2 — Applied, exam-level: two-stage compression with heat exchange, finding . A chemist compresses 1.00 mol of an ideal gas from to at in two stages, each against a different constant external pressure, and measures that the whole process releases of heat to the surroundings. Stage A compresses the gas from to against ; stage B compresses it from to against . Find for the whole process and then . Step 1. Work in stage A:
Step 2. Work in stage B:
Step 3. Total work, converted to joules:
Step 4. Apply the First Law to get :
Sanity check: compression means work is done on the gas, so should be positive — it is. The gas is compressed and cools by releasing heat, yet the net internal energy still rises because the work input (2.03 kJ) outweighs the heat lost (0.35 kJ); this is physically consistent for a fast, irreversible compression. As a rough cross-check via multi-stage staircase work, note that a single-stage compression straight to 2.50 atm would give only L·atm — larger, confirming that splitting into stages against smaller pressures first, then larger, extracts a smaller total work input than one abrupt jump to the highest pressure, exactly the trend expected en route to the reversible limit.
Limiting cases & common traps
| Situation | Formula to use | Key point |
|---|---|---|
| Constant | Simplest and most common exam case | |
| Free expansion (vacuum) | No matter how large is, | |
| Varying (reversible path) | with | Leads to isothermal reversible work, covered next |
| Rigid container | regardless of pressure changes |
The chemist behind it
The modern treatment of pressure-volume work descends from the work of Rudolf Clausius, who gave thermodynamics its precise mathematical form in the 1850s, including the clear separation of heat and work in the energy balance that we now call the First Law. His formulation of internal energy as a state function, and his insistence on tracking work done at a moving boundary via , set the notation and sign conventions still taught today.
Origins · 1 minRudolf Clausius and how this was discovered
Clausius reformulated Sadi Carnot's ideas on heat engines into rigorous mathematics, establishing (equivalent to today's convention) and showing that pressure-volume work is the mechanical term linking a gas's volume changes to its energy exchanges with the surroundings.
Ask the tutor: How does the work integral change if the external pressure varies continuously, as in a reversible isothermal expansion?
Why is there a minus sign in w = -∫p_ext dV?
The minus sign encodes the convention that is the work done on the system, consistent with . When a gas expands (), it pushes the surroundings back and loses energy as work, so must come out negative. Without the minus sign, expansion would incorrectly appear to increase the system's energy. The sign is not arbitrary — it is forced by defining from the system's perspective rather than the surroundings'.
Does the formula w = -p_ext ΔV work for any expansion or compression?
It works whenever is constant throughout the volume change, such as a piston loaded with a fixed weight or exposed to a constant atmosphere. If varies during the process — for example in a reversible expansion where is continuously adjusted to match the gas pressure — you must return to the integral and integrate properly, often yielding a logarithmic result for isothermal ideal gases.
What is the difference between the gas pressure and p_ext, and why does it matter?
The gas pressure describes the internal state of the system, obeying an equation of state like . The external pressure is whatever mechanical force per area acts at the moving boundary, set by the surroundings. They are equal only in the idealized reversible (quasi-static) limit. In any real, finite-rate process they generally differ, and only appears in the work integral because it is what actually does the pushing.
How does this connect to enthalpy and the First Law?
Enthalpy is defined as specifically so that, at constant pressure, , absorbing the work term automatically. Since so many chemical reactions run open to the atmosphere at constant , this article's constant-pressure work formula is the mechanical piece that, combined with the First Law, motivates why chemists prefer enthalpy over raw internal energy for everyday calorimetry.
What comes next after mastering this constant-pressure case?
The natural extension is comparing reversible and irreversible paths between the same two states, since they generally give different work even though depends only on the states. That comparison sets up the classic calculation of isothermal reversible expansion of an ideal gas, where tracks at every instant and the integral yields a logarithm rather than a simple product.