Changing the locks is usually the first thing people want to do when a marriage or a long relationship ends. In New York it is also one of the easiest things to get wrong. The question is not whether you can afford a lock change, it is whether the other person still has a legal right to live in the home. If they do, changing the locks can be treated as an unlawful eviction, and a court can order you to let them back in.

Here is the short version. If you are the only person with a legal right to occupy the home, you can change the locks whenever you like. If the other party still has a right to occupy it, you generally need a court order granting you exclusive occupancy, or an order of protection that excludes them from the residence, before the locks come off. Whose name is on the lease or the deed matters, but it is not the whole answer.

The rule that actually decides it: right to occupy

New York protects occupants of a dwelling, not just people named on paperwork. Someone who has been living in a home as their residence has a legal interest in staying there, and removing them by changing the locks, taking the door off, or shutting off services is the kind of self-help that the law treats as unlawful eviction rather than a private matter.

That is why the three questions a locksmith, and later a judge, will care about are these. Does the other person currently live there as their residence? Is there a court order that changes their right to be there? And do you yourself have authority over the home, as owner, as the named tenant, or by order of the court?

Being the only name on the lease helps, but a spouse who has been living in the apartment is not a stranger to it. Equally, being married does not automatically give someone the right to stay in a residence they left years ago. It is fact-specific, which is exactly why this is an attorney question rather than a locksmith question.

We are locksmiths, not lawyers, and nothing here is legal advice. What we can tell you is how the practical side works, and what we need to see before we touch your door.

A set of apartment keys resting on a table beside a closed front door

When you can change the locks right away

There are common situations where a lock change is straightforward.

You own or rent the home alone and the other person never lived there. A partner who stayed over, kept a drawer of clothes and held a spare key is not an occupant of the residence in the way a co-tenant is. Taking your key back and rekeying the cylinder is ordinary housekeeping.

They have already moved out and established a residence elsewhere. Once someone has genuinely left, taken their belongings and is living somewhere else, the practical risk drops sharply. Documenting the move-out date and the forwarding address is worth doing.

A court has given you exclusive occupancy. In a divorce or family offense proceeding, a judge can award one party exclusive use of the marital residence, or issue an order of protection that directs the other party to stay away from the home. That order is the authority that lets you secure the door.

You are the landlord of a unit that is lawfully vacant. Different situation, different rules, and covered in our guide to illegal lockouts in NYC.

When changing the locks can backfire

If the other party still lives there and there is no order excluding them, a lock change can be undone fast and expensively. The person locked out can go to court and ask to be restored to possession, and judges can and do grant that. You can also hand the other side a damaging fact at a moment when a court is forming an impression of both parties.

It is also worth thinking a step ahead. Doors get forced, windows get used, and a contested lockout tends to escalate rather than settle. A second lock on the door is not a substitute for an order from a judge.

Two specific traps come up repeatedly. The first is changing the locks while the other person is temporarily away, on a work trip or staying with family, and treating that absence as a move-out. The second is a verbal agreement that they will not come back, with nothing in writing. Neither holds up well.

What a locksmith needs to see

Any licensed NYC locksmith should verify authority before changing a lock. We do, every time, and you should be wary of one who does not. For a residential lock change we ask for government photo identification, and for something connecting you to the address, such as a lease naming you as tenant, a deed or mortgage statement, a recent utility bill, or mail at the address.

If the situation involves a court order, bring the order itself rather than a description of it. An order of protection that excludes the other party from the residence, or a decision granting exclusive occupancy, is the document that resolves the question on the doorstep.

If you cannot produce any of that, we are not the right next call. A matrimonial or family law attorney is.

Rekey or replace, and what else needs changing

For most NYC apartment doors a rekey is the right answer. The cylinder is re-pinned to a new key, the old keys stop working, and the hardware stays as it is. It is faster and cheaper than replacing a lock that is working perfectly well. Replacement makes sense when the hardware is old or damaged, when you want a higher grade of lock, or when you are moving to a restricted keyway so copies cannot be cut casually. We compare the two in detail in rekeying versus replacing your locks.

The front door is only the start, though, and this is where separations differ from an ordinary lock change. Work through the whole list.

The apartment or house entry cylinder, and any second lock, such as a jimmy-proof rim lock on an older NYC door. The mailbox lock, which is easy to forget and holds financial mail. Building keys and fobs, which usually have to be reported to management rather than changed by you. A garage or parking entry remote. Window gate locks. A storage cage or bike room padlock. A safe combination. Spare keys with a doorman, a neighbor, or in a lockbox. Vehicle keys, if a car is in your name alone.

Locksmith re-pinning an apartment door lock cylinder during a rekey

Digital access is the part people forget

A metal key is now the smaller half of the problem. If you have a smart lock, the other party may still hold an app account, a stored code, or a shared guest credential that works even after a mechanical rekey. Remove their user account, delete every code you did not personally issue, and change the account password and the recovery email. Do the same for a video doorbell, any camera in the home, and the building intercom app if your building uses one.

Also check who is listed as an authorized visitor with the doorman or the managing agent. That list often outlives the relationship.

Co-op, condo and rental differences in NYC

In a rental, the apartment entry lock is normally yours to change, but most leases require you to give management a key, and the building entrance and common areas are not yours to touch. In a co-op, the proprietary lease and the house rules often govern the door itself, and changing hardware rather than the cylinder can need board approval, which we cover in co-op board approval for door hardware changes. In a condo, you have more latitude inside your unit, but the building still controls common-area access. Our guide to changing locks in a co-op versus a condo goes through the differences.

If the other party is also on the lease or the deed, none of this changes the underlying question of right to occupy. It only tells you what the building will let you do once that question is settled.

A practical sequence

First, get advice on your own facts from an attorney, especially if the other party is still living there. Second, if you need one, get the order. Third, book the lock change and have it done in one visit so there is no gap where an old key still works. Fourth, go through the secondary list above, mailbox, building credentials, digital accounts, spares. Fifth, keep the paperwork: the invoice, the date, and the order you relied on. If the lockout is ever questioned, the record is what defends it.

And if your own keys are the problem, because you left in a hurry or they were taken, that is a straightforward lockout rather than a legal matter. See what to do when your apartment keys are lost.

Related reading

lock change and rekey service changing locks after a roommate moves out lock changes on an estate apartment contact us

Need a licensed NYC locksmith? Emergency Locksmith NY is licensed and insured, NYC DCA License #1362785-DCA, serving all five boroughs 24/7. Call (718) 412-1332.

Frequently Asked Questions

Not simply because you want to. If your spouse still has a legal right to occupy the home, changing the locks can be treated as an unlawful eviction and a court can order them restored to possession. Normally you need an order granting you exclusive occupancy, or an order of protection excluding them from the residence. Ask a matrimonial attorney about your own facts.

It matters, but it does not settle it. New York protects people who live in a dwelling as their residence, not only the people named on the paperwork. A spouse who has been living in the apartment has an interest in staying there even if the lease names only you.

Once the other person has genuinely moved out, taken their belongings and established a residence elsewhere, a lock change is far more straightforward. Document the move-out date and the forwarding address. A temporary absence, such as a work trip, is not a move-out.

Government photo identification plus something tying you to the address, such as a lease naming you as tenant, a deed or mortgage statement, a recent utility bill, or mail at the address. If a court order is the basis for the change, bring the order itself. A licensed locksmith who does not verify authority is a warning sign.

A rekey is usually enough. The cylinder is re-pinned so old keys stop working and the hardware stays in place. Replacement makes sense if the lock is old or damaged, if you want a higher grade of lock, or if you want a restricted keyway so copies cannot be cut casually.

The mailbox lock, building keys and fobs through management, garage or parking remotes, window gate locks, storage or bike room padlocks, safe combinations, spares held by a doorman or neighbor, and every digital credential: smart lock accounts and codes, video doorbell access, and the building visitor list.

Securing Your Home After a Separation?

Call (718) 412-1332 for a same-day rekey or lock change anywhere in the five boroughs. We verify authority before we work, we document the visit, and we can handle the mailbox lock and secondary hardware in the same call. Licensed (NYC DCA #1362785-DCA), insured, and available 24/7.

Call (718) 412-1332