Your Right to Habitable Housing in Massachusetts

Updated 4 days ago (March 7, 2026)

The Massachusetts Sanitary Code

Massachusetts has one of the most detailed housing codes in the country: the State Sanitary Code, 105 CMR 410, which sets minimum standards of fitness for human habitation. The code covers every aspect of residential living conditions including heating, plumbing, electrical, structural integrity, pest control, ventilation, lighting, and safety.

Under the Sanitary Code, landlords must provide and maintain heating facilities capable of maintaining at least 68 degrees Fahrenheit in all habitable rooms between September 15 and June 15. Hot water must be provided at 110 to 130 degrees Fahrenheit. Every habitable room must have at least one window that can be opened, and the building must be free of insect and rodent infestation.

The code also requires working smoke detectors on every level, carbon monoxide detectors near sleeping areas, properly functioning locks on all exterior doors and first-floor windows, adequate lighting in all common areas, and sanitary facilities in good working order. These requirements are mandatory and cannot be waived by lease agreement.

Board of Health Enforcement

Massachusetts tenants can request an inspection from the local board of health whenever they believe conditions violate the Sanitary Code. Under MGL Chapter 111 Section 127A, the board of health must inspect the premises within 24 hours of receiving a complaint about conditions that may endanger health or safety. For non-emergency conditions, inspection must occur within 5 days.

When the inspector identifies violations, the board of health issues a written order to the landlord specifying the violations and a deadline for correction. For conditions posing immediate danger to health, the deadline may be as short as 24 hours. For less urgent issues, the deadline is typically 5 to 30 days depending on the severity.

If the landlord fails to comply with the board of health order, the board can petition the housing court for enforcement. The court can order the landlord to make repairs, impose fines, appoint a receiver to manage the property, and in extreme cases, order the building vacated and condemned. Board of health orders also support rent withholding claims.

Rent Withholding and Escrow

Massachusetts law explicitly authorizes rent withholding for Sanitary Code violations. Under MGL Chapter 239 Section 8A, if the dwelling has conditions that may endanger or impair health or safety and the tenant did not cause the conditions, the tenant can withhold rent. The tenant should place the withheld amount in an escrow account to demonstrate good faith.

Rent withholding is a defense to eviction for nonpayment. If the landlord files for eviction and the tenant raises code violations as a defense, the court will determine the fair rental value of the unit in its deficient condition and reduce the rent owed accordingly. The abatement can be substantial for serious violations.

To strengthen your rent withholding defense, obtain a board of health inspection before or promptly after beginning to withhold. The inspector's report provides objective evidence of the conditions. Document everything with photos, temperature readings, and written communications with the landlord. Massachusetts courts give significant weight to board of health findings.

Repair and Deduct

Massachusetts tenants have a repair-and-deduct remedy for conditions that violate the Sanitary Code or affect habitability. If the landlord fails to make repairs after notice and a reasonable time, you can make the necessary repairs and deduct the cost from rent. The repair must be for a condition covered by the warranty of habitability, not a cosmetic issue.

Before using this remedy, provide written notice to the landlord specifying the condition and requesting repair. Allow a reasonable time based on the severity (24 hours for emergencies, 14-30 days for non-emergencies). If the landlord fails to act, obtain estimates, hire a licensed contractor, and deduct the documented cost from rent.

Keep all receipts, invoices, and before-and-after photos. The deduction should be reasonable in relation to the repair. If the landlord disputes the deduction and files for eviction, present your documentation to the court. Massachusetts courts generally uphold reasonable repair-and-deduct actions when the tenant followed proper procedures.

Legal References

Legal Disclaimer: Tellus provides this content for informational purposes only. This is not legal advice. Laws vary by state and locality, and regulations may have changed since this article was published. Consult a qualified attorney for guidance specific to your situation.