Home › Massachusetts › Topics › Sheds & Accessory Buildings

Sheds & Accessory Buildings in Massachusetts: rules in 41 towns compared

Do I need a permit for a shed, and how close to the property line can it go? Here's how each town answers it. Click a town for the details and the exact bylaw text.

Last reviewed

Quick answer: it depends on the town. Of the 41 Massachusetts towns we cover, 22 allow it outright, 13 allow it with a permit, 2 allow it with board review and 4 depend on the zone. Statewide rules apply everywhere; see the statewide rules section below.

Find your town in the table below for its exact rule.

This page is for Massachusetts homeowners adding a backyard shed, playhouse or small storage building. The State Building Code (780 CMR, 10th edition) decides whether you need a building permit: a one-story detached shed of 200 sq ft or less doesn't need one, while bigger sheds, or any with more than one story, do. That exemption covers only the building permit. Electrical, plumbing or gas work still needs its own permits, and the shed must still meet your town's zoning rules on setbacks, lot coverage and height. A shed in a wetland resource area, or within 100 feet of a wetland or 200 feet of a river, may need Conservation Commission approval first, whatever its size.

All 21 towns we cover for this topic allow sheds, but where they can go varies a lot. Many, including Belmont, Concord, Hamilton, Hingham, Lexington, Sudbury and Swampscott, let a small shed sit as close as 5 feet to the side and rear lot lines, with size caps ranging from 64 sq ft in Hingham to 200 sq ft in Sudbury, and Falmouth allows 3 feet for a shed of 100 sq ft or less. In Weston and Lincoln a shed must meet much larger setbacks, at least 20 feet from side and rear lines. Wayland's Building Department requires a building permit for every shed, whatever its size, and Brookline requires a special permit for a tool shed over 150 sq ft. Pick your town below for the details and the bylaw text.

Town-by-town comparison

TownVerdictShort answer
Wellesley
Norfolk Co.
AllowedYes. A detached shed of 100 sq ft or less doesn't have to meet Wellesley's side and rear yard setbacks, but a larger one must: typically 20 ft from side lines and 10 to 40 ft from the rear line, depending on your district and when the lot was created. Under the state building code, sheds over 200 sq ft also need a building permit.
Weston
Middlesex Co.
AllowedYes, but in Weston a shed is a "structure" and must meet the same zoning setbacks as a house: 20 to 45 ft from side and rear lot lines and 30 to 60 ft from the street, depending on your district. The Zoning By-law sets no special size threshold for sheds. Under the state building code, a one-story shed of 200 sq ft or less doesn't need a building permit.
Lexington
Middlesex Co.
AllowedYes. In Lexington you can place one small shed (under 150 sq ft, no more than 12 feet tall or long) in a side or rear yard as close as 5 feet to the lot line. Larger sheds must meet the normal building setbacks, which in the RO and RS districts are 30 feet from the front and 15 feet from side and rear lot lines.
Concord
Middlesex Co.
AllowedA shed is allowed in the back yard at least 5 ft from side and rear lot lines, as long as it isn't closer to the street than the back of the house. In the side or rear yard it can be up to 24 ft tall (pitched roof). The local bylaw sets no permit-size threshold; the state building code exempts one-story sheds of 200 sq ft or less.
Brookline
Norfolk Co.
Allowed with board reviewUnder the version of Brookline's Zoning By-Law we reviewed (effective 2018), a shed in a required rear yard must be at least 6 feet from the side and rear lot lines and from the house, and no more than 15 feet tall. Sheds can't go in the required front yard. A non-commercial tool shed or greenhouse over 150 sq ft in a residence district needs a Board of Appeals special permit.
Needham
Norfolk Co.
Allowed with a permitSheds are allowed by right as accessory uses in Needham's residential districts. A shed must be at least 5 ft from side and rear lot lines and 10 ft from other buildings, and a shed taller than 15 ft must meet the full district side and rear setbacks. Needham's Zoning By-Law says no building may be built without a permit from the Building Commissioner, so check with the Building Department even for a small shed.
Sudbury
Middlesex Co.
AllowedYes. In residential districts a small one-story shed (no more than 16 feet on any side or 200 sq ft) can go in the rear yard as close as 5 feet to the side and rear lot lines. Larger accessory buildings must meet the full district setbacks: in Residence A and C that's 40 feet front, 20 feet side and 30 feet rear.
Wayland
Middlesex Co.
Allowed with a permitWayland's Building Department says every shed needs a building permit, whatever its size, with a minimum $100 fee for a residential shed. A shed may go in the rear yard 10 feet or more from the property line; anywhere else it has to meet your zone's regular setbacks (30 feet front and rear, and 15 to 30 feet on the sides depending on the zone).
Lincoln
Middlesex Co.
Allowed with a permitSheds are allowed as accessory structures. Lincoln's zoning bylaw requires them to be at least 50 feet from the street line and at least 20 feet from side and rear lot lines, or farther if the shed is taller than 20 feet. The Board of Appeals can grant a special permit to reduce these setbacks. State building-code rules (shown separately) decide whether a small shed needs a building permit.
Belmont
Middlesex Co.
AllowedYes. Belmont's Zoning By-Law allows tool sheds and similar accessory buildings in residential districts, but caps them at 150 sq ft of floor area and 10 ft in height, and they must sit at least 5 ft from the side and rear lot lines and 5 ft from the house. A shed placed forward of the back wall of your house must meet the full house setbacks.
Winchester
Middlesex Co.
AllowedYes. A tool shed, greenhouse or similar accessory structure up to 150 sq ft is allowed by right in Winchester's residential districts. In the RDA, RDB, RDC and RG districts it can sit in the required rear yard if it's at least 5 ft from every property line, no more than 1.5 stories, at least 15 ft from other buildings, and (with other accessory buildings) covers no more than 30% of the rear yard. In the RA and RB districts, sheds can't go in any required yard. These rules come from the 2018 bylaw and may have changed.
Andover
Essex Co.
AllowedIn Andover, a shed can go as close as 5 feet to the property line if it's in the rear yard, no more than 1½ stories, covers no more than 30% of the yard area, and doesn't house animals. Anywhere else, it has to meet the district's full setbacks. Under state code, sheds over 200 sq ft need a building permit.
Hingham
Plymouth Co.
AllowedYes. In Hingham's residential districts, one small shed of up to 64 sq ft and 9 feet tall can go behind the house as close as 5 feet to the side or rear lot line. Larger accessory buildings must meet the full district setbacks (for example 15 ft side/rear in Residence A, 20 ft in Residence B, C and E) and be no more than two stories or 30 feet tall.
Duxbury
Plymouth Co.
Allowed with a permitIn Duxbury's main residential district, a shed is an accessory structure. It must be at least 15 feet from side and rear lot lines and meet the same front setback as the house: 25 feet from the street line, or 45 feet from the centerline of a narrow road. The zoning bylaw says no structure may be built without a permit from the Zoning Enforcement Officer, so check with the Building Department even for a small shed.
Manchester-by-the-Sea
Essex Co.
Depends on your zoneSheds count as accessory structures under Manchester-by-the-Sea's Zoning By-law. They must be 5 to 15 feet from side and rear lot lines depending on the district, set back from the street 10 feet more than the house's front setback, and no taller than 1.5 stories or 25 feet. The bylaw sets no permit-size threshold, so the state building code's 200 sq ft exemption applies.
Chatham
Barnstable Co.
AllowedYes. In Chatham, one garden shed of 100 sq ft or less may sit as close as one-third of the district's abutter setback (about 5 ft in R20/R30, about 8 ft in R40/R60, less on some older lots), up to 12 ft tall, but not in the street setback. Sheds over 100 sq ft must meet the full building setbacks, and anything near wetlands needs Conservation Commission review.
Falmouth
Barnstable Co.
AllowedYes. In Falmouth, a shed of 100 sq ft or less can sit 3 feet from the side and rear lot lines; bigger accessory buildings need 10 feet. Sheds can't go in the front yard without a Zoning Board of Appeals special permit, and accessory buildings are capped at 22 feet tall.
Scituate
Plymouth Co.
Depends on your zoneScituate's Building Department requires a building permit for a shed larger than 200 sq ft or taller than 15 feet, but every shed must meet zoning setbacks. A one-story detached shed must be at least 15 feet from side and rear lot lines in the R-1 and R-2 districts, or 8 feet in R-3, and at least 30 feet from the street.
Swampscott
Essex Co.
AllowedSwampscott's zoning bylaw allows one detached accessory building (like a shed) in the rear yard, up to 15 feet tall, at least 10 feet from the house and at least 5 feet from side and rear lot lines (or half the district's required setback, if that's larger). It can cover no more than 25% of the required rear yard. The one-building limit counts every accessory building, so if you already have a detached garage, a shed needs a special permit from the Board of Appeals.
Hamilton
Essex Co.
AllowedYes. One small storage shed, no larger than 8 by 12 feet and no taller than 10 feet, can sit as close as 5 feet to the side and rear lot lines. Larger sheds and other accessory buildings must be at least 25 feet from the street line and at least 20 feet (or their height, if greater) from side and rear lot lines.
Carlisle
Middlesex Co.
Allowed with a permitYes. Tool sheds are allowed accessory structures. In most of Carlisle (District B), buildings must be 40 feet from side and rear lines, but a shed under 180 sq ft and under 15 feet tall can go 10 feet from those lines if it's at least 100 feet from the street. Near the town center (District A) the figures are 20 feet, or 5 feet for small sheds set at least 40 feet from the street. Carlisle's older General Bylaw requires a building permit for almost any building, but the state building code exempts one-story sheds of 200 sq ft or less and may override it, so ask the Building Department whether yours needs one.
Plymouth
Plymouth Co.
Allowed with a permitYes, but every shed needs town sign-off. In Plymouth a shed under 12 feet tall and under 300 sq ft is allowed by right if it sits at least 20 feet from the front lot line, 10 feet from side and rear lines and 10 feet from the house. Sheds up to 200 sq ft need a zoning application with a site plan; sheds 201 sq ft and up also need a building permit.
Worcester
Worcester Co.
AllowedYes. In Worcester's residential districts a detached shed must be at least 5 feet from every lot line, no more than 15 feet tall, and kept out of the required front yard and the exterior side yard of a corner lot. The ordinance also caps the total area of accessory uses at 10% of the house's floor area or 10% of the lot's unbuilt area; it's unclear whether both limits apply, so confirm with Building & Zoning before building a large shed. The state building code exempts one-story sheds of 200 sq ft or less from a building permit.
Salem
Essex Co.
AllowedSheds are allowed by right in Salem's residential districts, but not in the required front yard or the side yard of a corner lot. A detached shed must be at least 5 feet from side and rear lot lines and 10 feet from other buildings, no taller than 18 feet (1.5 stories), and no larger than 120 sq ft or 1% of the lot area, whichever is greater.
Cambridge
Middlesex Co.
AllowedA small shed is allowed, but it has to meet zoning at any size. The state building code exempts one-story storage sheds of 200 sq ft or less from a building permit, while the city's FAQ still says 120 sq ft, so check with Inspectional Services for a shed between 120 and 200 sq ft. In the Residence C-1 district, an accessory building can be at most 15 feet tall, must meet the district setbacks (10 ft front, 5 ft side/rear), and all accessory buildings and uses together can cover at most 15% of the lot.
Dennis
Barnstable Co.
Allowed with a permitYes, with paperwork. One shed of up to 200 sq ft and 15 ft tall may sit inside the normal setback areas as long as it is at least 2 feet from every lot line and not in front of the house, but it needs a Zoning Compliance Certificate from the Building Department. A larger or second accessory building must meet the district's full setbacks: for a single-family lot, 15 ft from the side and 25 ft from the rear in most districts, or 30 ft side and rear in R-60. North of Route 6, the Old King's Highway Committee must also approve the shed.
Burlington
Middlesex Co.
AllowedYes. Sheds, barns and similar structures are allowed by right in Burlington's RO single-family district. In RO, a shed can't go in the required front yard (25 ft) or side yards (15 ft), accessory uses can cover no more than 20% of the rear yard, and accessory buildings are capped at 20 feet tall.
Yarmouth
Barnstable Co.
Allowed with a permitYes. A single-story shed of 150 sq ft or less can sit 6 feet from the side and rear lot lines (and at least 12 feet from any building on the neighbor's lot), and must be 30 feet from the front lot line, which is both the residential districts' front setback and what the Building Department's Express Shed Permit form requires. Larger sheds must meet the district's regular setbacks (for example, 20 feet side and rear in the R-40 and RS-40 districts); state code exempts one-story sheds of 200 sq ft or less from a building permit, but Yarmouth uses an Express Shed Permit, so confirm with the Building Department whether you need one, and sheds in the Old King's Highway Historic District or near wetlands need extra approval.
Medford
Middlesex Co.
AllowedYes, in the rear yard. Medford's zoning allows a tool shed by right in the residential districts, but it must go in the rear yard (not the required front or side yard), stay at least 3 feet from side and rear lot lines and 10 feet from the house, and be no taller than 15 feet. Under the state building code, a shed over 200 sq ft also needs a building permit.
Gloucester
Essex Co.
Depends on your zoneSheds are allowed as accessory buildings in every residential district, but they can't be closer to the street than your house. In R-80 through R-20 a shed must be at least 15 ft from side and rear lot lines (10 ft in R-10, 5 ft in R-5), and a shed that doesn't meet the house setbacks is limited to 12 ft tall. Gloucester's ordinances don't set a permit size threshold; the state building code does.
Walpole
Norfolk Co.
AllowedTool sheds are allowed by right as accessory buildings in every Walpole zoning district. A detached shed 15 feet tall or less needs only 10 feet from the rear lot line, but on most lots it must meet the district's full side setback (25 ft Rural, 20 ft Residence A, 15 ft Residence B, 10 ft General Residence); the reduced 6-foot side setback applies only if the shed sits at least 100 feet back from the front lot line. Sheds over 22 x 24 feet or 15 feet high must meet the full setbacks for a main building.
Acton
Middlesex Co.
AllowedTool sheds are an allowed accessory use in Acton's residential districts, and you need a building permit only for a shed over 200 sq ft. Every shed, of any size, must meet zoning yard setbacks (for example 30 ft front and 10 ft side/rear in R-2, or 45 ft front and 20 ft side/rear in R-4 through R-10/8), plus wetland, septic and floodplain rules.
Natick
Middlesex Co.
AllowedSheds up to 200 sq ft don't need a building permit in Natick. A shed no larger than 10'x12' and 10 ft high can sit 6 feet from the side and rear lot lines in the RS and RG districts if it has no utilities. Larger sheds and other accessory buildings must be 10 feet from those lines and from other buildings. No shed may go in the front yard.
Westford
Middlesex Co.
AllowedA shed of 120 sq ft or less needs no building permit in Westford but must sit at least 10 feet from side and rear lot lines and out of the required front yard. A bigger shed needs a building permit and a plot plan and must meet the full district setbacks (15 ft side and 30 ft rear in Residence A and B).
Canton
Norfolk Co.
Depends on your zoneA one-story shed of 200 sq ft or less needs no building permit in Canton, but it must still meet zoning. In the SRB, SRC and GR districts it must be 5 ft from side and rear lot lines, and in SRAA and SRA 20 ft. It can be no taller than 15 ft and, on lots under 3 acres, can't sit in the front yard. On lots under 1/2 acre, each accessory building is capped at 800 sq ft, with no more than 3 and 1,000 sq ft total.
Sandwich
Barnstable Co.
Allowed with a permitYes, you need a building permit for any shed in Sandwich. Sheds under 200 sq ft cost $50. A one-story shed can sit in a side or rear yard if it's at least 10 feet from the lot line (6 feet if it's 100 sq ft or less) and 12 feet from any other building. North of Route 6 you also need Historic District Committee approval, which can be a simple exemption for a wooden shed up to 120 sq ft and 12 feet tall.
Wakefield
Middlesex Co.
Allowed with a permitA storage shed is an allowed accessory use in Wakefield up to 1,200 sq ft and 25 feet tall. A detached shed may go in the rear yard at least 7.5 feet from the side and rear lot lines, and in the SR and SSR districts it must also be at least 20 feet from any house on a neighboring lot. Under the State Building Code a one-story shed of 200 sq ft or less doesn't need a building permit; larger sheds need one, filed in person with a plot plan and drawings (or a brochure picture).
Mashpee
Barnstable Co.
Allowed with board reviewEvery shed in Mashpee needs a Shed Zoning Compliance Form with a site plan, signed off by the Building Official; only sheds over 200 sq ft need a full building permit ($75). Sheds "not exceeding 120 square feet in floor area or twelve (12) feet in height" (the bylaw's wording) can sit 5 feet from side and rear lines; larger sheds must meet the R-3 and R-5 district setbacks of 40 feet front and 15 feet side and rear.
Rockport
Essex Co.
Allowed with a permitRockport's Inspectional Services lists tool sheds among the work that needs a building permit, with no size threshold, although the state building code exempts one-story sheds of 200 square feet or less, so ask Inspectional Services about a small shed. Under the zoning bylaw a shed must be at least 10 feet from side and rear lot lines, 15 feet from other buildings (10 feet in the General and Downtown districts), and behind the front-yard setback, which is 20 feet in the residential districts.
Bourne
Barnstable Co.
Allowed with a permitIn Bourne, a shed under 200 sq ft doesn't need a building permit, but you must file a free Shed Registration Form with a plot plan. A shed over 200 sq ft needs a building permit ($0.60 per sq ft for homes). Sheds must meet zoning setbacks, for example 15 ft from side and rear lines and 30 ft from the street in R-40, or 25 ft and 40 ft in R-80.
Reading
Middlesex Co.
Allowed with a permitReading's Building Division requires a permit for every shed, even though the state building code exempts one-story sheds of 200 sq ft or less from a building permit. For those small sheds the town permit is free and approves only the location: at least 10 feet from the house and 5 feet from property lines, with 7 feet recommended. Sheds over 200 sq ft need a full permit with plans and a fee; sheds can't go in the required front yard, and Conservation approval is required for any size.

Massachusetts building code rules for sheds

The Massachusetts State Building Code (780 CMR, 10th edition) sets when a shed needs a building permit. Your town's zoning sets where it can go.

  • No building permit needed for a one-story detached accessory structure used as a tool or storage shed, playhouse or similar, if the floor area is 200 sq ft or less (Residential Code R105.2).
  • Bigger sheds, or any with more than one story, need a building permit from your local building department.
  • Also exempt from a building permit: detached decks of 200 sq ft or less that are no more than 30 inches above grade, and greenhouses covered only in plastic film.
  • The exemption covers only the building permit. Electrical, plumbing or gas work in the shed still needs its own permits, and the shed still has to meet local zoning (setbacks, lot coverage, height). Many towns set accessory-structure setbacks even for small sheds.
  • Wetlands: putting a shed in a wetland resource area or within 100 feet of a wetland (or 200 feet of a river) may require Conservation Commission approval first, whatever its size.

The 10th edition took effect October 11, 2024 and has been the only code in force since July 1, 2025.

State sources: 780 CMR 10th ed., Residential Chapter 1, R105.2 (work exempt from permit) · BBRS, Tenth edition of the MA State Building Code 780 · MassDEP, Protecting Wetlands in Massachusetts

Common questions about shed permits in Massachusetts

Do I need a permit for a shed in Massachusetts?
It depends on size and your town. Under the State Building Code, a one-story detached shed of 200 sq ft or less doesn't need a building permit, but bigger or multi-story sheds do. Some towns still require a local permit for any shed, and every shed must meet local zoning.
What is the biggest shed you can build without a permit in Massachusetts?
200 sq ft, if it's a one-story detached accessory structure such as a tool or storage shed or playhouse. That's the state building permit exemption. Your town may still require a permit, and electrical or plumbing work needs separate permits.
How close to the property line can a shed be in Massachusetts?
It depends on your town. The state doesn't set shed setbacks; local zoning does. Many towns we cover let a small shed sit about 5 feet from side and rear lot lines, while others apply the full building setbacks to every shed.
Do I need Conservation Commission approval for a shed in Massachusetts?
Possibly. Putting a shed in a wetland resource area, or within 100 feet of a wetland or 200 feet of a river, may require Conservation Commission approval first, whatever its size. Some local wetlands bylaws set their own no-build zones.
Does a shed with electricity need a permit in Massachusetts?
Yes, for the electrical work. The building permit exemption for small sheds covers only the building permit. Electrical, plumbing or gas work in the shed still needs its own permits.

Other topics

ADU rules · Chicken laws · Short-term rentals · Fence rules · Burn permits & fire pits · Home businesses · Pool rules · Wetlands rules · Docks & piers