Gas Laws, Compression Work and Compressor Power: A Practical Guide
How the ideal gas laws, isothermal, isentropic and polytropic processes, compressor power and discharge temperature are calculated, with worked examples.

Gas Laws, Compression Work and Compressor Power: A Practical Guide
Compressed air is often called the fourth utility in industry, and also one of the most expensive. Understanding how gases behave when compressed explains why. The Gas Process and Compressor Work Calculator covers the gas laws, process work, compressor power and entropy. This guide walks through them.
The ideal gas law
pV = nRT links pressure, volume, amount and temperature. For a fixed amount of gas, p1V1/T1 = p2V2/T2. Special cases:
- Boyle: at constant temperature, pV = constant.
- Charles: at constant pressure, V/T = constant.
- Gay-Lussac: at constant volume, p/T = constant.
Always use absolute pressure (gauge + about 1.013 bar) and absolute temperature (°C + 273.15). Example: 10 L of gas at 1 bar and 20 °C, compressed to 5 bar and heated to 80 °C, takes 10 × (1/5) × (353.15/293.15) = 2.41 L.
Process paths
The work to compress or expand a gas depends on how heat flows:
- Isothermal (pV = const): heat is removed as fast as it is generated. W = p1V1 ln(V2/V1).
- Isentropic (pV^k = const): no heat transfer and no losses; the gas gets hot. k = 1.4 for air.
- Polytropic (pV^n = const): real machines, with n between 1 and k (or above k with losses).
Polytropic work is W = (p2V2 − p1V1)/(1 − n). Compressing 10 L of air from 1 bar to 2 L with n = 1.3 raises the pressure to 8.1 bar and needs about 2.1 kJ.
Compressor power
For a steady flow V̇1 measured at inlet conditions, the isentropic power is P = k/(k − 1) × p1 × V̇1 × [(p2/p1)^((k−1)/k) − 1] Divide by the isentropic efficiency (70 to 85 % for good screw and reciprocating machines). For 10 m³/min of air from 1 to 8 bar at 80 % efficiency, P ≈ 59 kW.
Discharge temperature
T2s = T1 × (p2/p1)^((k−1)/k). From 20 °C to 8 bar, the isentropic discharge temperature is 258 °C; with 80 % efficiency, about 317 °C. That is why compressors need aftercoolers, and why lubricant temperature limits the pressure ratio of a single stage.
Multi-stage compression
Splitting compression into stages with intercooling brings the gas back towards ambient temperature between stages, approaching isothermal compression. With equal pressure ratios per stage (√8 = 2.83 for two stages to 8 bar), power falls to about 50 kW in the example, a 15 % saving, and discharge temperatures drop sharply.
Saving energy in compressed air
- Lower the pressure: each bar costs about 7 % more energy.
- Fix leaks: leaks of 20 to 30 % of output are common.
- Recover heat: up to 90 % of compressor input becomes recoverable heat.
- Take cool inlet air: every 3 °C cooler saves about 1 %.
Entropy change
For an ideal gas, Δs = cp ln(T2/T1) − R ln(p2/p1). Compressing air from 1 bar, 20 °C to 5 bar, 80 °C gives Δs = −0.275 kJ/(kg·K): entropy falls because heat must have been removed compared with isentropic compression, which would end at a higher temperature.
Questions and answers
Why do I need absolute pressure? The gas laws are proportional relationships that only hold from absolute zero.
What is free air delivery? Compressor output expressed at inlet conditions; the calculator uses inlet flow.
When does the ideal gas law fail? At very high pressures or near condensation; then use compressibility factors.
Using the calculator
Choose gas law, work, compressor or entropy, enter the states and process, and read volume, pressure, work, power and temperatures. Everything runs in your browser.



