Unlike most building rules, fences are regulated by your city — not the state. Height limits, corner sight-lines, pool barriers, floodplains and HOAs can all change the answer. Always confirm with your local building department before you build.
Free tool by StateDataIndex