In a fluid at rest, pressure is exerted on any surface in contact with the fluid (like the walls of the cup) and acts perpendicular to the surface. Pressure also exists throughout the fluid's volume. However, pressure in a fluid at rest varies with depth due to the weight of the fluid above, according to the formula P = P₀ + ρgh, where P₀ is the surface pressure, ρ is the fluid density, g is gravity, and h is depth. Thus, pressure is not the same at all points unless they are at the same depth.