Pipe Flow Calculator - Darcy-Weisbach Head Loss and Pressure Drop

Pipe flow calculator that turns pipe diameter, length, flow rate, and fluid properties into velocity, Reynolds number, friction factor, head loss, and pressure drop.

Pipe Flow Calculator

Inner diameter of the pipe in millimetres. Common plumbing is 15-50 mm, HVAC ducting 100-400 mm, and large process mains up to 3 m.

Straight-run pipe length in metres over which the head loss is computed. Bends and fittings add additional loss that this tool does not model.

Volumetric flow rate in litres per second. 1 L/s equals 0.001 m^3/s and 3.6 m^3/h.

Pipe wall roughness in millimetres. Drawn tubing 0.0015, commercial steel 0.045, galvanized iron 0.15, concrete 0.3-3, riveted steel up to 9.

Pick a fluid preset to fill the density and viscosity, or pick custom to type them in directly.

Custom fluid density in kilograms per cubic metre. Only used when the fluid preset is custom. Use 1000 for fresh water at 4 deg C and 1.204 for air at 20 deg C.

Custom dynamic viscosity in pascal seconds (1 Pa s = 1000 cP = 1000 mPa s). Water at 20 deg C is about 0.001 Pa s; SAE 30 oil at 20 deg C is about 0.29 Pa s.

Results

Flow velocity
0m/s
Reynolds number 0
Darcy friction factor 0
Head loss 0m
Pressure drop 0kPa
Pressure drop 0psi
Flow regime 0

What Is Pipe Flow?

Pipe flow describes how a fluid moves through a closed conduit. This calculator turns a pipe's inner diameter, length, flow rate, and fluid properties into flow velocity, Reynolds number, friction factor, head loss, and pressure drop, so you can size a pump or check a gravity drain.

  • Pump and pipe sizing: check the head loss a pump must overcome for a given flow rate.
  • Gravity drain and stormwater checks: see whether a sloped drain can carry a design rainfall.
  • Compare pipe materials: swap drawn tubing, commercial steel, and concrete to compare pressure drop.
  • Compare working fluids: switch between water, air, and oil for the same physical run of pipe.

If the diameter is still open, the pipe size calculator helps you back-solve the diameter that holds a given flow rate at a target velocity.

How the Pipe Flow Calculator Works

The calculator implements Darcy-Weisbach end to end: diameter, length, and flow rate become velocity; density and viscosity give a Reynolds number; the Reynolds number picks the friction factor model; the friction factor and velocity give head loss and pressure drop. Fluid presets fill the density and viscosity.

h_f = f (L/D) (V^2 / (2 g)), V = Q / A, A = pi D^2 / 4, Re = rho V D / mu, f = 64/Re (Re<2300), f = 0.25 / [log10(eps/(3.7 D) + 5.74/Re^0.9)]^2 (Re>=2300)
  • D, L: pipe inner diameter and straight-run length in metres.
  • Q, A, V: flow rate, cross-section (pi D squared over 4), and average velocity (Q / A).
  • rho, mu: fluid density and dynamic viscosity, preset or custom.
  • f: Darcy friction factor, 64 over Re for laminar, Swamee-Jain for turbulent.
  • eps: pipe wall roughness in metres, from the millimetres you enter.
  • g: gravitational acceleration, 9.80665 m/s^2.

Swamee-Jain approximates the Colebrook-White implicit friction factor to within 1 percent for typical engineering Reynolds numbers and roughnesses, which is why spreadsheets use it. Between Re 2300 and 4000 the calculator still uses Swamee-Jain but flags the regime as transitional.

50 mm commercial steel pipe, 10 m, 5 L/s of water at 20 deg C

D = 0.05 m, L = 10 m, Q = 0.005 m^3/s, rho = 998.2 kg/m^3, mu = 0.001002 Pa s, eps = 0.045 mm.

A = 0.001963 m^2, so V = 2.55 m/s. Re = 126,841 (turbulent). f = 0.0215. h_f = 1.42 m. dP = 13.92 kPa (2.02 psi).

V = 2.55 m/s, Re = 126,841 (turbulent), f = 0.0215, head loss = 1.42 m, pressure drop = 13.92 kPa (2.02 psi).

A 50 mm commercial steel pipe at 5 L/s of water loses about 1.4 m of head over 10 m, which is what a domestic booster pump is sized to overcome.

According to Wikipedia - Darcy-Weisbach equation, head loss h_f equals f L/D V^2/(2g), and pressure drop is that head loss times fluid density times gravity.

According to Wikipedia - Darcy friction factor formulae, Swamee-Jain approximates the Colebrook-White implicit friction factor to within 1 percent.

For a quick Reynolds number sanity check, the Reynolds number calculator does the same density times velocity times diameter divided by viscosity product in one step.

Key Concepts Explained

Four ideas drive the result. None dominates on its own; the pressure drop depends on how pipe geometry, fluid properties, and flow speed interact.

Reynolds number and flow regime

The Reynolds number rho V D over mu decides whether the flow is laminar (Re below 2300), transitional (2300-4000), or fully turbulent (above 4000). The friction factor model depends on this.

Darcy-Weisbach equation

The Darcy-Weisbach equation is the closed-form expression for the head loss h_f = f L/D V^2 / (2 g). Multiply by fluid density times gravity and you get the pressure drop.

Laminar friction factor (Hagen-Poiseuille)

In laminar flow the friction factor collapses to f = 64 / Re, the Darcy form of the Hagen-Poiseuille pressure drop law. Wall roughness is irrelevant because the viscous sublayer covers the entire roughness.

Turbulent friction factor (Swamee-Jain)

In turbulent flow the friction factor depends on both Re and the relative roughness eps / D. Swamee-Jain gives a value within 1 percent of the implicit Colebrook equation over the engineering range.

These four ideas together decide the entire pressure drop. The Reynolds number and the friction-factor model show up as the intermediate outputs, so the user can see which regime the pipe is operating in before trusting the head loss number.

If the friction factor is the only number you need, the friction factor calculator takes the same Reynolds number and relative roughness and returns f in isolation, which is useful when the pipe is shared between two different flow rates.

How to Use This Calculator

The default values reproduce a 50 mm commercial steel pipe carrying 5 L/s of water at 20 deg C over 10 m, so the workflow can be verified against the worked example above before you plug in your own numbers.

  1. 1 Enter diameter and length: Type the inner diameter in millimetres and the straight-run length in metres.
  2. 2 Enter the flow rate: Type the volumetric flow rate in litres per second (multiply GPM by 0.0631 to convert).
  3. 3 Pick a fluid preset or enter custom values: Choose water, water at 4 deg C, air, SAE 30 oil, or custom with your own density and viscosity.
  4. 4 Set the pipe roughness: Type the wall roughness in millimetres. Use 0.0015 for drawn tubing, 0.045 for commercial steel, 0.15 for galvanized iron.
  5. 5 Read the results: Velocity tells you the flow speed, the Reynolds number and regime label tell you which friction-factor model was used, and the head loss and pressure drop are the headline numbers.

An engineer sizing a 100 m run of 100 mm commercial steel pipe that needs to carry 10 L/s of water at 20 deg C sets D = 100, L = 100, Q = 10, fluidPreset = water20C, roughness = 0.045. The result is V = 1.27 m/s, Re = 126,841 (turbulent), f = 0.0215, head loss = 1.42 m, pressure drop = 13.92 kPa.

If the pipe is not horizontal, the Bernoulli equation calculator combines this head loss with the elevation and velocity heads into the full Bernoulli energy balance.

Benefits of This Calculator

A single Darcy-Weisbach evaluation per click replaces the multi-step Moody chart lookup and the multi-iteration Colebrook solver.

  • Settle pump head in one pass: Plug in the design flow rate and pipe geometry, read the head loss, and add the elevation head to get the total dynamic head.
  • Pick the right pipe material: Swap drawn tubing, commercial steel, and concrete roughnesses to see which one keeps the pressure drop under budget.
  • Compare fluids without re-deriving viscosity: Pick water at 4 deg C versus 20 deg C, air, oil, or a custom fluid, and the same pipe geometry returns the new head loss and pressure drop.
  • See which regime the pipe is in: The Reynolds number and regime label tell you at a glance whether the friction factor came from the laminar or turbulent model.
  • Use both metric and imperial units: Inputs are metric, while the pressure drop is also returned in psi for cross-checking with US plumbing and pump ratings.
  • Audit every step: Velocity, Reynolds number, friction factor, head loss, and pressure drop are all visible, so the calculation can be checked field by field.

The tool solves one straight-run Darcy-Weisbach problem at a time. For networks with branches, loops, or pumps, the per-pipe head loss is the right building block and the rest of the network has to be balanced with a Hardy-Cross or linear solver on top.

When the straight run is part of a reactor or clarifier circuit, the hydraulic retention time calculator turns the flow velocity and the pipe volume into the residence time.

Factors That Affect Your Results

The head loss and pressure drop printed by the calculator assume a single straight run of pipe, a single homogeneous fluid, and a fully developed flow profile. Common reasons the real number differs:

Pipe wall roughness

In turbulent flow the friction factor scales with relative roughness eps / D. Doubling the roughness can raise the friction factor by 10-20 percent, so concrete and riveted steel give noticeably higher head loss than drawn tubing.

Fluid temperature and viscosity

Viscosity drops as temperature rises for most liquids, which raises the Reynolds number and can push the flow from laminar to turbulent, which in turn drops the friction factor.

Fittings, bends, valves, and entrance effects

Each elbow, tee, valve, and sudden contraction adds an equivalent length of straight pipe to the total head loss. A rule of thumb is to add 10-60 percent to the straight-run length when the run has many fittings.

Elevation change along the pipe

The Darcy-Weisbach equation gives the friction head loss; if the pipe is not horizontal, the elevation head has to be added (or subtracted) on top. The pressure drop reported here is the friction part only.

Non-Newtonian or multiphase fluids

The Darcy-Weisbach equation assumes a Newtonian single-phase fluid. Slurries, gels, froth, and two-phase gas-liquid flows need a separate correlation, which the calculator does not attempt.

  • It assumes fully developed flow. The first 10-50 diameters after a sharp entrance, a pump, or a valve carry an entrance or developing length that adds extra loss.
  • It assumes a single fluid temperature. For long pipe runs with a strong ambient temperature gradient, the density and viscosity change along the pipe.

According to Wikipedia - Reynolds number, pipe flow is laminar below Re 2300, transitional between 2300 and 4000, and fully turbulent above 4000.

For the stored-volume side of the same pipe, the pipe volume calculator takes the same inner diameter and length and returns the area times length in litres and gallons.

Pipe flow calculator interface with pipe diameter, length, flow rate, fluid density, viscosity, and pipe roughness inputs and velocity, Reynolds number, friction factor, head loss, and pressure drop outputs
Pipe flow calculator interface with pipe diameter, length, flow rate, fluid density, viscosity, and pipe roughness inputs and velocity, Reynolds number, friction factor, head loss, and pressure drop outputs

Frequently Asked Questions

Q: What does the pipe flow calculator solve?

A: It solves the Darcy-Weisbach equation for a straight run of pipe. Given the inner diameter, length, volumetric flow rate, fluid density, dynamic viscosity, and wall roughness, it returns the average flow velocity, the Reynolds number, the Darcy friction factor, the head loss in metres of fluid, and the pressure drop in kPa and psi.

Q: Which formula does the pipe flow calculator use?

A: It uses h_f = f L/D V^2/(2 g), with V = Q / A, A = pi D^2 / 4, and Re = rho V D / mu. For Re below 2300 the friction factor is 64 over Re; for Re at or above 2300 it is the Swamee-Jain explicit approximation f = 0.25 / [log10(eps/(3.7 D) + 5.74/Re^0.9)]^2.

Q: How is the friction factor calculated for turbulent flow?

A: For Re of 2300 or higher the calculator uses the Swamee-Jain explicit approximation, which evaluates the Colebrook-White implicit friction factor to within about 1 percent over the engineering range and is what most engineering spreadsheets and online pipe flow calculators use in place of an iterative solve.

Q: What inputs does the pipe flow calculator need?

A: The minimum inputs are the inner diameter, the length, the volumetric flow rate, the fluid density, the fluid dynamic viscosity, and the pipe wall roughness. The fluid preset selector fills the density and viscosity for water, air, and SAE 30 oil; the custom option accepts any density in kg/m^3 and any viscosity in Pa s.

Q: What is the difference between head loss and pressure drop?

A: Head loss is the height of the working fluid that the friction is equivalent to, expressed in metres of fluid. Pressure drop is the same physical loss expressed as a force per unit area, in pascals or kilopascals or psi. Pressure drop equals fluid density times gravity times head loss.

Q: Does the pipe flow calculator include fittings and bends?

A: No. The tool evaluates the Darcy-Weisbach head loss for the straight-run length only. For each elbow, tee, valve, or sudden expansion or contraction, add an equivalent length of straight pipe to the input length, or run a network solver that accounts for the local loss coefficients.