Index / Sheet list
Engineering formulas & units

Thermodynamics formulas with units and examples

Ten core thermodynamics formulas, from the ideal gas law to entropy change, each with symbols, SI units, assumptions and a worked example.

On this page
  1. 1. Ideal gas law
  2. 2. First law for a closed system
  3. 3. Sensible heat
  4. 4. Work at constant pressure
  5. 5. Isothermal work
  6. 6. Reversible adiabatic process
  7. 7. Steady flow energy equation
  8. 8. Carnot efficiency
  9. 9. Coefficient of performance
  10. 10. Entropy change

Thermodynamics tracks energy as it moves as heat and work. These ten formulas cover the questions that come up most in mechanical design: how much heat a part needs, how much work a gas does, and how efficient a cycle can be. Temperatures in gas and efficiency formulas are always absolute (kelvin): T(K) = T(°C) + 273.15.

Values for air used below

R = 287 J/kg·K, c_p = 1005 J/kg·K, c_v = 718 J/kg·K, γ = c_p/c_v = 1.4. Water: c = 4.18 kJ/kg·K.

Pressure, pVolume, V1V₁V₂Constant volumeConstant pressureW = p(V₂ − V₁)Isothermal, pV = CAdiabatic, pVᵞ = CShaded: work at constant pressure
Four processes starting from state 1 on a pressure–volume diagram. The area under each curve is the boundary work. An adiabatic expansion falls more steeply than an isothermal one because the gas cools as it does work.

1. Ideal gas law

pV=mRTpV = mRT
SymbolMeaningSI unit
ppAbsolute pressurePa
VVVolumem³
mmMass of gaskg
RRSpecific gas constant (287 J/kg·K for air)J/kg·K
TTAbsolute temperatureK

Assumptions: the gas behaves ideally, which holds well for air at ordinary pressures and temperatures and poorly near condensation. Use absolute pressure, not gauge pressure.

Worked example

A 50 litre tank holds air at 800 kPa absolute and 27 °C. Find the mass of air.

m=pVRT=800 000×0.05287×300=0.465 kgm = \frac{pV}{RT} = \frac{800\,000 \times 0.05}{287 \times 300} = 0.465\ \text{kg}
Answerm = 0.465 kg

2. First law for a closed system

Q−W=ΔUQ - W = \Delta U
SymbolMeaningSI unit
QQHeat added to the systemJ
WWWork done by the systemJ
ΔU\Delta UChange in internal energyJ

Assumptions: a fixed mass with no flow in or out, and kinetic and potential energy changes ignored. Sign convention: heat in is positive, work out is positive.

Worked example

Gas in a cylinder receives 50 kJ of heat and pushes the piston out, doing 20 kJ of work.

ΔU=50−20=30 kJ\Delta U = 50 - 20 = 30\ \text{kJ}
AnswerΔU = +30 kJ (the gas gets hotter)

3. Sensible heat

Q=m c ΔTQ = m\,c\,\Delta T
SymbolMeaningSI unit
QQHeat added or removedJ
mmMasskg
ccSpecific heat capacityJ/kg·K
ΔT\Delta TTemperature change (K and °C steps are the same)K

Assumptions: no change of phase, and constant specific heat over the range. Melting or boiling needs latent heat, Q=m hfgQ = m\,h_{fg}, on top.

Worked example

How long does a 2 kW heater take to warm 2 kg of water from 20 °C to 80 °C, ignoring losses?

Q=2×4180×60=501 600 J,t=501 6002000=251 sQ = 2 \times 4180 \times 60 = 501\,600\ \text{J}, \qquad t = \frac{501\,600}{2000} = 251\ \text{s}
AnswerQ = 502 kJ, about 4.2 minutes

4. Work at constant pressure

W=p (V2−V1)W = p\,(V_2 - V_1)
SymbolMeaningSI unit
WWBoundary work done by the gasJ
ppConstant pressurePa
V1,V2V_1, V_2Initial and final volumem³

Assumptions: a slow (quasi-static) process at constant pressure, for example a gas under a free piston with a fixed weight.

Worked example

Gas expands at a constant 200 kPa from 0.1 m³ to 0.3 m³.

W=200 000×(0.3−0.1)=40 000 JW = 200\,000 \times (0.3 - 0.1) = 40\,000\ \text{J}
AnswerW = 40 kJ done by the gas

5. Isothermal work

W=mRTln⁡V2V1=p1V1ln⁡V2V1W = mRT \ln\frac{V_2}{V_1} = p_1 V_1 \ln\frac{V_2}{V_1}
SymbolMeaningSI unit
WWWork done by the gasJ
TTConstant absolute temperatureK
V1,V2V_1, V_2Initial and final volumem³

Assumptions: an ideal gas at constant temperature, which needs slow compression with heat flowing out (or slow expansion with heat flowing in). Since ΔU=0\Delta U = 0, the heat equals the work.

Worked example

0.1 kg of air at 300 K is slowly compressed from 0.08 m³ to 0.02 m³ at constant temperature.

W=0.1×287×300×ln⁡0.020.08=8610×(−1.386)=−11 940 JW = 0.1 \times 287 \times 300 \times \ln\frac{0.02}{0.08} = 8610 \times (-1.386) = -11\,940\ \text{J}
AnswerW = −11.9 kJ: 11.9 kJ of work goes in, and 11.9 kJ of heat comes out

6. Reversible adiabatic process

pVγ=constant,T2T1=(p2p1)γ−1γ,W=mR (T1−T2)γ−1pV^{\gamma} = \text{constant}, \qquad \frac{T_2}{T_1} = \left(\frac{p_2}{p_1}\right)^{\frac{\gamma-1}{\gamma}}, \qquad W = \frac{mR\,(T_1 - T_2)}{\gamma - 1}
SymbolMeaningSI unit
γ\gammaRatio of specific heats, cp/cvc_p/c_v (1.4 for air)none
p1,p2p_1, p_2Initial and final absolute pressurePa
T1,T2T_1, T_2Initial and final absolute temperatureK
WWWork done by the gasJ

Assumptions: no heat transfer and no friction (isentropic), ideal gas with constant specific heats. Fast compression in an engine or compressor is close to this. For a real process with some heat transfer, replace γ\gamma with a polytropic index nn.

Worked example

Air at 100 kPa and 300 K is compressed adiabatically to 1 MPa. Find the final temperature and the work per kilogram.

T2=300×100.4/1.4=300×1.931=579 KT_2 = 300 \times 10^{0.4/1.4} = 300 \times 1.931 = 579\ \text{K}W=1×287×(300−579)0.4=−200 000 JW = \frac{1 \times 287 \times (300 - 579)}{0.4} = -200\,000\ \text{J}
AnswerT₂ = 579 K (306 °C); about 200 kJ of work goes in per kg

7. Steady flow energy equation

Q˙−W˙=m˙[(h2−h1)+V22−V122+g (z2−z1)]\dot Q - \dot W = \dot m \left[ (h_2 - h_1) + \frac{V_2^2 - V_1^2}{2} + g\,(z_2 - z_1) \right]
SymbolMeaningSI unit
Q˙\dot QHeat transfer rate into the deviceW
W˙\dot WShaft power out of the deviceW
m˙\dot mMass flow ratekg/s
hhSpecific enthalpy (cpTc_p T for an ideal gas)J/kg
VVFlow velocitym/s
zzHeightm

Assumptions: steady flow, one inlet and one outlet. It covers turbines, compressors, pumps, nozzles, diffusers and heat exchangers; drop the terms that are small for each device.

Worked example

Air enters an insulated nozzle at 400 K with negligible velocity and leaves at 350 K. Find the exit velocity. There is no heat, no shaft work and no height change, so:

V2=2 cp (T1−T2)=2×1005×50=317 m/sV_2 = \sqrt{2\,c_p\,(T_1 - T_2)} = \sqrt{2 \times 1005 \times 50} = 317\ \text{m/s}
AnswerV₂ = 317 m/s

8. Carnot efficiency

ηCarnot=1−TLTH\eta_{Carnot} = 1 - \frac{T_L}{T_H}
SymbolMeaningSI unit
η\etaThermal efficiency, work out / heat innone
THT_HAbsolute temperature of the hot sourceK
TLT_LAbsolute temperature of the cold sinkK

Assumptions: a fully reversible engine. No real engine reaches it; it is the upper limit for any engine working between those two temperatures.

Worked example

What is the best possible efficiency of an engine taking heat at 800 K and rejecting it at 300 K?

η=1−300800=0.625\eta = 1 - \frac{300}{800} = 0.625
Answerη = 62.5 % at most

9. Coefficient of performance

COPR=QLW,COPHP=QHW=COPR+1COP_R = \frac{Q_L}{W}, \qquad COP_{HP} = \frac{Q_H}{W} = COP_R + 1
SymbolMeaningSI unit
QLQ_LHeat removed from the cold spaceJ (or W)
QHQ_HHeat delivered to the warm spaceJ (or W)
WWWork (or power) inputJ (or W)

Assumptions: steady operation, with QH=QL+WQ_H = Q_L + W. The Carnot limit is COPR=TL/(TH−TL)COP_R = T_L / (T_H - T_L).

Worked example

A cold room unit removes 3 kW of heat and its compressor draws 1 kW.

COPR=31=3,QH=3+1=4 kWCOP_R = \frac{3}{1} = 3, \qquad Q_H = 3 + 1 = 4\ \text{kW}
AnswerCOP = 3; it rejects 4 kW to the outside

10. Entropy change

ΔS=m c ln⁡T2T1(solids and liquids)\Delta S = m\,c\,\ln\frac{T_2}{T_1} \quad \text{(solids and liquids)} ΔS=m(cpln⁡T2T1−Rln⁡p2p1)(ideal gas)\Delta S = m \left( c_p \ln\frac{T_2}{T_1} - R \ln\frac{p_2}{p_1} \right) \quad \text{(ideal gas)}
SymbolMeaningSI unit
ΔS\Delta SChange in entropyJ/K
cc, cpc_pSpecific heatJ/kg·K
T1,T2T_1, T_2Absolute temperaturesK

Assumptions: constant specific heats. The second law says the total entropy of a system and its surroundings can only rise, which is why every real process has losses.

Worked example

Find the entropy change when 1 kg of water is heated from 20 °C to 80 °C.

ΔS=1×4180×ln⁡353.15293.15=4180×0.1862=778 J/K\Delta S = 1 \times 4180 \times \ln\frac{353.15}{293.15} = 4180 \times 0.1862 = 778\ \text{J/K}
AnswerΔS = 0.778 kJ/K

Key points

  • Always use absolute temperature (K) and absolute pressure in gas laws and efficiency formulas.
  • Write the first law with a clear sign convention before putting numbers in.
  • On a p–V diagram, the area under the process line is the work.
  • The Carnot efficiency is a ceiling, not a target: real engines reach a fraction of it.

In practice

See it in CAD

Our projects that put this topic to work.

Need this designed or explained for your team?

We design parts and machines in CAD, make the drawings for manufacturing and train teams. Tell us what you are working on.