Middleton, Massachusetts © 2026 Gaudetlawoffice.com

Massachusetts Landlord and Tenant Law

The Habitability Defense and What Every Massachusetts Landlord Needs to Know

If you are a Massachusetts landlord who has filed a Massachusetts eviction against a tenant, or who is planning to do so, one of the most powerful and frequently raised defenses you may encounter is a claim that you, as the landlord, have failed to maintain the rental property in a habitable condition. This defense, known formally as a breach of the implied warranty of habitability, is one of the most consequential tenant defenses available under Massachusetts law. When raised successfully, it can result in a complete loss of possession for the landlord, an award of money damages to the tenant, and an order requiring the landlord to pay the tenant’s attorney’s fees. For Massachusetts landlords who may be unaware of how broad and far-reaching this defense is, or who believe that a few unaddressed maintenance issues will not affect their Massachusetts eviction case, this article is intended to provide a clear and practical explanation of what the habitability defense is, how courts apply it, and what Massachusetts landlords can do to protect themselves.

This article is written from the perspective of a Massachusetts landlord who wants to understand the habitability defense before it catches them off guard in court. Whether the eviction being pursued is based on nonpayment of rent, a lease violation, or a no-fault termination, a Massachusetts tenant who can demonstrate that the landlord allowed conditions to persist in the unit that endangered or impaired the tenant’s health, safety, or well-being has a powerful legal tool at their disposal. Understanding that tool is the first step toward protecting your rights as a Massachusetts landlord.

What Is the Implied Warranty of Habitability Under Massachusetts Law?

The implied warranty of habitability is a legal obligation that exists in every residential tenancy in Massachusetts, regardless of whether the lease says anything about it. Under Massachusetts law, every landlord who rents residential premises, whether under a written lease or an oral agreement, whether for a fixed term or on a month-to-month basis, impliedly warrants that the premises are fit for human occupation at the start of the tenancy and will remain so throughout the tenancy.

The standard for habitability in Massachusetts is closely tied to the Massachusetts State Sanitary Code, found at 105 Code of Massachusetts Regulations Section 410 et seq. The State Sanitary Code establishes the minimum standards for fitness of residential housing in the Commonwealth. These standards cover a wide range of conditions, including heat, hot water, plumbing, ventilation, structural integrity, pest infestation, electrical safety, and more. A violation of the State Sanitary Code is treated by Massachusetts courts as evidence that the premises are or were uninhabitable, because the Code itself sets the floor for what constitutes minimally acceptable housing in Massachusetts.

It is important for Massachusetts landlords to understand that the warranty of habitability is non-waivable. A landlord cannot include a clause in a lease that purports to waive the tenant’s right to habitable conditions. A clause that attempts to do so is void and unenforceable as a matter of Massachusetts law. Similarly, a landlord cannot argue that the rent charged was reduced to account for poor conditions and that the tenant therefore accepted the property as is. Massachusetts courts have rejected that argument consistently.

The landlord’s obligation under the warranty of habitability begins the moment the landlord has actual knowledge of a condition that may endanger or materially impair the health, safety, or well-being of a tenant. Actual knowledge can arise in several ways: the tenant informs the landlord directly of the condition, a government agency such as the local board of health or the inspectional services department issues a notice of violations to the landlord, or the condition was visible and apparent at the time the landlord delivered possession of the unit to the tenant.

How Does a Tenant Use the Habitability Defense in a Massachusetts Eviction Case?

Under Massachusetts General Laws Chapter 239, Section 8A (the so-called rent withholding statute), a tenant who has been served with a Notice to Quit for nonpayment of rent may raise as a defense or counterclaim any claim arising out of the tenancy, including a claim for breach of the implied warranty of habitability. This provision is at the heart of how the habitability defense operates in a Massachusetts eviction case.

To successfully raise the habitability defense in a Massachusetts eviction, the tenant must generally demonstrate the following elements.

  1. The landlord had knowledge of the defective condition. The tenant must show that the landlord knew or should have known of the condition before or during the period when rent was withheld. A landlord who was never told about a problem and had no reason to know about it may be in a stronger position, but a landlord who received written complaints or who was cited by a government agency will find this element easy for the tenant to satisfy.
  2. The condition constituted a violation of the warranty of habitability. The tenant must demonstrate that the condition was serious enough to endanger or materially impair the health, safety, or well-being of the occupants. Not every imperfection or minor inconvenience rises to the level of a habitability violation, but Massachusetts courts have found violations based on a wide range of conditions, including inadequate heat, rodent or insect infestations, water leaks, mold, broken plumbing, and failed safety systems.
  3. The tenant did not cause the condition. The landlord has the right to show that the tenant or someone in the tenant’s household caused the defective condition. If the tenant caused the problem, they cannot use it as a defense.

When these elements are established, the court may then calculate the amount by which the rental value of the premises was diminished by the habitability violation. In a Massachusetts eviction for nonpayment of rent, if the damages calculated for the habitability counterclaim equal or exceed the amount of unpaid rent owed to the landlord, the landlord is not entitled to recover possession. In other words, the habitability counterclaim can wipe out the landlord’s entire claim for unpaid rent and can leave the landlord without a judgment for possession.

The habitability defense can also arise in eviction cases that are not based on nonpayment of rent. A tenant who has been served with a Notice to Quit for cause or for no-fault termination may raise habitability issues as part of their defense, arguing that the conditions in the unit provide context for the dispute between the parties or that the eviction is actually a response to the tenant having complained about those conditions. As a Massachusetts landlord, it is critical to understand that habitability issues do not stay neatly contained to nonpayment cases.

Two Massachusetts Cases Where the Tenant Prevailed on a Habitability Defense

Massachusetts courts have applied the warranty of habitability in numerous cases and have ruled in favor of tenants where the evidence showed that landlords allowed conditions to persist that fell below the minimum standards required by law. The following two cases illustrate the scope and power of this defense.

Boston Housing Authority v. Hemingway, 363 Mass. 184 (1973)

The foundational Massachusetts case establishing the implied warranty of habitability in all residential tenancies is Boston Housing Authority v. Hemingway, decided by the Massachusetts Supreme Judicial Court in 1973. This landmark decision fundamentally changed the law of landlord and tenant in Massachusetts and remains the cornerstone of the habitability defense to this day.

In Hemingway, the Boston Housing Authority brought summary process eviction actions against two tenants, Ruth Hemingway and a companion, for failure to pay rent. The tenants’ apartments had serious defects, including leaking ceilings, wet walls, improper heating, broken doors and windows, and infestations of rodents and vermin. After making repeated demands to the landlord to remedy these conditions, the tenants began withholding rent. The Boston housing inspection department had also issued a formal report to the landlord certifying that serious housing code violations existed that could endanger or materially impair the health and safety of the tenants.

At the time of the Hemingway decision, the old common law rule in Massachusetts was that a landlord had no implied obligation to deliver or maintain premises in habitable condition. A tenant, under that old rule, was expected to take the premises as they found them. The Supreme Judicial Court in Hemingway squarely rejected that doctrine. The Court held that the old common law rule, which treated a lease as a mere conveyance of an interest in land, was inconsistent with the modern reality that a residential lease is fundamentally a contract for shelter and services. Because the tenant’s promise to pay rent and the landlord’s promise to deliver habitable premises are interdependent, the Court held that there is in every Massachusetts residential tenancy an implied warranty that the premises are fit for human occupation and will remain so.

The Hemingway decision established that a Massachusetts landlord who breaches the implied warranty of habitability is liable to the tenant for damages measured by the difference between the fair market value of the premises in good habitable condition (ordinarily the contracted rent) and the actual value of the premises in their defective condition. This damages formula has been applied consistently by Massachusetts courts in the decades since Hemingway and remains the standard measure of habitability damages in Massachusetts eviction cases today.

The practical significance of Hemingway for Massachusetts landlords cannot be overstated. Because the Hemingway decision established the warranty as a non-waivable feature of every residential tenancy in Massachusetts, a landlord who rents property in substandard condition, or who allows conditions to deteriorate and fails to make repairs after receiving notice, is not only in breach of the law but has handed the tenant a powerful legal defense that can defeat an eviction and generate money damages payable to the tenant.

Cruz Management Co., Inc. v. Wideman, 417 Mass. 771 (1994)

A second important Massachusetts case that illustrates how the habitability defense operates in practice is Cruz Management Co., Inc. v. Wideman, decided by the Massachusetts Supreme Judicial Court in 1994. This case is notable because it addressed the measure of habitability damages in a context where the tenant was a recipient of a federal Section 8 housing subsidy, and the outcome firmly placed the tenant’s right to habitability damages above the landlord’s argument that damages should be reduced because much of the rent was paid by a government subsidy program.

In Wideman, Cruz Management Co., Inc. brought a summary process eviction action against its tenant, Glory Wideman, in the Boston Housing Court. Wideman filed counterclaims alleging breach of the implied warranty of habitability, breach of the covenant of quiet enjoyment under Massachusetts General Laws Chapter 186, Section 14, retaliation under Massachusetts General Laws Chapter 186, Section 18, and violations of the Massachusetts Consumer Protection Act under Massachusetts General Laws Chapter 93A. After a trial in the Housing Court, the judge found in favor of the tenant on the habitability counterclaim and awarded damages measured by the difference between the contract rent and the value of the premises in their defective condition.

Cruz Management appealed, arguing that because the tenant’s rent was largely paid by a federal Section 8 subsidy (meaning the tenant herself paid only a small portion of the contract rent out of pocket), damages for the habitability breach should be limited to the amount the tenant personally paid rather than the full contract rent. The Supreme Judicial Court disagreed. The Court held that the tenant was entitled to damages calculated on the basis of the full contract rent, not merely the tenant-paid portion. The Court reasoned that it is the tenant who suffers when conditions in the apartment violate the implied warranty of habitability, regardless of who is paying the rent, and that awarding damages based only on the tenant-paid portion would be inconsistent with the purposes of the warranty.

The Wideman decision is significant for Massachusetts landlords because it makes clear that the habitability defense is not neutralized or weakened by the fact that a tenant is receiving housing assistance. A Massachusetts landlord who believes that because a Section 8 tenant’s rent is substantially subsidized the tenant has little financial stake in a habitability counterclaim is mistaken. The full contract rent is the measure of the habitability damages exposure, and the landlord cannot use the existence of a government subsidy to reduce that exposure.

What Conditions Can Give Rise to a Habitability Defense?

Massachusetts landlords sometimes underestimate the range of conditions that courts have recognized as giving rise to a habitability defense. The following is not an exhaustive list, but it reflects conditions that Massachusetts courts and housing inspectors have consistently treated as implicating the warranty of habitability.

Inadequate Heat

The Massachusetts State Sanitary Code requires landlords to provide heat sufficient to maintain the temperature in habitable rooms at a minimum of 68 degrees Fahrenheit between September 15 and June 15 of each year. A landlord who fails to provide adequate heat, or whose heating system is defective and goes unrepaired after notice, is in breach of the warranty of habitability. Inadequate heat is one of the most common bases for a habitability defense in Massachusetts eviction cases, and courts take it seriously.

Rodent and Insect Infestations

Massachusetts law requires landlords of properties with two or more units to maintain the premises free from rodents, insects such as cockroaches, and other pests. A landlord who receives notice of a pest infestation and fails to address it within a reasonable time is in breach of the warranty of habitability. The presence of an ongoing infestation, documented by inspection reports or photographs, provides strong evidentiary support for a tenant’s habitability counterclaim.

Water Leaks, Mold, and Structural Deficiencies

Water intrusion that leads to mold growth, persistent leaks, or structural damage affecting the habitability of the unit can give rise to a habitability defense. Mold in particular has become an increasingly recognized health hazard, and Massachusetts courts and health inspectors treat significant mold conditions as evidence of a habitability breach.

Defective or Missing Safety Systems

A landlord who fails to maintain functioning smoke detectors, carbon monoxide detectors, fire escapes, locks, or other required safety systems is in breach of both the State Sanitary Code and the warranty of habitability. These are not optional features of a habitable dwelling. They are legally required minimum conditions, and their absence or defective condition is well-documented evidence of a habitability violation.

Hot Water and Plumbing Failures

The Massachusetts State Sanitary Code requires landlords to provide hot water at a minimum temperature of 110 degrees Fahrenheit. Persistent plumbing failures, lack of hot water, or blocked or broken drain and sewer lines are habitability conditions that courts have found to support a tenant’s defense.

What Should a Massachusetts Landlord Do to Protect Against a Habitability Defense?

The good news for Massachusetts landlords is that the habitability defense, while powerful, is not unavoidable. A landlord who maintains the property diligently, responds promptly to tenant repair requests, and documents their maintenance activities is in a far stronger position to contest a habitability counterclaim or to demonstrate that any conditions that existed were promptly addressed. The following are practical steps that Massachusetts landlords should take.

Respond to All Repair Requests in Writing and Promptly

When a Massachusetts tenant reports a maintenance problem, respond in writing and address the problem within a reasonable time. The legal standard for how quickly a landlord must act after receiving notice depends on the severity of the condition (conditions affecting heat, hot water, or safety systems generally require faster attention than cosmetic issues), but the overarching principle is that unreasonable delay is not acceptable. Documenting your response, including the date you received the complaint, the date you arranged for a repair, and the date the repair was completed, creates a record that can be used to contest a habitability counterclaim.

Conduct Regular Inspections and Maintain Records

Massachusetts landlords should conduct regular inspections of their rental properties and keep written records of the results. A maintenance log that shows a consistent history of attention to the condition of the property makes it significantly harder for a tenant to claim that the landlord was indifferent to or unaware of habitability conditions. Inspection records should be retained for the duration of the tenancy and beyond.

Address Board of Health Notices Immediately

If the local board of health or any other government agency issues a notice of violations to you as a Massachusetts landlord, treat it as a matter of urgency. A board of health violation notice is formal evidence that a habitability condition existed at the property, and courts treat it as conclusive or near-conclusive evidence of a habitability breach. Promptly addressing and documenting the correction of any cited violations is essential to limiting your legal exposure.

Consult an Attorney Before Filing an Eviction

If you are a Massachusetts landlord who is considering filing an eviction against a tenant who has complained about the condition of the property, reported code violations, or who resides in a unit with any known maintenance issues, consult with a licensed Massachusetts attorney before serving a Notice to Quit. An attorney can evaluate whether any open habitability issues could support a counterclaim, advise you on how to address those issues before filing, and help you assess the overall strength of your eviction case in light of the property’s condition.

Conclusion

The implied warranty of habitability is one of the most firmly established and broadly applied protections in Massachusetts landlord and tenant law. As the Supreme Judicial Court made clear in Boston Housing Authority v. Hemingway, 363 Mass. 184 (1973), the obligation to provide and maintain habitable premises is not optional, is not waivable, and cannot be contracted away. As the Court further confirmed in Cruz Management Co., Inc. v. Wideman, 417 Mass. 771 (1994), the full measure of habitability damages is owed to the tenant regardless of the source of the rent, and a Massachusetts landlord who allows habitability conditions to persist faces real and potentially significant financial exposure.

For Massachusetts landlords, the message is clear: maintaining your rental property in a condition that meets the requirements of the Massachusetts State Sanitary Code is not just good practice, it is a legal obligation. A Massachusetts tenant who can demonstrate that the landlord breached that obligation has a defense that can defeat an eviction, eliminate unpaid rent as a basis for judgment, and generate money damages that must be paid to the tenant. Preventing a habitability defense from arising in the first place by proactively maintaining the property and responding promptly to repair requests is the most effective and least costly approach available to a Massachusetts landlord.

If you are a Massachusetts landlord facing an eviction case in which the tenant has raised or may raise a habitability defense, or if you are concerned about the condition of your rental property and how it may affect your legal exposure in a potential eviction, speak with a qualified Massachusetts attorney who handles landlord and tenant matters before taking any further action.

ABOUT THIS ARTICLE

This article was prepared by a Massachusetts attorney and is provided solely for general informational and educational purposes directed to members of the general public. It does not constitute legal advice and does not create an attorney-client relationship. The law applicable to any particular Massachusetts landlord-tenant dispute depends on the specific facts and circumstances of that matter. Readers are encouraged to seek the advice of a licensed Massachusetts attorney before taking any action in connection with a Massachusetts eviction or any landlord-tenant matter.

Contact Us

Contact Us
First
Last

About Attorney Gaudet

Free Legal Consultation: 📞 978-273-8337 Get a Free Consultation