Tube Volume Calculator

Pipe Volume Calculator for Gas

The pipe beside the gas it releases

More results

How Pipe Volume Calculator for Gas works?

The pipe volume calculator for gas works in 3 steps: you enter 4 values (inner diameter, pipe length, gauge pressure and gas temperature), the tool applies V = π/4 × d² × L, and it shows the standard volume of gas, pipe volume and expansion when released with a live drawing.

You enterInner diameterPipe lengthGauge pressureGas temperatureformulaYou getStandard volume of gasPipe volumeExpansion when released

Gas engineers need two numbers: the pipe's own volume, and the standard volume of gas inside it. The second one tells you how much gas you'd vent or have to purge.

The drawing shows the pipe beside a cube. The cube is the space the gas takes up at 1 atm and 15 °C.

3 steps to use the pipe volume calculator for gas

  1. Enter the pipe's inner diameter and length.

  2. Enter the working pressure as gauge pressure (what the gauge reads) and the gas temperature.

  3. Read the pipe volume and the standard volume of gas inside it.

The pipe volume calculator for gas returns 6 results: standard volume of gas, pipe volume, expansion when released, in litres, pipe volume per length and absolute pressure. Every result switches between metric and imperial units.

Pipe Volume Calculator for Gas formula

The pipe volume calculator for gas formula is V = π/4 × d² × L, V_std = V × (p_g + p_atm)/p_atm × T_std/T.

V at p_g, T V_std1.01325 bar, 15 °C
SymbolMeaningUnits
dinner diameter (ID)mm, in
Llengthm, ft
p_ggauge pressurebar, psi
p_atmatmospheric pressure, 1.01325 bar (14.696 psi)bar, psi
Tgas temperatureK, °C, °F
T_stdstandard temperature, 288.15 K (15 °C, 59 °F)K

The formula comes from 3 steps

  1. The pipe volume is V = π/4 × d² × L, the same at any pressure.
  2. Absolute pressure is p_g + p_atm, with p_atm = 1.01325 bar (14.696 psi).
  3. Boyle's law and Charles's law convert the gas to standard conditions: V_std = V × (p_g + p_atm)/p_atm × T_std/T.

The formula with your numbers

V = π/4 × d² × L, V_std = V × (p_g + p_atm)/p_atm × T_std/T

Worked example

A 100 mm main, 100 m long, has 0.785 m³ inside. At 4 bar gauge that's about 3.89 standard m³ of gas.

Pipe Volume Calculator for Gas Chart

The expansion ratio of gas equals (p_g + 1.01325)/1.01325 × 288.15/T. The chart lists 10 gauge pressures at 0 °C, 15 °C and 30 °C.

0.021 bar1.021 ×0.1 bar1.099 ×0.5 bar1.493 ×1 bar1.987 ×2 bar2.974 ×4 bar4.948 ×7 bar7.908 ×10 bar10.87 ×16 bar16.79 ×25 bar25.67 ×
Gauge pressurepsiRatio at 0 °CRatio at 15 °CRatio at 30 °C
0.021 bar0.305 psi1.077×1.021×0.9702×
0.1 bar1.45 psi1.159×1.099×1.044×
0.5 bar7.25 psi1.575×1.493×1.42×
1 bar14.5 psi2.096×1.987×1.889×
2 bar29 psi3.137×2.974×2.827×
4 bar58 psi5.219×4.948×4.703×
7 bar102 psi8.343×7.908×7.517×
10 bar145 psi11.47×10.87×10.33×
16 bar232 psi17.71×16.79×15.96×
25 bar363 psi27.08×25.67×24.4×

Pipe Volume Calculator for Gas FAQ

How much gas do I vent when I empty a pipe?

You vent the standard volume minus the pipe volume: a 100 mm main, 100 m long, at 4 bar gauge vents 3.89 − 0.785 = 3.1 standard m³ (109 scf).

What is the expansion ratio of gas at 4 bar?

Gas at 4 bar gauge (58 psi) and 15 °C expands 4.95 times when released to atmospheric pressure.

Is the ideal gas law accurate for gas pipes?

Yes, the ideal gas law stays within about 2% for natural gas and air below 10 bar (145 psi) at normal temperatures. Higher-pressure transmission lines need a compressibility factor (Z).