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
- Abington (Township) in Montgomery County
- Adams (County)
- Adams (Township) in Butler County
- Allegheny (County)
- Allentown (City)
- Altoona (City)
- Amity (Township) in Berks County
- Antrim (Township) in Franklin County
- Armstrong (County)
- Aston (Township) in Delaware County
- Baldwin (Borough)
- Beaver (County)
- Bedford (County)
- Bensalem (Township) in Bucks County
- Berks (County)
- Berwick (Borough) in Columbia County
- Bethel (Township) in Delaware County
- Bethel Park (Municipality) in Allegheny County
- Bethlehem (City)
- Bethlehem (Township) in Northampton County
- Blair (County)
- Bloomsburg (Town)
- Bradford (County)
- Bristol (Borough) in Bucks County
- Bristol (Township) in Bucks County
- Buckingham (Township) in Bucks County
- Bucks (County)
- Butler (City)
- Butler (County)
- Butler (Township) in Butler County
- Caln (Township) in Chester County
- Cambria (County)
- Carbon (County)
- Carlisle (Borough) in Cumberland County
- Cecil (Township) in Washington County
- Centre (County)
- Chambersburg (Borough)
- Cheltenham (Township) in Montgomery County
- Chester (City)
- Chester (County)
- Chestnuthill (Township) in Monroe County
- Clarion (County)
- Clearfield (County)
- Clinton (County)
- Coatesville (City)
- College (Township) in Centre County
- Columbia (Borough) in Lancaster County
- Columbia (County)
- Concord (Township) in Delaware County
- Coolbaugh (Township) in Monroe County
- Cranberry (Township) in Butler County
- Crawford (County)
- Cumberland (County)
- Cumru (Township) in Berks County
D – G
- Darby (Borough) in Delaware County
- Dauphin (County)
- Delaware (County)
- Derry (Township) in Dauphin County
- Dingman (Township) in Pike County
- Douglass (Township) in Montgomery County
- Dover (Township) in York County
- Doylestown (Township) in Bucks County
- Dunmore (Borough)
- East Bradford (Township) in Chester County
- East Brandywine (Township) in Chester County
- East Cocalico (Township) in Lancaster County
- East Goshen (Township) in Chester County
- East Hempfield (Township) in Lancaster County
- East Lampeter (Township) in Lancaster County
- East Norriton (Township) in Montgomery County
- East Pennsboro (Township) in Cumberland County
- East Whiteland (Township) in Chester County
- Easton (City)
- Easttown (Township) in Chester County
- Elizabeth (Township) in Allegheny County
- Elizabethtown (Borough) in Lancaster County
- Elk (County)
- Ephrata (Borough)
- Ephrata (Township) in Lancaster County
- Erie (City)
- Erie (County)
- Exeter (Township) in Berks County
- Fairview (Township) in Erie County
- Fairview (Township) in York County
- Falls (Township) in Bucks County
- Fayette (County)
- Ferguson (Township) in Centre County
- Forks (Township) in Northampton County
- Franconia (Township)
- Franklin Park (Borough)
- Fulton (County)
- Greene (County)
- Greene (Township) in Franklin County
- Greensburg (City)
- Guilford (Township) in Franklin County
H – M
- Hamilton (Township) in Franklin County
- Hampden (Township) in Cumberland County
- Hampton (Township) in Allegheny County
- Hanover (Borough)
- Hanover (Township) in Luzerne County
- Hanover (Township) in Northampton County
- Harborcreek (Township) in Erie County
- Harrisburg (City)
- Harrison (Township) in Allegheny County
- Hatfield (Township) in Montgomery County
- Haverford (Township) in Delaware County
- Hazle (Township) in Luzerne County
- Hazleton (City)
- Hempfield (Township) in Westmoreland County
- Hermitage (City)
- Hilltown (Township) in Bucks County
- Hopewell (Township) in Beaver County
- Horsham (Township) in Montgomery County
- Huntingdon (County)
- Indiana (County)
- Jefferson (County)
- Jefferson Hills (Borough) in Allegheny County
- Johnstown (City)
- Juniata (County)
- Kingston (Borough)
- Lackawanna (County)
- Lancaster (City)
- Lancaster (County)
- Lancaster (Township) in Lancaster County
- Lansdale (Borough)
- Lansdowne (Borough) in Delaware County
- Lawrence (County)
- Lebanon (City)
- Lebanon (County)
- Lehigh (County)
- Lehigh (Township) in Northampton County
- Limerick (Township) in Montgomery County
- Lititz (Borough) in Lancaster County
- Logan (Township) in Blair County
- Lower Allen (Township) in Cumberland County
- Lower Burrell (City)
- Lower Gwynedd (Township) in Montgomery County
- Lower Macungie (Township) in Lehigh County
- Lower Makefield (Township) in Bucks County
- Lower Merion (Township) in Montgomery County
- Lower Moreland (Township) in Montgomery County
- Lower Paxton (Township) in Dauphin County
- Lower Pottsgrove (Township) in Montgomery County
- Lower Providence (Township) in Montgomery County
- Lower Salford (Township) in Montgomery County
- Lower Saucon (Township) in Northampton County
- Lower Southampton (Township) in Bucks County
- Lower Swatara (Township) in Dauphin County
- Loyalsock (Township) in Lycoming County
- Luzerne (County)
- Lycoming (County)
- Manchester (Township) in York County
- Manheim (Township) in Lancaster County
- Manor (Township) in Lancaster County
- Marple (Township) in Delaware County
- Marshall (Township) in Allegheny County
- McCandless (Township) in Allegheny County
- McKean (County)
- McKeesport (City)
- Meadville (City)
- Mechanicsburg (Borough) in Cumberland County
- Mercer (County)
- Middle Smithfield (Township) in Monroe County
- Middletown (Borough) in Dauphin County
- Middletown (Township) in Bucks County
- Middletown (Township) in Delaware County
- Mifflin (County)
- Milford (Township) in Bucks County
- Millcreek (Township) in Erie County
- Monroe (County)
- Monroeville (Municipality) in Allegheny County
- Montgomery (County)
- Montgomery (Township) in Montgomery County
- Montour (County)
- Moon (Township) in Allegheny County
- Morrisville (Borough) in Bucks County
- Mount Joy (Township) in Lancaster County
- Mount Pleasant (Township) in Westmoreland County
- Mt. Lebanon (Municipality) in Allegheny County
- Muhlenberg (Township) in Berks County
- Munhall (Borough) in Allegheny County
- Murrysville (Municipality)
N – S
- Nanticoke (City)
- Neshannock (Township) in Lawrence County
- Nether Providence (Township)
- New Britain (Township) in Bucks County
- New Castle (City)
- New Garden (Township) in Chester County
- New Hanover (Township) in Montgomery County
- New Kensington (City)
- Newberry (Township) in York County
- Newtown (Township) in Bucks County
- Newtown (Township) in Delaware County
- Norristown (Borough)
- North Cornwall (Township) in Lebanon County
- North Fayette (Township) in Allegheny County
- North Huntingdon (Township) in Westmoreland County
- North Lebanon (Township) in Lebanon County
- North Middleton (Township) in Cumberland County
- North Strabane (Township) in Washington County
- North Union (Township) in Fayette County
- North Whitehall (Township) in Lehigh County
- Northampton (Borough) in Northampton County
- Northampton (County)
- Northampton (Township) in Bucks County
- Northumberland (County)
- Palmer (Township) in Northampton County
- Patton (Township) in Centre County
- Penn (Township) in Lancaster County
- Penn (Township) in Westmoreland County
- Penn (Township) in York County
- Penn Forest (Township) in Carbon County
- Penn Hills (Municipality) in Allegheny County
- Perry (County)
- Peters (Township) in Washington County
- Philadelphia (City)
- Phoenixville (Borough)
- Pike (County)
- Pine (Township) in Allegheny County
- Pittsburgh (City)
- Plum (Borough)
- Plumstead (Township)
- Plymouth (Township) in Montgomery County
- Pocono (Township) in Monroe County
- Potter (County)
- Pottstown (Borough)
- Pottsville (City)
- Radnor (Township) in Delaware County
- Rapho (Township) in Lancaster County
- Reading (City)
- Richland (Township) in Allegheny County
- Richland (Township) in Bucks County
- Richland (Township) in Cambria County
- Ridley (Township) in Delaware County
- Robinson (Township) in Allegheny County
- Ross (Township) in Allegheny County
- Rostraver (Township) in Westmoreland County
- Salisbury (Township) in Lancaster County
- Salisbury (Township) in Lehigh County
- Schuylkill (County)
- Scott (Township) in Allegheny County
- Scranton (City)
- Shaler (Township) in Allegheny County
- Sharon (City)
- Silver Spring (Township) in Cumberland County
- Skippack (Township) in Montgomery County
- Snyder (County)
- Somerset (County)
- Somerset (Township) in Somerset County
- South Abington (Township) in Lackawanna County
- South Fayette (Township) in Allegheny County
- South Lebanon (Township) in Lebanon County
- South Middleton (Township) in Cumberland County
- South Park (Township) in Allegheny County
- South Strabane (Township) in Washington County
- South Whitehall (Township) in Lehigh County
- Spring (Township) in Berks County
- Spring Garden (Township) in York County
- Springettsbury (Township) in York County
- Springfield (Township) in Delaware County
- Springfield (Township) in Montgomery County
- St. Marys (City)
- State College (Borough)
- Stroud (Township) in Monroe County
- Susquehanna (County)
- Susquehanna (Township) in Dauphin County
- Swatara (Township) in Dauphin County
T – Z
- Tioga (County)
- Towamencin (Township) in Montgomery County
- Tredyffrin (Township) in Chester County
- Union (County)
- Unity (Township) in Westmoreland County
- Upper Allen (Township) in Cumberland County
- Upper Chichester (Township) in Delaware County
- Upper Darby (Township) in Delaware County
- Upper Dublin (Township) in Montgomery County
- Upper Gwynedd (Township) in Montgomery County
- Upper Macungie (Township) in Lehigh County
- Upper Merion (Township) in Montgomery County
- Upper Moreland (Township) in Montgomery County
- Upper Providence (Township) in Delaware County
- Upper Providence (Township) in Montgomery County
- Upper Saucon (Township) in Lehigh County
- Upper Southampton (Township) in Bucks County
- Upper St. Clair (Township) in Allegheny County
- Upper Uwchlan (Township) in Chester County
- Uwchlan (Township) in Chester County
- Venango (County)
- Warminster (Township) in Bucks County
- Warren (County)
- Warrington (Township) in Bucks County
- Warwick (Township) in Bucks County
- Warwick (Township) in Lancaster County
- Washington (City)
- Washington (County)
- Washington (Township) in Franklin County
- Wayne (County)
- Waynesboro (Borough) in Franklin County
- West Bradford (Township)
- West Chester (Borough)
- West Deer (Township) in Allegheny County
- West Goshen (Township) in Chester County
- West Hanover (Township) in Dauphin County
- West Hempfield (Township) in Lancaster County
- West Lampeter (Township) in Lancaster County
- West Manchester (Township) in York County
- West Manheim (Township) in York County
- West Mifflin (Borough)
- West Norriton (Township) in Montgomery County
- West Whiteland (Township) in Chester County
- Westmoreland (County)
- Westtown (Township) in Chester County
- White (Township) in Indiana County
- Whitehall (Borough)
- Whitehall (Township) in Lehigh County
- Whitemarsh (Township) in Montgomery County
- Whitpain (Township) in Montgomery County
- Wilkes-Barre (City)
- Wilkinsburg (Borough)
- Williamsport (City)
- Willistown (Township) in Chester County
- Windsor (Township) in York County
- Worcester (Township) in Montgomery County
- Wyoming (County)
- Wyomissing (Borough) in Berks County
- Yeadon (Borough) in Delaware County
- York (City)
- York (County)
- York (Township) in York County