The Extended Bernoulli Equation
The Bernoulli Equation Calculator solves the extended mechanical energy balance for steady, approximately incompressible flow along a single flow path. By reconciling both sides of the energy equation, the tool balances static pressure, average speed, elevation, pump head, turbine head, and head losses between an upstream state (Section 1) and a downstream state (Section 2).
The governing equation is expressed in head form, where every mechanical energy term is represented as a column height of the flowing fluid in meters:
P₁/(ρg) + α₁V₁²/(2g) + z₁ + hₚ = P₂/(ρg) + α₂V₂²/(2g) + z₂ + hₜ + hL
Where:
- P₁ and P₂ represent the static pressure at Section 1 and Section 2.
- V₁ and V₂ represent the average speed at Section 1 and Section 2.
- z₁ and z₂ represent the elevation at Section 1 and Section 2.
- hₚ is the pump head added to the fluid between the sections.
- hₜ is the turbine head removed from the fluid between the sections.
- hL is the head loss representing dissipated mechanical energy.
- ρ is the fluid density.
- g is the acceleration due to gravity.
- α₁ and α₂ are the kinetic-energy correction coefficients for Section 1 and Section 2.
The tool normalizes all entered values to the standard SI units of Pa, m/s, m, kg/m³, and m/s² before applying the equation. Standard gravity is defined as 9.80665 m/s², and standard pressure conversions follow NIST SP 811, Appendix B.8, where 1 bar = 100,000 Pa and 1 standard atmosphere = 101,325 Pa.
Energy Grade Line (EGL) and Hydraulic Grade Line (HGL)
To help visualize the distribution of mechanical energy along the flow path, the calculator generates a head ledger containing the following parameters:
- Pressure head: Represented by P/(ρg), this term reflects the static pressure energy of the fluid.
- Velocity head: Represented by αV²/(2g), this term reflects the kinetic energy of the fluid.
- Elevation head: Represented by z, this term reflects the potential energy of the fluid relative to a common datum.
- HGL (Hydraulic Grade Line): The sum of the pressure head and elevation head (P/(ρg) + z), representing the piezometric head of the system.
- EGL / total head (Energy Grade Line): The sum of the pressure head, velocity head, and elevation head (P/(ρg) + αV²/(2g) + z), representing the total mechanical energy of the fluid at that section.
- Equation residual: The remaining difference between the upstream and downstream energy terms, which should equal zero when the equation is fully balanced.
The calculator displays these values for both sections using the following format:
Section 1 EGL = ‹pressure› + ‹velocity› + ‹elevation› = ‹total› mSection 2 EGL = ‹pressure› + ‹velocity› + ‹elevation› = ‹total› mBalance: ‹upstream› + ‹pump› = ‹downstream› + ‹turbine› + ‹loss›; residual ‹residual› m
Kinetic Energy Correction Coefficients (α)
In real fluid systems, the velocity profile across a pipe cross-section is rarely uniform. To account for this variation, the kinetic-energy correction coefficients α₁ and α₂ adjust the velocity head terms.
According to Purdue University control-volume energy-equation notes, the value of α depends on the flow regime:
- Turbulent Flow: The velocity profile is relatively flat and uniform. In these cases, α approaches 1. The calculator uses a default of 1 for a nearly uniform velocity profile.
- Laminar Flow: For a fully developed laminar circular-pipe profile, α is exactly 2.
The calculator permits values of α₁ and α₂ between 1 and 10. Users should enter a value other than 1 only when the specific velocity profile of the flow is known.
Absolute vs. Gauge Pressure and Cavitation Risks
The calculator allows users to select either "Gauge pressure" or "Absolute pressure" as the pressure reference. Because the Bernoulli equation relies on the relative pressure difference between Section 1 and Section 2, either reference can be used as long as it is applied consistently to both sections.
However, selecting the correct reference is critical when evaluating system safety:
- Absolute pressure: Pressure relative to a perfect vacuum. When this reference is selected, the calculator enforces a physical boundary where static pressure cannot fall below zero.
- Gauge pressure: Pressure relative to local atmospheric pressure.
If the calculated result is a negative gauge pressure, the tool displays the warning: "The result is a negative gauge pressure. Check the corresponding absolute pressure and vapor pressure before judging cavitation risk." This alerts operators to convert the gauge value to absolute pressure and compare it against the fluid's vapor pressure to determine if cavitation or boiling will occur.
Head Loss and System Limitations
Head loss (hL) represents the irreversible conversion of mechanical energy into thermal energy due to viscous shear stresses, pipe friction, and turbulence introduced by valves, fittings, bends, entrances, and exits.
The Bernoulli Equation Calculator does not calculate these losses from pipe dimensions, roughness, or flow rates. Instead, the user must determine these losses externally and enter them as a non-negative head value.
The tool is designed for steady, approximately incompressible, single-phase flow along a single flow path. It does not model transient behaviors, compressible gas dynamics, multiphase flows, pump performance curves, or vapor pressure limits.
Input Boundaries and Error Handling
To ensure physical and numerical validity, the calculator enforces strict limits on all inputs and solved values. If an input falls outside these boundaries, specific error messages are displayed:
| Parameter | Minimum Limit | Maximum Limit | Error Message |
|---|---|---|---|
| Fluid density | > 0 kg/m³ | 100,000 kg/m³ | "Fluid density must be greater than 0 and no more than 100,000 kg/m³." |
| Gravity | > 0 m/s² | 100,000 m/s² | "Gravity must be greater than 0 and no more than 100,000 m/s²." |
| Kinetic-energy coefficients (α₁, α₂) | 1 | 10 | "‹field› must be between 1 and 10." |
| Static pressure | -10¹⁵ Pa (Gauge) / 0 Pa (Absolute) | 10¹⁵ Pa | "‹field› must stay within ±10¹⁵ Pa after unit conversion." or "‹field› cannot be below zero when the pressure reference is absolute." |
| Average speed | 0 m/s | 1,000,000 m/s | "‹field› must be between 0 and 1,000,000 m/s after unit conversion." |
| Elevation | -10¹² m | 10¹² m | "‹field› must stay within ±10¹² m after unit conversion." |
| Pump, Turbine, & Loss heads | 0 m | 10¹² m | "‹field› must be between 0 and 10¹² m after unit conversion." |
Special Numerical Edge Cases
- Large Term Cancellation: If large energy terms nearly cancel out, the tool warns: "Large energy terms nearly cancel. The displayed answer is sensitive to small input changes; keep more measured precision and verify the setup."
- Negative Velocity Squared: If the entered energy balance requires a negative velocity head, the tool displays: "The entered energy balance makes
‹field›² negative, so there is no real-valued speed for this setup." - Negative Head Solution: If solving for a pump, turbine, or loss head yields a negative value, the tool displays: "Solving for
‹field›gives a negative head. Reverse the sections or model that energy in the opposite pump/turbine direction." - Overflow: If an intermediate calculation exceeds the supported range, the tool displays: "A value or intermediate energy term exceeds the supported number range."
Privacy and Processing
All calculations are performed locally within your web browser. Your flow conditions, inputs, and calculated results stay on your device and are not uploaded to any external servers.
Frequently Asked Questions
Can I use gauge pressure instead of absolute pressure?
Yes, because Bernoulli’s equation uses the pressure difference between the two sections. Both pressures must use the same reference. Choose absolute pressure when you need the calculator to reject values below a complete vacuum; a gauge result must be converted to absolute pressure before a cavitation check.
Where does head loss come from?
Head loss represents mechanical energy dissipated by pipe friction, fittings, valves, entrances, exits and other real-flow effects. This calculator uses the value you enter; it does not infer a loss from pipe length, roughness, diameter or flow rate.
What are the α kinetic-energy coefficients?
The coefficient corrects the velocity-head term when velocity is not uniform across a section. A nearly uniform turbulent profile is often approximated with α = 1, while a fully developed laminar circular-pipe profile has α = 2. Use a value supported by the actual profile rather than treating either as universal.
Why can a velocity have no real solution?
Velocity enters the equation as a non-negative squared term. If the remaining pressure, elevation, pump, turbine and loss heads require that square to be negative, the stated conditions cannot coexist in this model. Check units, flow direction and missing energy terms instead of taking a square root of a negative number.