Pipe Flow Calculator (Darcy-Weisbach)

Calculate pressure loss due to friction in a pipe using the Darcy-Weisbach equation; ideal for engineers modeling fluid flow in ducts and pipework.

Flow inputs

How to Use This Calculator

Enter the flow rate, pipe diameter, pipe length, and friction factor for your pipe system. Press "Calculate" or wait for the inputs to trigger the auto-update to see the resulting pressure loss in pascals. All values can be adjusted to model different operating conditions.

Methodology

The calculator applies the Darcy-Weisbach equation to estimate the pressure loss due to friction inside the pipe. It computes flow velocity from the supplied volumetric flow rate and the pipe’s cross-sectional area, then multiplies by the friction factor, length-to-diameter ratio, and fluid kinetic energy. A constant fluid density of 1,000 kg/m³ (water at room temperature) is assumed unless noted otherwise.

Data Source

Formulas and friction factors follow guidance from the Engineering Toolbox, matching the authoritative Darcy-Weisbach description for pipe flow.

Glossary of Variables

  • Flow Rate: The volumetric flow (m³/s) passing through the pipe.
  • Pipe Diameter: The internal diameter (m) used to compute the cross-sectional area.
  • Pipe Length: The length (m) over which friction accumulates.
  • Friction Factor: A dimensionless coefficient representing surface roughness and flow regime.

Step-by-Step Example

A 50-meter pipe with a 0.5 m diameter carrying 0.1 m³/s at a friction factor of 0.02 will present a pressure loss shown above. Adjust the inputs to explore how boosting diameter or reducing length eases friction losses.

Frequently Asked Questions

What is the Darcy-Weisbach equation used for?

It quantifies pressure loss due to friction along a pipe, which is essential when sizing pumps or fans.

How do I determine the friction factor?

The friction factor depends on Reynolds number and pipe roughness; use the Moody chart or Colebrook equation for precise values.

Why does pipe diameter matter?

Diameter controls flow velocity for a given rate—larger diameters lower velocity and reduce frictional loss.

What units should I use?

Keep everything in SI units (meters, seconds, pascals) for consistency; the calculator assumes metric inputs.

Can this calculator be used for gases?

Yes, but you may want to adjust the fluid density and account for compressibility effects separately.

Formulas

Darcy-Weisbach pressure loss:

\[ \Delta P = f \cdot \left(\frac{L}{D}\right) \cdot \frac{\rho \cdot v^2}{2} \]
  • \(\Delta P\): Pressure loss (Pa)
  • \(f\): Friction factor (dimensionless)
  • \(L\): Pipe length (m)
  • \(D\): Pipe diameter (m)
  • \(\rho\): Fluid density (kg/m³), assumed 1,000 kg/m³
  • \(v\): Velocity (m/s) derived from flow rate and cross-sectional area
Citations
Changelog
  • 0.1.0-draft — 2026-01-19: Initial audit spec draft generated from HTML extraction; formulas and sources verified.
  • Verify formulas match the calculator engine and convert referenced text to LaTeX (done here).
  • Confirm sources remain authoritative and relevant to the Darcy-Weisbach methodology.
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0