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.
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
Enter the pipe's inner diameter and length.
Enter the working pressure as gauge pressure (what the gauge reads) and the gas temperature.
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.
| Symbol | Meaning | Units |
|---|---|---|
| d | inner diameter (ID) | mm, in |
| L | length | m, ft |
| p_g | gauge pressure | bar, psi |
| p_atm | atmospheric pressure, 1.01325 bar (14.696 psi) | bar, psi |
| T | gas temperature | K, °C, °F |
| T_std | standard temperature, 288.15 K (15 °C, 59 °F) | K |
The formula comes from 3 steps
- The pipe volume is V = π/4 × d² × L, the same at any pressure.
- Absolute pressure is p_g + p_atm, with p_atm = 1.01325 bar (14.696 psi).
- 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.
| Gauge pressure | psi | Ratio at 0 °C | Ratio at 15 °C | Ratio at 30 °C |
|---|---|---|---|---|
| 0.021 bar | 0.305 psi | 1.077× | 1.021× | 0.9702× |
| 0.1 bar | 1.45 psi | 1.159× | 1.099× | 1.044× |
| 0.5 bar | 7.25 psi | 1.575× | 1.493× | 1.42× |
| 1 bar | 14.5 psi | 2.096× | 1.987× | 1.889× |
| 2 bar | 29 psi | 3.137× | 2.974× | 2.827× |
| 4 bar | 58 psi | 5.219× | 4.948× | 4.703× |
| 7 bar | 102 psi | 8.343× | 7.908× | 7.517× |
| 10 bar | 145 psi | 11.47× | 10.87× | 10.33× |
| 16 bar | 232 psi | 17.71× | 16.79× | 15.96× |
| 25 bar | 363 psi | 27.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).