
Divorce or Separation in NYC: Can You Change the Locks?
Usually not, and the reason has nothing to do with the marriage. New York protects people by occupancy, not by whose name is on the lease or the deed, so a spouse or partner who lives in the home generally cannot be locked out of it. The mechanism that does work is a court order, and it is more available than most people realise.
That is the short version. What follows is what a locksmith can tell you about the lock. It is not legal advice, and a separation is exactly the situation where you want a matrimonial attorney rather than a tradesperson deciding what is lawful.
If you are in danger, this part comes first
If you are afraid of the person you live with, do not start with a locksmith. Start here.
- In an emergency, call 911.
- NYC 24-hour Domestic Violence Hotline: 1-800-621-HOPE (1-800-621-4673). TTY 1-866-604-5350. Safety planning, shelter, and referrals, at any hour.
- NYC Family Justice Centers offer free and confidential help to survivors of intimate partner violence, and you can walk in without an appointment. They are open Monday to Friday, 9:00am to 5:00pm, one in each borough, and calling 311 will connect you to the nearest.
A lock is a slow answer to an urgent problem. The people on those numbers do this every day and can move faster than we can.
The statute does not ask whose name is on anything
The controlling provision is Real Property Actions and Proceedings Law § 768, the same one that governs roommates and tenants. It names lock-changing explicitly as prohibited conduct:
removing, plugging or otherwise rendering the lock ... inoperable, or changing the lock ... without supplying the occupant with a key
And it defines who is protected as an:
occupant of a dwelling unit who has lawfully occupied the dwelling unit for thirty consecutive days or longer or who has entered into a lease
Thirty consecutive days of lawful occupancy, or a lease. Marriage is not mentioned, and neither is ownership, because the statute is not asking about the relationship. It is asking who has been living there.
A spouse who has lived in the home for a month or more is an occupant. So is an unmarried partner. So is a partner who never paid a cent of rent and is on no document anywhere. The consequences of getting this wrong are real: a violation is a class A misdemeanor, with a civil penalty of “not less than one thousand nor more than ten thousand dollars for each violation,” and a further penalty of up to one hundred dollars per day for failing to restore the person.
“But I own the apartment” and “but the lease is in my name”
These are the two sentences we hear most, and neither changes the answer.
A deed establishes who owns property. It does not, by itself, give the owner a self-help right to remove someone who lawfully lives there. That is the entire point of an unlawful eviction statute: it exists precisely to stop the person with the stronger paperwork from settling the question with a locksmith at 9am while the other person is at work.
Paying the rent, paying the mortgage, having found the apartment first, or having been the only earner are all facts a court may care about eventually. None of them is a defence to a lock change made before a court has said anything.
There is a further layer in a marriage, which is that the home may be marital property and both spouses may have rights in it regardless of the name on the deed. That question belongs to a matrimonial attorney, and it is one more reason not to pre-empt it.
The mechanism that actually works
Courts can and do exclude a person from a home. Family Court Act § 842 provides that an order of protection may require a party:
to stay away from the home, school, business or place of employment of any other party, the other spouse, the other parent, or the child
That is the lawful route to the outcome people are trying to reach by changing a cylinder. An order of protection, or an exclusive-occupancy order in a matrimonial proceeding, is a court deciding who may be in the home. Once such an order exists, changing the locks stops being self-help and becomes enforcement of a court’s decision.
This is not a slow, theoretical option. Orders of protection can be obtained quickly, and in urgent cases on a temporary basis the same day. The Family Justice Centers above will help you start that process at no cost.
What we do when someone calls us about this
We ask who else lives in the home, and whether there is a court order. Both questions, every time.
If the answer is that a partner or spouse still lives there and no order exists, we will say that we cannot help with a lock change yet, and why. That is not us adjudicating your relationship. It is that the exposure under § 768 lands on the customer, and a locksmith who quietly changes the cylinder without asking has handed a client a misdemeanor and a possible five-figure civil penalty to save an awkward conversation.
If you do have an order of protection or an order granting you exclusive occupancy, bring it. We will do the work. That is the situation the law contemplates, and it is a routine job.
Things worth doing that are not a lock change
Most people asking this question have a concrete worry underneath it, and several of those worries have answers that do not touch the front door.
Secure documents and valuables. Passports, birth certificates, jewellery, and papers can go into a safe, or out of the home entirely to a relative or a safe deposit box. A residential safe is lawful, immediate, and does not exclude anyone from anywhere. We fit and open them through safe services.
Change your digital credentials. Email, banking, cloud storage, phone accounts, and any shared account passwords. This is where most real harm happens in a separation, and it is free.
Deal with smart locks and shared codes carefully. If your door has a keypad or app-based lock, deleting the other person’s access is functionally a lock change and carries the same exposure. Treat a code the same way you would treat a cylinder.
Write things down. Dates, what was said, what was taken. Your attorney will want it and memory does not survive a stressful year.
Talk to an attorney before, not after. The order that makes a lock change lawful is usually available faster than people expect, and a lawful lock change a week from now is better than an unlawful one today.
When the lock change becomes straightforward
Two situations, and both are ordinary work.
A court order exists that excludes the other person from the home or grants you exclusive occupancy. Bring it.
They have genuinely moved out and surrendered the home. Same test as any departing occupant: they have gone, they are not coming back, and ideally you have that in writing with a date. At that point rekeying is sensible for the same reason it is after any co-resident leaves, which is that copies exist that nobody remembers making. We covered the general version of this in your roommate moved out, when can you change the locks.
| Job | NYC cost |
|---|---|
| Rekey, per cylinder | from $75 |
| Typical apartment, knob and deadbolt rekeyed | $150 – $185 |
| Lock installation or replacement, per opening | $125 – $450 |
Rekeying re-pins the cylinder you already have so every old key stops working, which is almost always the right job. Our lock change and rekeying service covers all five boroughs, with a firm price before anything starts.
If you are on the other side of this and have been locked out of your own home, that is its own situation with its own remedies, and we wrote it up in locked out by your landlord in NYC.
Frequently Asked Questions
Can I change the locks on my spouse during a divorce in New York?
Generally not without a court order. RPAPL § 768 protects any occupant who has lawfully occupied the home for thirty consecutive days or longer, or who has a lease, and it names changing the lock without supplying a key as prohibited conduct. Marriage and ownership are not exceptions written into the statute.
I own the apartment outright. Does that let me change the locks?
No, not by itself. Ownership determines title, not a self-help right to remove someone who lawfully lives in the home. A court decides who may occupy it. In a marriage the home may also be marital property, which is a question for a matrimonial attorney.
What if my partner was never on the lease and never paid rent?
Section 768 turns on lawful occupancy for thirty consecutive days, not on documents or payments. Someone who has lived there over a month is generally protected regardless of what they contributed.
How do I lawfully get them out of the home?
Through the courts. An order of protection under Family Court Act § 842 can direct a party to stay away from the home, and matrimonial proceedings can grant exclusive occupancy. Family Justice Centers help with this free of charge, and 311 will connect you to one.
They have moved out. Can I rekey now?
Once they have genuinely surrendered the home and are not returning, yes, and you should. Get the departure confirmed in writing with a date first. Rekeying from $75 per cylinder cancels every key in circulation, including copies you never knew about.
What about the smart lock code, is that different?
Not meaningfully. Deleting someone’s access code has the same practical effect as changing a cylinder, and the same statute is in play. Treat digital access exactly as you would treat a physical key.
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.