Fence Regulations in Maryland (2026)
45 rules on the books across Maryland, 13 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.
Annapolis
Some RestrictionsAnnapolis caps street-facing fences at four feet in its Neighborhood Conservation districts, requires a Planning and…
Read full rule →Anne Arundel County
Some RestrictionsFences up to 6 feet tall are permit-exempt across unincorporated Anne Arundel County, but a permit is required…
Read full rule →Baltimore County
Some RestrictionsIn unincorporated Baltimore County, residential fences may be up to 42 inches (3.5 feet) in a front yard and 6 feet in…
Read full rule →Carroll County
Some RestrictionsCarroll County lets fences rise up to 10 feet without a building permit, so long as they meet County, City, or Town…
Read full rule →Charles County
Some RestrictionsCharles County caps front-yard fences at four feet (six feet if part of a coordinated project design), and rear or side…
Read full rule →Gaithersburg
Some RestrictionsGaithersburg limits fences and screen walls to 3 feet in any front yard or along a public or private road, 6 feet in…
Read full rule →Harford County
Some RestrictionsIn unincorporated Harford County, front-yard fences and walls on residential lots top out at 4 feet under Harford…
Read full rule →Howard County
Some RestrictionsOn a corner lot, no fence over 3 feet may sit inside the sight triangle formed by lines 25 feet back from where the…
Read full rule →Montgomery County
Some RestrictionsMontgomery County's Zoning Ordinance limits fences, walls, and hedges on residential corner lots to 3 feet within 15…
Read full rule →Prince Georges County
Some RestrictionsPrince George's County caps residential and rural-zone fences at 4 feet in front yards, corner-lot side yards facing…
Read full rule →Rockville
Some RestrictionsRockville regulates fence placement, height, and design under Chapter 25, Article 9. Electric and barbed wire fences…
Read full rule →Washington County
Light RestrictionsWashington County's Zoning Ordinance sets no fixed maximum height for residential fences and walls. Section 23.3(c)…
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.
Annapolis
Some RestrictionsAnnapolis requires a Department of Planning and Zoning permit before erecting, altering, replacing, or removing more…
Read full rule →Baltimore County
Some RestrictionsBaltimore County caps residential fences at 42 inches in front yards and six feet in side and rear yards, but BCZR §…
Read full rule →Gaithersburg
Some RestrictionsA Residential Fence Permit is required in Gaithersburg for all new fences and any additions or alterations to existing…
Read full rule →Harford County
Some RestrictionsEvery fence or wall built in unincorporated Harford County needs a zoning certificate before construction starts, per…
Read full rule →Howard County
Some RestrictionsFences that stay within the exempt heights need no zoning setback approval, but Howard County's building code requires…
Read full rule →Montgomery County
Some RestrictionsMontgomery County requires a building permit before installing or replacing a fence, issued by the Department of…
Read full rule →Prince Georges County
Some RestrictionsPrince George's County requires a building permit for any residential fence above four feet, per County Code Sec…
Read full rule →Rockville
Some RestrictionsRockville requires a fence permit from the Chief of Zoning before any fence is built in the city. Deer mesh…
Read full rule →Anne Arundel County
Light RestrictionsAnne Arundel County requires a construction permit for any fence taller than 6 feet, and for any residential fence on…
Read full rule →Charles County
Light RestrictionsCharles County does not require a building permit for a fence up to seven feet tall. Once a fence exceeds seven feet…
Read full rule →Wicomico County
Light RestrictionsFences up to eight feet high in unincorporated Wicomico County do not need a building permit under § 117-3E of the…
Read full rule →Neighbor Fence Rules
Rules about shared boundary fences, including who pays for construction and maintenance, and which side faces the neighbor.
Annapolis
Some RestrictionsAnnapolis lets you build a fence or wall right up to the property line but not over it. Placement responsibility falls…
Read full rule →Baltimore County
Some RestrictionsA residential fence may not be built in your rear or side yard where it adjoins a neighbor's front yard, and within 10…
Read full rule →Howard County
Some RestrictionsA closed fence up to 6 feet along a shared side or rear lot line is exempt from setbacks, so it can sit on the property…
Read full rule →Prince Georges County
Some RestrictionsPrince George's County's Zoning Ordinance allows fences on the shared property line and requires the finished side to…
Read full rule →Retaining Walls
Height limits and permit requirements for retaining walls, including engineering requirements for taller walls on sloped lots.
Annapolis
Some RestrictionsWhen the City orders supplemental inspections on a grading permit, retaining wall construction must be directed and…
Read full rule →Anne Arundel County
Some RestrictionsRetaining walls up to 2 feet tall are permit-exempt in Anne Arundel County; taller walls, or any wall holding back a…
Read full rule →Baltimore County
Some RestrictionsBaltimore County requires a retaining wall built entirely on the property causing the change whenever a graded lot…
Read full rule →Carroll County
Some RestrictionsCarroll County requires a retaining wall taller than 30 inches, measured from finish grade to the top of the wall…
Read full rule →Harford County
Some RestrictionsHarford County requires a zoning certificate for any retaining wall 4 feet or taller under § 267-27C(6)(f) of the…
Read full rule →Howard County
Some RestrictionsA retaining wall in Howard County needs no building permit if it is 3 feet or less, measured from the lowest adjacent…
Read full rule →Montgomery County
Some RestrictionsMontgomery County exempts residential retaining walls under 36 inches from permits, but any wall over 48 inches, or…
Read full rule →Prince Georges County
Some RestrictionsPrince George's County's Zoning Ordinance limits retaining walls to 6 feet in height from finished grade, allowing up…
Read full rule →Washington County
Some RestrictionsWashington County requires any retaining wall built in connection with land disturbance to appear on the grading plan…
Read full rule →Gaithersburg
Light RestrictionsGaithersburg only exempts a retaining wall from a building permit if it is 3 feet or less, measured from the lowest…
Read full rule →Wicomico County
Light RestrictionsRetaining walls up to four feet high, measured from the bottom of the footing to the top of the wall, do not need a…
Read full rule →Rockville
Few RestrictionsRockville places no height cap on retaining walls that hold back earth along a lot line, they may be built to any…
Read full rule →Material Restrictions
Specific materials that are prohibited for fencing, such as barbed wire, razor wire, or electric fencing in residential zones.
Anne Arundel County
Significant RestrictionsAnne Arundel County bans barbed wire and electrified fences in most residential areas, allowing them only for farming…
Read full rule →Annapolis
Some RestrictionsAnnapolis requires fence and wall materials to match the character of the surrounding neighborhood and bans barbed wire…
Read full rule →Baltimore County
Some RestrictionsBarbed wire is allowed only on top of fences more than 6 feet 9 inches high (or on farms for livestock). Electric…
Read full rule →Howard County
Some RestrictionsHoward County defines a closed fence as board-on-board, privacy or stockade, or any fence 50% or less visibly open…
Read full rule →Prince Georges County
Some RestrictionsPrince George's County requires fences and walls to use masonry, ornamental metal, treated or rot-resistant wood…
Read full rule →Rockville
Some RestrictionsRockville allows wood, vinyl, aluminum, composite, and chain link fencing in residential zones. Chain link is…
Read full rule →