Your library

Published · Updated · AI-assisted research

Work, Heat, and Internal Energy: What Changes and What Transfers

A piston example explains mechanical work, process paths, and the difference between energy transfer and a system’s state.

Work and heat describe energy transfers; internal energy describes a property of the system. A gas expanding against a piston does work on its surroundings. How much work it does depends on the expansion process, not simply its starting and ending states. Internal energy, by contrast, is a state function. [2], [3]

In this article
  1. 1. Separate the system’s energy from its transfers
  2. 2. How a moving piston produces work
  3. 3. A worked example: slow expansion at constant pressure
  4. 4. Why the pressure–volume path matters
  5. 5. Read a thermodynamic process without mixing concepts

1. Separate the system’s energy from its transfers

  1. Work: In the piston example, energy transfer is associated with a force moving the piston through a distance. [2]
  2. Heat: Heat transfer occurs between a thermodynamic system and its environment and, alongside work, influences the system’s energy change. [2]
  3. Internal energy: This is a state function, whereas heat and work generally are not. Knowing the state is different from knowing the transfers involved in reaching it. [3]

Begin by identifying the system—the material you are studying—and its environment. For the example developed here, take the confined gas as the system and the piston as something it can act on. This choice makes the accounting understandable: ask what happens to the gas, what mechanical interaction occurs at the piston, and what heat transfer occurs between the gas and its environment. Keep these questions separate rather than treating every energy-related quantity as interchangeable. [2]

The central distinction is between a property of a state and a quantity associated with a process. Internal energy belongs to the first category. Work and heat belong to the second: they describe transfers involved in a change, rather than independent inventories the system possesses. Consequently, asking “How much work occurred during this expansion?” is meaningful; treating work as something contained in the gas confuses the process with the state. [2], [3]

2. How a moving piston produces work

Imagine gas confined in a cylinder with a movable piston. During expansion, the gas pushes the piston outward: it exerts a force through a distance and therefore does work on the piston. During compression, the piston moves inward and work is done on the gas. The convention used here calls work done by the gas positive. Expansion therefore gives positive work, while compression gives negative work. Naming whose work you mean prevents an apparent sign disagreement. [2]

The calculation follows directly from the geometry. If the gas pressure at the piston is p and the piston area is A, the force is pA. An outward displacement dx changes the volume by dV = A dx. Multiplying force by displacement gives pA dx = p dV. For a finite process, add these small contributions along the volume change: W = ∫ from V₁ to V₂ p dV. Pressure need not remain constant, so its variation matters. [2]

3. A worked example: slow expansion at constant pressure

Consider a hypothetical quasi-static expansion at a constant pressure of 100,000 Pa, from 0.002 m³ to 0.005 m³. These numbers are illustrative assumptions, not experimental measurements. Because pressure is constant, the work integral simplifies to W = p(V₂ − V₁). The volume change is 0.003 m³, giving W = 100,000 × 0.003 = 300 J. The positive result means the gas does 300 J of mechanical work on the piston. [2]

For compression along the same constant-pressure route, reverse the volume limits: W = 100,000 × (0.002 − 0.005) = −300 J. The negative sign expresses the reversed mechanical interaction; work is now done on the gas. Notice what this calculation establishes: the volume-change work. It does not by itself identify the heat transferred or the internal-energy change. Those are distinct parts of the thermodynamic description, not additional names for the calculated 300 J. [2], [3]

4. Why the pressure–volume path matters

On a pressure–volume diagram, work in this treatment is the area under the process curve. This interpretation requires a quasi-static process: an idealized sequence of equilibrium states with a well-defined pressure–volume relationship. A sufficiently slow process can approximate that description. The qualification matters because the integral uses the gas pressure along the route; it should not be applied indiscriminately to a rapid, nonequilibrium change as though every intermediate state had a single defined pressure. [2]

The area interpretation also explains path dependence. Volume limits specify the horizontal interval, but not the curve’s height throughout that interval. Different pressure histories can therefore produce different work. Internal energy behaves differently: as a state function, its change depends on the initial and final equilibrium states rather than the route between them. Heat, like work, generally is not a state function. The comparison below keeps these roles distinct. [2], [3]

QuantityWhat it describesRole of the process path
Work, WMechanical transfer illustrated by a gas moving a pistonDepends on the pressure–volume route for quasi-static volume-change work [2]
Heat, QTransfer between the system and its environmentGenerally not a state function [2], [3]
Internal energy, UA property of the system’s equilibrium stateIts change depends on the endpoint states, not the route [3]

5. Read a thermodynamic process without mixing concepts

A useful reading strategy is to identify the system first, then the process conditions, then the requested quantity. For piston work, ask whether volume changes, which direction it changes, and whether the pressure–volume path is known. A stated constant pressure allows the simple multiplication used above; a changing pressure calls for integration. Before calculating, also check whether the process supports the quasi-static description assumed by the gas-pressure integral. [2]

Finally, do not confuse constant temperature with no work. The textbook describes an ideal gas expanding isothermally while remaining in thermal equilibrium with a heat reservoir. Its work is calculated using p = nRT/V inside the volume integral. Temperature stays constant, but volume changes and the piston moves. The practical lesson is to inspect the relevant process variable: constant temperature does not eliminate the mechanical displacement responsible for expansion work. [2]

Frequently asked questions

Does a gas need to expand to do piston work?

For the volume-change work considered here, the contribution is p dV. If volume remains fixed throughout the process, dV is zero and this contribution is zero. This conclusion concerns piston or volume-change work, not every possible kind of work. [2]

Why is compression work negative?

The convention here counts work done by the gas as positive. Compression reduces volume, so the integral runs toward a smaller volume and gives negative work for positive pressure. Physically, the piston is doing work on the gas rather than the gas doing positive work on the piston. [2]

Can starting and ending volumes determine the work?

Not on their own. The work integral also needs pressure along the process path. Constant pressure is a special simplification: then work is pressure multiplied by the volume change. Otherwise, knowing the volume limits without the pressure–volume relationship leaves the calculation incomplete. [2]

What does an exact differential have to do with internal energy?

An exact differential integrates to a result independent of the path. This is the mathematical property associated with state functions. Internal energy is a state function, so its change is fixed by the endpoint states. Work and heat generally do not share that property. [3]

Does the 300 J example also tell us the heat transfer?

No. It calculates mechanical work from the specified pressure and volume change. Heat transfer and internal-energy change are separate quantities. The work result alone should not be relabeled as either one; a fuller energy description is needed to connect them. [2], [3]

Conclusion

Keep three questions separate: What is the system’s state? What work occurs during the process? What heat is transferred? Internal energy answers a state question; heat and work describe process-dependent transfers. For a quasi-static piston process, work follows from the pressure–volume path, with expansion positive under the convention used here. The worked example illustrates the essential calculation without confusing its mechanical-work result with heat transfer or internal-energy change. [2], [3]

Source notes

The cited passages do not state the signed first-law equation or develop the temperature-based definition and mechanisms of heat transfer; the numerical example therefore calculates piston work only.

Explore next

Sources

Open a source or expand its cited passages.

Relevance scores are model estimates of how well each source addresses this question, not probabilities or fact-check ratings. Reasoned guidance is identified on hover.

  1. 963.2 Work, Heat, and Internal Energy - University Physics Volume 2 | OpenStaxopenstax.orgDirect textbook support for piston work, its sign convention, quasi-static conditions, and pressure–volume integration.›
  2. 83Exact differential - Wikipediaen.wikipedia.orgSupports the distinction between state functions and path-dependent heat and work, with mathematical context on exact differentials.›

AI-assisted research. Research methodology · Guides · Explore answers

Ask a follow-up