Ideal Gases and Processes

The ideal gas law, specific heats, and the isothermal, isobaric, isochoric, adiabatic and polytropic processes with their work.

The ideal gas law

At moderate pressures and temperatures well above their condensation point, gases such as air, nitrogen, oxygen and hydrogen obey the ideal gas law very closely:

p V = m R T    p v = R T    R = Ru ÷ M

For 1 kg of air at 100 kPa and 300 K the volume is V = 0.287 × 300 ÷ 100 = 0.861 m³, a density of 1.161 kg/m³.

Specific heats

The specific heat at constant volume cv gives the change in internal energy, Δu = cv ΔT; at constant pressure cp gives the change in enthalpy, Δh = cp ΔT. They are related by cp − cv = R and their ratio is k = cp ÷ cv.

GasR (kJ/kg·K)cp (kJ/kg·K)cv (kJ/kg·K)k
Air0.2871.0050.7181.40
Nitrogen0.29681.0390.7431.40
Oxygen0.25980.9180.6581.40
Carbon dioxide0.18890.8460.6571.29
Helium2.0775.1933.1161.67
Hydrogen4.12414.3110.181.41
Methane0.51822.2541.7361.30

Values are near 300 K; cp rises with temperature (air is 1.005 at 300 K, 1.14 at 1000 K). Monatomic gases have k ≈ 1.67, diatomic k ≈ 1.4, polyatomic lower.

The five processes

ProcessHeld constantRelationWork done by the gas
IsothermalTp V = constantm R T ln(V₂ ÷ V₁)
IsobaricpV ÷ T = constantp (V₂ − V₁)
IsochoricVp ÷ T = constant0
Adiabatic (isentropic)Q = 0 (and reversible)p Vk = constant, T Vk−1 = constantm R (T₁ − T₂) ÷ (k − 1)
Polytropicgeneralp Vn = constantm R (T₁ − T₂) ÷ (n − 1)

The polytropic process covers the rest with an exponent n: n = 0 is isobaric, n = 1 isothermal, n = k adiabatic and n = ∞ isochoric. A real compressor lies between 1 and k, typically n = 1.2 to 1.35 for an air-cooled machine.

Ideal gas compression paths on a p–V diagram0.20.40.60.81.00100200300400volume (m³)pressure (kPa)isothermal (n = 1): p V = constantpolytropic (n = 1.25)adiabatic (n = 1.4): steepest, most workThe work done on the gas is the area under the curve. Compressing to 0.5 m³ takes 69.3 kJ isothermally and 79.9 kJadiabatically, which is why intercooling saves compressor power.
Three compression paths from the same start. The steeper the curve, the more work the compression takes.

One kilogram compressed three ways

Worked example: compress 1 kg of air to half its volume

Air starts at 100 kPa and 300 K (0.861 m³) and is compressed to 0.431 m³. Work is entered here as work done on the gas, so the numbers are positive.

ProcessFinal pressureFinal temperatureWork on the gas (kJ)
Isothermal (n = 1)200 kPa300 K59.7
Polytropic (n = 1.25)238 kPa356.8 K65.2
Adiabatic (n = 1.4)264 kPa395.8 K68.8
  • The isothermal route needs 59.7 kJ: the least, because heat flows out as fast as the gas heats.
  • The adiabatic route needs 68.8 kJ (15 percent more) and ends 96 K hotter.
  • The heat removed in the isothermal case equals the work, 59.7 kJ, because the internal energy of an ideal gas depends on temperature alone.

Worked example: heating the same air at constant volume and constant pressure

  • Constant volume, 300 K to 600 K: Q = m cv ΔT = 0.718 × 300 = 215.4 kJ; no work; the pressure doubles to 200 kPa.
  • Constant pressure: Q = m cp ΔT = 1.005 × 300 = 301.5 kJ, of which 86.1 kJ (29 percent) leaves as expansion work, p ΔV = m R ΔT.

Staged compression and intercooling

Compression work grows with the final temperature, so a large pressure ratio is split into stages with cooling between them. For two equal stages of ratio √r the work is least; the optimum intermediate pressure is pi = √(p₁ p₂).

Worked example: 100 kPa to 900 kPa

  • One stage (isentropic): T₂ = 562 K (289 °C), w = cp T₁ (90.2857 − 1) = 263.2 kJ/kg.
  • Two stages with ideal intercooling back to 300 K, each of ratio 3: w = 2 cp T₁ (30.2857 − 1) = 222.2 kJ/kg, a saving of 15.6 percent and a far cooler discharge.

This is why industrial air compressors above about 7 bar use two or more stages, and why the discharge temperature on the datasheet matters. See Compressed Air and Gas Flow for the flow side and the Compressed Air Consumption Calculator for the demand.

When is a gas not ideal?

The ideal gas law fails near the saturation point, at high pressure and at low temperature. The compressibility factor Z = p v ÷ (R T) measures the departure: Z = 1 is ideal. Air at 10 MPa and 300 K has Z ≈ 0.99, but steam near saturation, refrigerant vapor and CO₂ near its critical point deviate strongly. For those, use property tables or software (see Steam, Water and Property Tables and Refrigeration and Heat Pumps). A good rule: treat a gas as ideal when it is above about twice its critical temperature or below a few bar.

Related

FAQ

Why must I use kelvin?

The gas law is proportional to absolute temperature. Using °C would give nonsense, for example a gas at 0 °C would have no volume.

How hot does air get when compressed?

For a single stage with ratio r, T₂ = T₁ r(k−1)/k. A ratio of 9 takes 300 K to 562 K, hot enough to burn skin and to ignite oil vapor. Real discharge is hotter again because of inefficiency.

What is the difference between isothermal and adiabatic?

Isothermal keeps the temperature constant by removing heat as fast as work is added (slow compression with cooling). Adiabatic allows no heat transfer (fast compression). Real machines are in between.

Can I use the ideal gas law for steam?

Only for low-pressure superheated steam, and then only roughly. Use the steam tables otherwise.

References

  • Çengel, Y. A. and Boles, M. A., Thermodynamics: An Engineering Approach, McGraw-Hill (ideal gas, processes, compressors).
  • Moran, M. J., et al., Fundamentals of Engineering Thermodynamics, Wiley.
  • CAGI, Compressed Air and Gas Handbook, Compressed Air and Gas Institute.

Last reviewed: October 2026. Gas properties are typical room-temperature values.