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.
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
✅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
🔄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.
🛡️The Related, Broader Defense: Rent Withholding
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.
| Remedy | What it requires | What 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
Sources
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 guideGet 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