PWR-310 · Lesson 7 of 12 · 28 min
Gas laws and compressed gases
▶ Video coming soon A video version of this lesson is on the way.
On the night of Monday, October 12, 2026, Thanksgiving, the plant was quiet. Most of the downtown office buildings on the steam system were closed, the load was light, and Desmond Kirwan and Okonkwo Demarest had the control room to themselves. At about 02:00 Desmond asked Okonkwo to time the lead instrument air compressor through a few of its load and unload cycles. The compressor loads at 690 kPa and unloads at 760 kPa gauge, filling a 2.0 m³ receiver, and on a night with almost nothing using air the timing would say how much air the plant was losing to leaks. The ultrasonic survey in September had found and fixed four leaks; Desmond wanted to know whether the repairs had held.
Answering his question needs the gas laws. This lesson covers the laws of Boyle and Charles and the general gas law, the characteristic gas equation and the gas constant, standard conditions and the correction of gas volumes, mixtures of gases and Dalton's law of partial pressures, the compression of air and the temperatures and work involved, and the safe handling of gas stored in cylinders.
The ideal gas
In a gas the molecules are far apart and move freely, colliding with each other and with the walls of their container. The pressure on the walls is the total effect of those collisions, and the temperature is a measure of the molecules' average kinetic energy. An ideal gas is one in which the molecules themselves take up no volume and exert no forces on each other except in collisions. Air, nitrogen, oxygen, natural gas and flue gases behave almost exactly like ideal gases at the pressures and temperatures found in a heating plant, so the simple laws below give accurate answers. Steam does not, which is why steam needs tables.
All the gas laws need absolute pressure and absolute temperature. A gas law calculation done with gauge pressure or degrees Celsius or Fahrenheit gives a wrong answer every time, and the examiners know it.
Boyle, Charles and the general gas law
- Boyle's law: at constant temperature, the volume of a fixed mass of gas is inversely proportional to its absolute pressure, p₁V₁ = p₂V₂. Halve the volume and the pressure doubles.
- Charles' law: at constant pressure, the volume of a fixed mass of gas is proportional to its absolute temperature, V₁ ÷ T₁ = V₂ ÷ T₂.
- Gay-Lussac's law (sometimes called the pressure law): at constant volume, the absolute pressure is proportional to the absolute temperature, p₁ ÷ T₁ = p₂ ÷ T₂.
The three combine into the general gas law for a fixed mass of gas:
Worked problem
A receiver warming in the afternoon sun
A sealed air receiver is charged to 760 kPa gauge at 25 °C. With its outlet closed, it warms to 45 °C. Atmospheric pressure is 101.3 kPa. What does its gauge now read?
Show solution
- Absolute values: p₁ = 861.3 kPa, T₁ = 298.15 K, T₂ = 318.15 K. At constant volume:
- \[p_2 = p_1 \frac{T_2}{T_1} = 861.3 \times \frac{318.15}{298.15} = 919.1 \text{ kPa abs}\]
- Back to gauge:
- \[919.1 - 101.3 = 818 \text{ kPa gauge}\]
Answer: About 818 kPa gauge, a rise of 58 kPa. Had the calculation been done in gauge pressure and degrees Celsius, it would have predicted 1,368 kPa, which is wildly wrong.
The characteristic gas equation
The general gas law says that pV ÷ T is constant for a fixed mass of gas. The constant is proportional to the mass, and the result is the characteristic gas equation:
where R is the specific gas constant of the particular gas, in kJ/kg·K when p is in kPa, V in m³, m in kg and T in K. Each gas has its own R, found by dividing the universal gas constant, R_u = 8.314 kJ/kmol·K, by the gas's molar mass. For air, with a molar mass of about 28.97 kg/kmol, R = 0.287 kJ/kg·K. For methane, molar mass 16.04, R = 0.518 kJ/kg·K.
The same equation gives a gas's density, ρ = m ÷ V = p ÷ RT. It also shows that the gas constant is the difference between the two specific heats of lesson 4, R = c_p − c_v.
Worked problem
How much air is in the receiver?
The 2.0 m³ receiver is charged from 690 to 760 kPa gauge at 25 °C. How many kilograms of air are added, and how much free air is that at 101.3 kPa and 20 °C, where air's density is about 1.204 kg/m³?
Show solution
- The mass added depends only on the change in pressure, since V and T are the same:
- \[\Delta m = \frac{\Delta p\, V}{RT} = \frac{70 \times 2.0}{0.287 \times 298.15} = 1.636 \text{ kg}\]
- As free air:
- \[\frac{1.636}{1.204} = 1.359 \text{ m}^3 = 1{,}359 \text{ L}\]
Answer: Each load cycle puts about 1,360 L of free air into the receiver. The whole receiver at 760 kPa gauge holds about 20 kg of air.
Standard conditions and gas meters
Because a gas's volume depends so strongly on its pressure and temperature, a volume means nothing without them. Gas quantities are therefore quoted at agreed standard conditions and corrected to them from the actual conditions where they were measured.
In Canada, natural gas is bought and measured in cubic metres at standard conditions of 101.325 kPa and 15 °C, which is the basis of the heating values on a utility bill. Compressed air is often quoted as free air delivery at the compressor's inlet conditions, or as normal cubic metres at 0 °C, so the basis must always be checked. A gas meter registers the actual volume passing through it at line pressure and temperature, and the utility's billing system, or a volume corrector at the meter, converts it to standard conditions with the general gas law.
Worked problem
Correcting a meter reading
Cantwell's gas meter registers 1,000 m³ of gas flowing at 14 kPa gauge and 8 °C, with the barometer at 100.5 kPa. What is the volume at standard conditions, 101.325 kPa and 15 °C?
Show solution
- Absolute values: p₁ = 114.5 kPa, T₁ = 281.15 K; p₂ = 101.325 kPa, T₂ = 288.15 K.
- \[V_2 = V_1 \frac{p_1}{p_2} \frac{T_2}{T_1} = 1{,}000 \times \frac{114.5}{101.325} \times \frac{288.15}{281.15} = 1{,}158 \text{ m}^3\]
Answer: About 16 in 100 more gas than the meter's dial shows. An efficiency test that took the uncorrected meter volume would credit the boiler with burning 16 in 100 less fuel than it really did, and report an efficiency that was too good by the same amount.
Avogadro, moles and gas mixtures
Avogadro's principle states that equal volumes of all ideal gases at the same pressure and temperature contain the same number of molecules. One kilomole of any ideal gas therefore occupies the same volume: 22.41 m³ at 0 °C and 101.325 kPa, or 23.64 m³ at 15 °C. That fact makes combustion calculations by volume simple, as lesson 10 shows: a volume ratio of gases is a ratio of their moles.
In a mixture of gases, each gas behaves as though it alone filled the whole volume. Dalton's law of partial pressures says that the total pressure is the sum of the partial pressures of the individual gases, and each partial pressure is the total pressure times that gas's fraction of the moles, or of the volume:
Dalton's law explains two things an operator sees every day. Water vapour in compressed air condenses in the receiver and aftercooler because compressing the air raises the partial pressure of its water vapour, and once that partial pressure exceeds the saturation pressure at the air's temperature the excess condenses; that is why receivers have drains and instrument air needs a dryer. And the water vapour in flue gas starts to condense on any surface colder than the saturation temperature at the vapour's partial pressure, the flue gas dew point, which lesson 10 calculates.
Compressing air
Lesson 4 showed that a gas compressed with perfect cooling follows the isothermal line and one compressed with no cooling follows the isentropic line. The temperature after an isentropic compression from absolute pressure p₁ to p₂ is:
with γ = 1.4 for air, so the index is 0.286. The work per unit mass for the two ideal cases is:
Worked problem
How hot does the air get?
Air at 101.3 kPa absolute and 20 °C is compressed isentropically to 861.3 kPa absolute in one stage. Find the discharge temperature and the work per kilogram, and compare with isothermal compression.
Show solution
- Pressure ratio 861.3 ÷ 101.3 = 8.50. Discharge temperature:
- \[T_2 = 293.15 \times 8.50^{0.286} = 540.3 \text{ K} = 267 \text{ °C}\]
- Isentropic work:
- \[w = 3.5 \times 0.287 \times 293.15 \times (8.50^{0.286} - 1) = 248 \text{ kJ/kg}\]
- Isothermal work:
- \[w = 0.287 \times 293.15 \times \ln 8.50 = 180 \text{ kJ/kg}\]
Answer: Uncooled single-stage compression would deliver air at about 267 °C and need 38 in 100 more work than the isothermal ideal. With two stages and an intercooler between them that returns the air to 20 °C, each stage's pressure ratio is √8.50 = 2.92 and the discharge temperature of each is only about 125 °C.
Cantwell's oil-flooded rotary screw compressors take a different route to the same goal. Oil injected into the rotors absorbs the heat of compression as it is produced, so the air leaves the air end at a moderate temperature, roughly 80 to 95 °C (175 to 205 °F), and the oil is cooled and separated before the air goes to the aftercooler. Reciprocating compressors use stages, intercoolers and aftercoolers. In every type, high discharge temperature is a warning sign: it cooks lubricating oil into carbon, and carbon deposits in the discharge of a hot compressor are a known fire and explosion hazard.
Compressed gas cylinders
A plant keeps gases in cylinders: nitrogen for purging and blanketing, calibration gases for analyzers, oxygen and acetylene for cutting, refrigerants and carbon dioxide. A cylinder holds a large quantity of gas in a small volume at high pressure, and the gas laws give the quantity.
Worked problem
Free gas in a nitrogen cylinder
A nitrogen cylinder has an internal volume of 50 L and is filled to 15,000 kPa gauge at room temperature. Estimate the volume of nitrogen it can deliver at atmospheric pressure, 101.3 kPa, at the same temperature.
Show solution
- By Boyle's law, with absolute pressures:
- \[V_2 = 0.050 \times \frac{15{,}101}{101.3} = 7.45 \text{ m}^3\]
Answer: About 7.5 m³, although a little less can actually be drawn, since the cylinder is left with some pressure and nitrogen at that pressure deviates slightly from an ideal gas. The gas laws treat real gases as ideal; at high pressures a **compressibility factor**, Z, corrects pV = ZmRT, and for nitrogen near room temperature it stays within a few in 100 of 1.0 up to these pressures.
The energy stored in a full cylinder is large, and a cylinder whose valve is knocked off becomes a projectile. Cylinders are stored upright and chained or strapped, with valve protection caps on when they are not in use, away from heat, and with full and empty cylinders separated. Oxygen is kept apart from fuel gases and from oil and grease, because oil in contact with high-pressure oxygen can ignite. Regulators are matched to the gas, and cylinder valves are opened slowly.
Inert gases carry a quieter hazard. Nitrogen, argon and carbon dioxide displace the oxygen in a confined space without any warning smell or sensation, and a person breathing an oxygen-depleted atmosphere can collapse within a few breaths. A drum or vessel that has been purged or blanketed with nitrogen is a confined space with a lethal atmosphere until it has been ventilated and tested, and entry follows the plant's confined space procedure without exception.
The leak test
Okonkwo timed five cycles between 02:05 and 02:20. The compressor ran loaded for about 33 seconds and unloaded for about 85 seconds each time. In the unloaded period the plant drew the receiver down from 760 to 690 kPa gauge, using the 1,359 L of free air the gas laws gave, so the plant's demand was about 1,359 ÷ 85 = 16 L/s of free air. In the loaded period the compressor supplied that demand and refilled the receiver: 1,359 ÷ 33 = 41 L/s of net fill, plus 16 L/s of demand, came to 57 L/s, matching the compressor's rating and confirming the method. On a quiet holiday night, with only the control valves and analyzers drawing air, most of the 16 L/s was likely leakage.
Desmond compared the figure with the same test from the spring, before the September survey and repairs, and found the demand had fallen by well over a third. He logged both results and added the timing test to the night shift's monthly round, so that a new leak would show up as a shorter unloaded period long before anyone heard it.
Common mistakes
MistakeUsing gauge pressure or degrees Celsius or Fahrenheit in a gas law.
InsteadConvert to absolute pressure and absolute temperature before substituting.
MistakeComparing gas volumes measured at different conditions.
InsteadCorrect every volume to the same standard conditions with the general gas law.
MistakeExpecting a receiver's mass of air to depend on its gauge reading alone.
InsteadThe mass depends on absolute pressure, volume and temperature: m = pV ÷ RT.
MistakeThinking water in a receiver drain means a broken dryer.
InsteadCompression raises the partial pressure of water vapour, so condensate forms in receivers and aftercoolers normally; the dryer treats the air after them.
MistakeTreating nitrogen as harmless because it is not toxic.
InsteadNitrogen displaces oxygen; purged or blanketed vessels are confined spaces with lethal atmospheres until ventilated and tested.
Summary and key terms
- Boyle's, Charles' and Gay-Lussac's laws combine into p₁V₁ ÷ T₁ = p₂V₂ ÷ T₂, always in absolute units.
- The characteristic equation pV = mRT links mass to pressure, volume and temperature; R = R_u ÷ molar mass.
- Gas volumes are corrected to standard conditions before they are compared or billed.
- Dalton's law: total pressure is the sum of the partial pressures; it explains condensate in air systems and flue gas dew point.
- Isentropic compression gives T₂ ÷ T₁ = (p₂ ÷ p₁)^0.286 for air; staging and intercooling save work and lower discharge temperature.
- Cylinders store large energy; secure them, keep oxygen away from oil, and treat inert-gas atmospheres as lethal.
- Boyle's law
- At constant temperature, the absolute pressure of a fixed mass of gas is inversely proportional to its volume.
- Charles' law
- At constant pressure, the volume of a fixed mass of gas is proportional to its absolute temperature.
- Specific gas constant
- The constant R in pV = mRT for a particular gas, equal to the universal gas constant divided by the molar mass.
- Standard conditions
- An agreed reference pressure and temperature to which gas volumes are corrected.
- Partial pressure
- The pressure one gas in a mixture would exert if it alone filled the whole volume.
- Free air delivery
- The volume flow a compressor delivers, expressed at its inlet conditions.
- Compressibility factor
- The factor Z that corrects the ideal gas equation for a real gas, pV = ZmRT.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Air at 100 kPa absolute in 0.6 m³ is compressed at constant temperature to 0.15 m³. Find its final pressure.
Show answer
p₂ = 100 × 0.6 ÷ 0.15 = 400 kPa absolute.
A gas at 20 °C is heated at constant pressure until its volume doubles. What is its final temperature?
Show answer
T₂ = 2 × 293.15 = 586.3 K = 313 °C.
Find the mass of air in a 1.5 m³ tank at 600 kPa absolute and 27 °C.
Show answer
m = 600 × 1.5 ÷ (0.287 × 300.15) = 10.4 kg.
Find the density of methane at 101.325 kPa and 15 °C. (R = 0.518 kJ/kg·K)
Show answer
ρ = 101.325 ÷ (0.518 × 288.15) = 0.679 kg/m³.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.