You can withhold rent in Massachusetts when your apartment has serious health or safety code violations that your landlord knew about but failed to fix. The right comes from Chapter 239, Section 8A of the General Laws, which lets you raise those violations as a defense or counterclaim if the landlord tries to evict you for nonpayment. It also lets you recover the gap between the rent you paid and what the apartment was actually worth in its broken condition. The protection is real, but it only holds if you follow the steps the statute requires.
The Four Conditions That Must Be Met
Section 8A sets four requirements, and courts apply them strictly. All four have to be true before you have the right to stop paying.1General Court of Massachusetts. Massachusetts Code Part III – Chapter 239 – Section 8A
- Your landlord or their agent knew about the condition before you fell behind on rent.
- You or someone under your control didn’t cause the condition. If the problem is inside an area you control, you carry the burden of proving you didn’t cause it.
- You’re not in a hotel, motel, or rooming house where you’ve lived fewer than three consecutive months.
- The repairs can be done while you remain in the unit. A landlord can defeat your claim by showing the problems can’t be fixed with you still living there, with a narrow exception for lead paint remediation.
Skip any one of these and the defense collapses, even if the apartment is genuinely in rough shape.
What Counts as a Serious Violation
The condition has to violate the state sanitary code (105 CMR 410), the building code, or another housing regulation, and it has to endanger or seriously impair your health, safety, or well-being. Chipped paint on trim doesn’t qualify. No heat in January does. Common qualifying problems include broken plumbing, severe mold, pest infestations, and exposed wiring.
The sanitary code sets specific numbers that a Board of Health inspector will measure against:2Mass.gov. 105 CMR 410 Minimum Standards of Fitness for Human Habitation
- Heat in every habitable room and bathroom from September 15 through May 31, at least 68°F from 7:00 a.m. to 11:00 p.m. and at least 64°F overnight. Fireplaces, wood stoves, and portable space heaters do not count as heating systems.
- Hot water between 110°F and 130°F at faucets, and between 110°F and 120°F at showers and tubs.
- No habitation of rooms subject to excess moisture.
- At least 150 square feet of habitable space for the first occupant, plus 100 square feet for each additional person.
If your situation doesn’t match one of these benchmarks, that doesn’t automatically mean you have no claim. It does mean you need an inspector or lawyer to tell you which specific code section applies.
How to Withhold Rent Without Losing Your Rights
The process matters as much as the underlying problem. Tenants who stop paying without laying the groundwork tend to lose in court even when their apartments have real defects.
Put the problem in writing. Send your landlord a letter describing the specific conditions, referencing the sanitary code where you can, and asking for repairs. Use certified mail so you have proof of delivery and the date. That letter is what proves the landlord knew about the problem before you stopped paying, satisfying the first statutory condition.
Call the Board of Health. If the landlord doesn’t respond, ask your local Board of Health to inspect. The inspector documents violations and can order repairs on a timeline. The resulting report is strong evidence in court.3Mass.gov. The Attorney General’s Guide to Landlord and Tenant Rights
Give a reasonable window to fix it. How long is reasonable depends on urgency. A dead furnace in winter is an emergency. A dripping faucet in a second bathroom isn’t. Courts ask whether you gave the landlord a fair opportunity to act.
Then stop paying. Massachusetts, unlike many states, does not require you to put withheld rent into an escrow account. The statute simply allows you to withhold. Setting the money aside in a separate account anyway is the smart move: it shows the court you acted in good faith rather than looking for free rent.
Document everything. Dated photos, videos, copies of letters, inspection reports, notes from any conversations. Documentation is the difference between a defense that holds up and one that falls apart at trial.1General Court of Massachusetts. Massachusetts Code Part III – Chapter 239 – Section 8A
If Your Landlord Files for Eviction
The usual landlord response to withheld rent is a 14-day notice to quit for nonpayment, which under state law must include information about rental assistance programs. If that period passes without resolution, the landlord can file a summary process case in Housing Court.4Mass.gov. Tenants’ Guide to Eviction
This is the scenario Section 8A was written for. In a nonpayment case, you raise the code violations as a defense or counterclaim. If the court finds that the violations existed, that they were serious enough to endanger health or safety, and that your landlord knew about them before you fell behind, you win on the habitability question. The judge then calculates a rent abatement and offsets it against whatever back rent the landlord claims.
The abatement itself is the difference between the agreed rent and the fair value of the apartment in its defective condition. In practice, a judge identifies each major violation, determines how long it lasted, and estimates the percentage by which it reduced your ability to use and enjoy your home. Those percentages apply to the monthly rent for each month the condition existed after the landlord had notice. If you have a housing subsidy, the court bases the abatement on the full contract rent, not just your share. In many cases the abatement wipes out the back rent entirely and you stay.
Depending on the circumstances, damages for breach of the warranty of habitability can be doubled or tripled under the state consumer protection statute, Chapter 93A. That possibility gives tenants genuine leverage in settlement talks.
Protection From Retaliation and Utility Shutoffs
The reason many tenants hesitate is fear that the landlord will punish them for complaining. Two statutes directly address that.
Chapter 186, Section 18 makes it illegal for a landlord to retaliate against a tenant for reporting code violations, complaining in writing, withholding rent, or taking legal action to enforce housing standards. Retaliation includes serving an eviction notice (other than for nonpayment), raising rent, or substantially changing the terms of the tenancy. If any of those happen within six months after you exercised your rights, the law presumes retaliation. The landlord then has to overcome that presumption with clear and convincing evidence of an independent, legitimate reason that would have led to the same action regardless of your complaint.5General Court of Massachusetts. Massachusetts Code Part II – Chapter 186 – Section 18
A court that finds retaliation can award between one and three months’ rent, or your actual damages, whichever is greater, plus attorney’s fees and court costs.
Some landlords try a more direct approach: shutting off heat, water, or electricity to drive the tenant out. Chapter 186, Section 14 treats that as a criminal offense. A landlord who willfully fails to provide required utilities, interferes with another provider’s delivery, or disturbs quiet enjoyment faces a fine of $25 to $300 or up to six months in jail.6General Court of Massachusetts. Massachusetts Code Part II – Chapter 186 – Section 14 On the civil side, the tenant can recover actual and consequential damages or three months’ rent, whichever is greater, plus attorney’s fees, and can use those damages as a setoff against any claimed back rent.
Repair and Deduct as an Alternative
Withholding isn’t your only option. Chapter 111, Section 127L lets you hire someone to make the repairs and deduct the cost from future rent. The requirements are specific:7General Court of Massachusetts. Massachusetts Code Part I – Chapter 111 – Section 127L
- A Board of Health inspector, local code enforcement agency, or court has to certify that the violations endanger or materially impair health, safety, or well-being.
- Your landlord must receive written notice of the violations and then fail to begin repairs within five days or substantially complete them within fourteen days. A shorter deadline from a Board of Health or court controls if one exists.
- You can’t deduct more than four months’ rent in any twelve-month period.
You can also treat the lease as terminated, pay only the fair value of your use and occupation, and move out within a reasonable time.
Credit and Screening Risk
An eviction filing can appear on tenant screening reports for up to seven years under the federal Fair Credit Reporting Act, even if you ultimately win the case.8Consumer Financial Protection Bureau. How Long Can Information, Like Eviction Actions and Lawsuits, Stay on My Tenant Screening Record? If a landlord reports withheld rent as unpaid debt and the information is inaccurate or misleading, you can dispute it; the reporting company generally has 30 days to investigate and must remove information it can’t verify. A landlord who denies a future rental application based on a screening report has to send an adverse action notice explaining your right to dispute.9Consumer Financial Protection Bureau. What Should I Do if My Rental Application Is Denied Because of a Tenant Screening Report
The risk is manageable, and the best defense against a damaging screening report is winning the underlying case or settling it on terms that include dismissal. Which is another way of saying: get the written notice, the inspection, and the documentation right from the start.