New York City has some of the strongest tenant protection laws in the country, and a significant portion of those protections relate directly to locks and building security. Most tenants do not know these laws until they need them, which is usually at the worst possible moment. This guide gives you a plain-language overview of what NYC law actually requires when it comes to locks, what your landlord must provide, what they cannot do, and exactly what steps to take when something goes wrong.
Your Key Rights at a Glance
What NYC Law Requires Landlords to Provide
New York City's building security requirements are primarily governed by the NYC Administrative Code, the Multiple Dwelling Law, and the NYC Housing Maintenance Code. Together these create a clear set of obligations for every landlord and building owner.
Working Locks on All Entry Doors
Landlords must provide and maintain a working lock on every apartment entry door. A lock that sticks, does not fully engage, or cannot be operated with the provided key is a violation the landlord is legally obligated to repair.
NYC Housing Maintenance CodeA Deadbolt on Every Apartment Entry Door
Every apartment entry door in a multiple dwelling must be equipped with a deadbolt lock. The deadbolt must be operable by a key from the outside and a thumbturn from the inside. Builder-grade knob locks alone do not satisfy this requirement.
NYC Admin Code ยง27-2043A Peephole or Door Viewer
Apartment entry doors must have a peephole or door viewer installed so tenants can identify visitors before opening the door. If yours is missing or broken, this is a reportable violation.
NYC Administrative CodeSelf-Closing and Self-Locking Lobby Doors
Building entry doors must be equipped with self-closing mechanisms and locks that engage automatically. This applies to the main lobby entrance and all doors providing access from a public area to a common area of the building.
NYC Administrative CodeIntercom or Buzzer System
Buildings with more than eight units must have a functioning intercom or buzzer system connecting the building entrance to individual apartments. A broken intercom is a reportable Housing Maintenance Code violation.
NYC Administrative CodeWhat Your Landlord Cannot Do
The following actions by a landlord are illegal under New York City and New York State law. These are not gray areas.
-
โChange your locks without your knowledge or consent. A landlord cannot change the locks on your apartment without giving you notice and providing a new key. This applies even if you are behind on rent. Changing your locks to force you out is an illegal lockout.
-
โRemove your door or windows to force you to leave. An illegal lockout is not limited to lock changes. A landlord who removes your apartment door or windows to make the unit uninhabitable while you are still a tenant is committing an illegal lockout under New York State Real Property Law Section 853.
-
โShut off your utilities to force you to leave. Cutting off heat, hot water, electricity, or gas to pressure a tenant into leaving is illegal under the same provisions that prohibit illegal lockouts.
-
โRefuse to make necessary repairs to broken locks. If your lock is broken, damaged, or does not function properly, your landlord is legally required to fix it. Refusing to do so within a reasonable timeframe is a Housing Maintenance Code violation.
-
โEnter your apartment without reasonable notice. Except in a genuine emergency, a landlord must give reasonable advance notice, typically 24 hours, before entering your apartment. Entering without notice or permission violates your right to quiet enjoyment of the premises.
What Is an Illegal Lockout in NYC?
An illegal lockout occurs when a landlord uses self-help methods to remove a tenant from their home outside of a court-ordered eviction process. In New York City and New York State, self-help eviction is illegal regardless of the circumstances, including nonpayment of rent, lease violations, or expiration of the lease term.
Call 311 immediately to report it. Then contact a tenant attorney or the Legal Aid Society. Housing Court judges take illegal lockouts very seriously and can issue emergency orders restoring access within hours. You may also be entitled to treble damages under New York State Real Property Law Section 853.
Call 311
Report the illegal lockout. An official complaint creates a documented record and can trigger an inspection. Do this before anything else.
Call the Police
An illegal lockout is primarily a civil matter but police can be called to the scene. Their presence and any report filed creates an important record even if they cannot force entry.
Contact a Tenant Attorney or Legal Aid
The Legal Aid Society, Legal Services NYC, and the NYC Tenant Protection Cabinet provide free legal assistance. Housing Court can issue emergency orders restoring access within hours.
File an Emergency Application in Housing Court
File an Order to Show Cause in NYC Housing Court on an emergency basis. If an illegal lockout is found, the judge can order immediate restoration of access and award up to treble damages.
Document Everything
Photograph the changed lock, removed door, or whatever form the lockout takes. Note the date, time, and witnesses. Keep all correspondence. This documentation is critical for any legal proceeding.
What to Do If Your Landlord Refuses to Fix a Broken Lock
A broken or malfunctioning lock is a Housing Maintenance Code violation and your landlord is legally required to repair it. Here is the escalation path if they refuse:
Put the Repair Request in Writing Do First
Send a written notice to your landlord or building management by email or certified mail. State the problem, the date noticed, and that you are requesting immediate repair. Keep a copy.
File a Complaint with HPD Free
File online at nyc.gov/hpd or call 311. An HPD inspector will visit the property. A confirmed violation triggers a correction notice and fines for noncompliance.
Pursue a Repair and Deduct Remedy Consult Attorney First
In some circumstances NYC tenants can arrange and pay for a repair themselves and deduct the cost from rent. This remedy has specific legal requirements and should only be pursued after consulting a tenant attorney.
File an HP Proceeding in Housing Court Last Resort
If HPD enforcement does not produce results, file an HP proceeding in NYC Housing Court seeking an order requiring the landlord to make the repair. Does not require an attorney, though legal assistance is strongly recommended.
Rainbow Locksmith NY provides dated work receipts that are useful documentation in any landlord dispute or HPD complaint. If you need a lock repaired or rekeyed, call us at 212-879-5516. We serve all five NYC boroughs 24 hours a day.
Your Right to Change or Rekey Your Locks
As a tenant, you have the right to rekey your apartment locks, but this right comes with a condition. Under the NYC Administrative Code, if you change or rekey your locks, you are required to provide your landlord with a copy of the new key. This ensures the landlord can access the unit in a genuine emergency such as a fire or gas leak.
- Check your lease for any lock modification clauses.
- Send a written notice to your landlord stating you are rekeying for security and will provide a copy of the new key.
- Proceed with the rekey and provide the landlord the new key promptly.
- Keep a copy of your notification letter and the locksmith receipt as documentation.
- Visit our Rekeying Services page for same-day service across all five boroughs.
NYC Building Lock Code Requirements
Beyond individual apartment locks, NYC building code sets requirements for security hardware throughout the entire building. Property owners, managers, and co-op and condo boards should be aware of the following:
| Requirement | Location | Status |
|---|---|---|
| Self-closing, self-locking entrance door | Lobby and all public-to-common area doors | Required |
| Deadbolt on apartment entry door | Every residential unit entry door | Required |
| Peephole or door viewer | Every residential unit entry door | Required |
| Intercom or buzzer system | Buildings with more than 8 units | Required |
| Stairwell reentry hardware | High-rise stairwell doors | Required |
| Panic hardware on fire egress doors | Certain building classifications | Required |
| ANSI Grade 2 or better cylinders | Apartment entry and common areas | Recommended |
Building Security Violations and How to Report Them
If your building has security issues beyond your individual apartment, such as broken lobby locks, missing entrance door hardware, or inoperable intercom systems, these are all reportable violations.
- Call 311 to report building-wide issues such as a broken lobby lock, entrance door that does not close, or non-functioning intercom.
- File with HPD online at nyc.gov/hpd for Housing Maintenance Code violations including locks, intercoms, and lobby door hardware.
- Contact your local Community Board for persistent issues that HPD has not resolved. They can escalate complaints and connect you with additional resources.
- Consult a tenant attorney if your building has a pattern of unaddressed security violations and you have suffered harm as a result.
Frequently Asked Questions
Need a Licensed NYC Locksmith?
Whether you need an emergency lockout service, a lock repaired after a landlord dispute, a rekey for a new apartment, or documented lock work for an HPD complaint, Rainbow Locksmith NY is here 24 hours a day.
Call 212-879-5516 Now338 E 65th St, New York, NY 10065 | Open 24 Hours