During expansion, the gas pushes against an external pressure and transfers energy to its surroundings as work. If the volume increases, the boundary-work contribution is positive under the work-by-system convention. During compression, the surroundings push the boundary inward, reducing the gas volume; work done by the gas is then negative, while work done on the gas is positive. For quasi-static processes, system pressure can be used in the integral when the process assumptions justify it. For irreversible expansion or compression, the actual external pressure opposing boundary motion must be used. The distinction between work by and work on a system is important because thermodynamics textbooks may adopt different sign conventions. A calculation must state its convention before applying the first law.
Work Done by and on a Gas
A gas does boundary work when it expands and pushes its surroundings outward. Work is done on a gas when its surroundings compress it. Under the convention that work done by the system is positive, expansion work is positive and compression work is negative. The corresponding work done on the gas has the opposite sign.
W_by = ∫(from V₁ to V₂) P_ext dV; W_on = −W_by.
Explanation
Variables
| Symbol | Meaning | Unit |
|---|---|---|
W_by | Work done by the gas | J |
W_on | Work done on the gas | J |
P_ext | External pressure opposing boundary motion | Pa |
V | Gas volume | m³ |
Example or application
A gas expands and performs 300 J of work on a piston. Then W_by = +300 J and W_on = −300 J. If the gas is instead compressed and 300 J of work is done on it, W_on = +300 J and W_by = −300 J.
Sources and verification
Sources are shown as provided in the project data. Not every source has yet been independently verified. Please report errors or missing citations.
- Çengel and Boles, Thermodynamics: An Engineering Approach; OpenStax, University Physics Volume 2, First Law of Thermodynamics.