In a fluid, the pressure increases with depth due to an increase in the weight of the fluid pushing it down from above. Consider a fluid confined in a container. If multiple holes are present on the walls of this container at different heights, the fluid coming out of each hole will follow a different trajectory. The greater the pressure, the farther the fluid falls from the container. Thus, an object in a fluid experiences a greater pressure at its bottom than at its top. This pressure difference produces a net upward force on the object known as the buoyant force. If the buoyant force on the object is greater than the downward force due to its weight, the object floats; otherwise, it sinks. If it equals the object's weight, the object remains suspended at that depth in the fluid.