Work in Thermodynamics

Updated June 2026
In thermodynamics, work is one of the two ways energy crosses a system boundary, the other being heat. Work occurs whenever a force acts through a displacement at the system boundary. The most common form in thermodynamics is expansion work (also called PV work or boundary work), which occurs when a gas pushes a piston or expands against its surroundings. Understanding how to calculate work for different process types is essential for analyzing engines, compressors, turbines, and all other devices that convert between thermal and mechanical energy.

The Definition of Thermodynamic Work

Thermodynamic work for a closed system undergoing a quasi-static process is defined as W = integral of P dV from V{sub}1{/sub} to V{sub}2{/sub}. Here P is the pressure of the gas at each instant, and dV is the infinitesimal volume change. When the gas expands (dV > 0), the work is positive (the system does work on its surroundings). When the gas is compressed (dV < 0), the work is negative (the surroundings do work on the system). This sign convention matches the first law in the form dU = Q - W.

Graphically, the work done during a process equals the area under the pressure-volume (PV) curve. This geometric interpretation makes it immediately clear that work is path-dependent: different paths between the same initial and final states enclose different areas and therefore involve different amounts of work. An isothermal expansion does a different amount of work than an adiabatic expansion between the same initial and final volumes.

For a non-quasi-static process (such as a rapid free expansion into a vacuum), the system may not have a well-defined pressure at every instant, and the integral of P dV does not apply. In free expansion, the gas rushes into the vacuum against no opposing pressure, so no work is done regardless of the volume change. These rapid, irreversible processes require more careful analysis.

Work in Common Thermodynamic Processes

In an isobaric (constant pressure) process, the pressure is constant and can be factored out of the integral: W = P(V{sub}2{/sub} - V{sub}1{/sub}) = P delta V. This is the simplest case, and it applies to many practical situations like heating a gas in a cylinder with a freely moving piston under atmospheric pressure.

In an isothermal (constant temperature) process for an ideal gas, PV = nRT = constant, so P = nRT/V. The work integral becomes W = nRT ln(V{sub}2{/sub}/V{sub}1{/sub}). As the gas expands isothermally, it does work on the surroundings while absorbing an equal amount of heat from the thermal reservoir, keeping its internal energy (and temperature) constant.

In an adiabatic process (no heat exchange), Q = 0, so W = -delta U. All the work comes from the internal energy of the gas, which means the temperature changes. For an ideal gas undergoing a reversible adiabatic process, PVgamma = constant, where gamma = C{sub}p{/sub}/C{sub}v{/sub}. The work is W = (P{sub}1{/sub}V{sub}1{/sub} - P{sub}2{/sub}V{sub}2{/sub})/(gamma - 1) = nC{sub}v{/sub}(T{sub}1{/sub} - T{sub}2{/sub}). In an isochoric (constant volume) process, no boundary work is done because dV = 0.

Key Takeaway

Work depends on the process path, not just the initial and final states. Choosing the right process type is central to efficient energy conversion in all thermal machines.

Maximum and Minimum Work

For an expansion from V{sub}1{/sub} to V{sub}2{/sub}, the maximum work is obtained when the process is carried out reversibly (quasi-statically). Any irreversibility reduces the work output because part of the energy is dissipated as heat rather than being captured as useful work. The reversible isothermal expansion of an ideal gas gives the maximum possible work for a given temperature and volume change.

For compression from V{sub}1{/sub} to V{sub}2{/sub}, the minimum work input is required when the process is reversible. Irreversible compression always requires more work than reversible compression. This asymmetry, more work needed for irreversible compression, less work obtained from irreversible expansion, is a direct manifestation of the second law of thermodynamics.

In practical engineering, the ratio of actual work to reversible work (for expansion) or reversible work to actual work (for compression) is called the isentropic efficiency. Turbines typically have isentropic efficiencies of 85 to 95 percent, while compressors range from 75 to 90 percent. These efficiencies directly affect the overall performance of power cycles and refrigeration cycles.

Other Forms of Thermodynamic Work

While PV work is the most common form discussed in thermodynamics, other forms of work exist. Shaft work is the mechanical energy transferred through a rotating shaft, as in turbines and compressors in open systems. Electrical work is done when charge flows through a potential difference, as in batteries and fuel cells. Surface work occurs when the surface area of a liquid changes, involving the surface tension as the generalized force.

For open systems (where mass flows in and out), the work analysis must include flow work, the energy required to push fluid into and out of the system against the surrounding pressure. The combination of internal energy and flow work is exactly enthalpy (H = U + PV), which is why enthalpy rather than internal energy appears in energy balances for open systems like turbines, compressors, and heat exchangers.

In each case, the generalized formula for work is W = integral of F dx, where F is a generalized force and x is a generalized displacement. For PV work, F = PA (pressure times area) and x is the piston displacement. For electrical work, F = voltage and x is charge. For surface work, F = surface tension times length and x is area. This unified framework connects all forms of thermodynamic work through the same mathematical structure.