Some states and counties have regulations and local building codes mandating a fence around residential pools. The required height of the fence may also vary between regions, and it is recommended that property owners verify the local requirements.