StateDataIndex

State Guide · Verified 2026

Fence Installation Permits in Pennsylvania

Set by local rules in Pennsylvania

Fences are governed mainly by local zoning, not a statewide building permit. Cities set height limits (commonly 3-4 ft in front yards and 6 ft in back and side yards), setbacks, and corner sight-line rules, and many require a zoning permit for any fence. Most jurisdictions exempt fences up to 7 ft from a building permit (IRC R105.2) and require one above that. Replacing a fence at the same height, material, and location usually needs no permit; a fence used as a pool barrier always does.

The Building Code in Pennsylvania

Pennsylvania Uniform Construction Code (UCC)

Pennsylvania has a statewide Uniform Construction Code (Act 45 of 1999), but the UCC does not specifically require a building permit for a standard residential fence — so fence permitting is handled through local zoning ordinances. Over 90% of the state's 2,562 municipalities administer the code locally; the rest use third-party agencies.

What's Different in Pennsylvania

Philadelphia is the reference point: a building permit is required for non-masonry fences over 6 feet, and for masonry fences over just 2 feet (per the city's L&I). Fences over 50% opaque need a zoning permit, and any fence on a historic property or in the 100-year floodplain always needs a permit. Front-yard fences are capped at 4 feet. Most other PA municipalities follow the 6 ft rear / 3-4 ft front pattern.

Counties With Their Own Rules

These Pennsylvania counties have verified, county-specific fence installation rules that differ from the state baseline:

Building It Yourself? Here's What You'll Need

Popular tools and materials homeowners use for a fence installation project:

As an Amazon Associate, we earn from qualifying purchases.

Official Sources

Rules change and cities within a county may differ. This guide is general information, not legal advice — always confirm with your local building department. Reviewed by the StateDataIndex Editorial Team · Updated July 2026.