Fluid Pressure & Hydrostatic Force Calculator: p = ρgh + Wall Loads
Calculate gauge and absolute pressure at depth (p = ρgh), determine depth from pressure, and compute hydrostatic force on submerged surfaces with center of pressure. Compare up to 3 scenarios.
Last Updated: February 2026. Tank and vessel guidelines referenced from ASME BPVC Section VIII and API 650.
p(h) = p₀ + ρgh. That's hydrostatic pressure as a function of depth, with p₀ as the surface pressure (typically atmospheric, ~101.3 kPa) and h measured downward from the surface. For water, ρg works out to about 9.81 kPa/m, so every 10 m of depth adds roughly 1 atmosphere. The hydrostatic force on a vertical wall isn't ρgh times area. It's the integral of p(h) over the wetted surface, which gives F = ρg·h_c·A acting at the center of pressure (located below the centroid for any submerged surface). That offset matters because moment about the hinge of a dam gate or a tank wall depends on where the load sits, not on the average depth.
This page covers pressure-depth relationships, force on submerged surfaces, and selection criteria for tanks and vessels. Whether you're sizing a dam gate, checking a 304 stainless tank wall, or estimating diving pressure, the formulas are the same. The safety factors and design standards differ dramatically by application though, and that's where most engineering judgement enters.
Identifying Flow Regime First (Laminar, Turbulent, Transitional)
Hydrostatics is the no-flow case, the special branch of fluid mechanics where velocity is zero everywhere. So when an engineer reaches for ρgh, the regime question already has an answer: laminar, turbulent, and transitional all collapse into static. That's why static pressure equations don't carry a Reynolds number. Easy to forget, and worth saying out loud, because the moment any disturbance enters (filling the tank, opening the gate, wind across the surface) you have to switch models.
The boundary between hydrostatic and dynamic is sharper than it looks. A water tower at steady level is hydrostatic, full stop, even though the building uses water continuously. The flow leaves through the supply line, but the column above the supply is essentially static. Open the relief valve at the top and you still have hydrostatics in the column. Drop the level rapidly, by say 0.1 m/s, and you have a quasi-static problem where ρgh is still close enough but the column is technically accelerating.
Wave action and sloshing are the cases where hydrostatic analysis breaks. A 304 stainless storage tank in a seismic zone can see dynamic pressure from sloshing that exceeds the hydrostatic value by 50 percent or more. API 650 Appendix E spells out the Housner sloshing model for exactly this reason. So if your tank sits on a fault line or rides on a ship, switch from pure hydrostatics to the equivalent-static method that wraps a sloshing pressure increment around the ρgh baseline.
For dam analysis, the static reservoir is the design case for normal operation, but spillway flow is decidedly dynamic. The face of a concrete gravity dam during an extreme flood discharge sees a mix of hydrostatic load from the reservoir behind it and momentum exchange from spillway flow over the crest. The two get superposed. USACE design manuals separate these for clarity.
Field check: if water is moving fast enough that you can hear it, hydrostatics is no longer the whole story. Add a velocity head term or step up to the steady-flow energy equation.
Choosing Geometry: Pipe vs. Plate vs. Cylinder vs. Open Channel
Hydrostatic geometry breaks into a few archetypes, and each one needs its own integration approach. A flat vertical plate, like a sluice gate or a tank wall, is the simplest. Pressure varies linearly with depth, so the resultant force is F = ρg·h_c·A acting at h_cp = h_c + I_G/(h_c·A). For a 4 m wide × 6 m tall rectangular gate with water level at the top, A = 24 m², h_c = 3 m, F = 1000 × 9.81 × 3 × 24 ≈ 706 kN. Center of pressure: h_cp = 3 + (4 × 6³/12)/(3 × 24) = 3 + 1 = 4 m below the surface, which is one-third of the gate height up from the base.
Cylindrical tanks and pipe walls behave differently because the curvature spreads load into hoop stress. For a vertical 304 stainless tank holding water, the wall sees ρgh internally and reacts with σ_h = pr/t around the circumference. The hydrostatic force is no longer a single resultant on a flat surface, it's a distributed load that the cylinder geometry handles efficiently. That's why cylindrical tanks dominate atmospheric and low-pressure storage.
Curved surfaces like the face of an arch dam or a submerged dome require splitting the force into horizontal and vertical components. The horizontal component equals the force on the vertical projection of the surface. The vertical component equals the weight of the (real or imaginary) fluid column above the surface. This decomposition is in every undergraduate fluid mechanics text and it's the cleanest way to handle a quarter-circle gate or an offshore pipeline buoyancy load.
Open channel flow brings hydrostatics to the bottom of the channel and dynamics to the surface. For a steady uniform flow in an irrigation canal, you can still use ρgh for the hydrostatic pressure on the bed and side walls, but you have to add momentum considerations when calculating the force on a sluice gate that disrupts the flow. PVC schedule 40 storm drains running partially full are open channel cases too, and the wetted perimeter changes with flow depth.
| Gauge Pressure | Equivalent Depth (water) | Typical Vessel Type | Governing Standard |
|---|---|---|---|
| < 15 kPa (2.2 psi) | < 1.5 m | Atmospheric storage tank | API 650 |
| 15 to 100 kPa | 1.5 to 10 m | Low-pressure tank | API 620 |
| 100 to 1000 kPa | 10 to 100 m | Pressure vessel | ASME BPVC Sec. VIII Div. 1 |
| > 1 MPa | > 100 m | High-pressure vessel | ASME BPVC Sec. VIII Div. 2/3 |
The transition from atmospheric tank to pressure vessel isn't arbitrary. It reflects where simple plate thickness formulas break down and where failure modes shift from leakage to catastrophic rupture.
Boundary Conditions That Change the Answer
The boundary you assume at the free surface determines what surface pressure to plug in. For an open swimming pool, the surface pressure is atmospheric and you can drop it from both sides of the pressure equation when you're computing forces, because the back of the wall sees the same atmospheric pressure. For a closed pressurized tank, the gas blanket above the liquid adds to ρgh at every depth, and you cannot drop it.
The wetted perimeter is the next boundary that catches people. Hydrostatic force only acts where fluid touches solid. A partially filled fuel tank carries less wall load than a full one, and the variation is not linear. A 6 m tall rectangular tank filled to 3 m has roughly a quarter the wall force of the fully filled case (because force scales with depth squared). API 650 sizing has to consider both the design fill height and the corroded-thickness condition.
Submerged bodies in confined containers, like a heavy object lowered into a tank, change the boundary on the bottom of the tank because they displace fluid and shift the surface up. For a tank that is shallow relative to the body, this matters: the rising free surface increases the hydrostatic pressure on the tank walls. For deep tanks, the change is negligible.
Outside pressure matters too. A pipeline buried 5 m below the seabed sees external hydrostatic pressure from the seawater column plus soil overburden. API RP 1111 spells out the collapse pressure check for offshore submarine pipelines, where the boundary is the ambient ocean rather than zero gauge.
Gauge vs. Absolute Pressure: Why It Matters in Engineering
Hydrostatic pressure increases linearly with depth: P_gauge = ρgh, where ρ is fluid density (kg/m³), g is gravitational acceleration (9.81 m/s²), and h is depth (m). In water, this works out to roughly 9.81 kPa per meter, about 1 atmosphere per 10 meters. Gauge pressure is what most installed instruments read, the value relative to atmospheric.
Fresh water: ρ = 1000 kg/m³ → ΔP = 9.81 kPa/m
Seawater: ρ = 1025 kg/m³ → ΔP = 10.06 kPa/m
Mercury: ρ = 13,546 kg/m³ → ΔP = 132.9 kPa/m
Absolute pressure adds atmospheric pressure: P_abs = P_atm + P_gauge. At sea level, P_atm ≈ 101.3 kPa. A scuba diver at 20 m experiences 2 bar gauge, 3 bar absolute. The distinction matters for gas laws, cavitation calculations, decompression tables, and any thermodynamic analysis.
Wall thickness and structural sizing run on gauge pressure because the steel reacts to the difference between inside and outside. An API 650 carbon steel tank wall doesn't care that there's 101 kPa of atmospheric pressure pushing inward, because the same 101 kPa pushes outward from the gas blanket. Gauge cancels.
Gas solubility, decompression tables, and pump cavitation all run on absolute. A diver at 30 m takes on nitrogen in proportion to absolute partial pressure, not gauge. A pump suction at 3 m below the supply tank surface has absolute pressure of about 130 kPa (assuming atmospheric tank), and that's the value to compare against the vapor pressure of the fluid for NPSH calculations. Get the units mixed up and you can quietly destroy a pump.
Selection rule: use gauge for structural loads and wall thickness. Use absolute for thermodynamic calculations, gas solubility, and decompression tables.
Conservation Laws Applied to the Specific Flow
In static fluid, the only conservation law working actively is force balance: pressure gradient must balance the body force per unit volume, dp/dz = -ρg, where z is measured upward against gravity. Integrate that and you get the linear pressure-depth relation. Mass conservation is trivially satisfied because nothing flows. Energy conservation reduces to an unchanging gravitational potential, p/ρg + z = constant along any vertical line in a quiescent fluid.
Force balance on a submerged surface gives the resultant F = ρg·h_c·A directly. The location of that force is where the moment integral balances, which works out to h_cp = h_c + I_G/(h_c·A). For the 4 m wide × 6 m tall dam gate at full water level, h_c = 3 m and h_cp = 4 m below the surface. The hinge or actuator must sit at h_cp or you get a rotational moment. That moment-balance argument is the entire reason engineers care about center of pressure.
Momentum conservation enters when something moves, like a closing valve or a sloshing tank. For pure hydrostatics, you can skip it. For seismic-load tank design under API 650 Appendix E, you need it because the impulsive sloshing mass exchanges momentum with the wall. Housner's 1957 paper on this is still the basis of modern tank seismic design.
For a vertical cylindrical tank holding water, hoop stress from the contained pressure is σ_h = P × r / t. For an allowable stress S, minimum thickness is t = P × r / S. A 10 m tall water tank with 2 m radius and S = 120 MPa for grade 304 stainless gives t_min = (98.1 × 10³ × 2)/(120 × 10⁶) = 1.6 mm. Add 3 mm corrosion allowance and round up to standard 6 mm plate. The actual stress is well below allowable, which gives margin against weld defects, dynamic events, and inspection findings.
| Tank Height | Base Pressure | Min. Wall (2m radius) | Typical Standard Plate |
|---|---|---|---|
| 5 m | 49 kPa | 0.8 mm | 5 mm |
| 10 m | 98 kPa | 1.6 mm | 6 mm |
| 15 m | 147 kPa | 2.5 mm | 8 mm |
| 20 m | 196 kPa | 3.3 mm | 10 mm |
Stratified fluids violate the constant-ρ assumption, and you have to integrate dp/dz = -ρ(z)g instead. In ocean water, surface seawater is about 1025 kg/m³ and 4 km deep water is about 1050 kg/m³ from compression. So actual pressure at 4 km depth runs roughly 5 percent above the constant-density prediction. For layered fluids in a process vessel, like 2 m of oil (ρ = 850 kg/m³) over water, calculate piecewise: pressure at the oil-water interface is 850 × 9.81 × 2 = 16.7 kPa, and below that you add water pressure linearly.
Selection impact: for storage tanks with multiple liquid layers, design wall thickness for the worst case where the heaviest fluid fills the entire tank. Don't rely on operational constraints, because someone will eventually fill it wrong.
Dam stability is a moment-balance problem. For a vertical dam face of height H, the horizontal hydrostatic force per unit width is F/b = ½ρgH², acting at H/3 from the base. This creates an overturning moment about the heel of M = ⅙ρgH³ per unit width. For a 20 m head: M = ⅙ × 1000 × 9.81 × 20³ = 13.1 MN·m per meter width. The dam's self-weight must produce a restoring moment at least 1.5× this for normal load, 1.2× for extreme flood. The resultant of all forces (hydrostatic, weight, uplift) needs to fall within the middle third of the base, or tensile stress develops on the heel, which concrete gravity dams cannot tolerate.
Safety factors account for material variability, loading uncertainty, and consequences of failure. ASME BPVC Section VIII Division 1 uses a factor of 3.5 on tensile strength for carbon steel. Division 2 allows 2.4 because it requires more rigorous analysis and inspection. API 650 atmospheric tanks run about 2.5 on yield. Higher safety factors aren't always better, they increase material cost and weight. For one-off custom vessels, lean conservative; for mass-produced certified components, lower factors may be justified.
| Application | Safety Factor (typical) | Basis |
|---|---|---|
| ASME VIII Div. 1 | 3.5 on UTS | General pressure vessels |
| ASME VIII Div. 2 | 2.4 on UTS | Advanced design rules |
| API 650 (tanks) | ~2.5 on yield | Atmospheric storage |
| Dam overturning | 1.5 normal, 1.2 flood | Moment ratio |
Worked Example: Hydrostatic Force on a 4 m × 6 m Vertical Dam Gate
Problem: a vertical rectangular gate 4 m wide × 6 m tall, water level at the top of the gate, fresh water at 20°C (ρ = 1000 kg/m³). Find the total hydrostatic force on the gate and the depth where the resultant acts (center of pressure).
Step 1: Geometry
Width b = 4 m, Height H = 6 m
Top of gate: h_t = 0 (water level)
Bottom of gate: h_b = 6 m
Step 2: Centroid depth
h_c = h_t + H/2 = 0 + 3 = 3 m
Step 3: Wetted area
A = b × H = 4 × 6 = 24 m²
Step 4: Total hydrostatic force
F = ρ × g × h_c × A = 1000 × 9.81 × 3 × 24
F = 706,320 N ≈ 706 kN (~72 tonnes equivalent weight)
Step 5: Center of pressure
I_G = b × H³/12 = 4 × 216/12 = 72 m⁴
h_cp = h_c + I_G/(h_c × A) = 3 + 72/(3 × 24)
h_cp = 3 + 1 = 4 m below the surface
Step 6: Sanity check using the triangular distribution
For a vertical surface starting at the free surface, the pressure profile is a right triangle.
The resultant of a triangular load lies at 2/3 of the depth from the apex, here 2/3 × 6 = 4 m. Matches.
Result:
Force: 706 kN acting at 4 m depth, which is 1 m below the centroid of the gate and 2 m above the bottom.
The hinge or actuator must apply its reaction at h_cp = 4 m or transmit a balancing moment to the structure.
If the gate is hinged at the top, the moment about the hinge is F × h_cp = 706 × 4 = 2,824 kN·m. The actuator at the bottom must apply a force equal to that moment divided by the lever arm (6 m), so about 471 kN. That sets the actuator selection. A typical hydraulic cylinder for this duty would be sized at around 600 kN to give margin for friction and dynamic load.
References
The hydrostatic formulas on this page assume static fluid, constant density, plane wetted surfaces, and standard gravity. Wave loads, sloshing, and flow-induced pressures need separate dynamic analysis. P = ρgh assumes constant ρ, so deep ocean and tall gas columns need integrated forms with ρ(z). Curved surfaces (cylinder shells, dome heads, arch dams) require splitting into horizontal and vertical components, and nozzle reinforcement, weld efficiency factors, and head design fall under code rules outside the scope here. Treat the calculator results as educational estimates, not final design numbers.
- White, F. M. (2016). Fluid Mechanics (8th ed.), McGraw-Hill. Chapter 2 on pressure distribution in a fluid.
- Munson, Young, & Okiishi. Fundamentals of Fluid Mechanics (8th ed.), Wiley. Hydrostatic pressure and forces on submerged surfaces.
- ASME BPVC Section VIII: Pressure vessel design rules. Division 1 (general) and Division 2 (advanced rules).
- API 650: Welded carbon steel tanks for atmospheric storage. Appendix E covers seismic sloshing.
- API 620: Low-pressure storage tanks, 17 to 103 kPa gauge.
- USACE Engineering Manuals: dam design, hydraulic structures, and flood load analysis.
- ACI 350-20. Code Requirements for Environmental Engineering Concrete Structures. American Concrete Institute. The governing code for hydrostatic load combinations on water-containing concrete structures (tanks, basins, reservoirs), including crack-control rebar sizing for liquid-tight service.
- AWWA D100, D110, D115. American Water Works Association standards for welded steel tanks (D100), wire- and strand-wound circular prestressed concrete water tanks (D110), and circular prestressed concrete water tanks with circumferential tendons (D115). The design references for municipal water-storage hydrostatic loading.
- Housner, G. W. (1957). Dynamic pressures on accelerated fluid containers. The basis for tank seismic design under API 650 Appendix E.
All pressure calculations assume standard gravity (g = 9.81 m/s²). For critical applications, verify local gravitational acceleration and fluid properties at temperature.
Troubleshooting Hydrostatic Pressure and Tank Sizing Errors
Real questions from engineers stuck on gauge vs absolute pressure, center of pressure location, layered fluids, and when API 650 gives way to ASME Section VIII.
How is hydrostatic pressure calculated?
Hydrostatic pressure at depth h in a fluid of density ρ is p = ρgh, where g is gravitational acceleration. For absolute pressure (the total pressure including atmosphere above the fluid surface), add atmospheric pressure: p_abs = p₀ + ρgh. Water has ρ = 1000 kg/m³, so each meter of depth adds 1000 · 9.81 = 9810 Pa, or about 9.81 kPa. At 10 m below the surface, gauge pressure is 98.1 kPa, roughly one atmosphere. That's why scuba divers experience roughly an atmosphere of additional pressure for every 10 m of depth. At 10 m the total is about 2 atm, at 20 m it's 3 atm, and so on. Pressure depends only on depth, not on the shape of the container. A swimming pool 2 m deep and a thin tube 2 m tall, both filled with water, have identical pressure at the bottom. This is the hydrostatic paradox, and it follows directly from p = ρgh. For the total force on a submerged surface, integrate pressure over area: F = ∫p · dA. A flat plate of area A at uniform depth h sees F = ρghA. A vertical wall of width w from surface to depth h sees F = ½ρgh²w, because pressure varies linearly with depth and you take the average. Liquids of different densities stack: in a U-tube with mercury (13,600 kg/m³) on one side and water on the other, pressure-matching at the interface gives a 13.6:1 height ratio. That's the principle of barometers and manometers.
My water tank is 8 m tall and narrow, but a wider tank of the same height has the same bottom pressure—how is that possible?
This is the hydrostatic paradox, explained by Pascal's principle. Pressure depends only on depth (ρgh), not on container shape or volume. A narrow tube and a wide tank both have P = ρ × g × 8 ≈ 78 kPa at the bottom if filled to 8 m. The weight of water differs, but the pressure per unit area doesn't. The container walls bear the extra force in wider tanks. This is why tall, narrow dams experience the same base pressure as wide reservoirs at equal depth.
I calculated 100 kPa at 10 m depth but my pressure gauge reads 0—am I using gauge or absolute pressure wrong?
Your calculation is correct, but you're conflating two different references. At 10 m depth in water, gauge pressure (relative to atmosphere) is about 98 kPa ≈ 1 atm. Absolute pressure is that plus atmospheric (101 + 98 = 199 kPa ≈ 2 atm). Most industrial gauges read zero at atmospheric pressure—they show gauge pressure. Your 100 kPa is gauge pressure, matching the physics. If your physical gauge reads 0, either you're at the surface or the gauge is broken.
I'm designing a gate for a dam—should I put the hinge at the centroid or somewhere else?
Put the hinge at the center of pressure, not the centroid. For vertical surfaces, the center of pressure is below the centroid because pressure increases with depth. The offset is Δh = I_G/(h_c × A), where I_G is the second moment of area. For a rectangular gate, this puts the center of pressure about H²/(12 × h_c) below the centroid. If you hinge at the centroid, the unbalanced moment will try to rotate the gate, requiring extra force to hold it closed.
Our tank farm has oil floating on water—how do I calculate pressure at the bottom when there are two layers?
Calculate piecewise. If 3 m of oil (ρ = 850 kg/m³) floats on 5 m of water (ρ = 1000 kg/m³), pressure at the oil-water interface is P₁ = 850 × 9.81 × 3 = 25 kPa. At the tank bottom (8 m total depth), add water pressure: P₂ = 25 + 1000 × 9.81 × 5 = 25 + 49 = 74 kPa. Don't average the densities—that gives wrong answers. Each layer contributes ρgh for its own thickness.
The wall thickness I calculated is 2 mm but the fabricator says they only have 6 mm plate—is that overkill?
Probably appropriate, not overkill. Your 2 mm is the bare minimum for hoop stress under hydrostatic load. Real tank design adds: corrosion allowance (typically 3 mm for carbon steel in water service), fabrication tolerance, weld efficiency factors (0.85–1.0), and safety margin. A 2 mm calculation plus 3 mm corrosion allowance gives 5 mm minimum; 6 mm standard plate is the next available size. API 650 has minimum thicknesses that often exceed stress-based calculations.
Why does the force on our vertical sluice gate seem so much larger than on a horizontal plate of the same area at the same average depth?
The forces should be equal if the centroid depth is the same. For a vertical surface, F = ρg × h_c × A, where h_c is the centroid depth. For a horizontal surface at constant depth h, F = ρgh × A. If h = h_c, the forces are identical. If your vertical gate force seems larger, check that you're comparing centroid depth, not top depth. The top of a vertical gate is shallower than its centroid, so using top depth underestimates horizontal-plate pressure.
I'm getting center of pressure above the centroid for my inclined surface—that can't be right, can it?
No, that's wrong—center of pressure is always below or at the centroid for surfaces where pressure increases with depth. Check your formula: h_cp = h_c + I_G/(h_c × A). The second term is always positive (I_G > 0, h_c > 0, A > 0), so h_cp > h_c always. If you got h_cp < h_c, you likely made a sign error or confused which direction is 'down.' For inclined surfaces, use depth measured vertically, not along the surface.
Our dive boat operates at 30 m depth—why do regulators need to deliver air at 4 bar absolute when gauge pressure is only 3 bar?
At 30 m depth, gauge pressure is ρgh = 1025 × 9.81 × 30 ≈ 301 kPa ≈ 3 bar. But a diver's lungs must work against absolute pressure, not gauge. Absolute pressure = gauge + atmospheric = 3 + 1 = 4 bar. The regulator must deliver air at ambient pressure (4 bar absolute) so the diver can inhale. This is also why divers use more air at depth—the same volume requires 4× the mass at 30 m versus the surface.
My textbook says F = ρghA but another source says F = ρgh_c A—which formula is correct?
Both are correct for different situations. F = ρghA (with h = constant depth) applies to horizontal surfaces where pressure is uniform. F = ρgh_c A (with h_c = centroid depth) applies to vertical or inclined surfaces where pressure varies. For vertical surfaces, using plain h (say, top depth) would underestimate force because pressure is higher at the bottom. The centroid depth gives the average pressure, which when multiplied by area gives correct total force.
I specified API 650 for our 12 m tall water tank, but the inspector says it needs ASME Section VIII—why?
API 650 covers atmospheric storage tanks with internal pressure ≤ 2.5 psi (17 kPa) gauge. At 12 m depth, hydrostatic pressure at the bottom is ρgh = 118 kPa ≈ 17 psi—well above the API 650 limit. Your tank falls into pressure vessel territory. For hydrostatic loads between 2.5–15 psi, API 620 may apply; above 15 psi, ASME BPVC Section VIII governs. The transition matters because ASME vessels require higher safety factors, more rigorous inspection, and certification stamps.