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.

Flow Regimes and Reynolds Number

The flow characteristics depend directly on the dimensionless Reynolds number (Re):

  • Laminar Flow (Re < 2000): Fluid particles move in parallel, orderly layers. Surface roughness has almost no effect; friction factor is strictly f = 64 / Re.
  • Transitional Zone (2000 ≤ Re ≤ 4000): Unstable flow fluctuating between laminar and turbulent characteristics.
  • Turbulent Flow (Re > 4000): Chaotic eddies dominate the flow. Frictional losses depend strongly on relative surface roughness (ε / D) and are calculated using the Swamee-Jain empirical formula.

Swamee-Jain Equation

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

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

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.