The warranty of habitability in Massachusetts is a legal guarantee, built into every residential tenancy, that your landlord will keep the unit safe and livable to the standards set by state law. It applies whether or not your lease mentions it, and a landlord cannot write it out of the agreement. If conditions fall below those standards, you have real remedies: reporting the violation, hiring repairs and deducting the cost from rent, defending against an eviction, or suing for a rent reduction and damages.
What Your Landlord Must Provide
The warranty gets its specifics from two sources: the State Sanitary Code (105 CMR 410), formally titled “Minimum Standards of Fitness for Human Habitation,” and Chapter 186 of the Massachusetts General Laws. Together they turn “safe and livable” into measurable obligations.
Heat
During the heating season, which runs September 15 through June 15, your landlord must keep every habitable room and bathroom at a minimum of 68°F between 7:00 a.m. and 11:00 p.m., and at least 64°F from 11:01 p.m. to 6:59 a.m.1Mass.gov. Guidance on Heating Season and Min Temps These are concrete numbers you can measure with a thermometer.
Hot Water
A continuous supply of hot water between 110°F and 130°F must be available at every kitchen sink, bathroom sink, bathtub, and shower. Any interruption is a code violation.
Pest Control
Dwellings must be kept free of rodent, insect, and skunk infestations. In multi-unit buildings this generally means professional extermination, and the obligation sits with the landlord, not the tenant. A landlord who tells you to buy your own traps is not meeting the standard.
Structure and Ventilation
Windows, doors, floors, walls, ceilings, and roofs must be kept in good repair, and every habitable room needs adequate natural or mechanical ventilation.
Essential Utility Services
Chapter 186, Section 14 covers water, hot water, heat, light, power, gas, elevator service, and refrigeration. A landlord required by law or lease to furnish any of these services who willfully fails to do so faces a fine of $25 to $300, up to six months in jail, or both.2General Court of Massachusetts. Massachusetts Code Ch 186 – Lessor or Landlord Failing to Furnish Water, Hot Water, Heat, Light, Power, Gas, Elevator Service, Telephone Service, Janitor Service or Refrigeration Service The same section makes it criminal for a landlord to interfere with your quiet enjoyment or try to force you out without going through court. If your landlord changes the locks or shuts off utilities to pressure you, that conduct violates this statute.
Conditions That Cross the Line
A few problems come up again and again, and knowing which ones are code violations helps you act quickly.
No heat. From November through March, a broken heating system is not a minor inconvenience; it is treated as an emergency. If the landlord does not restore heat within a reasonable time after notice, the local board of health can order emergency repairs or condemn the unit.
Plumbing failures. Lack of hot water, persistent leaks, and malfunctioning toilets are among the most commonly cited sanitary code problems. A slow leak behind a wall can produce mold within days, so a plumbing issue often becomes a health hazard before anyone notices.
Pests. Cockroaches, mice, rats, and bedbugs violate the code and present real health risks. In multi-unit buildings, infestations spread, which is why the extermination duty sits with the landlord.
Broken locks and inadequate security. Working locks on exterior doors and windows are a baseline requirement. A landlord who knows about a broken deadbolt and does nothing can face liability both for the code violation and for any harm that follows.
Document First, Then Report
Habitability disputes are won on documentation. Before you take any action against the landlord, build a record.
- Put the complaint in writing. Email is fine. Describe the condition, the date, and your request for repair, and keep a copy. This fixes the date the landlord learned of the problem.
- Photograph and video everything, with timestamps. A dated photo of mold three months before a landlord acted is powerful evidence.
- For heat problems, keep a thermometer log with readings at different times of day.
- If the landlord does not respond within a reasonable time, file a complaint with your local board of health.
Local boards of health enforce the sanitary code. An inspector can visit, document violations, and issue a written order with a repair deadline. If the landlord ignores the order, the board can impose fines or go to court. An inspection report is also one of the strongest pieces of evidence you can carry into a later rent-withholding or damages case, because inspectors see thousands of units and know exactly what the code requires.
Your Legal Remedies
Which remedy fits depends on how serious the problem is, how long the landlord has known, and whether an eviction is already in motion.
Repair and Deduct
Under Chapter 111, Section 127L, you can hire someone to make the repairs and subtract the cost from your rent. To make it stick, the condition must violate the sanitary code, you must have notified the landlord, and the landlord must have failed to act within a reasonable time. The total you can deduct is capped at four months’ rent in any twelve-month period.3General Court of Massachusetts. Massachusetts Code Chapter 111 Section 127L – Violations of Standards of Fitness for Human Habitation Get a written estimate before the work starts and keep every receipt. Sloppy paperwork is where tenants lose this remedy.
Defense Against Eviction for Nonpayment
If a landlord files to evict you for nonpayment, Chapter 239, Section 8A lets you raise the habitability violations as a defense or counterclaim. The court weighs the rent you owe against the reduced value of the apartment caused by the landlord’s failures. If what the landlord owes you equals or exceeds the rent you owe, the court blocks the eviction.4General Court of Massachusetts. Massachusetts Code Ch 239 8A – Defense or Counterclaim in Action for Summary Process If the landlord is owed more, you get one week after the court’s written notice to pay the balance and keep your home.
This is not a blanket right to stop paying rent. Tenants who withhold without understanding the procedural rules sometimes dig themselves into deeper trouble. If you plan to withhold, the safer approach is to deposit the withheld rent into an escrow account so you can show a court you were acting in good faith rather than simply not paying.
Rent Abatement and Damages
You can also sue in Housing Court or District Court for a rent abatement, which is a court-ordered reduction reflecting the diminished value of the apartment during the period the violations existed. Courts compare what the unit was worth in good condition against what it was worth with the defects. Paying full rent through two weeks with no heat in December, for instance, can support a substantial abatement.
Beyond abatement, courts can award related damages: medical bills tied to mold exposure, the cost of space heaters, hotel expenses when the unit became unlivable. Where a landlord’s failure to provide essential services was willful, Chapter 186, Section 14 adds criminal exposure on top.2General Court of Massachusetts. Massachusetts Code Ch 186 – Lessor or Landlord Failing to Furnish Water, Hot Water, Heat, Light, Power, Gas, Elevator Service, Telephone Service, Janitor Service or Refrigeration Service
Retaliation Is Illegal
Many tenants hold off on reporting because they expect a rent hike, a non-renewal, or an eviction notice in response. Chapter 186, Section 18 makes it illegal for a landlord to retaliate against a tenant for reporting code violations, joining a tenant organization, or exercising any legal right tied to the tenancy.5General Court of Massachusetts. Massachusetts General Laws Chapter 186 Section 18
If a notice to quit or a rent increase arrives within six months of your reporting a code violation or filing a health department complaint, the law presumes the action is retaliatory. The landlord then has to prove a legitimate, non-retaliatory reason. A landlord who cannot overcome that presumption is liable for damages and your legal costs. This protection applies whether you have a written lease or a tenancy at will, and the lease cannot waive it.
Federally Subsidized Housing Has an Added Layer
If your unit is Section 8 or funded through a HUD program like HOME or the Housing Trust Fund, it must meet federal inspection standards on top of the Massachusetts sanitary code. HUD is moving to the National Standards for the Physical Inspection of Real Estate (NSPIRE), with full compliance required for many programs by October 1, 2026. A subsidized unit that fails federal inspection can lose its subsidy payments, which gives subsidized tenants an enforcement route that market-rate tenants do not have.