Montgomery County, MD building and zoning guide

Zoning setbacks, the building department, permits and who to contact, for decks, sheds, fences and other home projects.

Rules last checked Dec 4, 2026

Unincorporated Montgomery County, Maryland, the part of the county outside its cities and towns, has about 889,000 people. It has 336,000 homes, and 146,000 of them are detached houses lived in by their owners. About 32,100 have been built since 2010.

Source: US Census Bureau, American Community Survey, 2020–2024 estimates; Building Permits Survey, 2023–2025.

Montgomery County at a glance

People
889,000
Homes
336,000
Homes lived in by their owners
67%
Owner-occupied detached houses
146,000
Homes built since 2010
32,100
New houses permitted each year
903

Which places follow Montgomery County's rules

Montgomery County's zoning rules cover its unincorporated land, the part outside its cities and towns. That includes these communities:

Potomac, Germantown, Darnestown, Olney, Travilah, Damascus, Bethesda, Ashton-Sandy Spring, Cloverly, Clarksburg, Aspen Hill, North Bethesda, and 28 more.

These cities have their own zoning rules, so this page doesn't apply there:

  • Barnesville
  • Brookeville
  • Chevy Chase
  • Chevy Chase Section Five
  • Chevy Chase Section Three
  • Chevy Chase View
  • Chevy Chase Village
  • Gaithersburg
  • Garrett Park
  • Glen Echo
  • Kensington
  • Laytonsville
  • Martin's Additions
  • North Chevy Chase
  • Poolesville
  • Rockville
  • Somerset
  • Takoma Park
  • Washington Grove

Source: US Census Bureau, 2020 place boundaries.

Building department

Department of Permitting Services (DPS)

2425 Reedie Drive, 7th floor, Wheaton, MD 20902

240-777-0311

Apply for a permit online

From the town's website, checked Dec 3, 2026.

Call 811 before you dig

Montgomery County's zoning rules

We have Montgomery County's rules for 7 zoning districts. For a house in the R-40 district, the setbacks are 25 ft at the front, 8 ft at the sides and 20 ft at the rear.

Find your district

Your zoning district is a short code, such as R-40, set by the town's zoning map. It decides which numbers below apply to your lot.

Address lookup coming soon

Your house

The least distance the house must keep from each property line.

Front
25 ft
From the front property line, along the street
Street side
25 ft
From the side line along the street, on a corner lot
The abutting lot fronts on the side street and is in a Residential Detached zone
The abutting lot does not front on the side street or is not in a Residential Detached zone: 15 ft
Each side
8 ft
From each side property line
Rear
20 ft
From the rear property line
What do front, side and rear mean?HouseRear setbackFront setbackSideSideStreet

A setback is the open strip along a property line where the house can't go. The front is the line along the street; on a corner lot, codes often treat both street sides as fronts.

Sheds and other outbuildings

Each side
5 ft
From each side property line
Taller than 15 ft: add 2 ft of setback for each foot over 15 ft; longer than 24 ft along a side or rear line: add 2 ft for every 2 ft over 24 ft
Rear
5 ft
From the rear property line
10 ft on a corner lot where the abutting lot fronts on the side street and is in a Residential Detached zone; same height and length increases as for the side setback
Height
20 ft max
How tall a shed or outbuilding can be

Decks

Decks: we don't have Montgomery County's rule yet. Ask the town before you build.

Fences

Front yard
6.5 ft max
How tall a fence can be in front of the house
Side and rear yards
6.5 ft max
How tall a fence can be beside and behind the house
Fence kept clear at corners
15 ft
Kept low near street corners so drivers can see
On a corner lot: corner lot in a residential zone: a fence or other visual obstruction may be at most 3 feet above the curb level, for a distance of 15 feet from the intersection of the front and side street lines

House size limits

Lot coverage
35% max
The most of the lot that buildings can cover
Height
35 ft max
How tall the house can be
Measured to the highest point of the roof; 30 ft if measured to the mean height between eaves and ridge of a gable, hip, mansard or gambrel roof

Where these numbers come from: Montgomery County zoning code: sections 59-4.4.10, 59-4.4.10 (standard method, detached house). Document dated undated (page read Dec 3, 2026; 2026 S-92 current). Checked Dec 4, 2026.

Where these numbers come from: Montgomery County zoning code: section Residential Fence Permit Process, Height and Placement. Document dated Dec 3, 2026. Checked Dec 4, 2026.

Always check zoning rules with your town before you build or apply.

Plan your deck, shed or fence on your own lot

Draw it to scale and see an estimate of how far it sits from the property lines.

Coming soon

Flood areas

The Federal Emergency Management Agency (FEMA) maps the areas most at risk of flooding, so you can see whether your lot is in one.

Look up your address on FEMA's flood map

Related guides

See something wrong on this page, or have feedback? Tell us and we'll look at Montgomery County's rules again.