Fluid Mechanics Calculator

Pipe Pressure Drop Calculator

Calculate fluid friction losses, velocity, Reynolds number, and total pressure drop in circular pipes using the Darcy-Weisbach equation.

Pipe Flow Schematic

Darcy-Weisbach major frictional loss along conduit length

Q, P₁P₂ < P₁D = 50 mmL = 50 m

Flow & Pipe Geometry

Flow rate, pipe dimensions, and roughness

m³/h

Volumetric flow rate inside the pipe.

mm

Inside diameter of the pipe.

m

Total straight pipe length.

mm

Absolute internal wall roughness.

Fluid Properties

kg/m³

Fluid mass density.

Pa·s

Fluid shear viscosity.

bar

Maximum allowable design pressure drop.

Total Pressure Drop (ΔP)

0.696bar

≈ 69,604 Pa

Head Loss

7.11 m

Velocity (v)

2.55 m/s

Reynolds (Re)

126,816

Flow Regime: Turbulent
Friction Factor (f): 0.0215

PASS — Pressure drop is within the allowable limit

Calculated ΔP is 0.696 bar vs. limit of 1.0 bar.

Governing Formula

ΔP = f · (L / D) · (ρ · v² / 2)
ΔPPa / bar

Pressure drop across length

f—

Darcy friction factor

Lm

Pipe length

Dm

Internal pipe diameter

vm/s

Mean fluid velocity

ρkg/m³

Fluid density

Calculation Assumptions

  • Incompressible steady flow
  • Fully developed velocity profile
  • Circular cross-section
  • Newtonian fluid behavior
  • Swamee-Jain approximation
  • Minor losses (valves/bends) excluded

Engineering Code

Reuse the calculation in your own engineering workflow.

Python
import math

def pipe_pressure_drop(flow_m3_per_s, d_mm, length_m, eps_mm, rho, mu):
    """
    Calculates pressure drop in pipe using Darcy-Weisbach & Swamee-Jain equations.
    """
    d_m = d_mm / 1000.0
    area = math.pi * (d_m ** 2) / 4.0
    velocity = flow_m3_per_s / area
    
    # Reynolds Number
    Re = (rho * velocity * d_m) / mu
    
    # Friction Factor
    if Re < 2000:
        f = 64.0 / Re
    else:
        rel_roughness = eps_mm / d_mm
        denom = math.log10((rel_roughness / 3.7) + (5.74 / (Re ** 0.9)))
        f = 0.25 / (denom ** 2)
        
    # Pressure Drop
    dp_pa = f * (length_m / d_m) * (rho * (velocity ** 2) / 2.0)
    dp_bar = dp_pa / 100000.0
    head_loss_m = dp_pa / (rho * 9.80665)
    
    return velocity, Re, f, dp_pa, dp_bar, head_loss_m

# Inputs
Q = 5.0000e-3 # m³/s
D = 50 # mm
L = 50 # m
eps = 0.045 # mm
rho = 998 # kg/m³
mu = 0.001002 # Pa.s

v, Re, f, dp, dp_bar, h_loss = pipe_pressure_drop(Q, D, L, eps, rho, mu)
print(f"Velocity: {v:.2f} m/s")
print(f"Reynolds Number: {Re:.0f}")
print(f"Friction Factor: {f:.4f}")
print(f"Pressure Drop: {dp:.1f} Pa ({dp_bar:.3f} bar)")
print(f"Head Loss: {h_loss:.2f} m")
MATLAB
function [v, Re, f, dp_bar, h_loss] = pipe_pressure_drop(Q, D_mm, L_m, eps_mm, rho, mu)
    d_m = D_mm / 1000;
    area = pi * (d_m^2) / 4;
    v = Q / area;
    Re = (rho * v * d_m) / mu;
    
    if Re < 2000
        f = 64 / Re;
    else
        f = 0.25 / (log10((eps_mm/D_mm)/3.7 + 5.74/(Re^0.9)))^2;
    end
    
    dp_pa = f * (L_m / d_m) * (rho * v^2 / 2);
    dp_bar = dp_pa / 1e5;
    h_loss = dp_pa / (rho * 9.80665);
end

% Example
Q = 5.0000e-3;
[v, Re, f, dp_bar, h_loss] = pipe_pressure_drop(Q, 50, 50, 0.045, 998, 0.001002);
fprintf('Pressure Drop: %.3f bar\n', dp_bar);
Excel Formula
=f*(L/(D/1000))*(rho*v^2/2)

Example Calculation

For water (ρ = 1000 kg/m³, μ = 0.001 Pa·s) flowing at 0.005 m³/s (18 m³/h) through a 50 mm diameter commercial steel pipe (ε = 0.045 mm) over a length of 50 meters:

ΔP = f × (L / D) × (ρ × v² / 2)
v = 2.55 m/s | Re ≈ 127,324 (Turbulent) | f ≈ 0.0215
ΔP = 70,058 Pa (0.701 bar / 7.14 m head loss)

Technical Explanation: Darcy-Weisbach Pressure Loss

As fluid flows through a pipe, internal fluid shear resistance (viscosity) and wall roughness create continuous frictional drag. This major frictional loss causes a measurable decrease in fluid pressure along the flow path, which must be overcome by pumps or compressors to maintain desired flow rates in piping systems.

Technical Introduction

Engineers calculate pipe pressure drop to size pumps, select pipe diameters, verify available net positive suction head (NPSH), and ensure adequate pressure at delivery points. The Darcy-Weisbach equation is the universally accepted method for computing frictional pressure loss in circular pipes carrying incompressible Newtonian fluids.

This calculator implements the Darcy-Weisbach equation with automatic flow regime detection (laminar vs. turbulent) and the Swamee-Jain explicit approximation for turbulent friction factor. It outputs pressure drop in Pascals, bar, and equivalent head loss in meters of fluid column.

The Darcy-Weisbach Equation

The fundamental equation relates pressure loss to pipe geometry, fluid properties, and flow velocity:

ΔP = f × (L / D) × (ρ × v² / 2)

Where ΔP is pressure drop [Pa], f is the Darcy friction factor (dimensionless), L is pipe length [m], D is internal pipe diameter [m], ρ is fluid density [kg/m³], and v is mean flow velocity [m/s]. The term ρv²/2 is the dynamic pressure (velocity head).

The equation derives from dimensional analysis and energy conservation: pressure loss is proportional to pipe length (longer pipe = more friction), inversely proportional to diameter (smaller pipe = higher wall shear), and proportional to dynamic pressure (faster flow = greater losses).

Flow Regimes and Reynolds Number

The flow characteristics depend directly on the dimensionless Reynolds number:

Re = (ρ × v × D) / μ = (v × D) / ν

Where μ is dynamic viscosity [Pa·s] and ν = μ/ρ is kinematic viscosity [m²/s]. Reynolds number represents the ratio of inertial forces to viscous forces.

Flow regime classification for circular pipes:

  • Laminar Flow (Re < 2,300): Fluid particles move in parallel, orderly layers with no cross-stream mixing. Surface roughness has almost no effect; friction factor is strictly f = 64 / Re, derived analytically from the Hagen-Poiseuille solution for fully developed laminar flow.
  • Transitional Zone (2,300 ≤ Re ≤ 4,000): Unstable flow fluctuating between laminar and turbulent characteristics. Pressure drop predictions become uncertain; conservative design assumes turbulent behavior.
  • Turbulent Flow (Re > 4,000): Chaotic eddies dominate the flow with intense cross-stream mixing. Frictional losses depend strongly on relative surface roughness (ε / D) and Reynolds number. The velocity profile is flatter than laminar (centerline velocity ≈ 1.2 × mean velocity).

Friction Factor Determination

For laminar flow, the friction factor is exact:

f = 64 / Re   (laminar, Re < 2,300)

For turbulent flow, the implicit Colebrook-White equation is the gold standard but requires iterative numerical solution:

1/√f = −2.0 × log₁₀( (ε/D)/3.7 + 2.51/(Re × √f) )

Swamee-Jain Explicit Approximation

While the Colebrook-White equation requires iterative numerical solvers, the explicit Swamee-Jain formulation delivers accuracy within 1–3% across standard industrial engineering ranges:

f = 0.25 / [ log₁₀( (ε / (3.7 × D)) + (5.74 / Re^0.9) )]²

Valid for: 5,000 ≤ Re ≤ 10⁸ and 10⁻⁶ ≤ ε/D ≤ 0.05. This covers virtually all practical water, oil, gas, and chemical piping applications. The Swamee-Jain equation eliminates iteration while maintaining engineering accuracy superior to the uncertainty in typical pipe roughness estimates.

Input Parameters Explained

  • Volumetric flow rate (Q): Volume of fluid passing per unit time [m³/s or L/s]. Determines mean velocity via v = 4Q / (πD²). Doubling flow rate quadruples pressure drop (ΔP ∝ v²).
  • Pipe internal diameter (D): Flow cross-section dimension [mm or m]. Smaller diameter dramatically increases velocity and pressure loss. Standard pipe sizes (DN, NPS) have defined internal diameters depending on schedule/wall thickness.
  • Pipe length (L): Total straight pipe run [m]. Pressure drop scales linearly with length. Does not include equivalent lengths for fittings—add separately if needed.
  • Absolute roughness (ε): Average height of surface irregularities [mm or m]. Typical values: drawn copper/plastic 0.0015 mm, commercial steel 0.045 mm, galvanized iron 0.15 mm, cast iron 0.26 mm, heavily rusted 1.5+ mm. Aged pipes accumulate scale and tuberculation, increasing effective roughness.
  • Fluid density (ρ): Mass per unit volume [kg/m³]. Water ≈ 1,000 kg/m³ at 20°C. Affects dynamic pressure and Reynolds number.
  • Dynamic viscosity (μ): Fluid resistance to shear [Pa·s or cP]. Water ≈ 0.001 Pa·s (1 cP) at 20°C. Higher viscosity reduces Reynolds number, potentially shifting flow to laminar regime.

Engineering Interpretation

The calculated pressure drop represents major losses—friction along straight pipe sections. Total system pressure drop must also include minor losses from valves, elbows, tees, reducers, and other fittings: ΔP_minor = Σ(K × ρv²/2), where K is the loss coefficient for each fitting.

Head loss h_L = ΔP / (ρg) expresses pressure drop as an equivalent vertical column height of the flowing fluid [m]. This is convenient for pump selection: pump head must exceed total system head loss (static elevation + friction + minor losses + required delivery pressure).

Because ΔP ∝ v², small increases in flow rate cause large pressure drop increases. Doubling flow rate produces nearly four times the friction loss. This nonlinearity is critical when upsizing pumps or modifying existing piping systems.

Units and Conversions

This calculator uses SI units. Key conversions:

  • 1 bar = 100,000 Pa = 10⁵ Pa
  • 1 m head (water) ≈ 9,810 Pa (ρg = 1,000 × 9.81)
  • 1 psi ≈ 6,895 Pa
  • 1 m³/s = 1,000 L/s = 3,600 m³/h
  • 1 cP (centipoise) = 0.001 Pa·s

Assumptions and Limitations

  • Steady, incompressible flow (constant density)
  • Newtonian fluid (constant viscosity independent of shear rate)
  • Fully developed flow (entrance effects neglected; valid for L/D > 50)
  • Circular pipe of constant cross-section
  • Horizontal pipe (no elevation head change included—add separately if needed)
  • Isothermal conditions (no temperature-dependent property changes along pipe)
  • Single-phase flow (no gas-liquid or solid-liquid mixtures)
  • Major losses only (no fittings, valves, expansions, or contractions)

This calculator does not account for compressible gas flow (use specialized gas pipeline equations), non-Newtonian fluids, transient water hammer, cavitation, or two-phase flow—these require separate analysis with appropriate models and standards.

Practical Engineering Use

Pipe pressure drop calculations appear in design of water distribution networks, HVAC hydronic systems, chemical process piping, oil and gas pipelines, fire protection systems, and pump station sizing. Engineers use the Darcy-Weisbach equation to select economical pipe diameters (balancing capital cost vs. pumping energy), verify pump head requirements, and troubleshoot low-flow or low-pressure complaints in existing systems.

Real-World Engineering Cases

Undersized Cooling Water Lines in Industrial Chiller Loop

A manufacturing plant replaced an R22 chiller loop with an eco-friendly system requiring higher volumetric water flow. Reusing existing 2-inch piping doubled fluid velocity, increasing pressure drop fourfold (proportional to v²) and starving the heat exchangers of flow.

Engineering Lesson

Always resize piping when flow rates change. Because pressure loss is proportional to velocity squared (v²), doubling flow rate produces nearly four times the friction loss.

Pipe Aging and Severe Roughness Scale Accumulation

Over 15 years, unlined carbon steel fire sprinkler pipes suffered tuberculation, increasing equivalent roughness (ε) from 0.05 mm to over 1.5 mm. During a routine flow test, terminal nozzle delivery pressure was 40% below statutory fire code standards.

Engineering Lesson

Account for pipe aging and corrosion. In hydraulic design, specify realistic aged pipe roughness values rather than pristine new-pipe factory tolerances.

Frequently Asked Questions

What is the difference between pressure drop (Pa) and head loss (m)?

Pressure drop (ΔP) measures frictional energy loss in force per area (Pascals or bar). Head loss (h_L) expresses this loss as an equivalent vertical column height of the flowing fluid (meters of liquid column), independent of fluid density.

What is typical pipe roughness (ε)?

Drawn copper and plastic pipes (PVC, PE) have very smooth walls (~0.0015 mm). Commercial carbon steel is typically around 0.045 mm, while rusted or cast iron can range from 0.25 mm to 1.5 mm.

Does this include minor losses from elbows and valves?

No, this calculator calculates major (straight pipe frictional) losses. For total loop pressure drop, add minor loss coefficients (K-factors) for valves, tees, and bends.

Engineering calculations provided by this tool are for educational and preliminary design purposes. Always verify calculations, loading conditions, fluid properties, applicable standards, safety factors, and design requirements before using results in a final engineering design.