Hydraulic Gradient Calculator
Enter the upstream head, downstream head, and flow path length to find the hydraulic gradient and head loss instantly. Switch to Darcy-Weisbach mode for pipe-flow friction head loss, or use any of the six solve modes to reverse-solve for any unknown. Results include a slope percentage and a visual gradient gauge. Units switch between metric (m) and imperial (ft).
Formula
Worked example
A monitoring well shows an upstream head of 10 m and a downstream well 30 m away shows 4 m. Head loss = 10 - 4 = 6 m. Hydraulic gradient = 6 / 30 = 0.2 (20% slope). For Darcy-Weisbach: a 100 m pipe (D = 0.1 m, v = 2 m/s, f = 0.02) gives hf = 0.02 x (100/0.1) x (4/19.613) = 4.08 m, gradient = 4.08/100 = 0.041.
What is the hydraulic gradient?
The hydraulic gradient (i) is the slope of the hydraulic grade line: the ratio of head loss to the distance over which that loss occurs. It is dimensionless, often written as m/m or ft/ft, and can also be expressed as a percentage by multiplying by 100. It quantifies the driving force for fluid movement in soils, pipes, and open channels. A positive gradient means head decreases in the direction of flow. A negative gradient means the downstream end has higher head, which can drive flow backward or indicate an artesian condition.
How to use this calculator
Select your unit system (metric or imperial) and the quantity you want to solve for. The default mode solves for the hydraulic gradient from upstream head h1, downstream head h2, and flow path length L. Five additional modes let you reverse-solve for head loss, flow path length, downstream head, or upstream head, and a Darcy-Weisbach mode computes friction head loss in a pipe from pipe geometry, flow velocity, and the Darcy friction factor. The Hydraulic Grade Line chart (below the result) shows how total head decreases linearly along the flow path.
Critical hydraulic gradient and piping failure
When an upward hydraulic gradient equals or exceeds the critical value, the seepage force exactly balances the submerged weight of the soil particles. The soil loses its effective stress and behaves like a liquid: a condition called piping, heave, or boiling. The critical hydraulic gradient is ic = (Gs - 1) / (1 + e), where Gs is the specific gravity of solids (about 2.65 for quartz) and e is the void ratio. For most saturated granular soils this works out to roughly 0.9 to 1.1. Gradients approaching ic require redesign: lower the head difference, lengthen the flow path using sheet piles or grout curtains, or add a loaded filter blanket.
Darcy-Weisbach pipe friction
The Darcy-Weisbach equation is the standard method for calculating head loss due to friction in a full pipe: hf = f x (L/D) x (v^2 / 2g). Here f is the dimensionless Darcy friction factor (not the Fanning friction factor, which is f/4), L is pipe length, D is internal diameter, v is mean velocity, and g is gravitational acceleration. The friction factor depends on the Reynolds number and the relative roughness of the pipe wall. Smooth new PVC typically has f around 0.01-0.02 at turbulent flow; older cast iron may reach 0.04-0.06. Use a Moody chart or the Colebrook equation to find f for your Reynolds number and roughness.
Typical hydraulic gradients by application
| Application | Typical i range | Notes |
|---|---|---|
| Regional groundwater flow | 0.0001 - 0.01 | Very flat; driven by large-scale aquifer slope |
| Sandy aquifer seepage | 0.001 - 0.05 | Darcy regime; flow is laminar |
| Gravel / coarse aggregate | 0.01 - 0.1 | Higher conductivity; steeper gradients may trigger turbulent flow |
| Drainage blanket (road base) | 0.02 - 0.1 | Designed to drain pavement subgrade quickly |
| Irrigation canal slope | 0.0001 - 0.001 | Shallow grade to control velocity and erosion |
| Municipal water main | 0.001 - 0.01 | Pipe friction gradient from Darcy-Weisbach |
| Critical gradient (piping risk) | 0.9 - 1.1 | Upward gradient where buoyant weight is overcome; avoid |
Reference ranges for hydraulic gradient (i) across common civil and environmental engineering contexts. Critical hydraulic gradient ic is approximately 0.9-1.1 for most saturated soils.
Frequently asked questions
What is the difference between hydraulic gradient and hydraulic head?
Hydraulic head is the total energy per unit weight of fluid at a point, measured as the height above a datum to which water would rise in a standpipe. The hydraulic gradient is the rate at which that head changes with distance - it is the slope of the hydraulic head surface between two points. Head has units of length (m or ft); gradient is dimensionless.
Can the hydraulic gradient be negative?
Yes. A negative gradient means the downstream point has higher head than the upstream point, so flow would move against the assumed direction. This happens in artesian conditions, where confined aquifer pressure drives water upward, or when you reverse the labeling of h1 and h2. The calculator reports the signed gradient so you can see direction.
What is the critical hydraulic gradient?
The critical hydraulic gradient ic is the upward gradient at which seepage force exactly equals the submerged weight of a soil, causing it to lose strength and potentially fail by piping or heave. For most saturated sandy soils ic is approximately 0.9 to 1.1. It depends on the specific gravity of soil solids (typically 2.65) and the void ratio. Exceeding ic is a serious geotechnical hazard in earthen dams, levees, and foundation excavations.
What is the difference between Darcy hydraulic gradient and open-channel slope?
In Darcy's Law for flow through porous media (soil, rock), the hydraulic gradient drives seepage: Q = K i A, where K is hydraulic conductivity and A is cross-sectional area. In open-channel flow, the bed slope and energy grade line play the equivalent role. This calculator handles both: use the standard gradient modes for soil or open channels, and switch to Darcy-Weisbach mode for pressurized pipe flow.
How does the Darcy friction factor affect the hydraulic gradient in a pipe?
A higher friction factor f means more resistance per unit of pipe length, so the same flow velocity produces a steeper hydraulic gradient (greater head loss per metre). Smooth pipes at high Reynolds numbers have the lowest f values (approaching 0.008 for very smooth, fully turbulent flow). Rough pipes, low-velocity laminar flow (f = 64/Re), or encrusted older pipes raise f and the head loss significantly.
How do I measure hydraulic head in the field?
In groundwater studies, install piezometers or monitoring wells and measure the depth to water from a known surface elevation. Total head = surface elevation minus depth to water. In pipe systems, a pressure tap with a gauge reads the pressure head, and adding the elevation head gives total head. The flow path length between measurements should follow the actual flow path, not the straight-line surface distance, especially in heterogeneous soils.