Skip to main content
CityRuleLookup

Fence Regulations in Pennsylvania (2026)

49 rules on the books across Pennsylvania, 14 cities and counties. Select a rule to read the full details.

Severity: Few Restrictions · Light Restrictions · Some Restrictions · Significant Restrictions · Heavy Restrictions

Height Limits

Maximum fence heights for front, side, and back yards, including privacy fences, corner-lot visibility rules, and how height is measured on slopes and retaining walls.

Allentown

Some Restrictions

In Allentown's neighborhood (residential) zones, fences and walls in a required front setback may not exceed 4 feet…

Read full rule →

Bethlehem

Some Restrictions

Bethlehem allows fences, hedges, and walls up to seven feet above natural grade in front, side, and rear yards without…

Read full rule →

Erie

Some Restrictions

Erie caps fences, hedges and enclosures in required yard space at 6 ft 6 in in Residential Districts and 8 ft 6 in in…

Read full rule →

Franklin Township

Some Restrictions

In Franklin Township, Chester County, Pennsylvania, a fence or freestanding wall in a required front yard tops out at…

Read full rule →

Montgomery County

Some Restrictions

Montgomery County sets no fence-height rule. Each of the county's 62 boroughs and townships sets its own limits under…

Read full rule →

Penn Hills

Some Restrictions

Penn Hills zoning caps front-yard fences at four feet, three feet on corner lots, but allows side and rear yard fences…

Read full rule →

Philadelphia

Some Restrictions

On residentially zoned Philadelphia property, a fence between the street and the building may be no more than 4 feet…

Read full rule →

Pittsburgh

Some Restrictions

Pittsburgh caps fences at 6 feet in rear and interior side yards, but limits front-yard and street-facing side-yard…

Read full rule →

Pottstown

Some Restrictions

Pottstown's Zoning Ordinance sets a 4-foot maximum for fences in front yards and in side yards facing a street, rising…

Read full rule →

Reading

Some Restrictions

Reading caps front-yard fences and walls at four feet and caps everything else at six feet, with an extra foot allowed…

Read full rule →

Scranton

Some Restrictions

Scranton residential fences top out at four feet in a front yard and six feet in a side or rear yard, dropping to four…

Read full rule →

Upper Darby

Some Restrictions

Fences in Upper Darby cap out at six feet above grade townshipwide, dropping to four feet for front yards in the R-3…

Read full rule →

York County

Some Restrictions

General fence standards are set by your borough or township, not York County. York Township requires the finished side…

Read full rule →

Fence Permit Requirements

Whether you need a building permit to install or replace a fence, and what the permit process and fees look like.

Allentown

Some Restrictions

Allentown defines a fence as a 'structure,' and Section 1305.02 requires a Zoning Permit from the Zoning Officer before…

Read full rule →

Erie

Some Restrictions

A fence in Erie needs a City permit before it goes up, filed with the Code Enforcement office in Room 407 of the…

Read full rule →

Montgomery County

Some Restrictions

The county issues no fence permits. Whether you need one, and the fee, is decided by your Montgomery County…

Read full rule →

Penn Hills

Some Restrictions

In Penn Hills side and rear yards, fences over 8 feet need a permit from the Department of Planning and Economic…

Read full rule →

Philadelphia

Some Restrictions

No zoning permit is needed for a fence at or below the Zoning Code limits; exceeding them requires a permit and a ZBA…

Read full rule →

Pittsburgh

Some Restrictions

Backyard fences up to six feet tall need no permit in Pittsburgh; anything taller requires a building permit from the…

Read full rule →

Pottstown

Some Restrictions

Pottstown requires a zoning permit before building or installing a fence anywhere in the Borough, under Chapter 27…

Read full rule →

Reading

Some Restrictions

Reading requires a zoning permit before erecting any fence, wall, or similar structure taller than three feet. Height…

Read full rule →

Scranton

Some Restrictions

Scranton requires a zoning permit before building or altering a fence worth more than $500 in fair market value, while…

Read full rule →

Upper Darby

Some Restrictions

Upper Darby requires a fence permit before erecting or replacing any fence, at a cost of $40 plus $20 per $1,000 of the…

Read full rule →

York County

Some Restrictions

There is no county fence permit. Whether you need a zoning permit depends on your borough or township. In York Township…

Read full rule →

Retaining Walls

Height limits and permit requirements for retaining walls, including engineering requirements for taller walls on sloped lots.

Allegheny County

Some Restrictions

Allegheny County does not issue retaining wall permits: building authority rests with each of the 130 municipalities…

Read full rule →

Allentown

Some Restrictions

Allentown requires any retaining wall with an exposed face of four feet or more, or any wall that will bear vehicular…

Read full rule →

Bethlehem

Some Restrictions

Bethlehem caps terraced retaining walls used on steep slopes at a five-foot maximum vertical drop per terrace under the…

Read full rule →

Erie

Some Restrictions

A retaining wall in Erie does not need a building permit if it stands four feet or less, measured from the lowest grade…

Read full rule →

Franklin Township

Some Restrictions

In Franklin Township, Chester County, Pennsylvania, a retaining wall in a required front yard is capped at four feet…

Read full rule →

Montgomery County

Some Restrictions

The county has no retaining-wall ordinance. Height limits and permits for retaining walls come from your Montgomery…

Read full rule →

Penn Hills

Some Restrictions

Any Penn Hills retaining wall supporting an excavation steeper than 1-to-1 must be engineered and sealed by a…

Read full rule →

Philadelphia

Some Restrictions

Where a fence sits on top of a retaining wall in Philadelphia, the combined height of the exposed retaining wall plus…

Read full rule →

Pittsburgh

Some Restrictions

Pittsburgh exempts retaining walls up to four feet tall, measured from the bottom of the footing to the top of the…

Read full rule →

Pottstown

Some Restrictions

Pottstown's grading code lets cut and fill slopes go no steeper than 2:1 unless a retaining wall or cribbing holds them…

Read full rule →

Scranton

Some Restrictions

Scranton's zoning code permits a retaining wall built for the geotechnical needs of a lot, but the City's construction…

Read full rule →

Upper Darby

Some Restrictions

Retaining walls under four feet tall in Upper Darby need only a fence permit, while anything over four feet requires a…

Read full rule →

York County

Some Restrictions

Retaining walls are governed by your municipality and Pennsylvania's Uniform Construction Code, not by York County. In…

Read full rule →

Material Restrictions

Specific materials that are prohibited for fencing, such as barbed wire, razor wire, or electric fencing in residential zones.