Skip to main content

Fence Regulations in Pennsylvania (2026)

78 rules on the books across Pennsylvania, 23 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.

Abington

Some Restrictions

Abington Township caps fences at six feet under Building Code Section 3311.4, with open wire fencing and retaining…

Read full rule →

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 →

Bensalem

Some Restrictions

Bensalem caps residential fences at six and one-half feet in most yards, but limits them to four feet along the front…

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 →

Bristol

Some Restrictions

In Bristol Borough, Pennsylvania, fences and walls in the required side and rear yards cannot exceed six feet in…

Read full rule →

Bristol Township

Some Restrictions

Bristol Township Code § 205-134 caps residential fences in Bristol Township, Bucks County, at six feet in a rear or…

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 →

Harrisburg

Some Restrictions

In the City of Harrisburg, Pennsylvania, a fence or wall in the front yard or in front of the dwelling in the RL and RM…

Read full rule →

Haverford

Some Restrictions

In Haverford Township, Delaware County, Pennsylvania, no fence or wall can exceed six feet, except a wall that is part…

Read full rule →

Lower Merion

Some Restrictions

Lower Merion caps residential fences at 4 feet along the primary frontage and 6 feet on side and rear lines in the LDR…

Read full rule →

Lower Paxton

Some Restrictions

In Lower Paxton Township, Dauphin County, Pennsylvania, residential fences are capped by yard under Township Code §…

Read full rule →

Millcreek

Some Restrictions

In Millcreek Township, Erie County, Pennsylvania, a Solid Fence stops at six feet, or eight feet in Commercial, Mixed…

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.

Abington

Some Restrictions

Abington Township requires a building permit before erecting any fence, screening, wall or retaining wall on or within…

Read full rule →

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 →

Bensalem

Some Restrictions

Bensalem Township requires a permit from the Department of Building and Planning before any fence or wall is built…

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 →

Harrisburg

Some Restrictions

In the City of Harrisburg, Pennsylvania, fences, walls, and hedges are permitted by right in every zoning district, but…

Read full rule →

Haverford

Some Restrictions

In Haverford Township, Delaware County, Pennsylvania, no fence, wall or retaining wall can be erected until the Zoning…

Read full rule →

Lower Merion

Some Restrictions

Lower Merion Township exempts fences six feet or less in height from a building permit, except when the fence sits…

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.

Abington

Some Restrictions

Abington Township requires a retaining wall wherever an excavation leaves the adjoining grade below legal level, built…

Read full rule →

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 →

Bensalem

Some Restrictions

Bensalem Township caps a retaining wall abutting a residential district at eight feet of exposed height or the distance…

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 →

Bristol

Some Restrictions

In Bristol Borough, Pennsylvania, erecting a retaining wall needs no grading permit when the work does not adversely…

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 →

Haverford

Some Restrictions

In Haverford Township, Delaware County, Pennsylvania, a retaining wall inside a required front yard cannot exceed 30…

Read full rule →

Lower Merion

Some Restrictions

Lower Merion caps retaining wall height at 6 feet within a required setback and 8 feet beyond the setback, and requires…

Read full rule →

Lower Paxton

Some Restrictions

In Lower Paxton Township, a retaining wall required for grade changes in a subdivision or land development must be…

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 →

Harrisburg

Light Restrictions

In the City of Harrisburg, Pennsylvania, engineered retaining walls necessary to hold back slopes are exempt from…

Read full rule →

Material Restrictions

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

Bensalem

Significant Restrictions

Bensalem Township limits residential fences to stockade wood, ranch rail wood, open metal mesh or chain link, and other…

Read full rule →

Bristol Township

Significant Restrictions

Bristol Township Code § 205-134(C) bars electrified, barbed wire and razor wire fences in Bristol Township, Bucks…

Read full rule →

Haverford

Significant Restrictions

In Haverford Township, Delaware County, Pennsylvania, no barbed wire, metal spike or other dangerous fence can be…

Read full rule →

Reading

Significant Restrictions

Reading bans barbed wire in residential and certain commercial districts, electrically charged fencing, razor wire…

Read full rule →

Allentown

Some Restrictions

Allentown prohibits fences and walls made from scrap sheet metal or similar 'junk' anywhere, and bars barbed wire or…

Read full rule →

Harrisburg

Some Restrictions

In the City of Harrisburg, Pennsylvania, no fence can be built from fabric, junk, junk vehicles, rolled wire, sheet…

Read full rule →

Lower Merion

Some Restrictions

Lower Merion bans electric, barbed wire, razor wire, hog wire, rolled wire, and fence-spike fencing on any property…

Read full rule →

Lower Paxton

Some Restrictions

In Lower Paxton Township, Dauphin County, Pennsylvania, Township Code § 203-511 does not permit barbed wire fences in…

Read full rule →

Philadelphia

Some Restrictions

Philadelphia restricts fences by opacity rather than by listing approved materials: front/street-side fences may be no…

Read full rule →

Pittsburgh

Some Restrictions

Pittsburgh requires fences and walls to use compatible, durable materials like iron grating, wood, stone, or brick…

Read full rule →

Pottstown

Some Restrictions

Electrified fences are barred everywhere in Pottstown, and barbed wire or concertina wire is allowed only in…

Read full rule →

Scranton

Some Restrictions

Scranton bars any fence with sharp, pointed pickets or barbed wire on property abutting a street, and its zoning code…

Read full rule →

Upper Darby

Some Restrictions

Upper Darby bans barbed wire, metal spikes, razor ribbon and electrified fencing on any fence, and limits chain-link to…

Read full rule →

York County

Some Restrictions

Material limits come from your municipality, not York County. York Township prohibits barbed and razor wire except for…

Read full rule →

Erie

Few Restrictions

Erie's zoning ordinance does not restrict fence materials by type, but it imposes an opacity rule near corners and…

Read full rule →