Locked Out by Your Landlord in NYC? What the Law Says. - Featured image
published
Published: May 20, 2026
Updated: May 20, 2026

Locked Out by Your Landlord in NYC? What the Law Says.

You come home from work. Your key does not turn. The cylinder is different. There is a sticky note from your landlord on the door saying you have been "moved out." Your stuff is still inside.

This is not a paperwork mistake. In New York City and across New York State, what just happened to you is a class A misdemeanor. The landlord cannot do it, the super cannot do it on the landlord's behalf, and the locksmith who changed the lock is exposed to liability too. The law calls this a self-help eviction or unlawful lockout, and it has been illegal here for decades.

The rules are clear, the remedies are real, and tenants win these cases routinely. Here is what to do tonight, and what the legal system actually does to landlords who try this.

What counts as an illegal lockout in NYC

Under NYC Administrative Code § 26-521 and New York Real Property Actions and Proceedings Law § 853, it is illegal for any person to evict or attempt to evict a tenant from a dwelling unit they have lawfully occupied for 30 consecutive days or longer, except through a court-issued warrant of eviction executed by a city marshal.

Forms of illegal eviction that count under the statute:

  • Changing or removing the lock so the tenant cannot enter
  • Threatening the tenant with force to make them leave
  • Removing the tenant's belongings without a marshal present
  • Cutting off heat, hot water, electricity, gas, or other essential services
  • Persistent harassment intended to drive the tenant out, including repeated visits, noise, or refusal to make necessary repairs

The 30-day threshold matters. Someone who has been in the apartment for 30+ days, paying rent or not, with or without a lease, gets the full protection of the eviction process. Lease expired? Still protected. Holdover tenant? Still protected. Roommate left on a lease in your name only? Still protected. The landlord still has to go to housing court, win a case, get a warrant, and have a marshal execute it.

The penalties under RPAPL § 853

This is the section landlords learn the hard way. New York Real Property Actions and Proceedings Law § 853 lets a tenant who was illegally locked out sue for treble damages (three times the actual harm) plus attorney's fees. Add the NYC Administrative Code on top:

  • Civil penalties: $1,000 to $10,000 per violation, payable to the city.
  • Additional penalty: up to $100 per day, capped at six months, until the tenant is restored to possession.
  • Criminal liability: class A misdemeanor, punishable by up to one year in jail per § 26-523.

In practice, the math is brutal for a landlord. A tenant locked out for 14 days, with $3,000 in damaged belongings and a missed week of work, is looking at: $9,000 treble property damages + $1,400 per-day additions + a base civil penalty of, say, $5,000 + attorney's fees + a criminal record for whoever physically did the lockout. Housing court judges in NYC have been issuing these awards on routine motion practice for years.

What to do in the first hour

This is the part most tenants get wrong. The instinct is to argue with the landlord or break back in. Do neither. Do this instead:

1. Call 311 and report an illegal lockout. They route the complaint to the right agency. As of 2026, the NYC Tenant Protection Cabinet handles these reports.

2. Call 911 if you are present. NYPD has had clear guidance from the New York State Attorney General since 2019 to treat self-help evictions as a criminal matter, not a civil dispute. Officers can restore you to possession on the spot if the lockout is fresh and you can prove tenancy (an old utility bill, mail addressed to you, a piece of furniture). If the responding officer says it is "civil," ask politely for a supervisor and reference the AG's enforcement guidance.

3. Document everything. Photos of the door, photos of any note, photos of the new lock cylinder. Voicemails or texts from the landlord. The name of the responding officer and the complaint number. This is your case file.

4. Do not break the door yourself. Even if it is your apartment, forcing entry creates a side issue (damage liability, possible police complications) that the landlord will use to muddy the case. Wait for the police, or get a locksmith to enter legally under their supervision.

5. Go to housing court the next business day. File an Order to Show Cause for restoration of possession in the borough's housing court. Filing is free. The court hears these as emergencies and typically restores possession within 24-72 hours.

What about the locksmith who changed the lock?

A locksmith who knowingly assists a landlord in an illegal lockout is exposed to civil liability and can lose their DCWP license. The standard inside the trade is: do not change a lock at a landlord's request without seeing either a marshal's warrant, a written affidavit that no tenant is in possession, or both. A reputable shop will walk away from the job rather than risk a license suspension and a personal lawsuit.

If you got locked out, the locksmith who did the work is in trouble too. The court can pull them into the case as a defendant.

Common landlord defenses (and why they fail)

You will hear all of these. None of them work in New York.

"You are not on the lease."

Does not matter. Thirty days of lawful occupancy triggers the protection. Sublet, roommate, family member, long-term guest, all protected.

"You owe rent."

Does not matter. Unpaid rent is what housing court is for. The landlord still has to go through the process. Self-help is never allowed for non-payment.

"I am the owner, I can do what I want with my property."

Not in New York. The right to possession transfers to the tenant for the duration of lawful occupancy. The owner has to use the courts to take it back.

"Your lease ended."

Does not matter. The tenant becomes a month-to-month holdover. The landlord still has to file a holdover case and get a warrant. Many holdover cases take months.

"I gave you 30 days' notice."

Does not matter. Notice is only the first step of a process that ends with a marshal, not a sticky note.

What we can do as a locksmith

SWIFTLOCKSMITH does not assist illegal lockouts. If a property owner calls us asking to change a lock on an occupied unit without a warrant, we say no.

For tenants locked out illegally:

  • We can respond to a 911-cleared restoration and let you back into your unit, with the police present, without damaging the door.
  • We can rekey the apartment on your authority once you are restored, so the landlord cannot repeat the lockout. Housing court orders frequently include language allowing this.
  • We document the work with timestamped photos and an invoice that your attorney can use in the case.

We have done this enough times to know the choreography: NYPD on scene, building super present, your photo ID, our DCWP license, the door opens, the cylinder comes out, the new cylinder goes in, you sleep at home tonight.

Call (844) 912-1908. If a landlord just changed your locks, you are minutes from getting back in legally.

Frequently Asked Questions

Can I just call a locksmith to let me in without involving the police? You can, but it weakens your case. A police complaint number turns the lockout from "he said, she said" into a documented criminal incident. It also makes the locksmith comfortable doing the work without worrying about who really lives there.

My building has a doorman who refused to let me up. Is that an illegal lockout? Yes. The doorman is acting as the landlord's agent. Refusing a lawful occupant access at the request of the landlord is the same legal violation as changing the cylinder.

What if I am only an occupant, not a leaseholder? You are still protected after 30 consecutive days of lawful occupancy under NYC Admin Code § 26-521. Sublet tenants, family members, and long-term guests all have standing.

Can the landlord lock me out if I am a squatter? "Squatter" is a complicated word in NYC. If you have been in the unit lawfully (i.e. the original tenant gave you keys and access) for 30+ days, you are not a squatter under the statute, you are a tenant. If you entered without permission, different rules apply. Get a lawyer, do not assume the worst case.

How long does the housing court process take? A restoration order on an emergency Order to Show Cause is often heard within 24-72 hours. The full eviction process the landlord should have used takes months.

Is the landlord liable if a contractor (not them personally) did the lockout? Yes. The contractor is liable too. Both can be named.

Need Expert Help?

If you have questions about any of the security solutions discussed in this article, our team is ready to provide expert guidance.

Call us at (844) 912-1908 for a free consultation or to schedule a service.