How do heat, work and internal energy differ?
Heat is energy transfer caused by a temperature difference. Work covers other macroscopic transfer mechanisms, such as a shaft or electrical terminals. Internal energy is instead a state property. A body contains internal energy, not stored amounts of “heat” and “work”.[2]
You heat a gas while it moves a piston. Part of the transferred energy can increase its internal energy; another part leaves as work. The first law accounts for both. It answers a balance question, without determining how fast the process occurs or whether it is reversible.[1]
Draw the system boundary before calculating. For the gas alone, piston motion transfers work across the boundary. If the piston is included, the same transfer can initially change its kinetic energy. An energy contribution must not be counted both as exported work and as energy stored inside the same system.[3]
What is the first law for a closed system?
Consider a fixed amount of matter as a closed system: energy may cross its boundary but mass may not. Gas in a cylinder differs from a system containing gas, piston and surroundings together. The simplified balance requires changes in bulk kinetic and potential energy to vanish or be negligible. If the entire system moves or rises appreciably, first balance total energy E.[3]
W includes all work transfers included in the model, not only piston work.[3]
U contains microscopic motion and interaction energy according to the material model. Temperature alone does not determine it in general: phase changes and real gases require additional state information. The first law still applies. Flow through turbines and compressors needs a control-volume balance including energy carried by the mass streams. Heat capacity relates heat to a temperature change under the appropriate material and process assumptions; the first law alone does not supply that constitutive relation.
Why is the first law written as Q minus W or Q plus W?
Both forms describe the same balance: use a minus sign for work by the system and a plus sign for work on the system. means heat enters; heat rejected gives . means work performed by the system on its surroundings. External compression makes system work W negative. Terms such as heat absorbed and work delivered define signs; numbers must not simply be copied as positive.[1]
The plus form with work on the system describes the same balance.
A negative work sign specifies the direction of energy transfer. With and , internal energy rises by 320 J. If 180 J is instead done on the system, , and the same absorbed heat gives a 680 J increase. These are two different processes.
Why is the first law an empirical conservation law?
The first law is an empirical conservation law, not an algebraic proof specific to ideal gases. A balance equates stored energy after minus before with energy entering minus energy leaving. Heat and work are separate transfers across the chosen boundary. With unchanged bulk energy contributions, this accounting gives .[1]
d marks a state differential; δ marks path-dependent transfers.
U has a value for each equilibrium state. Q and W are not stored material properties. Writing U2 − U1 is meaningful, whereas a supposed heat content Q2 − Q1 is not. Two paths can have different heat and work transfers even though their difference gives the same internal-energy change.[3]
How do you calculate work during expansion and compression?
For a piston with negligible mechanical energy storage, use the external resisting pressure.[2]
For a quasistatic mechanically balanced path, gas pressure and external loading coincide in the limiting description, allowing integration of p(V). In rapid irreversible expansion, internal gas pressure cannot automatically be treated as a uniform path variable. Free expansion into vacuum delivers no external boundary work despite increasing volume. Friction and piston acceleration require appropriate additional mechanical accounting.
The second relation assumes an ideal gas with constant molar CV over the interval.
Isothermal means constant T, unlike adiabatic, which means . Ideal-gas U depends only on T, giving and for isothermal state changes. Constant volume removes boundary work only: a stirrer can still supply work. A reversible adiabat additionally needs the appropriate gas relation; adiabatic alone does not establish reversibility.
Example: compression with heat rejection
Assign signs from transfer directions
- Given
- A closed ideal gas receives 640 J of compression work and rejects 180 J of heat. Its total constant capacity is . No other work or external energy changes.
- Find
- Find ΔU and temperature change.
Approach: Count heat input and work done by gas as positive; supplied compression work is therefore negative gas work. Use total heat capacity for temperature change.
Heat rejection is negative; work on the gas means negative gas work.
Form the balance before applying a gas model.
Use the specified constant gas heat capacity to obtain temperature change.
Result: Despite heat rejection, U increases by 460 J and T by 10 K because work input dominates.
Check: The convention gives the same 460 J increase. Back-substitution matches heat rejection. Final volume requires further state data.
Example: identical endpoint, different paths
The second path includes isothermal expansion of an ideal gas: its work depends on the path even though both paths reach the same final state. Compare the individual work and heat steps rather than only the initial and final temperatures.[1][2]
Compare two heating and expansion paths
- Given
- of a classical monatomic ideal gas; . Initially at volume ; finally , . Path A is reversible and isobaric; B is initially isochoric up to 450 K, then reversibly isothermal to final volume. Only volume work; external energies unchanged.
- Find
- Find equal ΔU but different Q and W.
Approach: For monatomic ideal gas, internal energy depends only on endpoint temperatures. Then account separately for quasistatic isobaric and reversible isothermal work.
The internal-energy state change is identical for both paths.
On A, the ideal-gas equation gives isobaric work.
On B, the fixed-volume part delivers no boundary work; the isotherm provides all work.
Add heat for both stages.
Result: Both increase U by 748.26 J. Path B takes about 107.95 J more heat and delivers the same extra work.
Check: confirms the same endpoint pressure and path A being isobaric. Both satisfy . The fixed-volume B stage absorbs 748.26 J and its isotherm 606.79 J.
View diagram: two pressure–volume paths
The path changes work, not the energy difference
Free with a Quanta account. Your download stays ready after registration.
Does constant volume imply that all work is zero?
No: only pressure–volume work vanishes. A rigid vessel prevents volume work but not energy transfer through a stirrer shaft. The next example accounts for this work mode separately.[1][2]
Constant volume does not mean zero work
- Given
- A closed system in a rigid vessel has constant heat capacity . An externally driven stirrer transfers 80.0 J of shaft work into it while 15.0 J of heat leaves. Initial and final states are at rest, with no other energy changes.
- Find
- Find internal energy change and temperature change.
Approach: shaft work by the system is negative because the surroundings supply it. The rigid wall prevents only volume work.
Substitute: assign signs relative to the system for both transfers.
Result: Internal energy increases by 65.0 J and temperature by 1.30 K.
Check: Check: of the 80.0 J of supplied work, 15.0 J leaves as heat and 65.0 J remains. Motor energy is not counted again. The boundary includes the stirred material, not the external motor.
What holds after a complete thermodynamic cycle?
The working medium must actually return to the same thermodynamic state.[1]
Zero ΔU does not mean every stage has zero energy change. An engine receives heat and rejects part of it; only the signed sum over the entire cycle equals net work. Irreversible cycles can also restore their initial state. The working medium’s entropy then returns as well, while entropy can be generated in engine plus surroundings.
What energy accounting alone cannot decide
Conservation alone does not determine spontaneous direction or maximum work obtainable from heat. Complete cyclic conversion of heat from a single reservoir to work could formally balance energy but violates the second law. Carnot efficiency and entropy therefore supplement the calculation. The first law requires neither an ideal gas nor an actually reversible path; these assumptions belong to additional material or work relations.[4]
Isochoric, isobaric and adiabatic processes: five solved balance problems
Isochoric means constant volume and hence no pressure–volume work; isobaric means constant pressure. Adiabatic means . These process conditions do not replace a material equation and do not by themselves determine other work transfers or reversibility.[1][2]
Calculate · Foundation
A gas receives 760 J of heat and delivers 290 J of work. Find ΔU.
Show hint
Both inputs are positive in this convention.
Learning goal: Calculate internal energy change with Q−W.
Show solution and calculation
Approach: absorbed heat and work delivered by the system are positive in this convention.
Their difference remains as internal energy.
Check: stored energy 470 J plus delivered work 290 J recovers absorbed heat 760 J.
Interpret · Application
During adiabatic compression, 350 J is done on a closed gas. No other energy changes occur. Find ΔU.
Show hint
Adiabatic means , not .
Learning goal: Balance signed adiabatic compression work.
Show solution and calculation
Approach: adiabatic means zero heat transfer.
The surroundings do work on the gas, so work by the gas is negative.
Internal energy rises by 350 J.
Check: compression can supply energy without heat absorption. This balance does not decide whether the process is reversible.
Transfer · Application
A full cycle receives 2.4 kJ of heat and rejects 1.5 kJ. Find net work output.
Show hint
Count rejected heat negatively in the sum.
Learning goal: Infer net cycle work from heat balance.
Show solution and calculation
Approach: after a full cycle, internal energy returns to its initial value.
Rejected heat is negative, and net work equals net heat.
Check: 900 J of output work plus 1500 J of rejected heat accounts for 2400 J of absorbed heat. Energy accounting alone does not replace a check using reservoir temperatures and the second law.
Interpret · Application
A closed stationary system reaches the same endpoints by two paths. A: , . B: , . W denotes work by the system. Compare internal energy changes and decide whether different heat and work amounts violate the first law.
Show hint
Compare Q−W, not Q or W separately.
Learning goal: Distinguish state function U from path-dependent Q and W.
Show solution and calculation
Approach: both paths give .
Different heat and work are allowed because they are process quantities.
Check: path A forward and B backward form an algebraic cycle with and , hence . This energy check alone does not assess entropy generation or physical feasibility of that cycle.
Error analysis · Application
A closed system receives 120 J heat and delivers 40 J work across its boundary. Centre-of-mass kinetic energy increases by 20 J and potential energy by 10 J. A solution gives . Correct it with no other flows.
Show hint
Q−W is total energy change, not automatically just ΔU.
Learning goal: Retain macroscopic kinetic and potential changes in the full balance.
What to carry into your next calculation
For a closed stationary system with no change in external energies, . Establish the boundary and sign convention first, then add all heat and work contributions. If motion or height changes, the corresponding external energy changes also belong on the left-hand side.[1]
Sources for this explanation
Quanta · Updated October 1, 2026
- OpenStax University Physics 2 §3.3: First Law of Thermodynamics
- OpenStax University Physics 2 §3.2: Work, Heat, and Internal Energy
- MIT Unified Engineering §2.1: First Law of Thermodynamics
- MIT Unified Engineering §5.1: Concept and Statements of the Second Law
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 3 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An internal human subject review is documented for an earlier release of this page. That confirmation does not apply automatically to the revised explanation and new exercises.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Made heat, work, state properties, sign conventions and process conditions directly accessible; retained compression, path and stirring calculations and linked heat capacity, isothermal expansion and Carnot in context.
- Expanded explanations and learning transitions; added a further fully worked example and an original quantitative diagram; clarified assumptions and calculation steps.
- Added two exercises; labelled all five by task type, difficulty and learning goal.
Cite this reference page
Quanta. First Law of Thermodynamics. Updated October 1, 2026. https://quanta-study.de/en/formula-sheet/erster-hauptsatz-thermodynamik
When citing a specific scientific statement, also cite the specialist source linked to that statement.