Worked example
Example: 300 mm, 20 km natural gas. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Pipe inside diameter | 300.00 mm |
| Pipeline length | 20.000 km |
| Inlet pressure, packed state (absolute) | 40.000 bar |
| Outlet pressure, packed state (absolute) | 38.000 bar |
| Inlet pressure, drawn-down state (absolute) | 30.000 bar |
| Outlet pressure, drawn-down state (absolute) | 20.000 bar |
| Gas temperature | 15.000 °C |
| Compressibility factor, packed | 0.93000 - |
| Compressibility factor, drawn down | 0.95000 - |
| Molar mass | 17.400 kg/kmol |
Applying the formula below gives:
| Result | Value |
|---|---|
| Average pressure, packed | 39.009 bar |
| Average pressure, drawn down | 25.333 bar |
| Gas held, packed | 43,066 kg |
| Gas held, drawn down | 27,380 kg |
| Usable line pack | 15,686 kg |
| Usable line pack at 0 °C, 1 atm (Nm³) | 20,207 m³ |
Open this example in the calculator and change any input.
Formula
\(\bar p = \frac23\left(p_1 + p_2 - \frac{p_1p_2}{p_1 + p_2}\right), \quad m = \frac{\bar pV}{ZRT}, \quad \Delta m = m_A - m_B\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(D\) | Pipe inside diameter | m |
| \(L\) | Pipeline length | m |
| \(p_{1,A}\) | Inlet pressure, packed state (absolute) | Pa |
| \(p_{2,A}\) | Outlet pressure, packed state (absolute) | Pa |
| \(p_{1,B}\) | Inlet pressure, drawn-down state (absolute) | Pa |
| \(p_{2,B}\) | Outlet pressure, drawn-down state (absolute) | Pa |
| \(T\) | Gas temperature | K |
| \(Z_A\) | Compressibility factor, packed | - |
| \(Z_B\) | Compressibility factor, drawn down | - |
| \(M\) | Molar mass | kg/kmol |
| \(\bar p_A\) | Average pressure, packed | Pa |
| \(\bar p_B\) | Average pressure, drawn down | Pa |
| \(m_A\) | Gas held, packed | kg |
| \(m_B\) | Gas held, drawn down | kg |
| \(\Delta m\) | Usable line pack | kg |
| \(\Delta V_n\) | Usable line pack at 0 °C, 1 atm (Nm³) | m³ |
Method and standards
Gas inventory definitions.
Where it is used
- Gas supply to boilers and engines during peaks.
- Depressurising and venting estimates.
Common mistakes
- Gauge pressures.
- Using one Z for both states at very different pressures.
Assumptions and limits
- Isothermal line; ideal gas with Z.
- Normal volume at 0 °C and 1 atm (not the 15 °C standard).
- A packed state not above the drawn-down state is flagged.
References
- Ideal-gas inventory with Z and the flowing-line average pressure p̄ = ⅔(p₁ + p₂ − p₁p₂/(p₁ + p₂)) (pipeline engineering definitions)
Questions and answers
What is line pack?
Gas stored in the pipeline itself; raising the pressure packs more in, which can cover short peaks in demand.
Why not the arithmetic mean pressure?
Pressure falls faster towards the outlet of a flowing gas line; the ⅔ formula is the length-average.
What do the defaults give?
A 300 mm, 20 km line drawn from about 39 to 25 bar(a): roughly 20,000 Nm³ of usable gas.
Method and article reviewed by FireCAD engineering on 13 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.