hL = f · (L/D) · v²/(2g)
Laminar (Re<2300): f = 64/Re
Turbulent: Colebrook-White
1/√f = −2log(ε/3.7D + 2.51/(Re√f))
Set pipe diameter, length, flow rate, and fluid to instantly calculate Reynolds number, Moody friction factor, major friction loss, and minor losses from elbows and valves. Live Moody chart with operating point.
The core equation for calculating major pressure losses in a straight pipe is the Darcy-Weisbach equation. It relates the pressure drop to the flow velocity, pipe geometry, and a dimensionless friction factor.
$$\Delta P = f \cdot \frac{L}{D}\cdot \frac{\rho v^2}{2}$$Where:
$\Delta P$ = Pressure drop (Pa)
$f$ = Darcy friction factor (dimensionless)
$L$ = Pipe length (m)
$D$ = Pipe inner diameter (m)
$\rho$ = Fluid density (kg/m³)
$v$ = Average flow velocity (m/s)
The challenge is finding the correct friction factor $f$. For laminar flow ($Re \lt 2300$), it has a theoretical solution. For turbulent flow, the Colebrook-White equation is used, but it's implicit—meaning $f$ appears on both sides and requires an iterative solution. Engineers often use the Swamee-Jain approximation shown here for quick calculations.
$$\frac{1}{\sqrt{f}}= -2 \log_{10}\left( \frac{\epsilon}{3.7D}+ \frac{2.51}{Re\sqrt{f}}\right)$$Where:
$\epsilon$ = Absolute roughness of the pipe wall (m)
$Re$ = Reynolds number ($Re = \frac{\rho v D}{\mu}$)
The Reynolds number determines the flow regime and is calculated by the simulator from your inputs for Diameter, Flow Rate, and Fluid properties.
Pump & Fan Sizing: A core task for HVAC and process engineers. Accurately calculating the total system pressure drop (major + minor losses) is essential to select a pump with enough power to move the required flow rate, without wasting energy on an oversized unit.
Water Distribution Networks: Municipal engineers use these principles to design city water mains. They must ensure sufficient pressure at the farthest fire hydrant while accounting for friction losses over miles of pipe and losses through countless valves and fittings.
Oil & Gas Pipelines: Over hundreds of kilometers, even a small error in the friction factor can lead to massively under- or over-sized pumping stations. The choice of pipe material (affecting roughness $\epsilon$) is a major economic decision in these projects.
Chemical Process Plants: Piping systems are dense with valves, heat exchangers, and instruments. Here, minor losses often dominate. Engineers use "equivalent length" methods (like the globe valve example) to quickly estimate the pressure drop through complex, compact pipe runs.
When you start using this tool, there are several pitfalls that beginners often encounter. The first is confusing "Pipe Inner Diameter D" with "Nominal Diameter". For example, the nominal diameter of a steel pipe labeled "50A" is approximately 50mm, but the actual inner diameter varies depending on the schedule (wall thickness). For 50A SCH40, the inner diameter is about 52.5mm, whereas for SCH80 it's about 49.0mm. This difference alone can change the pressure loss for the same flow rate by more than 20%. Always perform your design calculations using the actual inner diameter.
The second is not paying attention to the "representative velocity" for the local loss coefficient K. Losses for elbows and valves are calculated using $\Delta P = K \cdot (\rho v^2 / 2)$, but this velocity v is typically the "pipe velocity" where the loss component exists. However, some valve catalog values may use the velocity at the valve's own constriction as the representative value. If you don't standardize this, you risk overestimating or underestimating the loss. Remember that the tool generally uses the pipe velocity as the reference.
The third is placing too much trust in the "laminar" flow range. It's true that flow is judged as laminar when the Reynolds number Re is below 2300, but if the pipe inlet shape is abrupt or there are elements causing disturbance along the way, transition to turbulence can occur even at Re around 2000. Especially in designs involving high-viscosity fluids like oil, practical wisdom is needed—even if the calculation says "laminar," it's often prudent to consider the turbulent flow equation for safety.
Schedule 40 steel pipe, 50 mm ID, 15 m length, water flow 120 L/min: velocity = 1.02 m/s, Reynolds number = 50,980 (turbulent). Friction factor f = 0.032 (relative roughness 0.00085). Major loss ΔP = 7.4 kPa. With two 90° elbows (KL = 0.9 each) and one 45° elbow (KL = 0.4), minor loss ΔP = 2.1 kPa. Total pressure drop = 9.5 kPa across system.