Skip to main content

Fluid Pressure & Hydrostatic Force Calculator: ρgh + 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.

A hydrostatic pressure calculator helps you size tanks, select wall thicknesses, and verify that submerged structures can handle fluid loads. A process engineer specified a 15-meter tall water tank using atmospheric storage design rules, but the bottom experienced 1.5 bar gauge pressure—well into pressure vessel territory. The tank bulged at the base because nobody calculated the actual hydrostatic load. Every 10 meters of water adds roughly 1 atmosphere of pressure; ignoring this wrecks equipment and creates safety hazards.

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 tank wall, or estimating diving pressure, the formulas are the same—but the safety factors and design standards differ dramatically by application.

Selection Guide: Tank and Vessel Design by Pressure Range

Gauge PressureEquivalent Depth (water)Typical Vessel TypeGoverning Standard
< 15 kPa (2.2 psi)< 1.5 mAtmospheric storage tankAPI 650
15–100 kPa1.5–10 mLow-pressure tankAPI 620
100–1000 kPa10–100 mPressure vesselASME BPVC Sec. VIII Div. 1
> 1 MPa> 100 mHigh-pressure vesselASME 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.

Pressure at Depth: Gauge vs Absolute

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—or about 1 atmosphere per 10 meters.

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

Gauge pressure is what most instruments read—pressure relative to atmosphere. Absolute pressure adds atmospheric pressure: P_abs = P_atm + P_gauge. At sea level, P_atm ≈ 101.3 kPa. A diver at 20 m experiences 2 bar gauge (3 bar absolute). The distinction matters for gas laws, cavitation calculations, and specifying pressure relief devices.

Selection rule: Use gauge pressure for structural loads and wall thickness. Use absolute pressure for thermodynamic calculations, gas solubility, and decompression tables.

Hydrostatic Load on Submerged Surfaces

The total force on a submerged surface depends on orientation. For horizontal surfaces at constant depth, pressure is uniform: F = P × A = ρgh × A. For vertical surfaces, pressure varies linearly from top to bottom—the force equals average pressure times area: F = ρg × h_c × A, where h_c is the depth to the centroid.

The center of pressure (where the resultant force acts) is always below the centroid for vertical surfaces because pressure increases with depth. The offset is: Δh = I_G / (h_c × A), where I_G is the second moment of area about the centroidal axis. For a rectangle of height H: I_G = bH³/12, so Δh = H²/(12 × h_c).

Vertical rectangle (width b, height H, top at depth h_t):
h_c = h_t + H/2
A = b × H
F = ρg × h_c × A
h_cp = h_c + H²/(12 × h_c)

For a gate 3 m wide by 4 m tall with its top at 2 m depth in water: h_c = 4 m, A = 12 m², F = 1000 × 9.81 × 4 × 12 = 471 kN (≈48 tonnes). The center of pressure is at 4.33 m depth—0.33 m below the centroid. This offset determines where hinges and actuators must be placed.

Dam Design: Pressure Distribution and Centroid

A dam face experiences triangular pressure distribution—zero at the water surface, maximum at the base. For a vertical dam face of height H (water surface to base), the total horizontal force per unit width is: F/b = ½ρgH². This acts at H/3 from the base (2H/3 from the surface), creating an overturning moment about the base.

Dam stability requires the resultant of all forces (hydrostatic, weight, uplift) to fall within the middle third of the base. If it falls outside, tensile stress develops on the heel—unacceptable for concrete gravity dams. The safety factor against overturning is typically 1.5 for normal load and 1.2 for extreme flood.

Design check: Overturning moment = F × (H/3) = ⅙ρgH³ per unit width. For a 20 m head: M = ⅙ × 1000 × 9.81 × 20³ = 13.1 MN·m per meter width. The dam's weight must create a restoring moment at least 1.5× this value.

Tank Selection: Wall Thickness Estimation

Cylindrical tanks resist internal pressure through hoop stress: σ_h = P × r / t, where P is internal pressure, r is radius, and t is wall thickness. For a given allowable stress S, minimum thickness is: t = P × r / S. Add corrosion allowance (typically 3 mm for carbon steel) and round up to standard plate gauges.

For a vertical tank, hydrostatic pressure varies with depth—design for the maximum pressure at the bottom. A 10 m tall water tank has P_max = ρgH = 98.1 kPa at the base. With 2 m radius and allowable stress 120 MPa: t_min = (98.1 × 10³ × 2) / (120 × 10⁶) = 1.6 mm. After adding 3 mm corrosion allowance and rounding to standard 6 mm plate, actual stress is well below allowable.

Tank HeightBase PressureMin. Wall (2m radius)Typical Standard Plate
5 m49 kPa0.8 mm5 mm
10 m98 kPa1.6 mm6 mm
15 m147 kPa2.5 mm8 mm
20 m196 kPa3.3 mm10 mm

Worked Example: Force on a Vertical Gate

Problem: A sluice gate 2 m wide × 3 m tall is mounted vertically in a dam. Water level is 1 m above the top of the gate. Find the total hydrostatic force and the location where a single support must be placed to prevent rotation.

Step 1: Identify geometry

Width b = 2 m, Height H = 3 m

Top of gate: h_t = 1 m below surface

Bottom of gate: h_b = 1 + 3 = 4 m below surface

Step 2: Calculate centroid depth

h_c = h_t + H/2 = 1 + 1.5 = 2.5 m

Step 3: Calculate area

A = b × H = 2 × 3 = 6 m²

Step 4: Calculate total force

F = ρ × g × h_c × A = 1000 × 9.81 × 2.5 × 6

F = 147,150 N ≈ 147 kN (15 tonnes)

Step 5: Calculate center of pressure

I_G = b × H³/12 = 2 × 27/12 = 4.5 m⁴

h_cp = h_c + I_G/(h_c × A) = 2.5 + 4.5/(2.5 × 6)

h_cp = 2.5 + 0.3 = 2.8 m below surface

Result:

Force: 147 kN acting at 2.8 m depth (1.8 m below top of gate, 0.3 m below centroid)

Support must be placed at 2.8 m depth to prevent rotation.

Non-Constant Density: Stratified Fluids

The simple formula P = ρgh assumes constant density. In stratified fluids—ocean thermoclines, layered tanks, or atmosphere—density varies with depth. For linear density variation ρ(h) = ρ₀ + kh, pressure becomes: P(h) = ρ₀gh + ½kgh².

In the ocean, surface seawater is about 1025 kg/m³; at 4000 m depth, compression increases density to about 1050 kg/m³. This 2.5% increase matters for deep-sea pressure calculations—actual pressure at 4 km depth is about 5% higher than the constant-density estimate.

For layered fluids (oil over water), calculate pressure piecewise. If 2 m of oil (ρ = 850 kg/m³) floats on water, pressure at the oil-water interface is P₁ = 850 × 9.81 × 2 = 16.7 kPa. Below that, add water pressure: at 5 m total depth (3 m into water), P = 16.7 + 1000 × 9.81 × 3 = 46.1 kPa.

Selection impact: For storage tanks with multiple liquid layers, design wall thickness for the worst-case: heaviest fluid filling the entire tank. Don't rely on operational constraints—someone will eventually fill it wrong.

Safety Factors for Pressure Vessel Design

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 vessels—if ultimate strength is 400 MPa, allowable stress is 114 MPa.

ApplicationSafety Factor (typical)Basis
ASME VIII Div. 13.5 on UTSGeneral pressure vessels
ASME VIII Div. 22.4 on UTSAdvanced design rules
API 650 (tanks)~2.5 on yieldAtmospheric storage
Dam overturning1.5 (normal), 1.2 (flood)Moment ratio

Higher safety factors aren't always better—they increase material cost and weight. Division 2 allows lower factors because it requires more rigorous analysis and inspection. For one-off custom vessels, use higher factors; for mass-produced certified components, lower factors may be justified.

ASME BPVC and API Tank Standards

Two families of standards govern most tanks and vessels in the US:

API Standards (American Petroleum Institute)

API 650: Welded carbon steel tanks for atmospheric storage. Covers tanks with internal pressure ≤ 2.5 psi (17 kPa) gauge. Most common for water, oil, and chemical storage.

API 620: Low-pressure storage tanks. Covers 2.5–15 psi (17–103 kPa). More stringent than 650 but less demanding than ASME vessels.

ASME Boiler and Pressure Vessel Code

Section VIII Division 1: General rules for pressure vessels > 15 psi. Uses design-by-rule with safety factor 3.5. Most common for industrial vessels.

Section VIII Division 2: Alternative rules allowing higher stresses with detailed analysis. Requires finite element analysis for complex geometries.

Jurisdictional note: Many countries require ASME certification for pressure vessels. The "U" stamp indicates ASME VIII Div. 1 compliance. Vessels without proper certification may be rejected by insurance companies or inspectors.

Limitations and Assumptions

!

Static Fluid Only

Calculations assume fluid at rest. Wave loads, sloshing, and flow-induced pressures require separate dynamic analysis.

!

Incompressible Fluid

P = ρgh assumes constant density. For deep ocean or gas columns, compressibility effects increase actual pressure.

!

Plane Surfaces

Force formulas assume flat surfaces. Curved surfaces (cylinders, spheres) require integration over the surface geometry.

!

Educational Estimates Only

Wall thickness calculations are approximations. Real vessel design requires weld efficiency factors, nozzle reinforcement, head design, and code compliance verification.

Sources and References

  • ASME BPVC Section VIII – Pressure vessel design rules
  • API 650 & 620 – Tank design standards
  • White, F.M. Fluid Mechanics, 8th ed. (2016) – Chapter 2: Pressure Distribution in a Fluid
  • Munson, Young, Okiishi Fundamentals of Fluid Mechanics, 8th ed. – Hydrostatic pressure and forces
  • USACE Engineering Manuals – Dam design and hydraulic structures

All pressure calculations assume standard gravity (g = 9.81 m/s²). For critical applications, verify local gravitational acceleration and fluid properties.

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.

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.

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'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.

Hydrostatic Pressure Calculator - ρgh + Force