The hydraulic grade line (HGL) and energy grade line (EGL) show how pressure, elevation, and velocity change as water moves through a pipe or channel. Engineers use them to find pressure problems, track energy losses, and check whether a system will perform as designed.
Imagine a large tank filled with water with a drain near the bottom. The water above the drain exerts pressure that pushes water out when the drain opens. As the water level drops, the pressure decreases, and the water flows out more slowly. Water height, pressure, and flow velocity are all connected.
These same relationships apply to complex hydraulic systems, where engineers must account for changes in pressure, elevation, velocity, and energy as water moves through pipes, channels, and other structures.
Two concepts help explain these relationships: the Hydraulic Grade Line (HGL) and the Energy Grade Line (EGL). Both describe how water’s energy changes as it flows, helping engineers identify pressure problems, assess energy losses, and make informed design decisions.
What are HGL and EGL?
The HGL and EGL are two ways engineers track the energy of flowing water. Both use a measurement called hydraulic head, which expresses energy as an equivalent height. For example, water with a pressure head of 10 meters has the same pressure as a column of water 10 meters tall. This makes it easier for engineers to compare different forms of energy as water moves through a system.
The HGL shows the combined effects of water’s elevation and pressure. Imagine connecting a clear, vertical tube to a pressurized water pipe. The height the water rises in that tube represents the HGL at that point. The EGL goes one step further. It includes the energy associated with the water’s movement, or velocity, in addition to its elevation and pressure. Because the EGL includes this extra energy, it sits above the HGL whenever water is moving. The faster the water flows, the greater the separation between the two lines.
Together, HGL and EGL help engineers understand how pressure and energy change under varying hydraulic conditions.
How do HGL and EGL relate to Bernoulli’s equation?
HGL and EGL are based on Bernoulli’s equation, which explains how water’s pressure, elevation, and velocity relate to its total energy. The basic principle is simple: As water flows, energy can shift among pressure, elevation, and movement. In an ideal system without friction or other energy losses, the water’s total mechanical energy remains constant as it flows.
Engineers describe these three forms of energy using measurements called head:
- Elevation head: The energy water has because of its height above a reference point.
- Pressure head: The energy associated with water pressure, expressed as the height of an equivalent column of water.
- Velocity head: The energy associated with water’s movement. Faster water has higher velocity head.
Together, these measurements make up total head, which represents the water’s total mechanical energy per unit weight.
Bernoulli’s equation describes this relationship:
Total head = Elevation head + Pressure head + Velocity head
This brings us back to HGL and EGL. The HGL combines elevation and pressure head, while the EGL includes all three components. Bernoulli’s equation describes ideal conditions, but real hydraulic systems lose energy through friction and other resistance. Engineers account for these losses using a more complete version called the energy equation, which also includes energy added by pumps. This explains why the EGL generally slopes downward as water moves through a pipe but rises when a pump adds energy.
How to calculate hydraulic grade line and energy grade line
Calculating HGL and EGL starts with three measurements: elevation head, pressure head, and velocity head. To find the HGL, engineers add elevation head and pressure head. Adding velocity head to that result gives them the EGL.
For example, imagine water flowing through a pressurized pipe. At one point, the elevation head is 10 meters, and the pressure head is 20 meters. Together, they produce an HGL of 30 meters. If the velocity head is 0.5 meters, the EGL would be 30.5 meters.
That 0.5-meter difference represents the energy associated with the moving water. By repeating these calculations at different points, engineers can track changes in pressure, velocity, and energy throughout a system.
What causes HGL and EGL to change?
Several factors affect how energy moves through a hydraulic system, including friction, pumps, and changes in pipe diameter. Each can change the position of the HGL, EGL, or both.
Friction and other head losses
As water flows through a pipe, friction between the water and pipe walls reduces its available energy. Engineers call this reduction head loss, and it causes the EGL to slope downward in the direction of flow.
In a pipe with a constant diameter and steady flow, water velocity stays roughly the same. As a result, the HGL and EGL decline together, maintaining about the same distance between them.
Additional energy losses occur at bends, valves, connections, and other structures that interrupt the flow. A sharp drop in EGL over a short distance may indicate an area of high resistance that needs closer attention. Is your model set up correctly? Could there be a real bottleneck in the system?
Pumps and energy additions
Pumps add energy to water, helping it overcome resistance, reach higher elevations, or maintain adequate pressure. When water passes through a pump, the added energy causes the EGL to rise by an amount equal to the pump head. If the water’s velocity is about the same before and after the pump, the HGL rises by the same amount as the EGL. Engineers can compare the size of this jump with the energy needed downstream to check whether a pump is adding enough head to move water through the system.
Changes in pipe diameter
Pipe diameter affects how quickly water flows and how its energy is distributed. When water flows through a narrower section of pipe at the same flow rate, it speeds up, increasing the energy associated with its movement. As a result, the gap between HGL and EGL grows.
When the diameter of the pipe increases, the opposite happens. Water slows down, and some of the energy associated with its movement can be converted back into pressure, causing the HGL to rise.
However, the transition between pipe sizes, such as a reducer or an expansion fitting, creates turbulence that dissipates some of the water’s energy. Engineers call this a minor loss, and it’s largest where the change in diameter is abrupt. That’s why the EGL can continue to fall even when the HGL rises.
HGL vs. EGL at a glance
| Hydraulic Grade Line (HGL) | Energy Grade Line (EGL) | |
|---|---|---|
| What it shows | Pressure and elevation energy | Total energy, including motion |
| Formula | p/γ + z | p/γ + z + v²/2g |
| Components | Pressure head + elevation head | Pressure head + elevation head + velocity head |
| Position | Always at or below the EGL | Always at or above the HGL, higher by one velocity head |
| How it’s measured | Water level in a vertical tube (piezometer) | Pitot tube, which captures total pressure |
| Still water (for example, a tank) | Equals the EGL | Equals the HGL |
| Friction and head loss | Slopes downward in the flow direction | Slopes downward in the flow direction |
| At a pump | Rises | Rises by the head the pump adds |
| Where the pipe narrows | Drops as velocity increases | Stays level, apart from losses |
| Where the pipe widens | Rises as velocity recovers into pressure | Keeps falling because of losses |
| In an open channel | Follows the water surface | Sits above the surface by the velocity head |
| Best for | Spotting low or high pressure, surcharge, and flooding risk | Tracking where energy is lost or added |
HGL and EGL in pressurized pipes and open channels
Engineers use HGL and EGL to understand water movement in both pressurized pipes and open channels, although the conditions differ. In a pressurized pipe, the HGL helps engineers understand water pressure. When the HGL is above a given point in the pipe, the water pressure there is higher than atmospheric pressure. When it falls below that point, the pressure is lower than atmospheric pressure.
In an open channel, such as a river or partially filled storm drain, water has a surface exposed to the atmosphere. The HGL generally follows the water surface, while the EGL sits above it to account for the moving water’s energy.
These measurements are especially useful in drainage systems. When the HGL rises above the top of a closed pipe, the pipe is operating under surcharged conditions, meaning water is flowing under pressure rather than simply flowing downhill through a partially filled pipe. If the water level rises high enough, water can back up into upstream manholes or storm drains and potentially cause flooding.
By comparing HGL and EGL with pipe invert elevations and ground levels, engineers can identify pressure problems, drainage limitations, and potential flooding risks.
How engineers use HGL and EGL in hydraulic modeling
HGL and EGL are especially useful in hydraulic modeling, which uses computer simulations to predict how water will behave under different conditions. For example, engineers can use HGL to identify areas where water pressure is too high or too low, potentially causing problems with pipes or water delivery. Changes in EGL can reveal where energy is being lost because of friction or other resistance.
Engineers can also examine how pumps affect water pressure or whether drainage pipes can handle predicted flows without backing up. These insights help them spot potential problems and compare various designs, such as changing pipe sizes or adding pumps, before making costly improvements.
Hydraulic modeling software makes this analysis easier by calculating HGL and EGL across entire networks, rather than one point at a time. For example, Autodesk InfoDrainage allows engineers to plot hydraulic grade lines and energy grade lines along drainage systems. Engineers can also review upstream and downstream HGL and EGL values to better understand conditions within individual pipes.
Together, HGL and EGL help engineers see how water behaves across a system, identify trouble spots, and make more informed design decisions.
Understanding hydraulic performance through HGL and EGL
HGL and EGL turn complex hydraulic principles into easy-to-visualize information about water pressure, movement, and energy. By understanding how these measurements change throughout a system, engineers can identify potential problems, improve designs, and make water infrastructure safer and more reliable.
Go deeper into hydraulic modeling
- Continuity equation explained: Find out why water speeds up in narrower pipes, which is what widens the gap between the HGL and EGL.
- InfoDrainage vs Civil 3D drainage tools: What’s different, and when to use each one: Both tools can calculate HGL and EGL. Find out when to check a design in Civil 3D and when to design and iterate in InfoDrainage.
- From Civil 3D to preliminary stormwater design: 5 InfoDrainage workflows: Follow one site from a Civil 3D pipe network to a sized, reported InfoDrainage design in this five-part video series.