Pipe Network Calculator
Hardy-Cross iteration for a single-loop pipe network: flow rates, head losses, and a convergence table, corrected until the loop balances
Hardy-Cross iteration for a single loop of pipes, numbered in the direction of positive flow around the loop; water at 20°C (ν = 1×10⁻⁶ m²/s). Each correction adds the same ΔQ to every pipe, so the differences between the starting flows Q₀ never change: Q₀ of pipe i minus Q₀ of pipe i + 1 is the flow drawn off where those two pipes meet (the last pipe meets pipe 1, and a negative value is a supply). The Q₀ values therefore set the junction flows as well as the starting point: equal values mean nothing is drawn off, and every final flow is 0.
| Pipe | L (m) | D (m) | ε (m) | Q₀ (m³/s) | |
|---|---|---|---|---|---|
| 1 | |||||
| 2 | |||||
| 3 |
Hardy-Cross Iterations
| Iter | Q_1 (m³/s) | Q_2 (m³/s) | Q_3 (m³/s) | ΔQ |
|---|---|---|---|---|
| 1 | 3.3790e-2 | 1.3790e-2 | 3.7895e-3 | -1.6210e-2 |
| 2 | 2.4174e-2 | 4.1744e-3 | -5.8256e-3 | -9.6151e-3 |
| 3 | 1.9338e-2 | -6.6244e-4 | -1.0662e-2 | -4.8368e-3 |
| 4 | 1.8594e-2 | -1.4059e-3 | -1.1406e-2 | -7.4346e-4 |
| 5 | 1.8627e-2 | -1.3727e-3 | -1.1373e-2 | 3.3158e-5 |
| 6 | 1.8627e-2 | -1.3727e-3 | -1.1373e-2 | 6.4370e-8 |
| 7 | 1.8627e-2 | -1.3727e-3 | -1.1373e-2 | 2.4280e-13 |
Hardy-Cross Convergence — Flow per Pipe by Iteration
Tip: hover to read values, click to pin a point for export
Final Results
How to Use This Calculator
Enter your input values
Fill in all required input fields for the Pipe Network Calculator. Follow the units and input format printed next to each field. Where a unit selector is available, choose the units that match your data.
Review your inputs
Double-check that all values are correct and match the units or format shown for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.
Read the results
The Pipe Network Calculator computes the output in your browser and displays the results, with units clearly labeled, as soon as they are ready — no data sent to a server.
Explore parameter sensitivity
Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.
When to Use This Calculator
- •Use the Pipe Network Calculator to check your hand calculations on homework or exam problems — comparing its result with your own working helps identify arithmetic errors before they propagate.
- •Use it during the early design phase to rapidly iterate on parameters and narrow down feasible configurations before committing time to detailed finite element simulations or full design packages.
- •Use it when reviewing a colleague's calculation or checking a vendor's data sheet for plausibility — a quick sanity check can prevent costly downstream errors.
- •Use it to generate reference data for a technical report or presentation without manual computation, ensuring consistent, reproducible numbers throughout the document.
- •Use it in the field when a quick estimate is needed and a full engineering software package is not available.
About This Calculator
The Pipe Network Calculator is a precision engineering calculation tool designed for students, engineers, and technical professionals. Hardy-Cross iteration for a single-loop pipe network: flow rates, head losses, and a convergence table, corrected until the loop balances All calculations are performed using established engineering formulas from the relevant scientific literature and standards. Follow the units printed beside each field. Where a unit selector is provided, the selected unit is converted internally. Results are computed in your browser without sending data to a server, which keeps your inputs private. This calculator is intended as a supplementary tool for learning and design exploration; always verify results against authoritative references for safety-critical applications.
The Theory Behind It
A pipe network is a collection of pipes, junctions, and loops through which fluid flows. Analysis determines the flow rate in each pipe and the pressure at each junction given boundary conditions (source and sink pressures or flow rates, known reservoir elevations). The governing equations are: continuity (flow in = flow out at each junction, implying net flow = 0) and energy balance around each loop (the sum of head losses around a closed loop must equal zero). For a network with N junctions, there are N continuity equations; for a network with L independent loops, there are L loop equations. Hardy-Cross iteration is the classical solution method: assume an initial flow distribution satisfying continuity, compute head losses around each loop, adjust flows to balance the loop equations, and iterate. Each loop adjustment is ΔQ = −Σh_L / (2·Σ(h_L/Q)), where h_L is the head loss in each pipe of the loop and Q is the flow. The adjustment applies to each pipe in the loop with appropriate sign. Convergence is typically after 5-20 iterations for simple networks. For large networks, modern methods use Newton-Raphson or gradient-based solvers that converge faster. Pipe networks apply to water distribution (city mains and service lines), HVAC hydronic systems (chilled and hot water distribution), natural gas distribution, wastewater collection, and district heating/cooling. The calculator implements Hardy-Cross for a single-loop network using Darcy-Weisbach friction with user-specified pipe properties.
Real-World Applications
- •Municipal water distribution network: compute flow in each street main and pressure at each fire hydrant under peak demand, fire flow, and design scenarios to verify adequate service.
- •HVAC hydronic loop: chilled water loops in commercial buildings have multiple branches to air handlers, fan coils, and chillers. Balancing flow and sizing pipes requires network analysis.
- •Natural gas distribution: distribution networks from city gate to individual customers use pressure-drop analysis similar to liquid networks but with compressibility corrections for pressure-dependent density.
- •Industrial process piping: complex plant piping with multiple pumps, headers, and parallel paths requires network analysis for pressure drop and flow distribution.
- •Fire sprinkler hydraulic design: NFPA 13 requires hydraulic calculations showing that adequate water flow and pressure reach the most remote sprinkler in the network under design fire scenarios.
Frequently Asked Questions
What is the Hardy-Cross method?
Hardy-Cross is an iterative solution method for pipe network flow analysis. Start with an assumed flow distribution that satisfies continuity at each junction. Compute head losses around each loop. Adjust flows to balance the loop head loss equations. Iterate until adjustments become small. The method was developed by Hardy Cross in the 1930s and remains a common hand-calculation technique for small networks.
Why do pipe networks need iteration?
Because head loss depends non-linearly on flow rate (h_L ∝ Q² for turbulent flow in Darcy-Weisbach). The loop-balance equations are therefore non-linear and have no closed-form solution. Iterative methods (Hardy-Cross, Newton-Raphson) refine the solution until the loop residuals become small. Modern computer tools converge in milliseconds; hand calculations for small networks take 5-20 iterations.
What's a loop in a pipe network?
A loop is a closed path formed by a sequence of pipes that returns to its starting junction. For example, if pipes A→B, B→C, and C→A exist, A-B-C-A is a loop. The energy balance around any loop must sum to zero — the total head loss going one way around equals zero when consistent flow directions are used. A network with N junctions and P pipes has L = P − N + 1 independent loops (if the network is connected).
What determines pipe sizing in a network?
Design criteria typically include: maximum velocity (to limit noise, erosion, and pressure drop), maximum pressure drop per unit length, available pressure at the source, and budget for pipe material. For water distribution, 1-2 m/s peak velocity is typical and friction loss is sized for adequate pressure at the most remote service. Smaller pipes are cheaper but have higher friction losses; larger pipes have lower pressure drop but higher material cost. The trade-off is optimized based on operating cost (pumping energy) vs capital cost (pipe material).
When does Hardy-Cross fail to converge?
For networks with very different friction regimes (laminar vs turbulent in different pipes), very different pipe diameters, or very high-pressure-drop segments dominating the network, Hardy-Cross convergence can be slow or oscillatory. In these cases, Newton-Raphson or gradient-based methods converge more reliably. Modern commercial software (EPANET, WaterCAD, Bentley OpenFlows) uses these advanced methods and handles networks with thousands of pipes.
Related Calculators
Reynolds Number Calculator
Calculate Reynolds number and classify flow as laminar, transitional, or turbulent with common fluid presets
Bernoulli Equation Calculator
Solve for any unknown in the Bernoulli equation given pressure, velocity, and elevation at two points
Darcy-Weisbach Calculator
Calculate head loss and pressure drop in pipes using the Darcy-Weisbach equation with friction factor
Moody Chart Calculator
Calculate Darcy friction factor from Reynolds number and relative roughness using Colebrook-White and Swamee-Jain
Pump Power Calculator
Calculate hydraulic power, shaft power, and NPSH for centrifugal pumps from flow rate, head, and efficiency
Orifice Flow Calculator
Calculate volumetric flow rate through an orifice from discharge coefficient, area, and pressure drop
References & Further Reading
Add the live Pipe Network Calculator to your site. Free to embed, with a link back to MegaCalc.