The International Code Council (ICC) requires all outdoor swimming pools to be fully enclosed on all sides by a fence no smaller than 48 inches high from the finished ground level. The fence posts should prevent anything larger than four inches in diameter from passing through, and there must be at least a 20-inch clearance zone between the pool’s edge and the fence.