A loaded crate sits on a ramp that tilts. It stays upright as long as the line of action of its weight falls inside the base. The moment it passes the lower edge, the weight produces a turning effect that tips the crate over. A wide base and a low centre of gravity survive a steeper tilt, so the critical angle is the inverse tangent of half the base width divided by the height of the centre of gravity.