Pipe Flow Pressure Drop Calculator (Moody Chart) Back
Fluid / CFD

Pipe Flow Pressure Drop Calculator (Moody Chart)

Calculate pressure drop in pipes using the Moody chart (Darcy-Weisbach equation). Adjust diameter, velocity, and roughness to determine flow regime and friction factor for pipe system design.

Pipe Parameters

5 mm500 mm
0.1 m1000 m
0.001 m³/s1 m³/s
Key Formulas
$Re = \rho U D / \mu$
$f_{lam}= 64/Re$
C-W: $1/\sqrt{f}= -2\log(\varepsilon/3.7D + 2.51/Re\sqrt{f})$
$\Delta P = f \cdot (L/D) \cdot \rho U^2/2$
Results
Reynolds number Re
Friction factor f
Pressure drop ΔP (Pa)
Pressure drop ΔP (bar)
Moody Chart (f vs Re)
Pressure drop ΔP vs Flow Rate Q
Pipe Flow Animation — Velocity Profile Cross-Section

What is the Moody Chart & Pipe Pressure Drop?

🙋
What exactly is the Moody chart? I see it's a key part of this simulator, but it just looks like a complicated graph.
🎓
Basically, it's the "cheat sheet" for pipe flow. It's a classic graph that relates three things: the pipe's roughness, how fast the fluid is moving, and a number called the friction factor. This friction factor is the key to calculating pressure loss. In practice, before computers, engineers used this chart to look up the friction factor. Try moving the "Roughness ε" slider above—you'll see how choosing a smoother material like drawn copper versus rough concrete changes your position on the chart instantly.
🙋
Wait, really? So the roughness is just one part? What about the fluid itself? Does it matter if I'm pumping water or oil?
🎓
Great question! Absolutely it matters. The fluid's properties, specifically its density and viscosity, determine another key number: the Reynolds number. This tells us if the flow is smooth (laminar) or chaotic (turbulent). That's why this simulator lets you "Choose a fluid" like water, air, or oil. For instance, cold oil is much more viscous than water, so at the same flow rate, it will have a lower Reynolds number and likely a different friction factor. Change the fluid dropdown and watch how the calculated pressure drop changes.
🙋
Okay, I get the inputs. But how do I use this? A common case is I know how much flow I need (like 10 liters per second). Can the calculator handle that?
🎓
Exactly! That's the most practical engineering problem. You know the required flow rate Q, not the velocity. That's what the "Input by Flow Rate Q" toggle is for. Switch it ON, and you can enter the volumetric flow rate directly. The simulator will then calculate the velocity internally ($V = Q / A$, where A is the pipe area) and proceed to find the friction factor and pressure drop. It saves you a step and is how real-world pipe systems are designed.

Physical Model & Key Equations

The core of the calculation is the Darcy-Weisbach equation, which relates head loss (or pressure drop) in a pipe to the friction factor, pipe geometry, and flow velocity.

$$ h_f = f \frac{L}{D}\frac{V^2}{2g}$$

Where:
$h_f$ = head loss due to friction [m]
$f$ = Darcy friction factor (dimensionless, from Moody chart)
$L$ = length of the pipe [m]
$D$ = inner diameter of the pipe [m]
$V$ = average flow velocity [m/s]
$g$ = acceleration due to gravity [m/s²]
The pressure drop is then $\Delta P = \rho g h_f$.

The friction factor $f$ is not a constant. It depends on the flow regime (Reynolds number) and the pipe's relative roughness. This relationship is captured by the Moody chart and is calculated here using the Colebrook-White equation for turbulent flow.

$$ \frac{1}{\sqrt{f}}= -2.0 \, \log_{10}\left( \frac{\epsilon/D}{3.7}+ \frac{2.51}{Re \sqrt{f}} \right) $$

Where:
$\epsilon$ = absolute roughness of the pipe wall [m] (set by the Material slider)
$\epsilon/D$ = relative roughness (dimensionless)
$Re$ = Reynolds number = $VD/\nu$
$\nu$ = kinematic viscosity of the fluid [m²/s]
This equation must be solved iteratively, which is what the simulator does for you in milliseconds.

Frequently Asked Questions

The friction coefficient f is determined by the flow state (laminar or turbulent) and the relative roughness ε/D of the pipe. For laminar flow (Re < 2300), f = 64/Re; for turbulent flow, it is calculated using the Colebrook-White equation, among others. This tool automatically calculates the Reynolds number from the input flow velocity and pipe diameter and applies the appropriate f.
This is a method to convert the pressure loss caused by fittings such as valves and elbows into an equivalent straight pipe length. For example, if a certain elbow has an equivalent pipe length of 5 m, the actual pipe length is increased by 5 m to calculate the pressure loss. In this tool, when you input the local loss coefficient, it is automatically converted to an equivalent pipe length and reflected in the total loss.
According to the Darcy-Weisbach equation, pressure loss is proportional to the square of the flow velocity and inversely proportional to the fifth power of the pipe diameter. In other words, doubling the flow velocity increases the loss by approximately 4 times, and doubling the pipe diameter reduces the loss to about 1/32. In this tool, simply changing the numerical values updates the results in real time, making it easy to grasp the design intuition.
Since density and viscosity can be directly input, basically all Newtonian fluids such as water, oil, and air can be handled. However, non-Newtonian fluids and gas-liquid two-phase flows are not supported. Additionally, it assumes gases within a range where compressibility can be ignored (Mach number 0.3 or less).

Real-World Applications

Water Distribution Networks: Municipal engineers use these calculations daily to design city water mains. They must ensure sufficient pressure reaches the farthest homes while accounting for pipe material (roughness) and varying demand (flow rate Q). A miscalculation can lead to weak showers or burst pipes.

Oil & Gas Pipelines: Pumping crude oil or natural gas over hundreds of kilometers involves massive pressure drops. Accurate friction factor calculation is critical for sizing powerful pumping stations and selecting the right pipe grade to transport the fluid efficiently and safely.

HVAC System Design: Heating and cooling systems rely on networks of ducts and pipes to move air and water. Engineers use these principles to size ducts and pipes to deliver the correct air/water volume (Q) to each room without creating excessive noise or requiring oversized, energy-wasting fans and pumps.

Industrial Process Lines: In a chemical plant, everything from syrup to slurry is pumped through pipes. The fluid viscosity (ν) can vary wildly. Process engineers input custom fluid properties into tools like this simulator to design lines that maintain precise flow rates for mixing and reaction processes.

Common Misconceptions and Points of Caution

Model assumptions: The mathematical model used here relies on simplifying assumptions such as linearity, homogeneity, and isotropy. Always verify that your real system satisfies these assumptions before applying results directly to design decisions.

Units and scale: Many calculation errors arise from unit conversion mistakes or order-of-magnitude errors. Pay close attention to the units shown next to each parameter input.

Validating results: Always sanity-check simulator output against physical intuition or hand calculations. If a result seems unexpected, review your input parameters or verify with an independent method.

Related Engineering Fields

Structural & Mechanical Engineering: Solid mechanics, elasticity theory, and materials science form the foundation for many of the governing equations used here.

Fluid & Thermal Engineering: Fluid dynamics and heat transfer share similar mathematical structures (conservation equations, boundary-value problems) and frequently appear in multi-physics problems alongside structural analysis.

Control & Systems Engineering: Dynamic system analysis, state-space methods, and signal processing connect to the time-dependent behaviors modeled in this simulator.