In a gravitational field, liquids exert pressure on the sides of a container as well as on anything within the liquid itself. This pressure is transmitted in all directions and increases with depth. If a liquid is at rest in a uniform gravitational field, the pressure  at depth  is given by 
where:
: is the pressure at the surface
: is the density of the liquid, assumed uniform with depth
: is the gravitational acceleration
For a body of water open to the air,  would be the atmospheric pressure.
Static liquids in uniform gravitational fields also exhibit the phenomenon of buoyancy, where objects immersed in the liquid experience a net force due to the pressure variation with depth. The magnitude of the force is equal to the weight of the liquid displaced by the object, and the direction of the force depends on the average density of the immersed object. If the density is smaller than that of the liquid, the buoyant force points upward and the object floats, whereas if the density is larger, the buoyant force points downward and the object sinks. This is known as Archimedes' principle.