This calculator works out the pressure drop (in kPa or bar) of natural gas flowing through a straight pipe, using the Darcy–Weisbach equation with the Colebrook–White friction factor. You enter the pipe length, internal diameter, flow rate (in m³/h), and the gas’s density and viscosity, and it returns the pressure loss and the outlet pressure (if you provide an inlet pressure).
Formula
The calculator uses the Darcy–Weisbach equation for pressure loss in a pipe:
Δp = f × (L / D) × (ρ × v² / 2)
Where:
- Δp = pressure loss (Pa, converted to bar in the output)
- f = Darcy friction factor (dimensionless)
- L = pipe length (m)
- D = internal diameter (m)
- ρ = gas density (kg/m³)
- v = average flow velocity (m/s)
The velocity is computed from the volumetric flow rate Q (m³/s) and the pipe cross-sectional area A = πD²/4:
v = Q / (πD²/4)
For laminar flow (Reynolds number Re < 2300), the friction factor is f = 64/Re, where Re = ρvD/μ. For turbulent flow (Re ≥ 2300), the calculator uses the Colebrook–White equation implicitly by assuming a smooth pipe (relative roughness = 0) and solving iteratively. In this implementation, the turbulent friction factor is approximated using the explicit Haaland equation:
f = [ -1.8 × log10( (ε/D)/3.7 )^1.11 + 6.9/Re ]^-2
Since we assume smooth pipe (ε = 0), the term (ε/D)/3.7 is taken as 0, so the equation reduces to f = [ -1.8 × log10(6.9/Re) ]^-2. This is accurate to within about 2% for Re between 4000 and 10⁸.
Worked Example
Using the default inputs: L = 50 m, D = 50 mm (0.050 m), Q = 10 m³/h, ρ = 0.75 kg/m³, μ = 1.1 × 10⁻⁵ Pa·s, p_in = 4 bar.
- Convert flow to m³/s: Q = 10 / 3600 = 0.0027778 m³/s.
- Cross-sectional area: A = π × (0.050)² / 4 = 0.0019635 m².
- Velocity: v = 0.0027778 / 0.0019635 = 1.4147 m/s.
- Reynolds number: Re = (0.75 × 1.4147 × 0.050) / (1.1 × 10⁻⁵) = 4823. (Turbulent, since > 2300.)
- Friction factor (smooth pipe): f = [ -1.8 × log10(6.9/4823) ]^-2 = [ -1.8 × (-2.844) ]^-2 = (5.119)^-2 = 0.03816.
- Pressure loss in Pa: Δp = 0.03816 × (50 / 0.050) × (0.75 × 1.4147² / 2) = 0.03816 × 1000 × 0.7505 = 28.64 Pa.
- Convert to bar: 28.64 Pa × 1e-5 = 0.0002864 bar.
- Outlet pressure: 4 – 0.0002864 = 3.9997 bar.
The calculator shows Δp = 0.0003 bar (rounded to 4 decimals) and p_out = 3.9997 bar.
Assumptions
- Steady, incompressible flow (valid for low Mach numbers, typically < 0.3).
- Straight pipe of constant diameter, no fittings, bends, or elevation changes.
- Smooth pipe (absolute roughness = 0). Real steel or PE pipe will have higher friction.
- Gas density and viscosity are constant along the pipe (isothermal, moderate pressure drop).
- Flow rate is given at standard conditions (0 °C, 1 atm) and is converted to actual conditions only if you adjust density accordingly.
How to Use the Calculator
Start by measuring or estimating the pipe length and internal diameter. For a new installation, use the nominal bore; for existing pipe, measure the inside diameter directly. The flow rate is usually known from appliance ratings or meter readings. Gas density depends on pressure and temperature; for natural gas at 1 atm and 15 °C, density is about 0.75 kg/m³, but at higher pressures it increases. Use the ideal gas law to adjust: ρ = ρ_std × (p_abs / 1.01325) × (288.15 / T). Viscosity of natural gas is around 1.1 × 10⁻⁵ Pa·s and changes little with pressure.
Enter the inlet absolute pressure (gauge pressure + atmospheric). The calculator gives the pressure loss and the outlet pressure. If the outlet pressure is too low for your appliances, you need a larger pipe or a higher inlet pressure.
Common Mistakes and Misconceptions
- Using gauge pressure instead of absolute. Always add atmospheric pressure (≈1.013 bar) to gauge pressure.
- Ignoring the effect of pressure on density. At 4 bar, natural gas is about 4 times denser than at 1 atm, which increases pressure loss.
- Forgetting that the flow rate is often given in standard cubic meters per hour (sm³/h). At higher pressures, the actual volumetric flow is smaller, but the mass flow is the same. The calculator assumes you enter the flow at standard conditions; if you enter actual flow, adjust density accordingly.
- Using the wrong friction factor formula. Many online calculators use the simplified Hazen–Williams equation, which is for water and not accurate for gas.
- Neglecting fittings and bends. A single 90° elbow can add equivalent length of 20–40 pipe diameters. For a rough estimate, add 10–20% to the pipe length for typical fittings.
When to Use a More Detailed Calculation
This calculator is a quick estimate for simple straight pipes. For real gas distribution systems, you need to account for:
- Pipe roughness (steel vs. polyethylene).
- Fittings, valves, and bends (use equivalent length method).
- Elevation changes (adds hydrostatic pressure for gas, but usually small).
- Compressibility effects if the pressure drop is more than 10% of inlet pressure.
- Temperature changes along the pipe (e.g., buried vs. above ground).
For high-pressure transmission lines, use the AGA or Panhandle equations, which are designed for compressible flow. For low-pressure (< 0.05 bar) residential systems, the simple formula is often sufficient.
Safety and Practical Notes
Natural gas is flammable and can form explosive mixtures with air. Always follow local gas codes and regulations. This calculator is for educational and planning purposes only; it does not replace a professional engineering design. Before any installation, consult a licensed gas fitter and the relevant standards (e.g., NFPA 54, EN 1775). The pressure loss you calculate must be within the allowable limits set by your gas supplier—typically a maximum drop of 0.5 mbar for low-pressure systems, or a percentage of the supply pressure for higher pressures.
Also note that the calculator assumes a smooth pipe. Real pipes have roughness, especially steel, which can increase friction factor by 20–50%. If you have a rough pipe, multiply the pressure loss by a factor of 1.2 to 1.5 for a conservative estimate.
Frequently Asked Questions
Why does the calculator show a very small pressure loss for my 50 m pipe?
Because the example uses a relatively low flow rate (10 m³/h) and a 50 mm diameter pipe, which is oversized for that flow. For a typical residential gas line, you might have 20 m³/h through a 25 mm pipe, which would give a much larger drop. Try increasing the flow or reducing the diameter to see realistic values.
Can I use this for propane or air?
Yes, if you enter the correct density and viscosity for that gas. Propane is heavier (about 1.9 kg/m³ at 15 °C, 1 atm) and more viscous (about 7.5 × 10⁻⁶ Pa·s). Air has a density of 1.225 kg/m³ at 15 °C and viscosity 1.8 × 10⁻⁵ Pa·s. The formula is the same.
What is the difference between pressure loss and pressure drop?
They are the same thing: the reduction in pressure between two points in a pipe due to friction. Sometimes “pressure drop” refers to the total loss including fittings, while “pressure loss” is just the pipe friction.
How do I convert pressure loss from bar to inches of water column?
1 bar = 401.463 inches of water column (inH₂O) at 4 °C. So multiply the bar value by 401.463. For example, 0.0003 bar = 0.12 inH₂O.
Why does the calculator not ask for pipe roughness?
To keep it simple, it assumes smooth pipe. For most plastic pipes (PE, PVC), this is a good approximation. For steel, add 10–30% to the pressure loss. If you need precise results, use a specialized gas flow calculator that includes roughness.
What is the maximum allowable pressure loss for a gas line?
It depends on your local code and the gas supplier. For low-pressure natural gas (typically 7–14 inH₂O), the allowable drop is often 0.5 inH₂O (about 1.2 mbar) for the whole system. For higher pressures, it might be 5–10% of the inlet pressure. Always check with your local authority.
Related
Formula used
in m | Pipe length | m | 50 | 0.01 | 10000 in d | Internal diameter | mm | 50 | 2 | 1000 in q | Flow rate (at 0 °C, 1 atm) | m³/h | 10 | 0.001 | 100000 in rho | Gas density at operating conditions | kg/m³ | 0.75 | 0.01 | 100 in mu | Dynamic viscosity | Pa·s | 1.1e-5 | 1e-6 | 1e-3 in p_in | Inlet absolute pressure | bar | 4 | 1.01 | 200 out dp | Pressure loss | bar | (0.5 * rho * (q / 3600 / (pi * (d/1000)^2 / 4))^2 * (64 / max((rho * (q / 3600 / (pi * (d/1000)^2 / 4)) * (d/1000) / mu), 1) * m / (d/1000)) * 1e-5) | 4 out p_out | Outlet pressure | bar | p_in - dp | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Within 10 Percent Calculator – How to Use It5.00 %
- W/W Percentage Calculator: Formula & Examples2.92 %
- Percent Equation: Formula & How to Use It
- Percent of a Number Calculator: Find It Instantly20.00 %
- UWW GPA Calculator: How to Compute Your GPA
- PPM to w/w Calculator: Convert Easily5.0000 %