Skip to content
Cross-Border Living

Selling Your California Home Before Moving to Mexico: Timing, Taxes and the Right Sequence

When to sell, how the home sale exclusion and California withholding work, and the order that protects your proceeds.

By Lance Fulford6 min read

Victorian houses in front of the San Francisco skyline

If you own a home in San Francisco and are planning a move to Mexico, the order you do things in matters as much as the price you get. When you sell, whether you still live in the house at the time, and where you file taxes in that year all affect how much of the sale you keep. Most of the costly mistakes come from doing the right things in the wrong order.

This guide walks through the timing questions, the two tax rules every California seller should understand before moving abroad, and a practical sequence for selling here and buying in Puerto Vallarta.

The short answer

  • Selling your main home can be largely tax free. Federal law lets you exclude up to $250,000 of gain, or $500,000 for a married couple filing jointly, if you meet the ownership and use tests.
  • The clock starts when you move out. The tests look at the five years ending on the day you sell, so leaving for Mexico does not cost you the exclusion immediately, but waiting too long can.
  • Moving abroad does not end your U.S. filing. U.S. citizens and resident aliens report their worldwide income, wherever they live.
  • California may hold back part of the price at closing. Unless an exemption applies, escrow withholds 3 1/3% of the sales price as a prepayment of California income tax.

1. Know your tax-free window before you pick a moving date

Under Section 121 of the tax code, you can exclude up to $250,000 of gain from the sale of your main home, or up to $500,000 if you are married and file jointly. To qualify, you generally must have owned the home and lived in it as your main home for at least two years during the five-year period ending on the date of the sale. The two years do not have to be continuous.

That five-year look-back is what makes timing important for anyone relocating. If you have lived in the house for at least two years right up to the day you leave, you generally keep the exclusion for up to about three more years after moving out, because the two years of use still fall inside the five years before the sale. Wait longer and the use test can slip out of reach.

Two other details are worth knowing:

  • The once-every-two-years rule. You generally cannot use the exclusion if you already excluded gain on the sale of another home during the two years before this sale.
  • Exceptions exist. IRS Publication 523 covers partial exclusions and special situations. If your facts are unusual, that is where your CPA will start.

The practical takeaway: before you sign a lease in Mexico or set a moving date, work out the latest date you can sell and still meet the test, and plan the sale with that date in mind.

2. Understand California’s real estate withholding

When California property is sold, the state can require part of the sales price to be withheld at closing. The Franchise Tax Board describes real estate withholding as “a prepayment of income tax” due on the sale. The standard amount is 3 1/3% of the total sales price, and sellers can instead elect a withholding amount based on the gain.

The withholding applies whether you are a California resident or not, which matters if you have already moved by the time you close. Several exemptions are available, including:

  • Sales of your principal residence that meet the same two-of-five-year test described above.
  • Sales of $100,000 or less.

Exemptions are claimed on FTB Form 593, which you give to your escrow officer before closing. As an illustration of why it matters: on a $1,500,000 sale that does not qualify for an exemption, 3 1/3% withholding would hold back $50,000 of your proceeds until it is reconciled on your tax return. If you are counting on that money for a purchase in Mexico, plan for it.

3. Remember that the IRS still sees you in Mexico

Moving to Puerto Vallarta does not take you out of the U.S. tax system. The IRS states that federal law requires U.S. citizens and resident aliens to report their worldwide income, including income from outside the United States. A home sale in the year you move is reported the same way it would be if you had stayed.

If you will be a tax resident of Mexico by the time you sell, the sale may also matter there. That is a question for an adviser who works on both sides of the border, and it is worth asking before you set your moving date rather than after closing.

4. Decide: sell before you go, or after?

There is no single right answer, but there are clear trade-offs.

Sell before you moveSell after you move
Tax-free windowClearly inside the windowThe clock is running from your move-out date
PresentationYou can stage, show and manage repairs in personA vacant home can be staged professionally; you manage remotely
Cash for MexicoProceeds in hand before you buyYou may need to rent in Mexico first, or fund the purchase another way
DisruptionTwo moves are possible if you need a short rental between homesOne clean move; selling happens in the background

If you plan to rent the house out after you leave instead of selling, ask your CPA how the rental period affects the exclusion before you sign a tenant. Renting changes the numbers, and in San Francisco it also brings tenant protections that can make a later sale more complicated.

5. A practical sequence that works

  1. Get a pricing opinion early. Know what your home is likely to sell for, and what it would need, before you commit to dates. Lance offers a free, personal home value opinion for San Francisco owners.
  2. Sit down with a CPA. Confirm your gain, your exclusion, whether withholding will apply and what the sale means for the year you move.
  3. Set your sale window. Work backward from the latest date that keeps your exclusion, then add margin for the time it takes to prepare, market and close.
  4. Prepare and list. The San Francisco selling guide covers inspections, disclosures and pricing. If you would rather not take on repairs before a move, read about selling as-is.
  5. Rent in Mexico before you buy. Many buyers spend time in Puerto Vallarta before choosing a neighborhood. The guide to moving from San Francisco to Puerto Vallarta covers what to expect.
  6. Buy with the right structure. Foreign buyers near the coast typically hold property through a bank trust. Start with buying property in Puerto Vallarta as an American and budget for closing costs.

Frequently asked questions

Do I lose the home sale exclusion if I move to Mexico before selling?

Not immediately. The test looks at whether you owned and lived in the home for at least two years during the five years ending on the date of sale. If you lived there for two years right up to your move, you generally have up to about three years after moving out to sell and still qualify. Confirm your exact dates with a CPA.

Will California withhold tax from my sale if I have already moved?

It can. Real estate withholding applies to residents and nonresidents. Unless an exemption applies, such as a qualifying principal residence sale or a sale of $100,000 or less, escrow withholds 3 1/3% of the sales price or an elected amount based on the gain.

Do I still file U.S. taxes after moving to Puerto Vallarta?

Yes. U.S. citizens and resident aliens must report their worldwide income regardless of where they live. Speak with a tax adviser about how the move affects your situation in both countries.

Should I sell before buying in Puerto Vallarta?

Many people do, because it keeps the tax-free window simple and puts cash in hand before they buy. Others rent in Puerto Vallarta first and sell from Mexico. The right order depends on your exclusion window, your cash needs and how hands-on you want to be with the sale.

Planning a move from San Francisco to Mexico?

Lance sells homes in San Francisco and helps buyers in Puerto Vallarta, so he can help you plan both sides of the move. Send Lance a message, or learn more about his cross-border work.

General information only, not legal, tax or financial advice. Tax rules change and individual situations vary; speak with a CPA or tax attorney before you set a sale date. Last reviewed November 2026.

Sources: IRS Topic No. 701, Sale of your home; FTB Publication 1016, Real Estate Withholding Guidelines (rev. 02/2026); Franchise Tax Board, Real estate withholding; IRS Tax Tip 2023-36, Reporting foreign income and filing a tax return when living abroad. Accessed November 2026.

A question about your own situation?

Lance is glad to talk it through, with no obligation.

Get in touch
Cover of the Puerto Vallarta Buyer’s Guide by Lance Fulford

Free guide for cross-border buyers

The Puerto Vallarta Buyer’s Guide

Lance’s 16-page guide for U.S. and Canadian buyers: how ownership works, how a purchase comes together, and what to check before you commit.

  • How foreigners own coastal property through a fideicomiso
  • The buying process, from your brief to the keys
  • Insurance, financing and moving funds safely
  • Property types, neighborhoods and buyer checklists