AIENGINEAR CALCULATOR · PROCESS HYDRAULICS
Quick answer: how do you size a pipe for fluid flow?
Pick the smallest standard pipe whose bore keeps the velocity inside the band for the service and the pressure gradient below the limit you can afford. Velocity is v = Q / (πD²/4); pressure drop is the Darcy-Weisbach equation ΔP = f (L/D) ρv²/2, with the friction factor f from Colebrook-White at the pipe’s Reynolds number Re = ρvD/μ and relative roughness ε/D. For clean water at a pump discharge, a common design window is about 1 to 3 m/s and up to about 45 kPa per 100 m. Example: 100 m³/h of water at 20 °C sizes to NPS 6 Schedule 40 at 1.49 m/s and 12.5 kPa/100 m, because NPS 4 runs at 3.38 m/s. The calculator above does this screen across every ASME B36.10 size, then carries the result into fittings, pump, gas, two-phase, slurry and erosion checks.
Key takeaways
- Use Darcy-Weisbach with Colebrook-White for design. Hazen-Williams is an empirical water formula valid roughly from 5 to 25 °C and is wrong for oils, hot water and gases.
- Size on two criteria at once: a velocity band and a pressure-gradient limit. Either one alone gives lines that are too small (noise, erosion, high pumping cost) or too large (settling, cost).
- Always use the schedule bore, not the nominal size. NPS 4 Schedule 40 has a 102.26 mm bore; using 101.6 mm under-predicts velocity by about 1.3 % and pressure drop by about 3 %.
- Fittings losses depend on Reynolds number and size. The 3-K (Darby) method tracks both; a single constant K can be badly low in small lines and laminar flow.
- Gas lines need compressible methods once pressure drop exceeds about 10 % of inlet pressure, and a choking check when the exit Mach number approaches 1.
- The API RP 14E erosional velocity is a screening rule for solids-free service. Where sand is expected, use a particle-erosion method in addition.
- Everything runs in your browser. No inputs leave your device and nothing is stored.
How to use the calculator
The suite is organised as thirteen modules that share one engine, so a friction factor computed in one module is the same number in every other. Most jobs start in Pipe Sizing and move outward.
- Enter the flow and its unit. Volumetric (m³/h, L/s, US gpm, bbl/d) or mass (kg/h, t/h). Mass units are converted with the density you enter.
- Choose the fluid. Water properties follow temperature automatically; library liquids load typical density and viscosity. Overwrite either with your own data at operating conditions.
- Choose material and schedule. The material sets absolute roughness ε; the schedule sets the bore taken from the ASME B36.10 or B36.19 table.
- Pick a service criterion or type your own minimum velocity, maximum velocity and maximum pressure gradient. Leave the non-preferred sizes (1¼, 2½, 3½ and 5 in) skipped unless your piping class uses them.
- Read the recommendation and the candidate table. The table shows the sizes either side, so you can see how close the next size down came.
- Carry the result on. Use the Fittings module for the system loss, the Pump module for head and NPSH, and the Erosion module where velocity is high.
- Document it. Every module prints a branded report, exports CSV and Excel, and can be added to a single project report that collects several calculations for checking and filing.
Practical tip
Run the sizing at both design and minimum flow. A line that is comfortable at design flow can fall below the minimum velocity at turndown, which is where air pockets, settling and unstable control show up. The candidate table makes the check a two-second job.
What each module does
Aienginear Table 1
Calculator modules, methods and outputs
The thirteen modules of v2.0.0 and the method behind each
| No. | Module | Method | Key outputs |
|---|---|---|---|
| 01 | Pipe Sizing | Darcy-Weisbach, Colebrook-White, B36.10/B36.19 bores | Recommended NPS, velocity, Re, ΔP, ρv², candidate table |
| 02 | Pressure Drop | Darcy-Weisbach vs Hazen-Williams vs Manning | ΔP, head loss and deviation of each method |
| 03 | Gas Pipeline | General flow equation, AGA fully turbulent, Weymouth, Panhandle A and B | Standard capacity, velocities, Mach, method comparison |
| 04 | Compressible | Isothermal, adiabatic (Fanno), isentropic critical flow | Mass flow, inlet and exit Mach, choking pressure |
| 05 | Two-Phase | Beggs & Brill, Friedel, Lockhart-Martinelli | ΔP, holdup, flow pattern, slip, erosion check |
| 06 | Fittings | Crane K, Hooper 2-K, Darby 3-K | ΣK, equivalent length, full head-loss trace |
| 07 | Pump | ρgQH, NPSH margin, API 610 driver margin, IEC motor sizes | TDH, shaft and motor power, NPSHa, specific speed |
| 08 | Slurry | Durand deposition, Clift-Gauvin drag, Durand-Condolios gradient | Deposition and settling velocity, slurry gradient |
| 09 | Erosion | API RP 14E | Erosional velocity, margin, maximum flow |
| 10 | Moody Chart | Colebrook-White, Swamee-Jain, Haaland, Churchill | Interactive chart, correlation deviations |
| 11 | Pipe Database | ASME B36.10 and B36.19 | OD, wall, bore, flow area, mass, velocity |
| 12 | Property Engine | Water correlations, DAK Z with Wichert-Aziz, LGE viscosity, Hansen parameters | Density, viscosity, vapour pressure, Z, Ra |
| 13 | Commissioning | Turnover and contact-time arithmetic, mass balance | Flushing time per stage, chemical quantities |
Fluid flow fundamentals
Three conservation laws carry nearly all of pipe hydraulics. Mass: in steady flow the mass rate is the same at every section, so ṁ = ρ v A is constant and velocity rises wherever the bore shrinks. Energy: between two points the total head, made of pressure head, velocity head and elevation, falls only by the friction and fittings losses in between. Momentum: friction at the wall is what produces that loss, and its size depends on how turbulent the flow is and how rough the wall is.
Pipe sizing is the job of choosing D so that the loss term on the right is affordable, while keeping velocity in a range where the line behaves well. Make D smaller and losses climb roughly with the fifth power of the reduction, because velocity rises with 1/D² and the Darcy loss scales with v²/D. Make it larger and the pipe, supports, insulation and valves get more expensive, and low velocity brings its own problems. Figure 1 shows how those losses appear along a pumped line.
Darcy-Weisbach and the friction factor
The Darcy-Weisbach equation is the one pressure-drop equation that is dimensionally consistent and valid for any Newtonian fluid, any pipe and any regime. Everything particular to the case sits in a single number, the Darcy friction factor f.
In laminar flow the friction factor follows from theory: f = 64/Re. In turbulent flow it comes from the Colebrook-White equation, which blends the smooth-pipe and fully-rough behaviour into one implicit expression. The calculator solves it to machine precision rather than relying on an explicit approximation:
Explicit approximations are useful in spreadsheets. Swamee-Jain and Haaland stay within about 1 % to 2 % of Colebrook over the normal range; Churchill covers laminar, transitional and turbulent flow with one formula, which is why the engine uses it to bridge the 2 000 to 4 000 gap. The Moody Chart module shows all four against each other at your operating point.
Darcy or Fanning?
The Fanning friction factor is exactly one quarter of the Darcy factor. Chemical-engineering texts often use Fanning; most piping and mechanical references use Darcy. Mixing them is one of the commonest four-fold errors in pressure-drop work. Every value in this calculator and article is the Darcy factor unless labelled otherwise.
Symbols and units used in the calculator
Aienginear Table 2
Fluid flow symbols, SI units and typical values
Quantities used in the Darcy-Weisbach and related equations
| Symbol | Quantity | SI unit | Notes and typical range |
|---|---|---|---|
Q | Volumetric flow rate | m³/s | At flowing conditions; m³/h × 1/3600 |
ṁ | Mass flow rate | kg/s | ρQ; constant along the line in steady flow |
D | Internal diameter | m | Schedule bore, never the nominal size |
v | Mean velocity | m/s | Q/A; 1 to 3 m/s for most water services |
ρ | Density | kg/m³ | 998 water at 20 °C; 1 to 100 for gases |
μ | Dynamic viscosity | Pa·s | 1 cP = 0.001 Pa·s; water 1.0 cP at 20 °C |
Re | Reynolds number | – | ρvD/μ; laminar below 2 000, turbulent above 4 000 |
ε | Absolute roughness | m | 4.6 × 10⁻⁵ m for new commercial steel |
f | Darcy friction factor | – | 0.01 to 0.05 in turbulent flow; 4 × Fanning |
K | Resistance coefficient | – | Fitting loss = K v²/2g |
Le | Equivalent length | m | K D / f |
hf | Friction head loss | m | ΔP/(ρg) |
Z | Gas compressibility factor | – | 0.8 to 1.0 for natural gas up to about 100 bar |
k | Heat-capacity ratio cp/cv | – | 1.4 air, about 1.3 natural gas |
M | Mach number | – | v/a; keep below 0.3 for incompressible methods |
Reynolds number and flow regime
The Reynolds number compares inertial to viscous forces. Below about 2 000, viscosity damps any disturbance and the flow is laminar, with a parabolic velocity profile and a friction factor that depends only on Re. Above about 4 000, the flow is turbulent: the profile is flatter, mixing is strong and the friction factor depends on wall roughness as well. In between is a transition band where the flow can switch between the two, and where no correlation is reliable.
Most water, light-hydrocarbon and gas lines in industry run well into the turbulent range, often at Re above 10⁵. Laminar flow is common with heavy oils, glycols, polymer solutions and in small instrument lines. The calculator flags the transition band so you do not mistake an uncertain number for a firm one.
Pipe roughness
Absolute roughness ε is the effective height of the wall irregularities. Its effect is felt through the relative roughness ε/D, so the same material matters more in a small pipe than a large one. Roughness also changes in service: carbon steel corrodes and scales, and a line that was hydraulically smooth when new may lose a quarter of its capacity after years in untreated water. Material choice itself is covered in the Aienginear pipe material selection guide, with detail on carbon steel piping materials, stainless steels used in process piping and non-metallic piping.
Aienginear Table 3
Absolute roughness of common pipe materials
Design values used by the calculator; measured data should take precedence
| Material and condition | ε (mm) | ε/D in NPS 4 Sch 40 | Notes |
|---|---|---|---|
| Drawn tubing: copper, brass, PVC, CPVC | 0.0015 | 0.000015 | Effectively smooth |
| HDPE and polypropylene | 0.007 | 0.000068 | Smooth; stays smooth in service |
| GRP / FRP | 0.01 | 0.000098 | Smooth resin liner |
| Stainless steel, drawn | 0.015 | 0.000147 | Little change in clean service |
| Ductile iron, cement-mortar lined | 0.03 | 0.00029 | Water mains |
| Commercial carbon steel, new | 0.046 | 0.00045 | The usual design value for new steel |
| Carbon steel, in service | 0.09 | 0.00088 | Light rust and scale |
| Galvanised steel | 0.15 | 0.0015 | Utility water |
| Cast iron, unlined | 0.26 | 0.0025 | Older water mains |
| Concrete | 0.3 to 3 | 0.003+ | Wide range with finish |
| Carbon steel, heavily corroded | 0.5 to 3 | 0.005+ | Untreated water or wet gas after years in service |
Velocity and pressure-drop criteria
No code fixes a universal velocity limit for process piping. ASME B31.3 is concerned with pressure integrity, not hydraulics. Limits come from company standards, licensors and industry practice, and they exist for physical reasons: noise and vibration at the top end, erosion and water hammer severity, settling and air accumulation at the bottom end, and pumping cost in between. The values below are typical starting points that the calculator loads as service presets. Replace them with your project’s line-sizing criteria where those exist.
Aienginear Table 4
Typical line-sizing criteria by service
Velocity band and pressure-gradient limit used as starting points for preliminary design
| Service | Velocity (m/s) | Max gradient (kPa/100 m) | What governs |
|---|---|---|---|
| Water or light liquid, pump discharge | 1.0 to 3.0 | ≈ 45 | Pumping cost and surge |
| Water or light liquid, pump suction | 0.3 to 1.5 | ≈ 10 | NPSH available |
| Gravity drain and overflow | 0.3 to 1.2 | ≈ 5 | Available head; self-venting |
| Cooling-water header | 1.0 to 3.0 | ≈ 25 | Distribution balance |
| Hydrocarbon liquid, general | 0.9 to 4.5 | ≈ 45 | API RP 14E guidance; static charge in non-conductive liquids |
| Viscous liquid (> 100 cP) | 0.3 to 1.5 | ≈ 70 | Pressure drop rather than velocity |
| Settling slurry | Above Vc + 20 % | – | Deposition velocity and wear |
| Gas, general process | 10 to 20 | 1 % to 5 % of P per 100 m | Noise, ρv² and erosion |
| Compressor suction | ≤ 15 | Low | Compressor power |
Two further checks are worth running on any line near the top of its band. The momentum flux ρv² is a convenient vibration and noise screen; values above about 15 000 Pa in liquid lines and well above that in gas lines deserve a closer look at supports and small-bore connections. The erosional velocity from API RP 14E is reported alongside, so you can see both at a glance.
Why the optimum size is a trade-off
For a continuously pumped line the right diameter is an economic answer, not just a hydraulic one. Installed cost rises roughly linearly with diameter, while pumping energy falls steeply as diameter grows. The sum has a broad minimum, and the velocity criteria above are a practical shorthand for landing near it. Figure 2 sketches the shape.
Two consequences follow. First, energy price and running hours shift the optimum: a line that runs all year with expensive power justifies the larger size more often than a batch line that runs a few hours a week. Second, because the minimum is flat, moving one size up usually costs little and buys margin for future throughput, fouling and roughening. Short lines with few running hours are the exception; there, capital dominates and a smaller line with a higher gradient is often right.
Hazen-Williams and Manning: when they apply
Hazen-Williams was fitted to water in pipes of ordinary size, at ordinary temperature and in turbulent flow. Inside that window, with an honest C value, it agrees with Darcy-Weisbach within a few per cent and remains common in water supply and fire protection, where codes such as NFPA 13 specify it. Outside that window it fails silently: its C value does not respond to viscosity, so it cannot tell hot water from cold or oil from water. Manning was developed for open channels and is used for gravity sewers and culverts flowing full. The Pressure Drop module computes all three side by side and warns when Hazen-Williams or Manning are being used outside their range.
Fittings and valves: K, 2-K and 3-K
Every elbow, tee and valve dissipates energy in proportion to the velocity head, h = K v²/(2g). The difficulty is K itself. A single constant, the classical approach, assumes fully turbulent flow and ignores the size of the fitting. That works in large lines at high Reynolds number but under-predicts the loss in small lines and at low Re.
For fitting geometry, end connections and centre-to-end dimensions, see types of pipe fittings and the ASME B16.9 pipe elbow dimensions chart.
- Crane (single K): K = (L/D)eq · fT, where fT is the fully turbulent friction factor of clean steel at that size. Simple and well established, as published in Crane Technical Paper 410.
- Hooper 2-K: K = K₁/Re + K∞(1 + 1/Din). The first term captures low-Re behaviour, the second the size effect.
- Darby 3-K: K = K₁/Re + Ki(1 + Kd/Din0.3). A refinement that tracks the size effect more accurately over a wider range; the default in the calculator.
Aienginear Table 5
Resistance coefficient K for common fittings in NPS 4
Computed by the calculator at Re = 2 × 10⁵ in a 102.26 mm bore
| Fitting | Crane K | Hooper 2-K | Darby 3-K |
|---|---|---|---|
| 90° elbow, standard (R/D = 1), flanged / welded | 0.326 | 0.316 | 0.335 |
| 90° elbow, long radius (R/D = 1.5) | 0.228 | 0.254 | 0.204 |
| 45° elbow, standard (R/D = 1) | 0.261 | 0.252 | 0.270 |
| 90° elbow, standard (R/D = 1), threaded | 0.489 | 0.503 | 0.513 |
| Tee, flow through branch (as elbow) | 0.979 | 1.003 | 1.021 |
| Tee, flow through run | 0.326 | 0.625 | 0.182 |
| Gate valve, fully open | 0.130 | 0.126 | 0.134 |
| Ball valve, full bore, fully open | 0.049 | 0.126 | 0.058 |
| Globe valve, standard, fully open | 5.545 | 5.001 | 5.737 |
| Butterfly valve, fully open | 0.734 | 0.316 | 0.912 |
| Swing check valve | 1.631 | 1.880 | 1.679 |
| Lift check valve | 9.786 | 12.494 | 9.991 |
| Pipe entrance, sharp-edged | 0.500 | 0.500 | 0.500 |
| Pipe exit into vessel | 1.000 | 1.000 | 1.000 |
Control valves are not fittings
A control valve’s pressure drop is a design choice, not a fixed resistance. Allocate it separately, typically a fraction of the system dynamic loss, and size the valve with the Aienginear Control Valve Sizing Calculator. Do not count it in the fittings inventory as if it were a fully open globe valve.
Gas pipeline equations
Long gas transmission lines lose enough pressure that density changes substantially from inlet to outlet. The standard approach integrates the momentum equation under isothermal conditions, giving the general flow equation in terms of the difference of squared pressures. The empirical equations that grew up around it differ only in how they model the friction factor, which is why they give different answers on the same duty.
Average pressure for velocity and Z is not the arithmetic mean. For a line with a square-root pressure profile it is Pavg = ⅔ (P₁ + P₂ − P₁P₂/(P₁ + P₂)), which the calculator uses.
Aienginear Table 6
Gas pipeline equations compared on one duty
NPS 20 STD (488.9 mm bore), 100 km, 70 to 50 bar abs, G = 0.6, Z = 0.9, 15 °C, E = 0.95 where used
| Equation | Capacity (million std m³/d) | vs General | Friction basis | Typical use |
|---|---|---|---|---|
| General flow equation | 6.20 | reference | Colebrook-White f at actual Re | Any size; most transparent |
| AGA fully turbulent | 6.24 | +0.7 % | Rough-pipe transmission factor | High-Re transmission lines |
| Weymouth | 5.90 | -4.7 % | f depends on D only | Short, small, gathering lines; conservative |
| Panhandle A | 7.46 | +20.4 % | Re-dependent, partially turbulent | Large lines, moderate Re |
| Panhandle B | 7.36 | +18.8 % | Re-dependent, fully turbulent | Large, high-pressure transmission |
The spread of roughly 25 % is normal and is the reason a method must be named in any pipeline design basis. Weymouth is conservative and suits short, small, high-friction lines; the Panhandle equations were calibrated on large transmission lines at high Reynolds number and give the highest capacities. The general equation with Colebrook-White is the most transparent, because every assumption is visible.
Compressible and choked flow
When the pressure drop in a gas line is more than about 10 % of the inlet pressure, the density change along the pipe can no longer be ignored, and once it exceeds about 40 % even the average-density shortcut breaks down. The Compressible module solves the two limiting models exactly. Isothermal flow suits long, uninsulated lines where the gas exchanges heat with the surroundings. Adiabatic (Fanno) flow suits short, well-insulated lines and relief headers. Both converge at low Mach number, which the self-test checks.
A constant-area pipe can only accelerate subsonic gas up to Mach 1 at its exit. Once that happens the line is choked: lowering the downstream pressure further does not increase flow, and the excess pressure is lost in shock waves outside the pipe. The calculator detects this and reports the choking pressure P*. Relief and tube-rupture cases are where choked flow most often governs; check them with the PSV Relief Load Calculator and the Tube Rupture Relief Valve Suite.
Two-phase gas-liquid flow
When gas and liquid flow together, the phases arrange themselves into flow patterns such as stratified, slug, annular and dispersed bubble, and the gas usually travels faster than the liquid. That slip means the liquid fraction held in the pipe, the holdup, is higher than the no-slip fraction λL = vSL/vm, which raises the hydrostatic head in uphill sections and the slug volume arriving at the separator.
- Beggs & Brill predicts flow pattern, holdup with an inclination correction, and a two-phase friction factor. It is the default for inclined and undulating lines.
- Friedel is a widely used two-phase multiplier correlation for frictional gradient in horizontal and vertical-upward flow.
- Lockhart-Martinelli with Chisholm’s C is the classical separated-flow method; it tends to be conservative.
The calculator runs all three on the same duty. A spread of 2:1 between methods is common in two-phase work and is itself useful information: if the design only works with the most optimistic method, it does not work. Mixture velocity is also checked against the API RP 14E erosional velocity.
Erosional velocity (API RP 14E)
API RP 14E sets an erosional velocity for production piping in field units as Ve = C/√ρm, with Ve in ft/s and ρm in lb/ft³. Converted to SI it becomes:
Aienginear Table 7
API RP 14E C factors and erosional velocity
Erosional velocity in m/s at three mixture densities
| C | Typical application | ρm = 50 | ρm = 200 | ρm = 1000 |
|---|---|---|---|---|
| 100 | Continuous service, solids-free, carbon steel | 17.25 | 8.63 | 3.86 |
| 125 | Intermittent service | 21.56 | 10.78 | 4.82 |
| 150 | Continuous, with corrosion inhibition or corrosion-resistant alloy | 25.88 | 12.94 | 5.79 |
| 200 | Intermittent, inhibited or corrosion-resistant alloy | 34.50 | 17.25 | 7.72 |
| 250 | Non-corrosive, solids-free, intermittent | 43.13 | 21.56 | 9.64 |
A screening rule, not an erosion model
The C-factor equation has no particle size, sand rate or material hardness in it, and published research has shown it can be both over-conservative in clean service and unconservative with sand. Treat it as a first screen. Where solids are expected, add a particle-erosion assessment (for example DNV-RP-O501) and a sand-monitoring strategy.
Pump head, power and NPSH
The Pump module turns a hydraulic duty into a pump specification. Total dynamic head comes from the flange pressures; hydraulic power is ρgQH; shaft power divides by pump efficiency and motor input by motor efficiency. Motors are then selected from the IEC standard rating series with a driver margin on rated shaft power, following common API 610 practice: 25 % up to 22 kW, 15 % from 22 to 55 kW and 10 % above 55 kW.
NPSH available must exceed the vendor’s NPSH required with margin. NPSH3 is defined at a 3 % head drop, so the pump is already cavitating at that point. ANSI/HI 9.6.1-2024 gives margin ratios that depend on application and suction energy; a ratio of at least 1.3 and at least 1 m absolute margin is a sensible screening minimum for water. Hydrocarbons near their bubble point, hot water and high suction-energy pumps need more. For full suction-system work use the Aienginear Pump Sizing & NPSH Calculator.
Slurry transport
A settling slurry has a velocity below which solids drop out and form a bed on the pipe invert, the deposition velocity Vc. Running below it raises pressure drop, wear and the risk of blockage; running far above it wastes energy and accelerates wear. The calculator uses the Durand form Vc = FL√(2gD(s − 1)) with an empirical FL that depends on particle size and concentration, a Clift-Gauvin drag law for terminal settling velocity, and the Durand-Condolios correlation for the excess friction gradient. A design velocity of about 20 % or 0.3 m/s above Vc, whichever is larger, is a common target. Fine slurries below about 40 µm behave as a homogeneous fluid and are treated with the mixture density.
Pipe schedules and bores
Nominal pipe size (NPS) is a name, not a dimension. From NPS 14 upward the outside diameter equals the NPS in inches; below that it does not. The schedule sets the wall thickness, so the bore changes with schedule at every size. ASME B36.10 covers welded and seamless wrought steel pipe; ASME B36.19 covers stainless steel pipe with the “S” schedules (5S, 10S, 40S, 80S). The Pipe Database module holds the full table to NPS 36. The 2022 editions of both standards dropped the “M” suffix; many project specifications still cite them as B36.10M and B36.19M.
Aienginear Table 8
Schedule 40 bores and water capacity at 1 to 3 m/s
Quick reference for preliminary line sizing; gradient for water at 20 °C and 2 m/s in new steel
| NPS | DN | OD (mm) | Wall (mm) | Bore (mm) | Q at 1 m/s (m³/h) | Q at 3 m/s (m³/h) | kPa/100 m at 2 m/s |
|---|---|---|---|---|---|---|---|
| 1 | 25 | 33.4 | 3.38 | 26.64 | 2.0 | 6.0 | 192.68 |
| 1-1/2 | 40 | 48.3 | 3.68 | 40.94 | 4.7 | 14.2 | 112.26 |
| 2 | 50 | 60.3 | 3.91 | 52.48 | 7.8 | 23.4 | 82.37 |
| 3 | 80 | 88.9 | 5.49 | 77.92 | 17.2 | 51.5 | 50.51 |
| 4 | 100 | 114.3 | 6.02 | 102.26 | 29.6 | 88.7 | 36.17 |
| 6 | 150 | 168.3 | 7.11 | 154.08 | 67.1 | 201.4 | 21.93 |
| 8 | 200 | 219.1 | 8.18 | 202.74 | 116.2 | 348.7 | 15.72 |
| 10 | 250 | 273.1 | 9.27 | 254.56 | 183.2 | 549.7 | 11.95 |
| 12 | 300 | 323.8 | 10.31 | 303.18 | 259.9 | 779.7 | 9.68 |
| 14 | 350 | 355.6 | 11.13 | 333.34 | 314.2 | 942.5 | 8.64 |
| 16 | 400 | 406.4 | 12.70 | 381.00 | 410.4 | 1,231.3 | 7.36 |
| 18 | 450 | 457.2 | 14.27 | 428.66 | 519.5 | 1,558.6 | 6.40 |
| 20 | 500 | 508.0 | 15.09 | 477.82 | 645.5 | 1,936.6 | 5.62 |
| 24 | 600 | 609.6 | 17.48 | 574.64 | 933.6 | 2,800.9 | 4.51 |
For full dimensional data, including mass per metre and all schedules, see the Aienginear pipe sizes and schedule chart and the pipe dimensions guide. Which schedule a line gets is set by its piping class; see what a pipe class is and the Piping Specification & Component Calculator.
Worked examples
Example 1: sizing a water pump discharge line
Duty: 100 m³/h of water at 20 °C, 100 m of new carbon steel, Schedule 40, pump-discharge criteria of 1 to 3 m/s and 45 kPa/100 m, non-preferred sizes skipped.
- Q = 100/3600 = 0.02778 m³/s. Minimum bore for 3 m/s: D = √(4Q/(π·3)) = 108.6 mm.
- NPS 4 Sch 40 (102.26 mm) gives v = 3.38 m/s, above the limit, and 99 kPa/100 m.
- NPS 6 Sch 40 (154.08 mm): v = 1.49 m/s, Re = 228 700, f = 0.0174, gradient 12.5 kPa/100 m. Both criteria are met.
- Result: NPS 6 Sch 40. If the piping class allows NPS 5, it also passes at 2.15 m/s and 31.6 kPa/100 m and would be the lighter choice.
Example 2: system loss with fittings
Duty: water at 2 m/s in NPS 4 Sch 40, 100 m of pipe, four welded 90° elbows, two gate valves, one swing check valve, sharp entrance and exit, 5 m rise. Darby 3-K method.
- Re = 203 700, f = 0.0185. Pipe friction hF = 3.69 m.
- ΣK = 4.78, giving fittings loss hL = 0.98 m and an equivalent length of 26.4 m.
- Elevation 5.00 m. Total head 9.67 m, or 94.7 kPa.
Example 3: gas transmission capacity
Duty: the line in Table 6. The general flow equation with Colebrook-White gives 6.20 million std m³/d (218.8 MMSCFD), a Reynolds number of 1.25 × 10⁷, f = 0.0120 and an average velocity of 5.8 m/s. Outlet velocity is 7.0 m/s, comfortably inside normal gas-line limits.
Example 4: erosional velocity check
Duty: gas-condensate mixture at ρm = 200 kg/m³, continuous service with C = 100, actual velocity 8 m/s. Ve = 1.22 × 100/√200 = 8.63 m/s. The ratio is 0.93, which passes, but with only 7 % margin a small increase in throughput would breach it; the next size up is worth pricing.
Common sizing mistakes
- Using the nominal size as the bore. The error grows in small sizes and heavy schedules.
- Properties at the wrong conditions. Viscosity of oils can change tenfold between 20 °C and 80 °C; use operating conditions.
- Fanning factor in a Darcy equation, or the reverse. A four-fold error.
- Hazen-Williams outside cold water. It cannot see viscosity.
- Ignoring roughness growth. Size steel lines in water service on in-service roughness, not new-pipe values, or keep margin.
- Checking only design flow. Run minimum flow too; that is where velocity falls below the settling or self-venting limit.
- Single constant K in small lines or viscous service, where 2-K or 3-K is needed.
- Incompressible methods for gas when ΔP exceeds about 10 % of the inlet pressure.
- Treating API RP 14E as a sand-erosion check. It is not one.
- Forgetting NPSH at maximum flow and maximum temperature, the combination that usually governs.
How this calculator compares
Most free pipe calculators solve one equation for one fluid. This one is built as a connected engineering workspace.
Aienginear Table 9
Aienginear v2.0.0 against typical free online pipe calculators
Feature comparison for preliminary design work
| Capability | Typical free calculator | Aienginear v2.0.0 |
|---|---|---|
| Friction factor | One explicit approximation | Colebrook-White solved exactly, three approximations compared |
| Pipe bores | Manual ID entry | Full ASME B36.10 and B36.19 tables to NPS 36, pick-lists in every module |
| Line sizing | Velocity only | Velocity band plus pressure gradient, service presets, candidate table, non-preferred sizes option |
| Fittings | Constant K | Crane K, Hooper 2-K and Darby 3-K with Reynolds and size effects |
| Gas | One equation | Five pipeline equations side by side, plus isothermal, Fanno and choked flow |
| Two-phase, slurry, erosion | Rarely | Beggs & Brill, Friedel, Lockhart-Martinelli, Durand slurry, API RP 14E |
| Pumps | Head only | TDH, power, NPSH margin, specific speed, IEC motor with API 610 margin |
| Verification | None shown | 16-check runtime self-test and a calculation trace in each module |
| Documentation | Screenshot | Branded print report, CSV, Excel and a multi-module project report |
| Privacy | Varies; some require sign-up | Runs entirely in the browser; no sign-up, nothing sent or stored |
Standards and references
Aienginear Table 10
Standards and references behind the calculator
Status checked October 2026; always confirm the edition your project specifies
| Reference | Scope | Used for |
|---|---|---|
| ASME B36.10-2022 (formerly B36.10M) | Welded and seamless wrought steel pipe | OD, wall thickness and bore by schedule |
| ASME B36.19-2022 (formerly B36.19M) | Stainless steel pipe, S schedules | 5S, 10S, 40S, 80S dimensions |
| ASME B31.3-2024 | Process piping | Pressure design context; hydraulics are outside its scope |
| API RP 14E | Design and installation of offshore production platform piping | Erosional velocity and C factors |
| Crane Technical Paper No. 410 | Flow of fluids through valves, fittings and pipe | Single-K method, fT, roughness data |
| Hooper (1981); Darby (2001) | Two-K and three-K fitting methods | Reynolds and size-dependent K |
| Colebrook (1939); Moody (1944) | Turbulent friction in commercial pipe | Friction factor and Moody chart |
| AGA, Weymouth, Panhandle; Menon, Gas Pipeline Hydraulics | Gas transmission flow equations | Gas pipeline module (SI forms) |
| Beggs & Brill (1973); Friedel (1979); Lockhart & Martinelli (1949) | Two-phase pressure drop | Two-phase module |
| Dranchuk & Abou-Kassem (1975); Sutton; Wichert & Aziz; Lee, Gonzalez & Eakin | Natural gas properties | Z factor and gas viscosity |
| ANSI/HI 9.6.1-2024 | Rotodynamic pumps, NPSH margin | NPSH screening guidance |
| API 610 / ISO 13709 | Centrifugal pumps for petroleum and gas industries | Driver margin practice |
| IEC 60072-1 | Rotating electrical machines, dimensions and output series | Standard motor ratings |
| Durand; Wasp, Kenny & Gandhi | Settling slurry pipelines | Deposition velocity and gradient |
| ASTM A380/A380M; ASTM A967/A967M-25 | Cleaning, descaling and passivation of stainless steel | Context for the commissioning module |
| DNV-RP-O501 | Managing sand production and erosion | Recommended supplement to API RP 14E |
Assumptions and limitations
- Steady, fully developed, single-phase Newtonian flow unless a module says otherwise. Non-Newtonian fluids (Bingham plastics, power-law slurries) are not modelled.
- Properties are constant along each calculation. For long lines with large pressure or temperature change, split the line into segments.
- Gas pipeline equations assume a horizontal, isothermal segment; elevation and heat transfer are not included.
- Two-phase and slurry correlations carry wide inherent uncertainty, typically ±20 % to ±30 % or more. Use them for screening and compare methods.
- Fitting coefficients are generic. Valve and strainer losses vary by manufacturer; use vendor data where available.
- Line-sizing criteria are typical practice, not code requirements. Project standards govern.
- The tool does not check pressure design, wall thickness for pressure, surge, water hammer, thermal expansion or stress.
Quick quiz
1. What is the relationship between the Darcy and Fanning friction factors?
2. Hazen-Williams is a poor choice for which duty?
3. A gas line is choked. What happens if the outlet pressure is lowered further?
4. Which fitting method accounts for both Reynolds number and fitting size?
5. What does the API RP 14E C-factor equation not account for?
Related Aienginear calculators and guides
The Fluid Flow & Pipe Sizing Calculator is the hub of the Aienginear process hydraulics family. These are the tools most often used alongside it.
Related Aienginear piping guides
Frequently asked questions
What does a fluid flow and pipe sizing calculator do?
It finds the pipe size that carries a given flow within acceptable velocity and pressure-drop limits, and calculates the velocity, Reynolds number, friction factor and pressure loss. The Aienginear calculator extends this to fittings, pumps, gas pipelines, compressible and two-phase flow, slurries and erosional velocity.
How do I calculate pressure drop in a pipe?
Use the Darcy-Weisbach equation, ΔP = f (L/D) ρv²/2. Calculate velocity from flow and bore, the Reynolds number ρvD/μ, and the Darcy friction factor from Colebrook-White using relative roughness ε/D. Add fittings losses as ΣK ρv²/2 and any elevation change as ρgΔz.
What velocity should I use for pipe sizing?
For water and light liquids, about 1 to 3 m/s in pump discharge lines and 0.3 to 1.5 m/s in pump suction lines are common starting points; gases typically run at 10 to 20 m/s. These are practice values, not code limits; project line-sizing criteria take precedence.
What is the Colebrook-White equation?
It is the implicit equation 1/√f = −2 log10(ε/3.7D + 2.51/(Re√f)) that gives the Darcy friction factor for turbulent flow in commercial pipe. It underlies the Moody chart. The Aienginear calculator solves it iteratively to full precision.
When should I use Hazen-Williams instead of Darcy-Weisbach?
Only for water at roughly 5 to 25 °C in turbulent flow, or where a code such as a fire-protection standard requires it. Hazen-Williams ignores viscosity, so it is unreliable for oils, glycols, hot water and gases. Darcy-Weisbach is valid for all of these.
What is the difference between the 2-K and 3-K methods for fittings?
Both add a Reynolds-number term to the classical constant K. The Hooper 2-K method adds a simple size correction; the Darby 3-K method uses a size term with an exponent fitted to data, which tracks fitting size more accurately. Both are better than a single constant K in small lines and at low Reynolds number.
Which gas pipeline equation is most accurate?
The general flow equation with a Colebrook-White friction factor is the most transparent because its friction assumption is explicit. Weymouth is conservative; Panhandle A and B give higher capacities and were calibrated on large transmission lines. Results on the same duty commonly differ by 20 % to 25 %.
How do I know if gas flow in a pipe is choked?
Flow chokes when the exit reaches Mach 1. In the calculator the Compressible module reports the inlet and exit Mach numbers and the choking pressure P*; if the outlet pressure is at or below P*, flow will not increase further as back-pressure is reduced.
What is the API RP 14E erosional velocity?
It is V_e = C/√ρ_m in field units, or about 1.22 C/√ρ_m in m/s with density in kg/m³. C is typically 100 for continuous solids-free service and up to 150 to 250 with inhibition or for intermittent service. It is a screening criterion and does not model sand erosion.
How is NPSH available calculated?
NPSHa equals the absolute pressure at the liquid surface minus the vapour pressure, divided by ρg, plus the static height of liquid above the impeller, minus suction-line friction. It must exceed the pump NPSH required with margin; a ratio of at least 1.3 and at least 1 m is a common screening minimum for water.
What is the deposition velocity of a slurry?
It is the velocity below which particles settle out and form a stationary bed. The calculator estimates it with a Durand-type correlation, V_c = F_L √(2gD(s − 1)). A design velocity about 20 % or 0.3 m/s above V_c is a common target.
Why should I use the schedule bore and not the nominal pipe size?
Nominal size is a name. NPS 4 Schedule 40 has a 102.26 mm bore and Schedule 80 a 97.18 mm bore, while 4 inches is 101.6 mm. Velocity scales with 1/D² and pressure drop roughly with 1/D⁵, so a small bore error becomes a larger hydraulic error.
What happened to HydraFlow Pro Ultimate?
This page is its successor. Version 2.0.0 keeps all thirteen modules, rebuilds the engine with exact Colebrook-White friction, adds Darby 3-K fittings, five gas equations, a full ASME B36.10 and B36.19 database, a runtime self-test, and printable, CSV and Excel reports.
Is the calculator compliant with ASME or API standards?
No calculator can be compliant on its own. The tool implements the cited methods and data and flags inputs outside their range, but compliance is a property of the design and its documentation. Treat it as a preliminary engineering and design-support calculator subject to qualified engineering review.
Is my data sent anywhere?
No. The calculator is a single file that runs entirely in your browser. Nothing you enter leaves your device, nothing is stored on a server and no registration is needed.
Disclaimer
This calculator and article support preliminary engineering, screening, education and design. Methods follow the published correlations and standards cited above; property data, roughness values, fitting coefficients and line-sizing criteria are typical reference values to be verified for your fluid, pipe and project. Results depend entirely on the inputs and the stated assumptions. They do not replace detailed hydraulic design, vendor data, project specifications, applicable codes or review by a qualified engineer. Always have critical designs checked by a competent engineer before procurement, construction or operation.
Aienginear Fluid Flow & Pipe Sizing Calculator · calculator v2.0.0 (formerly HydraFlow Pro Ultimate) · article updated 27 October 2026 · standards status checked October 2026 · Published by Aienginear.com, Engineering Made Smarter. Found an error? Tell us.