Affirmative defenses in eviction actions are legal arguments that can defeat a landlord’s case even when the basic facts the landlord alleges are true. Rather than simply denying that rent went unpaid or that a lease was violated, you introduce facts that justify what happened or make the eviction itself unlawful: the unit was uninhabitable, the notice was defective, the landlord is retaliating, or protected characteristics are driving the case. Used correctly, these defenses can end an eviction. Used late or without evidence, they fail.
How Affirmative Defenses Work in Eviction Court
A denial says the landlord is wrong on the facts. An affirmative defense says the landlord may be right on the facts and still should lose. You might concede that you didn’t pay July’s rent while arguing that the landlord’s refusal to fix a sewage backup justified withholding it. The spotlight moves from the landlord’s evidence to yours.
Once you raise the defense, you carry the burden of proving it by a preponderance of the evidence. That means showing it is more likely than not that your version is correct. It is a lower bar than a criminal case, but it is still a bar, and documentation decides most of these disputes. A strong defense argued from memory loses to a middling landlord case backed by paperwork.
Filing Deadlines You Cannot Miss
Eviction cases move faster than any other civil lawsuit. Depending on the jurisdiction, you may have as few as five business days or as many as 21 days to file a written answer after being served. Some courts skip the written answer entirely and set an initial hearing where you must appear in person. Miss the deadline or the hearing, and the landlord gets a default judgment. No evidence, no argument, just a loss.
If you have already missed it, a motion to set aside the default judgment may still be available. You will need to show a legitimate reason for missing court (a medical emergency, never actually receiving the summons, the landlord misleading you about the date) and a defense that would have mattered if you had appeared. “I forgot” rarely qualifies. The window to file is often short, sometimes as few as 10 days after the default was entered.
Implied Warranty of Habitability
Nearly every state recognizes an implied warranty of habitability, meaning the landlord must keep the rental fit for human occupation regardless of what the lease says. Only Arkansas does not recognize this warranty. Everywhere else it exists through statute, common law, or both, and it runs the entire length of the tenancy.
The conditions that trigger this defense affect health and safety, not aesthetics. Broken heating in winter, sewage backups, persistent mold, rodent infestations, no running water, major structural failures like a collapsing ceiling. The standard most states apply is whether the condition violates local building or health codes. A chipped countertop will not work. Water damage bringing down a bathroom ceiling will.
To use this defense against a nonpayment case, you generally need to show three things: the problem was serious, you notified the landlord, and the landlord failed to fix it within a reasonable time. If the court agrees, the typical remedy is a rent reduction reflecting the gap between what you agreed to pay and what the unit was actually worth in its defective condition. In severe cases the court may dismiss the eviction outright. The theory is that the landlord’s duty to maintain the property and your duty to pay rent are dependent promises; when one breaks, the other gives.
Repair and Deduct
A related defense arises when you spent your own money on repairs the landlord refused to make. Roughly 30 states allow some version of repair and deduct, where you pay for necessary work and subtract the cost from your next rent payment. The landlord sues for unpaid rent and you raise the expenditure as your defense.
The requirements are strict. Written notice to the landlord describing the problem. A reasonable wait, commonly 14 to 30 days depending on jurisdiction, though emergencies like a gas leak or no heat in freezing weather can justify a shorter window. A licensed contractor doing the work. A cost usually capped at one month’s rent per occurrence. Receipts, before-and-after photos, copies of every notice. Skipping any step can turn a valid defense into a losing one.
Improper Notice and Procedural Errors
Eviction law is intensely procedural. Before filing in court, a landlord must serve a proper notice: a notice to pay rent or vacate, a notice to cure a lease violation, or an unconditional notice to quit. These notices must contain specific information, including the correct amount owed, the right number of days to respond, and language that complies with your jurisdiction’s statutory requirements. If a pay-or-quit notice overstates the rent even slightly, courts in many jurisdictions will invalidate the entire notice.
How the notice reaches you matters as much as what it says. Most jurisdictions require personal delivery as the first attempt, with substitute service on another adult at the residence or posting-and-mailing allowed only when personal service fails. A landlord who tapes the notice to the door without first attempting personal delivery may have served you improperly. Defective service strips the court of authority to proceed, and the case gets dismissed. The landlord can start over with a new notice, but you have reset the clock.
Properties with federally backed mortgages or federal housing subsidies carry an added layer. The CARES Act requires landlords of covered properties to provide at least 30 days’ notice before requiring a tenant to vacate for nonpayment, even where state law would allow a shorter period.1Federal Register. Rescinding 30-Day Notification Requirements Related to Eviction Based on Nonpayment of Rent in Multi-Family Housing Direct Properties If your landlord skipped the 30-day notice on a covered property, the case was filed prematurely.
Retaliatory Eviction
Landlords cannot use eviction to punish tenants for exercising legal rights, and this protection exists in the vast majority of states. Reporting a code violation to a building inspector, complaining in writing about unsafe conditions, joining a tenants’ organization, or contacting a government agency about the property are all protected activities. If the landlord moves to evict shortly after, you likely have a retaliation defense.
Many states create a legal presumption that an eviction is retaliatory if it occurs within a set window after the protected activity, commonly six months to one year. Inside that window, the landlord has to prove a legitimate, non-retaliatory reason. Outside it, the presumption disappears, but you can still argue retaliation with direct evidence of motive, such as text messages threatening eviction after you called the health department. If you complained about mold on March 1 and received an eviction notice on March 15 with no prior history of lease violations, most judges will connect those dots.
Discrimination Under the Fair Housing Act
The federal Fair Housing Act prohibits landlords from evicting tenants based on race, color, religion, sex, national origin, familial status, or disability.2Office of the Law Revision Counsel. 42 USC 3604 – Discrimination in the Sale or Rental of Housing and Other Prohibited Practices The Act separately makes it illegal to threaten, coerce, or interfere with anyone exercising their fair housing rights.3Office of the Law Revision Counsel. 42 USC 3617 – Interference, Coercion, or Intimidation If a landlord targets you for eviction because of a protected characteristic while letting similarly situated tenants stay, that is a defense and potentially a separate damages claim.
Proving discrimination usually requires a pattern rather than a single incident. Helpful evidence includes a landlord who evicts tenants of one race but not another for the same lease violations, who makes discriminatory remarks in communications, or who begins eviction proceedings shortly after learning about a disability or the arrival of children. Many states and cities add protections beyond the federal list, covering source of income, sexual orientation, gender identity, or immigration status. A successful discrimination defense can stop the eviction and expose the landlord to significant financial liability.
Federal Protections for Servicemembers and Domestic Violence Survivors
Servicemembers Civil Relief Act
Active-duty military members and their dependents receive special eviction protections under the Servicemembers Civil Relief Act. A landlord cannot evict a servicemember from a primary residence without first obtaining a court order, provided the monthly rent falls below a threshold adjusted annually for housing-cost inflation.4Office of the Law Revision Counsel. 50 USC 3951 – Evictions and Distress The base amount is $2,400 set in 2003, adjusted upward each year since based on the housing CPI, with the Department of Defense publishing the current figure in the Federal Register annually. If the servicemember’s ability to pay rent has been materially affected by military service, the court must stay the eviction at least 90 days or adjust the lease obligation to balance both parties’ interests. A landlord who knowingly evicts a protected servicemember without a court order faces criminal penalties including fines and up to one year of imprisonment.
Violence Against Women Act
The Violence Against Women Act protects tenants in federally assisted housing from being evicted because they are victims of domestic violence, dating violence, sexual assault, or stalking.5Office of the Law Revision Counsel. 34 USC 12491 – Housing Protections for Victims of Domestic Violence, Dating Violence, Sexual Assault, and Stalking Under VAWA, an incident of abuse cannot be treated as a serious lease violation by the survivor or as good cause for termination. A landlord cannot evict you because a domestic violence incident resulted in police calls or property damage caused by the abuser. Housing providers can also bifurcate the lease to remove the abuser while allowing the survivor to remain. VAWA’s housing protections apply to public housing, Section 8 voucher programs, and other covered federal housing programs.
Waiver by Acceptance of Rent
When a landlord accepts rent after serving an eviction notice or after filing suit, they may have waived the right to proceed on that notice. Taking the money signals a willingness to continue the tenancy, which contradicts the claim that you need to leave. In jurisdictions that treat acceptance as a waiver, the landlord has to start over with a new notice reflecting any updated balance.
The rules vary sharply. Some jurisdictions treat any post-notice rent acceptance as an automatic waiver. Others allow landlords to accept payment while preserving the right to evict, provided they include a written reservation of rights. Partial payments add another wrinkle: cashing a partial check without a written agreement about the balance can invalidate the original notice. The best evidence here is bank records or receipts showing exactly when the landlord accepted money in relation to when they served the notice or filed the case.
Illegal Lockouts and Self-Help Eviction
Every state prohibits some form of self-help eviction, where a landlord tries to force you out without going through the courts. Changing the locks, shutting off utilities, removing your belongings, boarding up windows, or deliberately making the unit unbearable through noise or odor all qualify. If your landlord has done any of these things, you have a defense to any eviction they later file, because they have already violated the legal process they are now trying to use.
Beyond the defense, an illegal lockout often supports a counterclaim for damages. Many states let tenants recover multiple times their actual damages, the cost of temporary housing, and in some cases attorney fees. Document everything immediately: photograph the changed locks, save texts and emails, get a police report if possible, and keep receipts for any hotel or temporary housing costs.
Building Your Evidence for Court
A defense that exists only in your head will not help you. Every affirmative defense lives or dies on documentation, and the time to gather it is the moment the dispute begins.
For habitability defenses, the strongest evidence includes written repair requests (emails beat verbal complaints because they are timestamped), photographs showing the condition and when they were taken, and inspection reports from the local building or health department. An official inspection creates a third-party record that carries real weight. If you need an inspector to testify, you will likely need to subpoena them through the court clerk; the report alone may not be enough without someone from the agency to explain how the inspection was conducted.
For retaliation defenses, build a timeline. Save every communication with the landlord, note the date you filed any agency complaint, and keep copies of the agency’s response. The closer in time the eviction notice falls to the protected activity, the stronger the case.
For procedural defenses, preserve the original notice exactly as you received it. Note the date and method of delivery. If the notice was taped to your door rather than handed to you, photograph it in place before removing it. If the amount is wrong, gather your lease and payment records showing the correct figure.
Across every defense, maintain clear bank statements or rent receipts showing your complete payment history. Courts respond well to organized evidence. A folder with each document labeled and connected to a specific defense signals credibility before you say a word.
Counterclaims: Going on Offense
In many jurisdictions, you can do more than defend. You can file a counterclaim seeking money damages from the landlord in the same case. Common counterclaims include excess rent paid on a unit with habitability problems, the cost of repairs you made yourself, damages from an illegal lockout, and wrongful withholding of a security deposit. Some states allow punitive damages when the landlord’s conduct was deliberate or flagrant.
A counterclaim changes the pressure in the case. A landlord expecting a quick possession judgment now faces potential financial liability, which sometimes motivates settlement. The deadline for filing a counterclaim is typically at or before your first court appearance, so raise it early. Even if the counterclaim does not prevent eviction, a money judgment in your favor can offset what you owe.
What an Eviction Record Means Long-Term
An eviction filing can appear on tenant screening reports for up to seven years, even if you won the case or it was dismissed.6Consumer Financial Protection Bureau. How Long Can Information, Like Eviction Actions and Lawsuits, Stay on My Tenant Screening Record Under federal law, consumer reporting agencies can include civil lawsuits and judgments on reports for seven years from the date of entry or until the statute of limitations expires, whichever is longer.7Office of the Law Revision Counsel. 15 USC 1681c – Requirements Relating to Information Contained in Consumer Reports If the debt was later discharged in bankruptcy, the record can linger for up to ten years.
A growing number of states allow tenants to seal eviction records under certain conditions. Some seal records automatically when the case is dismissed or resolved in the tenant’s favor. Others seal records after a set period, often three years. Where sealing is not automatic, you may be able to file a motion asking the court to seal or redact your name from the public record. Eligibility rules and procedures vary, so check your local court’s process.
This long-term impact matters when deciding whether to fight or negotiate. Some tenants work out a voluntary departure in exchange for the landlord dismissing the case, which can keep the filing off screening reports entirely. If you have a strong defense but uncertain prospects at trial, a negotiated dismissal sometimes protects your housing future better than a courtroom gamble.