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 RestrictionsIn Allentown's neighborhood (residential) zones, fences and walls in a required front setback may not exceed 4 feet…
Read full rule →Bethlehem
Some RestrictionsBethlehem allows fences, hedges, and walls up to seven feet above natural grade in front, side, and rear yards without…
Read full rule →Erie
Some RestrictionsErie 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 RestrictionsIn Franklin Township, Chester County, Pennsylvania, a fence or freestanding wall in a required front yard tops out at…
Read full rule →Montgomery County
Some RestrictionsMontgomery 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 RestrictionsPenn 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 RestrictionsOn residentially zoned Philadelphia property, a fence between the street and the building may be no more than 4 feet…
Read full rule →Pittsburgh
Some RestrictionsPittsburgh 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 RestrictionsPottstown'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 RestrictionsReading 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 RestrictionsScranton 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 RestrictionsFences 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 RestrictionsGeneral 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 RestrictionsAllentown defines a fence as a 'structure,' and Section 1305.02 requires a Zoning Permit from the Zoning Officer before…
Read full rule →Erie
Some RestrictionsA 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 RestrictionsThe county issues no fence permits. Whether you need one, and the fee, is decided by your Montgomery County…
Read full rule →Penn Hills
Some RestrictionsIn 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 RestrictionsNo 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 RestrictionsBackyard fences up to six feet tall need no permit in Pittsburgh; anything taller requires a building permit from the…
Read full rule →Pottstown
Some RestrictionsPottstown requires a zoning permit before building or installing a fence anywhere in the Borough, under Chapter 27…
Read full rule →Reading
Some RestrictionsReading requires a zoning permit before erecting any fence, wall, or similar structure taller than three feet. Height…
Read full rule →Scranton
Some RestrictionsScranton 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 RestrictionsUpper 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 RestrictionsThere is no county fence permit. Whether you need a zoning permit depends on your borough or township. In York Township…
Read full rule →Neighbor Fence Rules
Rules about shared boundary fences, including who pays for construction and maintenance, and which side faces the neighbor.
Pennsylvania: statewide
StatewideSome RestrictionsUnder Pennsylvania's 1905 Line Fence Act (29 P.S. § 41), adjoining owners of improved and occupied land must build and…
Read full rule →York County
Some RestrictionsBoundary and finished-side fence rules are set locally, not by York County. In York Township, a fence may be placed on…
Read full rule →Upper Darby
Light RestrictionsUpper Darby's zoning code requires the finished side of a fence, the side without posts, to face away from the dwelling…
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 RestrictionsAllegheny County does not issue retaining wall permits: building authority rests with each of the 130 municipalities…
Read full rule →Allentown
Some RestrictionsAllentown 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 RestrictionsBethlehem caps terraced retaining walls used on steep slopes at a five-foot maximum vertical drop per terrace under the…
Read full rule →Erie
Some RestrictionsA 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 RestrictionsIn Franklin Township, Chester County, Pennsylvania, a retaining wall in a required front yard is capped at four feet…
Read full rule →Montgomery County
Some RestrictionsThe county has no retaining-wall ordinance. Height limits and permits for retaining walls come from your Montgomery…
Read full rule →Penn Hills
Some RestrictionsAny Penn Hills retaining wall supporting an excavation steeper than 1-to-1 must be engineered and sealed by a…
Read full rule →Philadelphia
Some RestrictionsWhere 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 RestrictionsPittsburgh 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 RestrictionsPottstown'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 RestrictionsScranton'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 RestrictionsRetaining 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 RestrictionsRetaining 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.
Reading
Significant RestrictionsReading bans barbed wire in residential and certain commercial districts, electrically charged fencing, razor wire…
Read full rule →Allentown
Some RestrictionsAllentown prohibits fences and walls made from scrap sheet metal or similar 'junk' anywhere, and bars barbed wire or…
Read full rule →Philadelphia
Some RestrictionsPhiladelphia restricts fences by opacity rather than by listing approved materials: front/street-side fences may be no…
Read full rule →Pittsburgh
Some RestrictionsPittsburgh requires fences and walls to use compatible, durable materials like iron grating, wood, stone, or brick…
Read full rule →Pottstown
Some RestrictionsElectrified fences are barred everywhere in Pottstown, and barbed wire or concertina wire is allowed only in…
Read full rule →Scranton
Some RestrictionsScranton 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 RestrictionsUpper 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 RestrictionsMaterial limits come from your municipality, not York County. York Township prohibits barbed and razor wire except for…
Read full rule →Erie
Few RestrictionsErie's zoning ordinance does not restrict fence materials by type, but it imposes an opacity rule near corners and…
Read full rule →