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.

Quick Facts

Who issues the permit
Your township or borough, never the county
Number of rule sets
2,562 municipalities, each with its own ordinance
Philadelphia front yard
4 ft max, no more than 50% opaque
Philadelphia rear/side
6 ft, may be fully opaque
Pool barriers
48 in required for any pool 24 in deep or more
Barbed wire / electric
Banned in residential zones almost everywhere
Contractor requirement
State Home Improvement Contractor (HIC) registration
Unusual exception
Luzerne County administers zoning for about 20 municipalities under contract

Why the county cannot answer your question

Pennsylvania counties do not issue fence permits. With over 2,500 municipalities, each township and borough sets its own rules under its local zoning ordinance, so two neighbors a mile apart in different townships can face completely different requirements. Westmoreland County takes this furthest: it has no countywide zoning ordinance at all, and some municipalities within it have never adopted one either.

The exception that proves the rule

Luzerne County breaks the pattern: it operates its own zoning department that administers and enforces zoning for about 20 municipalities under contract, including Wilkes-Barre. Other municipalities in the same county, such as Hazleton, keep their own departments. Northampton County uses a different hybrid: a shared online UCC portal covering building, mechanical, electrical and plumbing permits for multiple municipalities.

Philadelphia has the most detailed rules

The city's own guidance (form PG_004) sets a two-tier rule. Fences along the street frontage or forward of the house's front wall are capped at 4 feet and must be no more than 50% opaque. From the front wall back, and along the rear line, fences may reach 6 feet and be fully opaque. Fences within 30 feet of an intersection face the same 4-foot, mostly-open limit for sightline safety. Existing non-compliant fences are not grandfathered when replaced.

How much the trigger moves between municipalities

In Allegheny County (Pittsburgh plus about 130 municipalities), the city bans barbed and razor wire in every district while a typical suburban township allows 8-foot rear fences. Berks County holds one of the strictest thresholds: Reading requires a zoning permit for any fence over 3 feet, and measures total height above the ground, so a 2-foot fence on a 2-foot retaining wall counts as 4. Lehigh County shows the range within one county: South Whitehall Township exempts fences under 4 feet, while Allentown and Bethlehem require permits for most work.

Statewide constants

A few things hold across Pennsylvania regardless of municipality. Any pool 24 inches or deeper needs a 48-inch barrier. Barbed wire and electric fencing are banned in residential zones almost everywhere. Contractors must carry a state Home Improvement Contractor registration. And HOA architectural approval is a common extra step in the Philadelphia and Pittsburgh suburbs, running separately from and usually before the municipal permit.

What people get wrong

The most common mistake is looking for a county answer where none exists. The second is assuming that because the UCC does not require a building permit for a fence, no approval is needed at all. In most Pennsylvania municipalities a zoning permit is still required, and it is a separate process from the building permit the UCC governs.

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 September 2026.