In New York City, a landlord cannot lock you out by changing the locks. If you have lived in the unit for 30 consecutive days or more, or you entered under a lease or rental agreement, the only lawful way to remove you is a court proceeding ending in a warrant of eviction executed by a city marshal. Changing the cylinder, plugging the keyway, or taking the door off is an unlawful eviction under the New York City Administrative Code - and you can ask to be restored to the apartment.

Only a Marshal With a Court Order Can Put Someone Out

This is the part that surprises people on both sides of the dispute. A landlord who is owed four months of rent still cannot change the locks. A roommate situation that has gone sour, a lease that expired last year, a handshake arrangement with no paperwork at all - none of it converts self-help into a legal remedy in New York City.

The lawful path runs through Housing Court: the owner brings a proceeding, the occupant gets notice and a chance to answer, and if the owner wins, the court issues a warrant of eviction that a New York City marshal executes after the required notice. No marshal, no court order, no lawful eviction - and a landlord, managing agent, super, or locksmith acting on their instructions has no authority to shortcut it.

New York City Administrative Code section 26-521, the unlawful eviction law, spells out what is prohibited: using or threatening force against the occupant, removing their possessions, removing the entrance door, removing or changing the lock or plugging the cylinder, and cutting off essential services such as heat, water, gas, or electricity to drive someone out. State law also makes unlawful eviction of a lawful occupant a crime. This is not only a civil dispute between a tenant and an owner - it carries criminal exposure for the person who does it.

Who Is Protected: The 30-Day Rule

The protection is broader than most people assume, and it does not depend on having a signed lease. Under the city's unlawful eviction law, you are covered if any of the following is true:

  • You have occupied the dwelling unit for 30 consecutive days or more. This is the catch-all that covers roommates, family members, long-term guests who became residents, and people whose lease ran out but who never left.
  • You entered the unit under a lease or rental agreement - written or otherwise - and have been living there, even if you have been there less than 30 days.
  • You are a rent-controlled or rent-stabilized tenant, with the additional protections that status carries.

Whether rent is current, whether your name is on the lease, and whether the owner thinks you are a problem are separate questions - argued in court, not settled with a drill and a new cylinder. The practical consequence: most New Yorkers locked out by a landlord, a head tenant, or a relative are protected and do not realize it.

This article is general information, not legal advice. For advice about your own situation, speak with a housing attorney or a tenant legal services provider.

Hand holding a set of apartment keys in an open doorway

What to Do in the First Hour

You are standing in a hallway, your key does not fit, and nobody is answering the buzzer. Work through this in order.

  • Confirm it is actually a lock change, not a lock failure. A key that will not enter the keyway at all usually means a new cylinder. A key that enters but will not turn can be a worn or seized lock - a different problem entirely, covered in why a key will not turn. Look for fresh scratches around the cylinder, shiny new screws, or a cylinder finish that does not match the rest of the hardware.
  • Photograph everything before anything changes. The door, the new cylinder, any notice taped to it, the hallway, and the time stamp on your phone. If your belongings are visible through a window or have been moved into a hallway, photograph that too.
  • Call 911 and report an illegal lockout. Say those words. Unlawful eviction is a police matter in New York City, and officers can respond. Be ready to show proof that you live there.
  • Call 311 as well. The city routes tenant-harassment and illegal-lockout calls to the agencies that handle them, and the call itself creates a record with a date on it.
  • Write to the landlord or managing agent in a medium that leaves a trail. Text or email beats a phone call. Keep it short and factual: the locks were changed on this date, you live there, you are asking for keys and access restored today.
  • Do not break in, and do not damage the door. You are the one with the stronger position. Forcing the door hands the other side a different argument and can leave you paying for a door frame.

The Proof of Residency That Actually Helps

Everything downstream - the police response, a Housing Court petition, a locksmith deciding whether they can work on your door - turns on whether you can show the unit is yours. The documents that carry weight are ordinary ones:

  • Government ID showing the address, or ID plus a lease, rent receipts, money-order stubs, or bank records of rent payments.
  • Mail addressed to you at the unit - utility bills, bank statements, government correspondence. Several pieces across several months beat one envelope.
  • Anything that fixes dates: texts with the landlord, delivery confirmations, a building fob log, or a statement from a neighbour or the super.

If your documents are inside the apartment - which is the usual cruelty of a lockout - banks, employers, and government agencies can reissue or email copies, and digital copies count. Our guide to what ID a locksmith needs for an apartment lockout covers the same evidence from the locksmith's side of the door.

Getting Back In: Police, Housing Court, and Where a Locksmith Fits

There are two routes back into the unit, and they are not alternatives so much as a sequence.

The police route is the fast one. Officers who are satisfied that you live in the apartment and that no court-ordered eviction took place can direct the landlord to restore your access on the spot. Responses vary by precinct and by how clear the evidence is, so bring the documents and stay calm and factual. If officers conclude it is a civil matter and decline to act, ask for the complaint or incident number before they leave - that record matters later.

The court route is the durable one. New York City Housing Court hears illegal lockout proceedings, in which an occupant put out without legal process asks to be restored to possession. These cases move quickly relative to ordinary litigation, and free or low-cost legal help is available to many New Yorkers.

A locksmith is part of this only in specific circumstances. If the police or a court have directed that you be restored to the unit, or the landlord agrees to give you access back and the cylinder needs to be opened or changed, a licensed locksmith does that work. What a locksmith cannot do is decide a housing dispute at the door.

Need the Locks Opened or Changed After a Lockout Is Resolved?

We work across Brooklyn, Manhattan, Queens, the Bronx, and Staten Island, 24 hours a day. Bring proof of residency, or have the owner or managing agent authorise the work, and we will handle the cylinder properly.

What a Legitimate Locksmith Will and Will Not Do

Licensed locksmiths in New York City work under a straightforward rule: open or change a lock only for someone with a demonstrable right to that door. In practice that means:

  • We check who you are before we touch the lock. ID and proof of residency for an occupant; proof of ownership or management authority, plus confirmation that the unit is vacant or that a marshal has executed a warrant, for an owner.
  • We decline lockout work on an occupied apartment. A request to change the cylinder on a unit where somebody is living, without a marshal's eviction, is a request to take part in an unlawful eviction. The answer is no, and a locksmith who says yes is a problem for the landlord too.
  • We carry a licence and will show it. Locksmiths operating in New York City hold a Department of Consumer and Worker Protection licence - ours is #1362785-DCA. How to verify a locksmith's licence explains how to check anyone's, including ours.

If a locksmith offers to open an occupied apartment for a landlord with no questions asked, that tells you what else they are willing to do. The same pattern shows up in the locksmith scams that operate in NYC.

When a Landlord Can Legally Change the Locks

The law is not a blanket prohibition, and knowing the exceptions keeps this honest:

  • After a lawful eviction. Once a marshal has executed a warrant of eviction and legal possession has been returned to the owner, the locks are changed as a matter of course.
  • On a genuinely vacant unit. When a tenant has moved out and surrendered the apartment, rekeying between tenancies is normal practice - and it is exactly what an incoming tenant should want, as the move-in lock checklist covers.
  • With the occupant's agreement, or at the occupant's request - after lost keys, a break-in, or a household split, for instance.
  • On building entrance and common-area doors, where a building-wide rekey or an entry-system upgrade is maintenance - provided residents are given working keys or credentials. Replacing a building lock and then not issuing keys to an occupant is the same lockout by another route.

Co-op and condo buildings add a layer of house rules on top of all this, and those rules govern things like whether the managing agent must hold a key. Changing locks in a co-op versus a condo sets out how that works.

If You Are the Landlord Reading This

Self-help lockouts are the most expensive way to deal with an unwanted occupant in New York City: criminal and civil exposure, a likely order restoring the occupant to the apartment, and the court proceeding you were trying to avoid still waiting for you. Where lock work is legitimate - turnover between tenants, a building rekey, key control across a portfolio - that is ordinary locksmith work, covered in master key systems for NYC buildings and who pays for a locksmith.

Where to Get Help in New York City

Call 911 to report an illegal lockout in progress and 311 for tenant help, harassment complaints, and referrals to the responsible city agencies. Illegal lockout proceedings are filed in New York City Housing Court, and every borough has a help centre for people without a lawyer. The city also funds free and low-cost tenant representation; 311 and the Housing Court help centres will point you to the provider covering your area.

Common Questions About Landlord Lockouts in NYC

Is it legal for a landlord to change the locks in New York City?

No, not on an occupied unit. If you have lived there 30 consecutive days or more, or you entered under a lease or rental agreement, the only lawful way to remove you is a court proceeding ending in a warrant of eviction executed by a city marshal. Changing the cylinder, plugging the keyway, or removing the door is an unlawful eviction under the New York City Administrative Code.

What if I do not have a lease or I am behind on rent?

The protection still applies. The 30-day rule covers occupants with no written lease at all, including roommates, family members, and people whose lease expired. Unpaid rent is a reason to bring a case in Housing Court; it is not permission to change the locks. Those arguments get decided by a judge, not at the door.

Will the police make my landlord let me back in?

Often, yes. Report it as an illegal lockout rather than a dispute, and bring proof that you live there - ID with the address, a lease, rent receipts, or mail. Officers satisfied that no court-ordered eviction took place can direct the landlord to restore access. If they treat it as a civil matter, ask for the incident number and take it to Housing Court.

Can I just hire a locksmith to let me back into my own apartment?

A licensed locksmith can open a door for someone who shows a right to be there, but a lockout dispute is not settled at the door. We ask for ID and proof of residency before any work, and we will not open or change a lock where the right of entry is contested. The cleaner path is police or Housing Court first, locksmith second. See what ID is needed for an apartment lockout.

My belongings are still inside. What happens to them?

Removing an occupant's possessions is itself listed as unlawful eviction conduct in the city's law, so the property should not have been touched. Photograph what you can see, note what is missing, and raise it in the same police report and court filing as the lockout. Get any promise to return items in writing.

Can my landlord change the building's front door lock without giving me a key?

A building can rekey entrance doors or upgrade to a fob or keypad system as ordinary maintenance, but residents have to be given working keys or credentials. Changing a building lock and then withholding access from one occupant is a lockout by another route. Ask the managing agent in writing, and keep the message. If you need help once access is sorted out, call (718) 412-1332.

Related Resources