There’s no single answer to how close you can build to a property line in Massachusetts, because the state doesn’t set one distance. Your minimum setback comes from your city or town’s zoning ordinance and depends on which zoning district your lot sits in. Residential side-yard setbacks commonly run 5 to 20 feet, front-yard setbacks 10 to 50 feet, and rear-yard setbacks 10 to 30 feet. On top of that, the Massachusetts State Building Code adds fire-separation rules for walls near property lines, and if you’re anywhere near wetlands, a 100-foot buffer zone can override the zoning number entirely.
Where the Setback Number Actually Comes From
Two layers of regulation determine how close you can build. The Massachusetts State Building Code (780 CMR) sets baseline construction and fire-safety standards statewide. Exterior walls within roughly five feet of a property line generally need a fire-resistance rating for exposure from both sides, and that requirement exists independently of zoning.
The distance itself, though, comes from your local zoning ordinance or bylaw. Every municipality divides its land into zoning districts, and each district has its own table of dimensional requirements covering front, side, and rear setbacks, building height, and lot coverage. A dense village district may allow tighter setbacks; a rural residential district in the same town will typically demand more.
Two real examples show how wide the range is. Acton requires a 30-foot front setback in its R-2 district but 45 feet in its R-4 through R-10 districts, with side and rear setbacks between 10 and 20 feet depending on the district.1Acton, MA. Zoning Review Setback Requirements Eastham requires 25 to 30 feet from side and rear lot lines for residential lots, and 30 to 50 feet from any lot line abutting a street, depending on when the lot was subdivided.2Town of Eastham. Setback Requirements The only reliable way to know your number is to look up your property’s zoning district and check the dimensional table in your town’s zoning bylaw.
What Part of the Building Gets Measured
Most Massachusetts municipalities measure from the property line to the nearest point of the building’s exterior wall or foundation. Some towns, though, include roof overhangs, eaves, bay windows, or other projections in that measurement. A foundation sitting exactly 10 feet from the line can still violate a 10-foot setback if the eaves project two feet past the wall. Many bylaws spell out which projections may encroach into the setback and by how much, so read the definitions section before assuming your foundation placement is the only thing that matters.
Why Each Setback Exists
Front setbacks keep buildings a uniform distance from the street, preserving sightlines and neighborhood character. Side setbacks create space between neighboring structures for fire safety, light, air circulation, and access for maintenance or emergency equipment. Rear setbacks provide yard space and privacy. Some towns layer additional setbacks for specific features like swimming pools, decks, or detached garages, so a structure that clears the general building setback can still fail a more restrictive rule tied to its use.
Sheds, Fences, and Other Small Structures
Smaller structures follow different rules than your house. Under the Massachusetts State Building Code, accessory structures used for storage, tool sheds, playhouses, and similar uses with a floor area under 200 square feet don’t require a building permit. Zoning still controls where they can sit.
Many Massachusetts towns allow small accessory structures (often 120 square feet or less and one story) as close as 5 feet from the property line, while larger accessory buildings must meet the full setback for the district. The threshold varies by town, so confirm with your building department before placing even a modest garden shed.
Fences
Massachusetts state law doesn’t impose a universal fence height limit, but it does create liability for spite fences. Under MGL c. 49, § 21, any fence or similar structure that unnecessarily exceeds six feet and was erected maliciously to annoy a neighboring owner or occupant is a private nuisance, and the neighbor can sue. Separately, MGL c. 49, § 2 defines a “legal and sufficient” fence as one that is four feet high and in good repair.
Most towns add their own fence rules that may limit height in front yards (commonly three to four feet) and allow taller fences in side and rear yards (typically up to six feet). Fences are often permitted directly on or very close to the property line, but confirm the exact boundary with a survey before installing one. A fence a few inches onto your neighbor’s land can trigger a dispute and forced removal.
The 100-Foot Wetland Buffer Can Override Your Setback
This is one of the most commonly overlooked rules in Massachusetts, and it can stop a project cold. The Massachusetts Wetlands Protection Act (MGL c. 131, § 40) establishes a 100-foot buffer zone around wetlands, rivers, streams, and other protected resource areas. Any work within that buffer zone that could alter the resource area needs review by your local conservation commission before you start.3Mass.gov. Protecting Wetlands in Massachusetts
Regulated activities inside the buffer include removing vegetation, regrading, and constructing houses, additions, decks, driveways, and commercial buildings. You’ll need to file either a Request for Determination of Applicability or a Notice of Intent with the conservation commission before proceeding.4Cornell Law School. 310 CMR 10.02 – Statement of Jurisdiction Some towns go further than the state minimum. Sturbridge requires buffer zones of up to 200 feet for freshwater wetlands, and Barnstable requires structures permitted within the 100-foot buffer to sit at least 80 feet from the wetland itself.
If your property is near a pond, stream, marsh, or any low-lying area that stays wet, contact the conservation commission early. Discovering a wetland buffer after you’ve poured a foundation is an expensive lesson.
Easements Create No-Build Zones the Zoning Map Won’t Show
Even after you’ve confirmed zoning setbacks, your property may carry easements that create additional restrictions. An easement gives a third party the right to use part of your land for a specific purpose. These appear in your deed or in separate recorded documents, and they can significantly limit where you can build.
Common examples include utility easements for power, gas, or water infrastructure and drainage easements directing stormwater flow. Building within an easement without authorization can lead to forced removal, because the easement holder’s rights typically survive whatever you construct on top of them. MassDOT, for one, holds permanent and temporary easements for transportation purposes across many private properties.5Mass.gov. Right of Way Acquisition and Your Property
Rights of way, a specific type of easement, allow passage through your property; shared driveways and access roads are common examples. Pull your deed and any recorded easement documents before planning construction. A real estate attorney can help identify encumbrances that aren’t obvious from the deed alone.
When You Can’t Meet the Setback
Massachusetts law gives you two possible paths when your project can’t clear the required distance: a variance and a special permit. They sound similar and get confused constantly, but the legal standards are different.
Variance
A variance allows a deviation from the zoning bylaw. Under MGL c. 40A, § 10, the zoning board of appeals can grant a variance only after finding all three of these:
- The hardship stems from the soil conditions, shape, or topography of your specific land, not conditions affecting the whole zoning district.
- Strict enforcement would cause you substantial hardship, financial or otherwise.
- Granting relief won’t substantially hurt the public good or undermine the purpose of the bylaw.
All three must be met. Compliance being expensive or inconvenient isn’t enough. The hardship must be tied to something inherent in the land, such as an oddly shaped lot, a steep slope, or ledge that makes standard setbacks impractical. A hardship you created yourself, like designing a building too large for the lot, won’t qualify. A granted variance lapses if you don’t exercise it within one year. Unless your town’s bylaw expressly allows use variances, a variance cannot authorize a use that isn’t otherwise permitted in the district; most setback variances are dimensional and are generally easier to obtain than use variances.6General Court of Massachusetts. Massachusetts General Laws Chapter 40A, Section 10
Special Permit
A special permit works differently. It allows a use or dimensional modification the bylaw already contemplates but requires case-by-case review. Under MGL c. 40A, § 9, special permits may be issued only for uses that are “in harmony with the general purpose and intent” of the zoning bylaw, and the permit granting authority can impose conditions, safeguards, and time limits.7General Court of Massachusetts. Massachusetts General Laws Chapter 40A, Section 9
A variance says the rules don’t work for an unusual lot. A special permit says the rules anticipated this situation and built in a review process. Special permits typically involve a public hearing where neighbors can weigh in, and the board evaluates the project against criteria in the bylaw such as traffic impact, compatibility with surrounding uses, and site design. Many towns require special permits for reduced setbacks tied to accessory dwelling units, in-ground pools, or home businesses.
What Happens If You Build Too Close
Massachusetts caps zoning violation fines at $300 per offense, but each day the violation continues counts as a separate offense.8General Court of Massachusetts. Massachusetts General Laws Chapter 40A, Section 7 A structure sitting in a setback for three months could theoretically accumulate roughly $27,000 in fines. In practice, the bigger financial pain comes from what follows: a court order requiring you to tear down or modify the offending structure.
Enforcement typically starts with the local building commissioner or zoning enforcement officer issuing a notice of violation. The notice identifies the problem and gives you a deadline to fix it. If you don’t comply, the town can pursue further action, including seeking a court order. Challenging enforcement is possible through the zoning board of appeals, but it’s slow and uncertain when the violation is clear-cut.
Municipal enforcement isn’t the only exposure. A neighbor can bring a private lawsuit if your construction violates setbacks or encroaches on their land. Courts can order removal and award damages. Fines, legal fees, demolition costs, and neighbor lawsuits together make building without verifying setbacks one of the most expensive shortcuts a property owner can take.
Steps to Confirm Your Setback Before You Build
Setback compliance takes more than one lookup. Start by identifying your property’s zoning district on your town’s zoning map or by calling the planning department. Then pull the dimensional requirements table from the zoning bylaw for that district. Review your deed for easements or restrictions that could create additional no-build zones beyond the zoning setback.
If your property is near any water, wetlands, or low-lying areas, contact the conservation commission to determine whether the 100-foot wetland buffer applies. For properties with septic systems, Title V regulations at 310 CMR 15.211 impose their own setback distances from property lines, wells, and water resources that apply independently of zoning.
Get a professional boundary survey whenever you’re building within a few feet of the estimated line. Survey costs for residential lots in Massachusetts generally run from around $1,200 to $5,500 or more, depending on lot size, terrain, and whether historical deed research is needed. Against the cost of tearing down a structure that encroaches on a neighbor’s land or violates a setback, a survey is cheap insurance.