Skip to main content
v2026.11,986 entries · CC-BY 4.0

EPANET: Water Distribution System Modeling Guide

EPANET is the EPA standard for modeling water network hydraulics and water quality. Learn its Global Gradient Algorithm, PDD equations, and API integration.

Written and maintained by CASRAI Editorial Board

Published

On this page

EPANET is the public-domain computational software developed by the U.S. Environmental Protection Agency (EPA) to model the hydraulic and water quality behavior of pressurized water distribution piping systems. It simulates extended-period hydraulic dynamics, nodal pressures, pipe flow rates, tank water levels, water age, and chemical constituent propagation across municipal networks and laboratory testbeds.

Short answer

EPANET is an open-source engineering software package developed by the U.S. EPA that models pressurized pipe networks. By solving conservation of mass and energy equations simultaneously, it calculates junction pressures, pipe flows, pump operating points, and chemical constituent decay over extended time periods for design, fire flow evaluation, and water quality compliance.

Definition and scope

Developed under Lewis A. Rossman at the EPA National Risk Management Research Laboratory and updated under EPA Report EPA/600/R-20/133 (EPANET 2.2), EPANET provides a standardized mathematical engine for drinking water infrastructure. Written in ANSI C and distributed in the public domain as open source software, its computational libraries serve as the core calculation kernel for commercial GIS platforms and research workflows. Engineering teams frequently review its public-domain status under institutional frameworks for open source software licensing.

EPANET models physical network elements and operational controls via standardized ASCII input files (.inp format), covering:

  • Junctions: Network nodes where pipes connect and demands are withdrawn.
  • Pipes, Pumps, and Valves: Conveyance links governed by friction loss, pump performance curves, and pressure-regulating controls.
  • Storage Tanks and Reservoirs: Variable-level storage tanks and infinite-capacity constant-head sources.
  • Operational Controls: Time-based demand patterns and conditional control rules governing pump and valve operations.

How it works or how it is used in practice

EPANET performs extended-period simulations (EPS) by solving hydraulic network equilibria at user-specified hydraulic time steps and tracking constituent transport across shorter water quality steps.

Hydraulic solver: Global Gradient Algorithm

EPANET resolves non-linear hydraulic networks using the Global Gradient Algorithm (GGA) developed by Todini and Pilati (1988). The algorithm simultaneously satisfies two governing conservation laws:

  • Mass Conservation at Nodes: The algebraic sum of pipe flows entering and leaving each node equals consumption demand: Σ q_in – Σ q_out – D_j = 0.
  • Energy Conservation along Links: Total head difference between nodes equals link frictional and minor losses: H_i – H_j = h_L,ij.

Using Newton-Raphson linearization, GGA solves the symmetric system [A]{H} = {F} directly, converging reliably on complex looped grids without the numerical instability common to older loop-based Hardy Cross methods.

Friction head-loss formulations

Modelers calculate link friction loss using one of three standard equations:

  • Hazen-Williams: Empirical formula for water at ambient temperatures (15°C to 20°C): h_L = 10.667 · C^(-1.852) · d^(-4.871) · L · q^1.852 (SI units), where C is roughness (100–150).
  • Darcy-Weisbach: Mechanistic formula valid across all fluids and flow regimes: h_L = f · (L / d) · (v^2 / (2g)), where friction factor f is determined via the Colebrook-White relation or Swamee-Jain approximation.
  • Chezy-Manning: Applicable to large culverts or submerged open transitions: h_L = 10.29 · n^2 · d^(-5.33) · L · q^2.

Pressure-dependent demands (PDD)

EPANET 2.2 introduced Pressure-Dependent Demand (PDD) alongside traditional Demand-Driven Analysis (DDA). Under low-pressure stress, PDD models delivered demand using the Wagner equation: D = D_req · [ (P – P_min) / (P_req – P_min) ]^e (default e = 0.5), preventing unrealistic negative pressure calculations.

Water quality and reaction kinetics

EPANET uses Lagrangian segment tracking to advect chemical parcels through pipes. The engine computes both bulk fluid decay (reaction coefficient k_b) and pipe wall reactions (coefficient k_w, constrained by Sherwood mass transfer). For complex disinfectant speciation and byproducts, researchers apply the EPA EPANET-MSX extension (EPA/600/R-22/199).

The following table outlines primary EPANET network modeling components and their governing formulations based on EPA Report EPA/600/R-20/133:

Model Element Governing Formulation Primary Input Parameters Typical Application
Junction Node Continuity; DDA fixed demand or PDD Wagner power law Elevation, base demand, demand pattern Customer service connections, pipe tees
Storage Tank Dynamic continuity: dV/dt = Σ q_in – Σ q_out Base elevation, min/max water level, diameter Distribution storage, pressure equalization
Reservoir Infinite capacity boundary; constant or patterned head Fixed hydraulic grade line (head) Treatment plant clearwells, river intakes
Pipe Hazen-Williams, Darcy-Weisbach, or Chezy-Manning head loss Length, internal diameter, roughness, minor loss Transmission mains, distribution pipe grids
Pump Head addition curve: h_p = h_0 – a · q^b Head-flow operating curve, nominal speed High-service stations, inline boosters
PRV (Pressure Reducing Valve) Throttling to cap downstream pressure at set point Pressure setting, valve status District Metered Area (DMA) pressure zones
EPANET-MSX Coupled differential algebraic equations for multi-species Reaction kinetic expressions, rate constants Chloramination, DBP formation, bacterial growth

Where it matters for labs, clinics or supply decisions

In academic civil engineering facilities, EPANET underpins scaled physical flow loops, sensor calibration benches, and computational fluid models. Researchers link its programmatic C-API into automated computational environment tools and institutional reproducibility infrastructure to ensure simulation runs match published experimental benchmarks.

In healthcare and clinical campuses, EPANET water age and residual tracking help facility engineers prevent Legionella pneumophila risks by identifying stagnation zones and verifying secondary disinfectant contact times.

Laboratory research teams follow a structured verification checklist before adopting EPANET simulation outputs:

  • Geometric Audit: Confirm junction elevations and pipe dimensions against physical test loops.
  • Friction Calibration: Derive empirical roughness values (C-factor or ε) via steady-state flow tests and differential pressure gauges.
  • Decay Calibration: Measure bulk decay rates (k_b) in laboratory bottle tests and establish wall decay (k_w) via tracer studies.
  • SOP Documentation: Formalize simulation parameters within a laboratory standard operating procedure (SOP), recording convergence limits and time steps.

Common misunderstandings

  • Steady-State vs. Extended-Period Simulation: Single-period runs do not capture dynamic tank filling, diurnal demand swings, or water aging, which require extended-period simulations.
  • DDA vs. PDD Limitations: Standard Demand-Driven Analysis forces full demand delivery even at negative pressures; modelers must enable Pressure-Dependent Demands to simulate supply shortfalls.
  • Hazen-Williams Temperature Limits: Hazen-Williams is restricted to water at ambient temperatures. Non-water fluids, extreme temperatures, or laminar regimes require Darcy-Weisbach.
  • Water Hammer Transients: EPANET models quasi-steady extended hydraulics and does not compute acoustic wave propagation or fast transient water hammer events.

FAQ

Is EPANET free and open source?

Yes. EPANET is developed by the U.S. EPA and released into the public domain. The C computational engine source code is maintained by Open Water Analytics, enabling unrestricted academic and commercial integration.

What is the difference between EPANET 2.0 and EPANET 2.2?

EPANET 2.2 adds native Pressure-Dependent Demand (PDD) simulation, storage tank overflow modeling, improved numerical convergence algorithms for low-flow regimes, and an expanded C-API library.

Can EPANET model multi-species chemical reactions?

Standard EPANET models single-constituent decay. To simulate multi-species interactions, such as chloramination kinetics or disinfection byproduct formation, users employ the EPA EPANET-MSX extension.

How does EPANET calculate pipe head loss?

EPANET supports three head-loss formulas: Hazen-Williams (standard for municipal water), Darcy-Weisbach (mechanistic, valid across all fluids and temperatures), and Chezy-Manning (for large conduits or open channels).

Sources

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about EPANET: Water Distribution System Modeling Guide

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →