PR Fence Company Logo

Massachusetts Fence Rules: Permits, Height, Pools and Neighbors

In Massachusetts, most backyard fences up to 7 feet tall do not need a state building permit. That does not mean anything goes. Your town’s zoning bylaw, the state pool code, wetlands rules and the Dig Safe law can all apply to the same fence. Here is what homeowners in Woburn and the surrounding towns should know before a single post goes in the ground.

Quick Checklist Before You Build

  • Is the fence taller than 7 feet? Then you need a building permit.
  • Does your town require a fence or zoning permit, or limit height in the front yard or near a corner?
  • Do you know exactly where your property line is?
  • Is the fence part of a pool barrier? Then the pool code applies.
  • Is the fence within 100 feet of a wetland or 200 feet of a river or stream?
  • Has someone called Dig Safe (811) before the post holes are dug?

Do I Need a Permit for a Fence in Massachusetts?

The Massachusetts State Building Code (780 CMR) exempts fences that are not over 7 feet high from a building permit. A fence taller than 7 feet needs one. The same section exempts retaining walls up to 4 feet tall, measured from the bottom of the footing to the top of the wall, unless the wall holds back extra weight such as a driveway or a slope above it.

The building code is only half of the answer. Every city and town also has a zoning bylaw, and many of them set their own fence rules: a lower limit for front yards, a separate zoning or fence permit, or limits near intersections. Always call your town’s building or zoning office before you order materials.

Height Limits and Corner Lots

Height rules for front, side and back yards come from your town, not the state, so they vary from place to place. Corner lots get extra attention because a tall fence can block drivers’ view of the intersection. For example, Hamilton’s zoning bylaw keeps the area within 15 feet of a street corner clear of anything between 3.5 and 8 feet above the curb. Your town may have a similar “sight triangle” rule.

The Massachusetts “Spite Fence” Law

Massachusetts has a law aimed at fences built to annoy the neighbors. Under M.G.L. chapter 49, section 21, a fence that unnecessarily goes over 6 feet tall and is put up or kept up maliciously to annoy the people next door is treated as a private nuisance, and the neighbor can take legal action. A normal 6-foot privacy fence built for your own privacy is not a spite fence. The law targets fences that are taller than needed and built out of spite.

Property Lines and Neighbors

  • Stay on your side. No part of the fence, including the posts and footings, should sit on your neighbor’s land. If you are not sure where the line is, look for your boundary markers or have a surveyor mark them before installation.
  • Talk to your neighbor first. A quick conversation about the line, the style and the timing prevents most fence disputes.
  • Shared boundary fences. Massachusetts law (M.G.L. chapter 49) has old rules for “partition fences” between neighbors, including what counts as a legal fence and what happens when a neighbor will not maintain their part. Towns have fence viewers who handle these questions.
  • Which side faces out? There is no statewide rule. Some towns have one and many do not, so ask your building or zoning office. Many homeowners choose to face the finished side toward the neighbor and the street anyway.

Pool Fences Have Their Own Rules

If the fence encloses a pool or spa that can hold more than 24 inches of water, the Massachusetts Swimming Pool and Spa Code (the 2021 ISPSC as adopted in Massachusetts) applies. The main points:

  • At least 48 inches tall, measured on the side away from the pool.
  • No more than a 2-inch gap at the bottom over grass, soil or gravel (4 inches over concrete).
  • No opening a 4-inch ball could pass through. Chain link mesh can be no larger than 2-1/4 inches.
  • Pedestrian gates open outward, away from the pool, and close and latch on their own.
  • A latch that can be reached from outside sits at least 54 inches high, or it goes on the pool side at least 3 inches below the top of the gate.
  • Keep climbable equipment at least 36 inches away from the outside of the fence.

Pools need a permit from your local building department, which also inspects the barrier. Learn more about how we build pool fences on our pool fence page.

Building Next to a Wall or an Existing Fence

Fences next to retaining walls, stone walls or an old fence need a little extra planning:

  • On top of or right behind a retaining wall: ask your town how it measures fence height there. Some towns measure from the ground at the fence and some from the lower grade, which can push a fence over the limit. Posts also need to be set so they do not undermine the wall.
  • A retaining wall over 4 feet needs its own building permit under 780 CMR, even before any fence goes on it.
  • Next to a neighbor’s fence: leave enough room to maintain both fences, and never attach your fence to theirs without their permission.
  • Old stone walls often mark a property line. Check your plot plan before you fence along one.

Wetlands and Streams

Under the Massachusetts Wetlands Protection Act, work within 100 feet of a wetland or within 200 feet of a river is regulated. If your yard backs up to a wetland, brook or pond, contact your town’s conservation commission before you start. If you are not sure whether the rules apply, you can file a Request for Determination of Applicability, and the commission will tell you whether you need more permits.

Call Dig Safe Before Any Post Hole

Massachusetts law requires a call to Dig Safe before digging, and fences are on the list of projects that need it. Call 811 or file online at least 72 hours before digging, not counting weekends and holidays, and mark the dig area in white paint, flags or stakes first. The service is free, and utility companies come out and mark their underground lines.

Neighborhood and Historic District Rules

If you live in a condo association, an HOA or a local historic district, there may be rules on fence height, style and color on top of the town’s rules. Get those approvals in writing before installation.

How PR Fence Company Helps

At your free estimate we look at the property line, the pool, any walls and the slope of your yard, and we will tell you which town rules may apply before you commit. Every fence we install comes with our 5-year workmanship warranty. Book your free estimate or call (857) 991-8601.

This article is general information, not legal advice. Rules change and every town is different, so always confirm with your local building department before you build.

Sources

The Fence Experts

Like this article?

Share on Facebook
Share on Twitter
Share on Linkedin
Share on Pinterest