FireCADCalc

Isothermal Gas Flow in a Long Pipeline

Mass flow of a gas through a long pipeline from the inlet and outlet pressures by the isothermal flow equation with its kinetic-energy term.

Process steam and utilitiesRefinery and petrochemicalChemical and fertiliser

Inputs

Examples: Natural gas 8 to 6 bar(a), 2 km of DN100Compressed air 7 to 6.5 bar(a), 300 m of 80 mmBiogas 1.5 to 1.1 bar(a), 500 m of 150 mm

Natural gas is about 16–19; air 28.96.

Results

Ideal gas at constant temperature and friction factor; check that the outlet velocity stays well below sonic.

Mass flow2,312.6kg/h
Flow at 0 °C and 101.325 kPa2,978.9Nm³/h
Velocity at the inlet13.451m/s
Velocity at the outlet17.935m/s

Download PDF CSV Link to this result Compare another case

Log in to save calculations to your dashboard.

Worked example

Example: Natural gas 8 to 6 bar(a), 2 km of DN100. The inputs, in the units selected above:

InputValue
Inlet pressure (absolute)8.0000 bar
Outlet pressure (absolute)6.0000 bar
Pipe length2,000.0 m
Inside diameter102.30 mm
Darcy friction factor0.017000 -
Gas temperature15.000 °C
Molar mass of the gas17.400 kg/kmol

Applying the formula below gives:

ResultValue
Mass flow2,312.6 kg/h
Flow at 0 °C and 101.325 kPa2,978.9 Nm³/h
Velocity at the inlet13.451 m/s
Velocity at the outlet17.935 m/s

Open this example in the calculator and change any input.

Formula

\(p_1^2 - p_2^2 = \left(\frac{\dot m}{A}\right)^2 R T \left[f\frac{L}{d} + 2\ln\frac{p_1}{p_2}\right]\)

Variables

Symbol Meaning SI unit
\(p_1\) Inlet pressure (absolute) Pa
\(p_2\) Outlet pressure (absolute) Pa
\(L\) Pipe length m
\(d\) Inside diameter m
\(f\) Darcy friction factor -
\(T\) Gas temperature K
\(M\) Molar mass of the gas kg/kmol
\(\dot m\) Mass flow kg/s
\(Q_N\) Flow at 0 °C and 101.325 kPa Nm³/s
\(v_1\) Velocity at the inlet m/s
\(v_2\) Velocity at the outlet m/s

Method and standards

Momentum equation integrated at constant temperature.

Where it is used

  • Fuel gas and compressed air mains.
  • Process gas lines.

Common mistakes

  • Gauge pressures in p².
  • Using it near choking.

Assumptions and limits

  • Isothermal, ideal gas.
  • The outlet velocity must stay below the isothermal limit √(RT) (Mach 1/√γ); an outlet pressure that would exceed it is rejected.

References

  • Isothermal compressible flow: p₁² − p₂² = (G² R T)[f L/d + 2 ln(p₁/p₂)] (Coulson and Richardson, Chemical Engineering vol. 1)

Questions and answers

Why p² and not p?

Gas expands as pressure falls, so velocity rises along the pipe; integrating gives the difference of squares.

What is the log term?

The kinetic energy gained by the accelerating gas; small for long lines.

Which friction factor?

From Colebrook at the pipe's Reynolds number; it changes little along the line.

Method and article reviewed by FireCAD engineering on 12 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.

Related calculators

Free engineering calculators: every page computes in SI and converts to your units. Results are for engineering estimation; verify critical designs against the referenced standards.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.