Pipe calculators / Gas, air & steam
Define the pipe. Follow the flow.
Natural Gas Pipe Bore Sizing Calculator
Solve a continuous natural gas bore for entered mass flow and pressure endpoints.
Your pipe & operating inputs
Your result
Ready to calculateEnter 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
D=[16 fD L ṁ² ZRT/(π²(p1²−p2²))]^(1/5).
Solve a continuous natural gas bore for entered mass flow and pressure endpoints.
- Confirm the fluid state, geometry, flow regime and units.
- Enter actual dimensions and justified operating conditions.
- 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. This continuous bore is not a nominal or code-approved pipe size.
Natural Gas Pipe Bore Sizing: assumptions and applications
Solve a continuous natural gas bore for entered mass flow and pressure endpoints. 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. This continuous bore is not a nominal or code-approved pipe size.
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.
Continue with: Gas Pipe Flow Calculator · Air Pipe Flow Calculator · Compressed Air Pipe Flow Calculator · Nitrogen Pipe Flow Calculator
Check the numbers
Natural Gas Pipe Bore Sizing 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); 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 ; Gas mass flow = 20 kg/h.
| Output | Computed result |
|---|---|
| Continuous isothermal gas bore | 11.05701 mm bore |
| Downstream absolute pressure | 680 kPa absolute |
| Inside diameter | 11.05701 mm |
| Outlet velocity | 12.927794 m/s |
| Outlet speed / sqrt(ZRT) | 0.033166 |
How the stated input changes the result
| Scenario | Changed input / basis | Result |
|---|---|---|
| 10 kg/h | Gas mass flow | 8.379647 mm bore |
| 15 kg/h | Gas mass flow | 9.855127 mm bore |
| 20 kg/h | Gas mass flow | 11.05701 mm bore |
| 25 kg/h | Gas mass flow | 12.089315 mm bore |
| 30 kg/h | Gas mass flow | 13.003917 mm bore |
| 40 kg/h | Gas mass flow | 14.589812 mm bore |
Unchanged inputs use: Dimension units = Metric (m / 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 ; Gas mass flow = 20 kg/h. Results retain the model limitations described above.
Common questions
Is the calculated gas bore a recommended pipe size?
No. It is the continuous bore from fixed Darcy factor and stated pressure endpoints. Actual pipe selections and code equivalent lengths need independent verification.
Does a 2 psi natural-gas system use 2 psi absolute?
No. A 2 psi gauge supply is approximately 2 psi above local atmospheric pressure. Use absolute pressure at both endpoints and a suitable actual gas composition.
How do I use this natural gas pipe bore sizing calculator?
Solve a continuous natural gas bore for entered mass flow and pressure endpoints. D=[16 fD L ṁ² ZRT/(π²(p1²−p2²))]^(1/5).
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.
Related calculators
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