Fence RegulationsSourced to the codeBrowse states
City ordinance

Fence laws in Rockville, Maryland

What the Rockville municipal code says about fences, one topic at a time, with the section number and a link to the document behind every line. Where Rockville sets no rule of its own, the Maryland rule is shown in its place and marked as such.

Fence laws in Rockville, Maryland, question by question

The short version

Who pays on the line
Rockville answers the boundary question in one sentence and then proves it means it. The figure is 0 feet, for setback a fence or retaining wall has to keep from a lot line.
How tall
In the residential zones a fence may not exceed four feet in the front yard and eight feet in the side or rear yard, and the two exceptions to the front yard figure both turn on the street rather than on the lot, and the answer turns on the zone, the yard and what kind of street the lot faces. The figure is 4 feet, for maximum fence height in a residential front yard.
Permits
Before building a fence a person has to get a fence permit from the Chief of Zoning, and the section is three sentences long because the test is simple: the Chief must issue the permit on finding that the proposed fence is consistent with the chapter, and the answer turns on what the fence is and which zone it is in.
Pool barriers
Maryland has statewide pool and spa standards that adopt the 2024 International Swimming Pool and Spa Code.
Spite fences
Rockville has no spite fence statute. The chapters that were read are listed below. Cities and counties decide this one.
Measured from what
The retaining wall row of the fence table is where Rockville does its measuring, and it splits the question by purpose rather than by shape.
Corner lots
On a corner lot a fence may not exceed four feet above the curb level for twenty five feet from where the street lines meet. The figure is 25 feet, for distance from the intersection of the street lines within which the four foot limit applies.
Retaining walls
Rockville leaves retaining walls to the 2021 International Residential Code and the 2021 International Building Code. It reaches one and two family homes under the International Residential Code, and other buildings under the International Building Code only.
Materials
The whole material rule is six words long: fences must be constructed of standard or typical fence materials.
Livestock
Rockville leaves the lawful fence specification to each county.

Who owns the fence between two properties in Rockville?

Compare fences on the property line across all 50 states

Rockville answers this in its own law. The words that do it are quoted below.

Rockville answers the boundary question in one sentence and then proves it means it. Fences and retaining walls are not subject to accessory structure setback requirements, so neither has to keep any distance from a lot line and both may stand on the boundary. The proof is in the next section along, which lists what counts as an accessory building or structure for setback purposes and expressly excludes fences and retaining walls from that list, alongside air conditioners, emergency generators, flagpoles, heat pumps, signs and wireless facilities. The retaining wall row of the fence table then assumes a wall sitting along a lot line and states how it is measured. The only distance the fence rules state anywhere is horizontal and belongs to the corner: twenty five feet from where the street lines meet.

Fences and retaining walls are not subject to accessory structure setback requirements.

Section 25.8.1.1(a)(2)City of Rockville · Read 23 September 2026

0 ftsetback a fence or retaining wall has to keep from a lot line

Also on fences on the property line in Rockville

  • set in state lawMaryland has no state rule splitting the cost of a fence on the line. It gives the whole subject to the counties. A county may set rules for how a fence is built and kept up, set a way for neighbors to enforce their rights over a fence, and let an owner who is not the one at fault put a lien on the property for repairs. Neither the property article nor the farming article mentions fences at all. Md. Code, Local Gov’t § 10-318Maryland · Statute

How tall can a fence be in Rockville?

Compare fence height across all 50 states

Rockville answers this, but the answer changes depending on the zone, the yard and what kind of street the lot faces.

In the residential zones a fence may not exceed four feet in the front yard and eight feet in the side or rear yard, and the two exceptions to the front yard figure both turn on the street rather than on the lot. Where the abutting street is classified as an arterial highway or greater, the front yard fence may be six feet, which is the code accepting that a house facing a big road needs a real barrier. Where the abutting right-of-way is unimproved, six feet is allowed too, and if the right-of-way is later improved an existing taller fence becomes nonconforming and may be kept and repaired but has to comply when replaced. The RHD and mixed use zones read four feet out front and eight behind. Industrial zones read four out front, with the Approving Authority able to allow eight through site plan review. A public school may have six feet in its front yard. Deer mesh may be eight feet in any yard of a residential property.

Fences must not exceed four feet tall in the front yard, except that:

Section 25.8.1.1, Table 8.1.1-1City of Rockville · Read 23 September 2026

The answer turns on the zone, the yard and what kind of street the lot faces.

a residential front yard
Four feet. 4 ft
a side or rear yard
Eight feet. 8 ft
facing an arterial or an unimproved right-of-way
Six feet out front. 6 ft
deer mesh
Eight feet in any yard.

Also on fence height in Rockville

  • no rule, documents checkedMaryland sets no limit on how tall a fence at a house can be, and its own laws assume the limit comes from somewhere else. The Land Use Article lets a town pass a local law allowing a fence taller than the height state, regional or county zoning would otherwise require, which only makes sense if those local rules are where the limit lives. The Local Government Article separately gives counties power over how a fence is built. Height in Maryland is county and town zoning. Md. Code, Land Use § 25-303Maryland · Statute

Do I need a permit for a fence in Rockville?

Compare permits across all 50 states

Rockville answers this, but the answer changes depending on what the fence is and which zone it is in.

Before building a fence a person has to get a fence permit from the Chief of Zoning, and the section is three sentences long because the test is simple: the Chief must issue the permit on finding that the proposed fence is consistent with the chapter. There is no discretion beyond that finding, no fee stated in the section and no height threshold, so a two foot fence needs the same permit as an eight foot one. The single exception is deer mesh, which needs no permit at all, and which the fence table separately allows at eight feet in any residential yard. Two other approvals can reach a fence. The Approving Authority may allow a front yard fence up to eight feet in the I-L and I-H zones as part of a site plan review. And a Planned Development zone carries its own additional fence rules in Section 25.7.4.3(d).

Before constructing a fence, a person must receive approval of a fence permit from the Chief of Zoning.

Section 25.4.4.2(a)City of Rockville · Read 23 September 2026

The answer turns on what the fence is and which zone it is in.

any fence
A fence permit from the Chief of Zoning.
deer mesh
No permit at all.
eight feet out front in an industrial zone
Site plan review.
a Planned Development zone
Extra rules in Section 25.7.4.3(d).

Also on permits in Rockville

  • set in state lawMaryland adopts the 2021 International Building Code, the 2021 International Residential Code for one and two family homes, and the 2021 International Energy Conservation Code as the code for the whole state. Maryland did not change the list of work that needs no permit, so the model code list applies as written. That list is model code text and is not published on a Maryland state site, so no fence height figure is quoted here. COMAR 09.12.51.04Maryland · Building code

Pool fence requirements in Rockville

Compare pool barriers across all 50 states

Maryland answers this in its own law. The words that do it are quoted below.

Maryland has statewide pool and spa standards that adopt the 2024 International Swimming Pool and Spa Code. They apply to a pool whose permit application reached the local office on or after December 31, 2023. Maryland wrote its own barrier heights only for the public pool classes, and left the barrier rules for every other pool as the model code wrote them. So the height for a pool at a house lives in that model code and not in Maryland text.

This one is Maryland law, not Rockville law. All Maryland findings

The 2024 International Swimming Pool and Spa Code (ISPSC), International Code Council, is incorporated by reference.

COMAR 09.12.56.03Maryland Department of Labor, Division of Labor and Industry · Read 13 September 2026

Spite fence laws in Rockville

Compare spite fences across all 50 states

Rockville law has no rule about this. The chapters that were read are listed below. Cities and counties decide it instead.

Maryland has no spite fence law. The property, farming, local government and land use articles were all searched, and none of them has a rule about a fence raised out of spite, or a height that triggers one. The only fence powers in Maryland law are the ones given to counties and towns, so a limit on a spite fence in Maryland is a local rule.

This one is Maryland law, not Rockville law. All Maryland findings

Documents read before writing that:

How fence height is measured in Rockville

Compare how height is measured across all 50 states

Rockville answers this in its own law. The words that do it are quoted below.

The retaining wall row of the fence table is where Rockville does its measuring, and it splits the question by purpose rather than by shape. A retaining wall along a lot line that is holding back a mass of earth or other material may be any necessary height, measured from the lower ground level, so the engineering need sets the size and nobody is asked to justify it against a fence limit. But if that same wall is also intended to act as a fence for the property at the upper grade, the fence height rules of the zone apply to it. So the test is what the wall is for, and a wall that does both jobs is measured as a fence. The corner rule supplies the only other datum, reading four feet above curb level. Nothing states what an ordinary fence on level ground is measured from, and a berm is not addressed.

Where a retaining wall intended to hold back a mass of earth or other material is located along a lot line, it may be of any necessary height measured from the lower ground level. If the retaining wall is also intended to act as a fence for the property at the upper grade level, the fence height requirements of the zone apply.

Section 25.8.1.1, Table 8.1.1-1City of Rockville · Read 23 September 2026

Also on how height is measured in Rockville

  • left to the townMaryland gives fence height to local government twice and never says what it is measured from. The Land Use Article lets a legislative body set the height, number of stories and size of buildings and other structures. Another section lets a town inside the regional district pass a law allowing a fence taller than the limit state, regional or county zoning would otherwise set, which treats that height as a number somebody else already wrote. Neither section says whether the number is read from natural ground or from a finished yard. Md. Code, Land Use 4-102Maryland · Zoning code

Fence rules for corner lots in Rockville

Compare corner visibility across all 50 states

Rockville answers this in its own law. The words that do it are quoted below.

On a corner lot a fence may not exceed four feet above the curb level for twenty five feet from where the street lines meet. Two things about that are worth pulling out. The datum is the curb rather than the ground the fence stands on, so a yard that sits above the road gets less fence than one at street level. And the twenty five feet is stated as a distance from the intersection rather than as a triangle with two legs, which reads as a quarter circle in plain language even though a reviewer will almost certainly apply it as a triangle. The rule sits as an exception to the eight foot side and rear yard allowance, which is where it does its work, because the side yard of a corner lot faces a street. Retaining walls made necessary by changes in street grade, width or alignment are expressly released from it.

On a corner lot, fences must not exceed four feet above the curb level for a distance of 25 feet from the intersection of the street lines.

Section 25.8.1.1, Table 8.1.1-1City of Rockville · Read 23 September 2026

25 ftdistance from the intersection of the street lines within which the four foot limit applies

Also on corner visibility in Rockville

  • set in state lawMaryland keeps this short. State law says a person may not put anything blocking a state highway, or any improvement, on that highway unless the State Highway Administration has issued a permit for it. A fence set onto the state road strip needs that permit. There is no sight distance figure and no corner triangle in the subtitle, and the height and placement of a fence on a private lot is left to county and town zoning, so the triangle in Maryland is written locally. Md. Code, Transp. 8-646Maryland · Traffic code

Retaining wall rules in Rockville

Compare retaining walls across all 50 states

Rockville does not set this. It leaves it to the 2021 International Residential Code and the 2021 International Building Code.

Maryland adopts three model codes as its own, among them the 2021 International Residential Code for one and two family homes. Maryland then lists its changes to those codes, and that list never mentions a wall that holds back dirt. So the rule for such a wall comes from the model code, and Maryland prints no number of its own. The same chapter puts running and enforcing the standards on each local office.

This one is Maryland law, not Rockville law. All Maryland findings

A. In this chapter, the following documents are incorporated by reference: (1) 2021 International Building Code (International Code Council); (2) 2021 International Residential Code for One- and Two-Family Dwellings (International Code Council); and (3) 2021 International Energy Conservation Code (International Code Council).

COMAR 09.12.51.04Maryland Department of Labor, Division of Labor and Industry · Read 13 September 2026

The code hands this to the 2021 International Residential Code and the 2021 International Building Code, which is not published in the code itself.

Fence materials allowed in Rockville

Compare materials across all 50 states

Rockville answers this in its own law. The words that do it are quoted below.

The whole material rule is six words long: fences must be constructed of standard or typical fence materials. Nothing is named as permitted and nothing as prohibited. Barbed wire does not appear in the fence section. Razor wire does not appear. An electric fence does not appear. There is no rule that the finished side has to face outward. What the phrase standard or typical does is leave the judgment with the Chief of Zoning, who has to find a proposed fence consistent with the chapter before issuing the permit, so an unusual material is settled at the counter rather than by reading the code. The one material the ordinance does name anywhere near a fence is deer mesh, and it names it to grant two exemptions, letting it reach eight feet in any residential yard and go up without a permit.

Fences must be constructed of standard or typical fence materials.

Section 25.8.1.1(a)(1)City of Rockville · Read 23 September 2026

Also on materials in Rockville

  • set in state lawMaryland says what a battery charged fence security system has to look like, which is an electric fence wired into a burglar alarm. It runs on a battery of no more than 12 volts and stands behind a fence or wall at least 5 feet tall that carries no charge. It sits on land not zoned for homes only, stops at 10 feet, and carries warning signs every 30 feet. A local government may inspect one and fine an owner up to $500 for a fence that does not match, but it may not ban one or add its own rules for putting one up. Deer fencing and livestock fencing are left out of the section. Md. Code, Bus. Reg. 19-902Maryland · Statute

Livestock and boundary fence law in Rockville

Compare agricultural fencing across all 50 states

Rockville does not set this. It leaves it to each county.

Maryland writes no statewide rule for how a farm fence is built. It gives each county three powers instead. A county can set the rules for building and keeping up a fence. It can set a way for neighbors to enforce their fence rights against each other. And it can let an owner who repairs a shared fence put a lien on the property for the cost. So the height, the wire count and the post spacing come from county law.

This one is Maryland law, not Rockville law. All Maryland findings

A county may: (1) regulate the construction and maintenance of fences; (2) provide for a procedure to enforce the rights of parties with reference to a fence; and (3) provide for a lien for repairs to a fence made by an owner who is not in default.

Md. Code, Local Gov't 10-318Maryland General Assembly · Read 13 September 2026

The code hands this to each county, which is not published in the code itself.

Documents behind this page

8 documents, of which 1 was published by Rockville itself. Each was read on the date shown.

  1. Maryland General AssemblyAnnotated Code of Maryland, Local Government Article, Section 10-318Md. Code, Local Gov’t § 10-318 · Read 13 September 2026
  2. City of RockvilleCity of Rockville Zoning Ordinance, Chapter 25, effective 2026-08-01Section 25.8.1.1(a)(2) · Read 23 September 2026
  3. Maryland General AssemblyAnnotated Code of Maryland, Land Use Article, Section 25-303Md. Code, Land Use § 25-303 · Read 13 September 2026
  4. Maryland Department of Labor, Division of Labor and IndustryCode of Maryland Regulations, Title 09, Subtitle 12, Chapter 51, Maryland Building Performance Standards, Regulation .04 Incorporation by ReferenceCOMAR 09.12.51.04 · Read 13 September 2026
  5. Maryland Department of Labor, Division of Labor and IndustryCode of Maryland Regulations, Title 09, Subtitle 12, Chapter 56, Maryland Swimming Pool and Spa Standards, Regulation .03 Incorporation by ReferenceCOMAR 09.12.56.03 · Read 13 September 2026
  6. Maryland General AssemblyAnnotated Code of Maryland, Land Use Article, Section 4-102Md. Code, Land Use 4-102 · Read 13 September 2026
  7. Maryland General AssemblyAnnotated Code of Maryland, Transportation Article, Title 8, Subtitle 6, Section 8-646, Permit required for work on highwayMd. Code, Transp. 8-646 · Read 13 September 2026
  8. Maryland General AssemblyAnnotated Code of Maryland, Business Regulation Article, Section 19-902Md. Code, Bus. Reg. 19-902 · Read 13 September 2026

What this page does not cover

A city ordinance is not the only rule that reaches a fence. The zoning district a parcel sits in can change the height allowed on it, and so can an overlay district, a recorded easement, a fire hazard severity zone or a coastal zone. A homeowner association can be stricter than the city and nothing in the municipal code will say so. None of those appear here.

The rules above are the ones Rockville publishes, plus the Maryland rules that apply where the city sets none. Fence laws in Maryland has the state layer in full.

This is general information drawn from published government documents. It is not legal advice, ordinances are amended, and the date beside each finding is the date the document was read. How findings are made · What the terms mean