Pipe Flow CalculatorFlow, pressure & pipe geometry

Pipe calculators / Gas, air & steam

Define the pipe. Follow the flow.

Natural Gas Pipe Flow Calculator

Estimate natural gas mass and actual inlet/outlet flow under stated isothermal assumptions.

Your pipe & operating inputs

mm
m
kPa absolute
kPa absolute
K
J/(kg·K)

Starting values are editable examples. Verify actual bore, fluid state and model assumptions. Dimension switching converts only the labelled length fields; flow and property units stay as printed.

Reset

Your result

Ready to calculate

Enter your values and press Calculate. The result will open on the calculation page.

Published references · Clear assumptions · No sign-up

The method

Formula and calculation steps

ṁ = A √[(p1²−p2²)D/(fD L ZRT)]; ρ=p/(ZRT); Qactual=ṁ/ρ.

Estimate natural gas mass and actual inlet/outlet flow under stated isothermal assumptions.

  1. Confirm the fluid state, geometry, flow regime and units.
  2. Enter actual dimensions and justified operating conditions.
  3. Submit the form, then interpret the result with the assumptions and limits below.

Horizontal steady isothermal single-phase gas, constant supplied Z and Darcy factor, no fittings. The reduced relation is restricted here to outlet speed/√(ZRT) ≤0.3; no fuel-gas code sizing or certified line capacity. Gas constants are editable examples: natural gas uses methane as a representative, not a known mixture; propane does not represent every LPG blend.

Natural Gas Pipe Flow: assumptions and applications

Estimate natural gas mass and actual inlet/outlet flow under stated isothermal assumptions. Horizontal steady isothermal single-phase gas, constant supplied Z and Darcy factor, no fittings. The reduced relation is restricted here to outlet speed/√(ZRT) ≤0.3; no fuel-gas code sizing or certified line capacity. Gas constants are editable examples: natural gas uses methane as a representative, not a known mixture; propane does not represent every LPG blend.

Use the actual measured bore rather than assuming a nominal pipe label equals its inside diameter. Schedule, lining, corrosion and deposits can change the effective flow area. Enter the applicable fluid properties at the operating temperature.

A flow rate, velocity, pressure difference and capacity describe different physical quantities. The stated model determines which additional measurements are needed. The calculated examples below vary one input while holding all other printed values fixed.

Check the numbers

Natural Gas Pipe Flow Calculator: calculated examples

These scenarios are computed with the same method as the form. They are not product recommendations, code design values or complete standards tables.

Worked example with stated inputs

Dimension units = Metric (m / mm); Actual inside diameter = 25 mm; Straight pipe length = 30 m; Upstream absolute pressure = 700 kPa absolute; Downstream absolute pressure = 680 kPa absolute; Gas temperature = 293.15 K; Specific gas constant = 518.3 J/(kg·K); Constant compressibility factor Z = 1 ; Darcy friction factor (entered) = 0.02 .

OutputComputed result
Isothermal gas mass flow153.739607 kg/h
Inlet actual flow33.370202 m³/h
Outlet actual flow34.351678 m³/h
Outlet velocity19.439073 m/s
Outlet speed / sqrt(ZRT)0.04987
Inlet gas density4.607093 kg/m³
Outlet gas density4.475461 kg/m³

How the stated input changes the result

ScenarioChanged input / basisResult
15 mStraight pipe length217.420637 kg/h
22.5 mStraight pipe length177.523207 kg/h
30 mStraight pipe length153.739607 kg/h
37.5 mStraight pipe length137.508885 kg/h
45 mStraight pipe length125.527863 kg/h
60 mStraight pipe length108.710318 kg/h

Unchanged inputs use: Dimension units = Metric (m / mm); Actual inside diameter = 25 mm; Straight pipe length = 30 m; Upstream absolute pressure = 700 kPa absolute; Downstream absolute pressure = 680 kPa absolute; Gas temperature = 293.15 K; Specific gas constant = 518.3 J/(kg·K); Constant compressibility factor Z = 1 ; Darcy friction factor (entered) = 0.02 . Results retain the model limitations described above.

Common questions

Are gas pressure inputs gauge or absolute?

Both endpoints are absolute. Add local atmospheric pressure to a gauge reading before using the gas equation.

Why does actual gas flow differ at the two ends?

Mass flow is conserved, while density falls as pressure falls in the stated isothermal model. Actual volume flow therefore increases toward the lower-pressure outlet.

Can I use SCFM as actual pipe flow?

Convert it first using the stated standard and actual absolute pressures, temperatures and compressibility factors. SCFM is a reference-volume rate.

Does this replace NFPA 54, IFGC or a gas supplier sizing chart?

No. It does not implement equivalent lengths, permissible appliance pressure losses, code tables, regulators, diversity or approved nominal selections.

How do I use this natural gas pipe flow calculator?

Estimate natural gas mass and actual inlet/outlet flow under stated isothermal assumptions. ṁ = A √[(p1²−p2²)D/(fD L ZRT)]; ρ=p/(ZRT); Qactual=ṁ/ρ.

Can I calculate in metric and imperial units?

The dimension selector converts the labelled length inputs. Flow and property inputs retain their explicitly printed units. Results include related units where meaningful; US gallons and Imperial gallons are different units.

Can I export this calculation to Excel?

Calculate first, then use Export CSV for results and inputs. This is a numeric text export, not an Excel formula workbook, desktop application or certified engineering report.

What do the starting values mean?

They are editable numerical examples. Actual bore, fluid state, roughness, geometry and boundary conditions must match the installation. A calculated result is not a pressure rating or code sizing approval.

Where are the formula sources?

The sources below show plain-text addresses. Equations, examples and tables are stored in these pages; the calculator does not fetch source websites or JSON data files during use.

Formula sources and references

References support the underlying methods and units. Chosen example inputs are not universal recommendations, supplier ratings, market prices or code limits.

  • Kowalczuk and Tatara (2020), Improved model of isothermal and incompressible fluid flow in pipelines versus the Darcy-Weisbach equation and the issue of friction factorhttps://doi.org/10.1017/jfm.2020.131
  • NASA Glenn: Equation of Statehttps://www1.grc.nasa.gov/beginners-guide-to-aeronautics/equation-of-state/
  • NIST Guide to the SI: conversion factorshttps://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors