Massachusetts Fence Laws: Heights, Spite Fences, and Viewers

Massachusetts fence laws come from three layers working together: Chapter 49 of the General Laws defines what counts as a legal fence and creates a town-level dispute process, the state building code sets a permit threshold based on height, and each city and town adds zoning rules about materials, setbacks, and design. For most homeowners, the practical rules are that fences six feet and under don’t need a building permit, fences on the property line are a shared responsibility with your neighbor, and a tall fence built out of spite can be sued as a nuisance.

How Tall a Fence You Can Build Without a Permit

Under the Massachusetts Residential Code (780 CMR 51.00), fences six feet tall or shorter are exempt from building permit requirements.1Mass.gov. 780 CMR 51.00 Massachusetts Residential Code Anything taller means a permit from your local building department. Some municipalities set their own thresholds below the state ceiling, so the safe move is a call to the town building inspector before you order materials.

Separately, Chapter 49, Section 2 sets what the statute calls a “sufficient” fence: at least four feet high, in good repair, and built from rails, timber, boards, iron, or stone. Brooks, rivers, ponds, ditches, hedges, and anything else a fence viewer considers equivalent also qualify.2General Court of Massachusetts. Massachusetts General Laws Chapter 49, Section 2 That four-foot minimum isn’t a general requirement for every fence you build. It’s the standard that matters when a partition fence between two properties is in dispute, and it gives fence viewers room to accept modern materials like vinyl or composite even though the list itself reads like it was drafted in the 1800s.

Local Zoning Adds Its Own Limits

Local zoning ordinances frequently impose restrictions the state code doesn’t touch. Many towns cap front-yard fences at four feet and side- or rear-yard fences at six feet, with variances available through the zoning board. Bans on chain-link or barbed wire in residential zones are common, as are setbacks that keep fences a certain distance from sidewalks and roads. Rules vary enough town to town that there’s no statewide answer on materials or placement beyond the building code’s permit threshold.

Before you build, submit plans to the local building department showing location, dimensions, and materials. That review confirms the fence won’t cross into a public right-of-way or violate setbacks. Even a fence short enough to skip the building permit still has to comply with zoning.

If your property is in a homeowners association, the covenants may go further than town rules by dictating specific materials, colors, or styles. Private restrictions are enforceable alongside public zoning, and a fence that passes the town’s rules can still be ordered removed under an HOA covenant. Read your deed restrictions first.

Shared Fences on the Property Line

A fence that sits on or along the boundary between two properties is a partition fence, and Chapter 49 makes both landowners share the obligation to build and maintain it. If your neighbor neglects their share, you can file a complaint and the fence viewers will assign responsibility.

Section 8 lets fence viewers value the portion your neighbor should have maintained and order them to pay you back for excess work you’ve already done.3General Court of Massachusetts. Massachusetts General Laws Chapter 49, Section 8 If your neighbor ignores that order, Chapter 49 provides the process for collecting.

A fence built entirely on one side of the line, rather than on the line itself, generally belongs to whoever built it, and that owner carries the full cost of upkeep. The distinction matters. Building directly on the boundary (with your neighbor’s knowledge) preserves the shared-cost framework; building a few inches inside your own line puts the whole obligation on you. Which one you want depends on the neighbor.

Spite Fences Over Six Feet

Massachusetts has one of the oldest spite fence statutes in the country, and it comes up more than people expect. Chapter 49, Section 21 declares that any fence or fence-like structure exceeding six feet in height that was maliciously erected or maintained to annoy an adjoining owner or occupant is a private nuisance, and the injured neighbor can sue for damages.4General Court of Massachusetts. Massachusetts General Laws Chapter 49, Section 21

Two things have to be true. The fence must “unnecessarily” exceed six feet, so a tall fence with a legitimate purpose (containing livestock on farmland, for example) probably wouldn’t qualify. And it must have been built or maintained for the purpose of annoying the neighbor. That intent element is where most spite fence cases turn. A neighbor who simply wants privacy and builds a tall fence isn’t violating the statute. A neighbor who puts up a twenty-foot wall of plywood the week after a property-line argument has a much harder story to tell.

Courts can award damages and issue injunctions requiring the fence to be modified or removed. If you think you’re on the receiving end of a spite fence, document the timeline of the dispute and any statements the neighbor made about their reasons.

Fence Viewers: The Town-Level Referee

Every city and town in Massachusetts is required to appoint at least two fence viewers each year. In cities, the mayor appoints them with city council confirmation; in towns, the selectmen do it.5Justia Law. Massachusetts General Laws Chapter 49, Section 1 They serve one-year terms and hold over until successors are qualified.

Fence viewers exist as a low-cost alternative to court for neighbor-to-neighbor disputes. Their powers under Chapter 49 cover assigning each party’s share of a partition fence, deciding whether a fence meets the statutory “sufficient” standard, and handling the boundary-related fence issues in Section 14. For a dispute that doesn’t need a judge, calling the town clerk to find out who the current fence viewers are is usually the right first move after neighbor-to-neighbor conversation fails.

When a Fence Dispute Becomes a Boundary Dispute

Fence disagreements often escalate into disagreements about where the property line actually runs. When negotiation and fence viewers can’t resolve it, the next step is usually a professional land survey. Costs vary with lot shape, terrain, and the state of existing records. A straightforward suburban lot might run a few hundred dollars; irregular parcels with unclear history can push past a thousand.

The Massachusetts Land Court has exclusive original jurisdiction over land registration and title disputes, including property boundary questions.6Mass.gov. Jurisdiction of the Land Court Either party can petition for a judicial determination of the line, with surveyor reports, historical deeds, and land records as the key evidence. Chapter 185 governs land registration and gives the Land Court the tools to settle title definitively.7General Court of Massachusetts. Massachusetts General Laws Chapter 185, Section 1 A Land Court judgment carries more finality than a fence viewer decision, which makes it the right venue when the stakes are high.

Adverse Possession

Long-standing fences in the wrong place raise a further problem. Under Chapter 260, Section 21, a person who has openly and continuously possessed someone else’s land for twenty years can claim legal ownership of it.8General Court of Massachusetts. Massachusetts General Laws Chapter 260, Section 21 A fence sitting on the wrong side of the true line for decades can transfer that strip to the neighbor using it.

The twenty-year rule has one significant exception: it doesn’t apply to land held by nonprofit conservation organizations for conservation, parks, recreation, water protection, or wildlife purposes.9Mass.gov. Massachusetts Law About Adverse Possession For everyone else, the practical lesson is simple. If you suspect a fence is misplaced, address it before two decades pass.

Penalties for a Fence That Breaks the Rules

Chapter 49 itself carries no dramatic fines. The real enforcement comes from three other places.

Local zoning and building code violations carry municipal penalty schedules that vary by city and town. If your fence violates a local ordinance, the building inspector can issue a notice of violation requiring corrective action within a set window. Continued noncompliance can bring escalating fines and legal action by the municipality.

The spite fence statute provides a tort remedy: a neighbor whose situation fits Section 21 can sue for damages and ask the court to order the fence modified or removed.4General Court of Massachusetts. Massachusetts General Laws Chapter 49, Section 21 And in any fence or boundary dispute, courts can issue injunctions requiring removal or modification and award damages for harm to the neighbor, such as decreased property value or loss of enjoyment.

Situations That Change the Rules

Historic Properties

The Massachusetts Historical Commission reviews construction projects, including fences, that require funding, a license, a permit, or approval from any state or federal agency.10Secretary of the Commonwealth of Massachusetts. Review and Compliance If your property sits in a local historic district, the district commission can impose additional requirements on materials and design. These don’t override zoning, but they add a review layer that can narrow your options.

Agricultural Properties

Chapter 49 has deep agricultural roots. The four-foot “sufficient fence” definition in Section 2 was designed with livestock containment in mind, and much of the chapter addresses what happens when animals escape through an insufficient fence.2General Court of Massachusetts. Massachusetts General Laws Chapter 49, Section 2 Farm boundaries can call for different practical standards than suburban lots, and fence viewers have discretion to accept equivalent materials and structures appropriate to the use.

Fair Housing Accommodations

Under the federal Fair Housing Act, an owner or tenant with a disability can request a reasonable accommodation modifying local fence rules. A common example is asking for a variance from a height limit to safely contain a yard for a child with autism. Landlords, HOAs, and municipalities have to consider these requests and grant them when the accommodation is necessary for equal enjoyment of the home. Denying a reasonable request without going through the interactive process can trigger a fair housing complaint.