Repair and DeductRent WithholdingTenant RightsMassachusettsM.G.L. c. 111Habitability

Repair and Deduct: How to Legally Withhold Rent for Repairs in Massachusetts

If your landlord won't fix a certified code violation, Massachusetts law lets you pay for the repair yourself and deduct the cost from rent — but only if you follow the process exactly.

July 24, 2026
8 min read
Boston Property NavigatorEditorial Team

Under M.G.L. c. 111 §127L, Massachusetts tenants can repair certified sanitary code violations themselves and deduct up to four months' rent for the cost — or withhold rent entirely as an eviction defense. Here's the exact process and where it can go wrong.

🔧

BLUF: Repair and Deduct in Five Steps

Massachusetts tenants can legally repair a certified code violation and deduct the cost from rent — up to four months' rent in any 12-month period — but only after following a specific notice-and-wait process under M.G.L. c. 111 §127L. Skip a step and you lose the protection and risk being treated as simply not paying rent. This guide walks through the exact sequence.

The Five Conditions You Must Meet

  • 1. It's a real violation that endangers health or safety. Minor cosmetic issues (a small crack, a loose screen) generally don't qualify — the violation has to materially impair health, safety, or well-being.
  • 2. It's certified. A board of health, local code enforcement agency (or, in Boston, Worcester, and Cambridge, the commissioner of housing inspection), or a court has to certify the violation — your own opinion that something is broken isn't enough.
  • 3. You gave written notice to the landlord. Notify them in writing of the certified violation and keep a copy — certified mail is a good idea.
  • 4. You waited the required time. The landlord has 5 days after notice to begin repairs (or sign a written contract for the repair), and 14 days to substantially complete them — unless the board of health or court set a shorter deadline, in which case that shorter deadline controls.
  • 5. You stayed within the cap. You cannot deduct more than four months' rent in any 12-month period (or your period of occupancy, if shorter), calculated on your highest monthly rent in that window.
⚠️

Skip a step and you lose the protection

Repair-and-deduct is a narrow, technical remedy. If the violation wasn't certified, if you didn't give proper written notice, or if you deduct more than the cap allows, a court can treat the missing rent as a straightforward nonpayment — exposing you to eviction. When in doubt, get the board of health's certification and written notice right before you spend a dollar on repairs.

🔄Your Alternative: Treat the Lease as Abrogated

Instead of repairing and deducting, §127L also lets you treat the lease as abrogated (ended) once the same conditions are met: pay only the fair value of your use and occupancy for the time you remain, and vacate within a reasonable time. This is a bigger step — it ends your tenancy — and is worth discussing with an attorney before you use it, since "fair value" and "reasonable time" are judgment calls a court ultimately decides.

Separately from repair-and-deduct, Massachusetts law (M.G.L. c. 239 §8A) lets you raise sanitary code violations as a defense in an eviction case if your landlord sues you for nonpayment — even without going through the certify-and-wait process above. The court can reduce what you owe based on how much the violations reduced the value of your tenancy. This is a defense you raise in court, not a self-help step you take on your own, which is the key difference from repair-and-deduct.

Get every Tenant Rights guide

New Massachusetts tenant guides publish twice a week — subscribe to get each one in your inbox.

RemedyWhat it requiresWhat you get

Repair and deduct

Certification + written notice + 5/14-day wait

Cost of repair, up to 4 months' rent

Treat lease as abrogated

Same as above

End tenancy, pay fair value only, must vacate

Rent withholding defense (c. 239 §8A)

Raised as a defense if landlord sues for eviction

Rent reduced to reflect diminished value

📝Practical Checklist Before You Spend a Dollar

  • Request a board of health inspection and get the violation certified in writing (see our Request an Inspection guide).
  • Send written notice to the landlord referencing the certified violation, dated and copied.
  • Track the 5-day (start repairs) and 14-day (complete repairs) clocks from the date of that notice.
  • Keep every receipt for the repair work — you'll need to show the deduction was reasonable and tied to the certified violation.
  • Don't exceed four months' rent in the trailing 12 months.
⚠️

Not legal advice

This is general information about how repair-and-deduct and rent withholding work under Massachusetts law, not legal advice, and not a guarantee of any outcome. Because a mistake here can expose you to an eviction claim, consider a quick consult with a legal aid attorney before you begin — see our Find an Attorney guide.

Sources

  1. M.G.L. c. 111, §127L — Repair and deduct
  2. MassLegalHelp — Chapter 8: Getting Repairs Made
  3. M.G.L. c. 239, §8A — Rent withholding defense in eviction

Start with an inspection

You need a certified violation before repair-and-deduct applies. Here's how to request one, free.

Read the Request an Inspection guide
Newsletter

Get the next guide in this series

A new Massachusetts Tenant Rights guide publishes every Tuesday and Friday.

Weekly updates • No spam • Unsubscribe anytime

Need Custom Analysis?

Want deeper insights for a specific property or neighborhood? Get a custom research report tailored to your needs—from individual property analysis to comprehensive market overviews.

Request Custom Analysis
Newsletter

Get every Tenant Rights guide

New Massachusetts tenant guides publish twice a week — subscribe to get each one in your inbox.

Weekly updates • No spam • Unsubscribe anytime

Related Posts

State Sanitary Code105 CMR 410

Is Your Apartment Legal? The Massachusetts State Sanitary Code, Explained

105 CMR 410 sets the minimum a Massachusetts landlord must provide. Here's what counts as a violation, what's owner-responsibility vs. tenant-responsibility, and how to get it enforced.

Every Massachusetts rental has to meet 105 CMR 410, the State Sanitary Code — working heat, hot water, no pests, sound structure, and more. Here's a practical, plain-English walkthrough of what's actually required and how to get violations fixed.

July 21, 2026
8 min
Security DepositTenant Rights

Security Deposits in Massachusetts: The Complete Rules — and How to Get Yours Back

Massachusetts has some of the strictest security deposit rules in the country. Here's exactly what your landlord must do — and what happens (triple damages) when they don't.

Massachusetts security deposit law (M.G.L. c. 186 §15B) requires a separate interest-bearing account, specific receipts, and a 30-day return deadline. Landlords who don't comply can owe triple damages. Here's the full rulebook, cited to the actual statute.

July 17, 2026
8 min
Tenant RightsMassachusetts

Massachusetts Tenant Rights 101: The Complete Starter Guide

Every Massachusetts renter's rights, in one place: tenancy types, deposits, habitability, eviction protections, and where to go for help — each one sourced to the actual law.

A complete starting point for Massachusetts tenant rights: the difference between a lease and a tenancy at will, what a landlord must legally provide, what they're barred from doing (like lockouts and retaliation), and exactly which Massachusetts law backs each right.

July 14, 2026
9 min