US-New YorkCan I break my lease early if my apartment has serious code violations?
Yes, you may legally break your lease early in New York if your apartment has serious, uncorrected housing code violations that make the unit unsafe or uninhabitable.
What the Law Says
New York law recognizes a 'warranty of habitability' that automatically applies to every residential lease — meaning landlords must keep apartments safe, sanitary, and in working order. If serious code violations exist and the landlord fails to fix them, tenants may have legal grounds to terminate the lease early.
Under New York law, every residential lease includes an implied warranty of habitability. This means your landlord must maintain the premises in a condition fit for human habitation — including working heat, hot water, electricity, structural safety, pest-free conditions, and compliance with the NYC Housing Maintenance Code (HMC) or NYS Multiple Dwelling Law.
If violations are 'substantial' — such as lack of heat in winter, no running water, exposed wiring, or severe mold — and the landlord does not correct them within a reasonable time after written notice, the warranty is breached. You may then withhold rent, repair and deduct, or in serious cases, vacate and terminate the lease without further liability.
The law requires landlords to respond to emergency violations (e.g., no heat below 55°F in winter, gas leaks, major plumbing failure) within 24–72 hours. For non-emergency but hazardous conditions (e.g., broken locks, roach infestation, peeling lead paint), they generally have up to 30 days to correct them after receiving proper written notice.
Statutory TextThere is implied in every written or oral lease or rental agreement for residential premises in this state a warranty of habitability, which warrants that the premises will be maintained in a condition fit for human habitation...
— NY Real Property Law § 235-b(1) — Warranty of habitability
Statutory TextEvery dwelling unit shall be maintained in a clean and sanitary condition... Every room used for sleeping purposes shall contain at least one window... Every dwelling unit shall have heat... during the heating season...
— NYC Housing Maintenance Code § 27-2019 — General requirements
What Courts Have Said
New York courts have consistently upheld tenants’ rights to break leases when landlords fail to meet the warranty of habitability — especially where health or safety is jeopardized.
Court affirmed tenant’s right to terminate lease after prolonged lack of heat and hot water, finding the unit uninhabitable under RP Law § 235-b.
Landmark ruling establishing that the warranty of habitability is non-waivable and applies to all leases — even those stating 'as is.'
What to Do
Document everything: Take dated photos/videos of violations and note dates, times, and conditions (e.g., 'no hot water since March 12').
Send a signed, certified letter (with return receipt) to your landlord listing each violation and demanding repairs within 7–14 days — cite NYC HMC sections if possible.
If violations persist after the deadline (or immediately for emergencies), contact 311 to file a formal complaint — request inspection and HP Action filing.
If the apartment remains uninhabitable after 30 days (or sooner for life-threatening issues), consult a lawyer or legal aid — you may send a 'lease termination notice' citing breach of warranty of habitability.
Keep copies of all correspondence, inspection reports, and rent receipts; do not stop paying rent unless advised by counsel or after court approval — wrongful rent withholding could risk eviction.
Sources
Not legal advice. This article is general information based on publicly available sources, written for educational purposes. Laws change and individual situations vary. Consult a licensed attorney in your jurisdiction before acting on anything you read here. Last reviewed: 2026-06-08.