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

โœ“
Working deadbolt on your apartment entry door, required by law
โœ“
Landlord cannot change your locks without notice and a new key
โœ“
Right to rekey your locks as long as you provide landlord a copy
โœ“
Broken locks must be repaired promptly as a code violation
โœ“
Illegal lockout entitles you to treble damages under RPL ยง853
โœ“
Working intercom or buzzer required in buildings over 8 units

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 Code
๐Ÿ”‘

A 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-2043
๐Ÿ‘

A 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 Code
๐Ÿšช

Self-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 Code
๐Ÿ“ž

Intercom 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 Code

What 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.

If You Are Being Illegally Locked Out Right Now

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.

๐Ÿšจ If Your Landlord Has Illegally Locked You Out: Do This in Order
1

Call 311

Report the illegal lockout. An official complaint creates a documented record and can trigger an inspection. Do this before anything else.

2

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.

3

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.

4

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.

5

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:

1

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.

2

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.

3

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.

4

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.

Documentation Tip

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.

Before You Rekey: What to Do
  • 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:

RequirementLocationStatus
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.

How to Report Building Security 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

In New York State, a landlord generally has the right to enter your apartment to make repairs or in a genuine emergency, but they are required to give reasonable advance notice, typically 24 hours, except in a true emergency. Entering without notice or permission outside of an emergency is a violation of your right to quiet enjoyment of the premises.
New York City does not currently have a law explicitly requiring landlords to rekey locks between tenants. However, landlords are required to provide a working lock, and many building management companies rekey as standard practice. If you move in and are concerned about prior tenant key access, you have the right to rekey at your own expense as long as you provide the landlord with a new key.
Your landlord or building owner is responsible for maintaining the lobby entrance lock under the NYC Housing Maintenance Code. Report it to building management in writing, file a 311 complaint, and follow up with HPD if it is not repaired within a reasonable timeframe.
NYC Housing Maintenance Code classifies maintenance violations by severity. A broken apartment entry lock is typically classified as an immediate hazard or Class B violation, which requires correction within 30 days. However, given that a broken entry lock is a direct security risk, you should demand repair immediately and not wait 30 days before escalating to HPD.
Rent withholding in New York is a legally complex remedy that requires following specific procedures to avoid being subject to eviction for nonpayment. Consult with a tenant attorney before withholding rent for any reason, including an unrepaired broken lock. HPD complaints and Housing Court HP proceedings are generally safer remedies for repair issues.
If your superintendent or landlord is unavailable, call a licensed locksmith. Keep your receipt. If the lockout was caused by a building maintenance failure such as a faulty lock, you may be entitled to reimbursement. Rainbow Locksmith NY provides 24 hour service across all five NYC boroughs at 212-879-5516.

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 Now

338 E 65th St, New York, NY 10065  |  Open 24 Hours