FENCE RULES IN PENNSYLVANIA

FENCES ON RESIDENTIAL PROPERTY

Pennsylvania fence requirements begin with the property’s actual municipality, district, use and proposed work. Local rules can address height, placement, materials, street and driveway visibility, gates, maintenance and approvals. Building-code exemptions, zoning permission and private property rights answer different questions. Updated November 2026.

State law also matters. Pennsylvania’s UCC, underground-utility protection, farm boundary-fence law, environmental programs, consumer-contract rules and special home uses can affect a project that otherwise appears to be an ordinary yard fence. A pool barrier or livestock fence does not establish the rule for every privacy fence.

USING A FENCE CONTRACTOR

A contractor can plan and install the fence and coordinate agreed preconstruction work. Establish who will obtain each required approval, make the utility request, confirm the proposed location and remove any old fence. Contractor involvement does not settle a disputed boundary, release an easement or replace an association approval.

Paid fence work can fall within Pennsylvania’s Home Improvement Consumer Protection Act. Its registration, written-contract, change-order, deposit and cancellation rules have specific definitions and thresholds. For covered contracts, the three-business-day rescission right is not limited to contracts signed at home. A contractor’s registration is separate from permission to build a particular fence.

WHEN RULES APPLY

Check requirements before setting posts, purchasing a barrier system or changing an existing fence. New work, substantial replacement, ordinary repair, relocation and a change to pool-barrier use can have different consequences. An exemption from a building permit does not waive local zoning, pool safety, floodplain, road, environmental or private obligations.

For covered powered excavation, including augering, Pennsylvania One Call notice generally precedes work by at least three and no more than ten business days. The actual statutory definition and lawful start date matter. Hand-tool safety guidance and the statute’s powered-excavation coverage should not be confused; private yard facilities may need separate locating.

Corner lots, streets, driveways, public rights-of-way, easements, drainage, streams and wetlands can affect placement or related site work. Rural homes with livestock or agricultural neighbors may raise the Fence Law’s particular contribution and viewer procedures. Certified child-care homes, dangerous-dog enclosures and pools can require barriers beyond ordinary yard-fence rules.

HOW FENCE RULES ARE ORGANIZED

Pennsylvania does not give every residence one ordinary fence height, property-line setback, material list or finished-side rule. Municipal zoning and other local requirements operate alongside statewide duties and private restrictions. A postal city name is not proof of the governing municipality.

Cities, boroughs, incorporated towns and townships can have their own applicable systems. Under the Municipalities Planning Code, county zoning has a defined role where a municipality lacks its own zoning ordinance; county planning, local zoning and subdivision administration are not interchangeable. Philadelphia and Pittsburgh have distinct applicable systems. Identify the actual adopting body and administrator for each subject.

The statewide Uniform Construction Code generally exempts residential fences no more than six feet high from a building permit when the work violates no law or ordinance. This is not a statewide six-foot zoning entitlement or a waiver of a separate fence approval. Municipal UCC opt-out changes residential enforcement to the certified third-party route; it does not eliminate the statewide construction framework.

The current pool framework distinguishes pools accessory to one- or two-family dwellings from other pools, and the 2026 UCC update includes Pennsylvania amendments. Confirm the applicable edition, lawful local provisions and actual project classification rather than copying a pool handout from another municipality.

Recorded covenants, easements, association requirements and fence agreements remain separate. A public permit does not settle title or give a right to enter or build on adjoining land. Likewise, a private agreement does not waive applicable public safety requirements.

See: How Fence Rules Work.

STATEWIDE FENCE LAWS THAT MAY APPLY IN PENNSYLVANIA

The companion Statewide Fence Laws in Pennsylvania guide explains these subjects:

• Construction approvals: the six-foot residential building-permit exemption, local zoning and separate approval systems.

• Post-hole excavation: powered-work coverage, One Call timing, safe locating and damage duties.

• Farm boundaries: the Fence Law’s livestock-related scope, contribution procedures, surveyor viewers and winter limitation, not automatic suburban half-cost sharing.

• Pools and spas: applicable editions, barriers, gates and conditioned cover, wall and access alternatives.

• Site conditions: road rights-of-way, water obstructions, municipal floodplain rules and erosion or stormwater requirements.

• Special home uses: certified child-care barriers and enclosures for dogs covered by the dangerous-dog law.

• Property and contracts: private rights, trespass notice and purple marking, plus covered residential fence-contract protections.

Each subject has its own conditions. A qualifying livestock contribution duty, pool-barrier measurement or permit exemption is not a universal residential fence standard.

FIND FENCE RULES BY LOCATION

A – C

D – G

H – M

N – S

T – Z