Locks, keys and peepholes: NYC tenant rights
NYC tenants can add their own door lock but must give the landlord a key if asked. The locks, chain guard and peephole owners must supply, and illegal swaps.
7 min read · Updated
Yes, you can add your own lock to your NYC apartment door. New York's Multiple Dwelling Law § 51-c lets tenants in apartment buildings install an extra lock on the entrance door, as long as you give the landlord a duplicate key if they ask.
The landlord, for their part, must supply a working key lock, and in most apartment buildings a deadbolt, a chain door guard and a peephole. They cannot change your lock without handing you a new key. Below is what each rule says, who it covers, and what to do when something goes wrong.
At a glance
- Your own extra lock
- Allowed
- MDL § 51-c, max 3 inches in circumference
- Key to the landlord
- On request
- Refusing can be treated as a lease violation
- Fee for adding a lock
- Not allowed
- Lease clauses charging for it are void
- Owner must provide
- Key lock + peephole
- Plus deadbolt and chain guard in class A buildings (HMC §§ 27-2041, 27-2043)
- Lock changed, no key given
- Harassment / unlawful eviction
- HMC § 27-2004(a)(48)(f); RPAPL § 768
Your right to add your own lock (MDL § 51-c)
Multiple Dwelling Law § 51-c gives tenants in multiple dwellings (buildings with three or more apartments) these rights:
- You may install and maintain your own lock on the entrance door to your apartment. It is in addition to the lock or locks the owner provides.
- Size limit: the lock can be no more than three inches in circumference. In practice this covers a standard deadbolt or cylinder lock, not an oversized security plate.
- Duplicate key: you must give the landlord a duplicate key if they ask for one. The Attorney General's tenants guide warns that refusing can be treated as a violation of your tenancy.
- No extra charge: any lease clause that makes you pay additional rent, a fee or anything else for installing your lock is void and unenforceable.
The law does not apply to buildings run by a municipal housing authority (NYCHA), to units rented as hotel or motel rooms, or to college and school dormitories. NYCHA residents should follow NYCHA's own rules and lease.
What locks and hardware the owner must provide
The NYC Housing Maintenance Code sets a minimum for every apartment entrance door. A "class A multiple dwelling" is the ordinary permanent-residence apartment building, which is most NYC rentals.
| Item | Rule | Applies to |
|---|---|---|
| Key lock and at least one key | HMC § 27-2043(a) | Every dwelling unit |
| Heavy-duty latch set and heavy-duty deadbolt (key outside, thumb-turn inside) | HMC § 27-2043(a) | Class A multiple dwellings |
| Chain door guard allowing the door to open partway | HMC § 27-2043(b) | Class A multiple dwellings |
| Peephole that lets you see whoever is right outside | HMC § 27-2041; MDL § 51-a | Every dwelling, with narrow exceptions (see below) |
| Self-closing, self-locking building entrance doors | MDL § 50-a | Class A buildings built or converted after Jan 1, 1968; older ones if tenants in a majority of apartments request or consent in writing |
| Intercom that lets you talk to visitors and buzz the door open | MDL § 50-a | Those class A buildings with 8 or more apartments |
The peephole rule does not apply to hotels, apartment hotels, dormitories, or owner-occupied units in one- and two-family homes, and a tenant-occupied one- or two-family home doesn't need one if you can already see who is outside from inside.
Locks that are illegal
HPD's Tenants Guide says double-cylinder locks (locks that need a key to open from the inside) are dangerous and illegal, and so are window gates that need a key from inside. In a fire, hunting for a key can cost you your exit. HPD inspectors check for "door locks that require a key to exit" on every apartment inspection, and HPD's Owners Guide gives owners 24 hours to correct a double-cylinder lock violation. Don't install one yourself either: your added lock should open from the inside with a thumb-turn.
Keyless entry, fobs and apps
Many newer buildings use key fobs, keycards or phone apps. Under NYC Local Law 63 of 2021, an owner that uses a smart access system for the building, common areas or your apartment must give tenants a written data retention and privacy policy. HPD says the law also bars using the system's data to track your comings and goings in order to harass or evict you, or to track your relationship status and guests.
When the landlord changes your lock
An owner may replace a broken lock, but they must give everyone lawfully living in the apartment a key to the new one. Under the Housing Maintenance Code, removing your entrance door, plugging or disabling the lock, or changing the lock without supplying you a key is listed as tenant harassment. Under state law (RPAPL § 768), doing it to push out someone who has lived there 30 days or more, or has a lease, is an unlawful eviction: a class A misdemeanor with civil penalties of $1,000 to $10,000 per violation.
If you come home and your key doesn't work, go straight to our illegal lockout guide. Calling the police is the first step.
Common situations
| Situation | What the rules say |
|---|---|
| I want a second deadbolt. | Allowed under MDL § 51-c. Give the landlord a copy of the key if asked. No fee can be charged. |
| My lease says I can’t add locks. | A lease cannot charge you for the right, and § 51-c gives you the right regardless. Keep the landlord’s lock in place. |
| The landlord wants a key to my added lock. | You must provide a duplicate on request. They still need to follow notice rules before entering. |
| My peephole or chain is missing or broken. | The owner must provide and maintain both. Ask in writing, then file a 311 complaint. |
| My building’s front door doesn’t lock. | Report it to the owner and 311. HPD says broken locks and intercoms should be repaired immediately. |
| I got locked out by my own mistake. | Ask the super or managing agent. Your lease may say whether lockout service costs anything. |
Does a key mean the landlord can walk in?
No. Having a key is about emergencies and scheduled access. Outside an emergency like a gas or water leak, an owner must give advance written notice before coming in for inspections or repairs. See When can a landlord enter your apartment in NYC? for the notice periods. Repeated unannounced entry can itself be harassment.
How to get a lock, chain or peephole fixed
- 1
Ask the owner in writing
Text or email the super or managing agent with photos. Name the item (deadbolt, chain guard, peephole, entrance door) and ask for a repair date. - 2
File a complaint with 311
Call 311 or use 311 Online. The complaint goes to HPD, which can inspect and issue a violation. See our guide to filing an HPD complaint through 311. - 3
Let the inspector in
If the HPD inspector can’t get into your apartment, they leave a card asking you to call and schedule an appointment. Call promptly so the condition gets inspected. - 4
Check the building record
Look up the address on Roofy to see whether the violation was issued and whether it has been certified as corrected. - 5
Escalate if nothing happens
Tenants can bring an HP action in Housing Court to get an order to repair. Rent-stabilized tenants can also complain to NYS HCR.
Related: How to file an HPD complaint through 311, HP actions for repairs, and package theft in apartment buildings. To see a building's open violations, search it on Roofy's building lookup.
Independent re-check 2026-10-12. MDL § 51-c text (3-inch limit, duplicate key on request, extra-charge clauses void, housing authority/hotel/motel/dormitory exclusions); AG guide wording that refusing a duplicate key can be a violation of a substantial obligation of tenancy. HMC §§ 27-2041 and 27-2043 read in the nyc.gov HMC PDF (dated April 17, 2026). Fixed: chain guard was wrongly cited to MDL § 51-a (that section covers peepholes); KeyFacts now says deadbolt/chain are class A duties; MDL § 50-a scope clarified (class A, majority of apartments); inspector no-access step rewritten to match the HPD Tenants Guide flowchart; 24-hour double-cylinder correction attributed to the HPD Owners Guide. Harassment item HMC § 27-2004(a)(48)(f) and RPAPL § 768 penalties ($1,000–$10,000, class A misdemeanor) confirmed. Local Law 63 smart-access rules from the HPD Owners Guide.
Sources
- Multiple Dwelling Law § 51-c (tenant’s right to install a lock) · New York State Senate (accessed October 12, 2026)
- Multiple Dwelling Law § 50-a (entrance doors and intercoms) · New York State Senate (accessed October 12, 2026)
- Multiple Dwelling Law § 51-a (peepholes) · New York State Senate (accessed October 12, 2026)
- NYC Housing Maintenance Code (Admin. Code Title 27, Ch. 2), §§ 27-2004, 27-2041, 27-2043 · City of New York (accessed October 12, 2026)
- Residential Tenants’ Rights Guide · New York State Attorney General (accessed October 12, 2026)
- ABCs of Housing: Tenants Guide · NYC HPD (accessed October 12, 2026)
- ABCs of Housing: Owners Guide (Tenant Data Privacy Law) · NYC HPD (accessed October 12, 2026)
- Real Property Actions and Proceedings Law § 768 (unlawful eviction) · New York State Senate (accessed October 12, 2026)
General information, not legal, tax or financial advice. Rules change; confirm with the agency or a professional before you act.