Given three "slabs" of material with cross section areas A, consider the force on the central slab due to the pressures from the slabs below and above it,
so
This is the hydrostatic law.
Hydrostatic Equilibrium, Law of Atmospheres, Pascal's Principle, Pressure Scale Height