(844) 946-4743 Talk to Zarko

Can I change the locks on the family home during a California divorce?

A gray front door with a nickel deadbolt and lever handle on a stucco house, with a doormat and a potted succulent beside it.

Short answer: in California, neither spouse can usually keep the other out of the family home on their own. Family Code section 753 says neither spouse may be excluded from the other's dwelling, except under court orders the law allows. Title does not change that. A judge can order one spouse to leave, but only on a request to the court and, in a domestic violence case, only on a set showing. A lock change made without an order can create a legal problem of its own, so it is a question to raise with a family-law attorney first.

This guide is general information, not legal advice. It cannot say what a judge would do in your case.

If you feel unsafe, start here

Safety comes before any question about locks. In an emergency, call 911. The National Domestic Violence Hotline is 1-800-799-7233, any time. The California courts say a restraining order can order a person to "move out from a home that is shared with the protected person," and that a spouse or domestic partner can be protected. There is no court fee to ask. See the courts' guide to domestic violence restraining orders and our help page.

What does California law say about locking a spouse out?

The starting rule is Family Code section 753. Its operative words are that "neither spouse may be excluded from the other's dwelling." The exceptions are the orders a court can make under Family Code sections 2045, 2047 and 2049.

In plain words: while the case is open, both spouses usually keep the right to be in the home until a judge says otherwise. A new lock that only one spouse has a key to is a way of excluding the other. That is why many attorneys want to hear about it before it happens. For the wider question of who stays, see who stays in the house while a divorce is pending.

Does the name on the deed or the loan matter?

Not for this question. Section 6321, which lets a court exclude a party from the family home, applies "regardless of which party holds legal or equitable title or is the lessee." Title decides who owns the house. It does not by itself decide who may come and go while the case is open. A spouse who bought the house before the marriage, or whose name is alone on the loan, is in the same position on this point, as far as the statutes we read go. How ownership works is in community property and your house.

What do the divorce summons orders say about the house?

The summons carries standard orders that apply to both spouses once they are in effect. The version we read bars both spouses from transferring, encumbering, hiding or disposing of property without written consent or a court order, except for the usual course of business and the necessities of life (Family Code 2040). The text we read does not mention locks, keys or entry. So those orders do not answer the lock question either way. They do cover moving belongings out or selling them. A different version of section 2040 takes effect on 1 January 2027, and we have not read it. See what the summons says about your house.

How can one spouse legally be kept out?

Only a court can do it. The route depends on the facts.

SituationWhat the law saysWho decides
Abuse or threats of abuseA court can issue an order excluding a party from the home. Section 6321 asks for facts showing the spouse who stays has a right to possession, that the other spouse has assaulted or threatens to assault someone in the home, and that harm would otherwise happen.A judge, on a request to the court
Spouses disagree about the home, no abuseSection 753 allows exclusion only through the orders the law lists. How a judge would apply them to a request without abuse is a question for an attorney.A judge
Both spouses agreeA written agreement about who has keys, who stays and who pays is a common way to settle it.The spouses, usually with their attorneys or a mediator
  1. No orderNeither spouse may be excluded from the other's home
  2. A request to the courtA judge looks at the facts, not at who holds title
  3. An orderSays who may be in the home, for how long and on what terms

After a hearing, a court can make the same kind of exclusion order that it can make without notice. Section 6340 says so in subdivision (c). If there is a restraining order, it comes first, and any plan about the house has to fit around it.

What about locks when both spouses still live there?

Some couples add a lock to a bedroom or office, or rekey a shed or a garage. Whether that is a problem depends on facts we cannot judge here. Many spouses write down the rules instead: who has keys, which rooms are shared, and what happens to mail and visitors. See living in the same house while separated for what couples often put in writing.

What if one spouse already moved out?

The statute we read does not say that leaving ends a spouse's right to be in the home, and it does not say a lock change is allowed after a move. Whether the spouse who left can still enter, and when, is worth settling in writing or by an order, because each spouse may read the same facts differently. The spouse who stays may also be handling the mail and the bills. That has money consequences, covered in who pays the mortgage after separation.

How do locks come up when the house is for sale?

A sale adds keys, lockboxes and codes. A listing agent often needs a way into the home, and buyers' agents need access for showings. When there is a restraining order, the order controls who may have a code. Selling the house when there is a restraining order covers separate signings and lockbox plans. If both spouses still live there, selling while you still live in the house explains showings and boundaries. If the house sits empty, the insurer may need to know, as explained in homeowners insurance when a spouse moves out.

Common mistakes

  • Changing the locks before anyone has talked to an attorney.
  • Treating the name on the deed or the loan as the right to decide who may enter.
  • Giving a lockbox code or a key to a person who is ordered to stay away.
  • Leaving a home empty without telling the insurer.
  • Assuming the summons orders allow or forbid a lock change. The version we read does not mention locks.

Checklist before anyone changes a lock

What a real estate agent can and can't do here

A real estate agent can't tell you whether you may change a lock, keep a spouse out or ask for a move-out order. An agent can set up showings around a written plan, change lockbox codes with the permission of the people who control the home, and tell escrow about separate signings. An agent follows a court order and does not interpret it.

Ask a professional

  • Family-law attorney: whether you may change locks, what an order allows, and whether to ask the court for one.
  • Mediator: a written plan for keys, access and shared rooms.
  • Insurance agent: what the policy requires when someone moves out.
  • Local help: hotlines and legal aid on our help page, and terms such as ATRO in the glossary.