2026-10-29 · 4 min read · Orange County
How Long Can I Wait to Sell After I Move Out and Keep the Home Sale Tax Break?
The short answer
How long can you wait to sell your Orange County home after moving out and still keep the home sale tax break? Under the IRS rule, you need to have owned the home and lived in it as your main home for at least two of the five years before the sale. So if you lived there at least two years right before moving, you generally have up to three years after moving out to sell. California follows the same rule. A CPA can confirm your dates.
What Is the Home Sale Tax Break?
How long can I wait to sell after I move out of my Orange County home and keep the home sale tax break? First, it helps to know what the break is.
I'm Jeanette Nelson, a REALTOR® with Jeanette Nelson Real Estate, Keller Williams Realty, serving Orange County, Huntington Beach, Costa Mesa, Fountain Valley, and surrounding areas. Families relocating or leaving California often move before the house sells.
IRS Topic 701 explains that you may be able to exclude up to $250,000 of gain from the sale of your main home, or up to $500,000 if you're married and file a joint return. You generally can't use the exclusion if you excluded gain on another home in the two years before this sale.
How Does the Two-Out-of-Five-Year Rule Work?
IRS Topic 701 sets two tests, both measured within the five years ending on the date of sale:
- Ownership test. You owned the home for at least 24 months.
- Use test. You lived in it as your main home for at least 24 months. For the $500,000 amount, both spouses must meet the use test.
IRS Publication 523 adds that the 24 months don't have to be one block of time. They can fall anywhere in the five-year window, as long as they add up.
Here's how that plays out. If you lived in the home for at least two years and then moved out, the five-year window gives you up to about three years from your move-out date to close the sale and still meet the use test. Every day after that, your earliest qualifying months fall out of the window. Plan backward from your closing date, not your listing date, since escrow takes time.
What if I Can't Sell in Time?
If you miss the two-year mark, you may still qualify for a partial exclusion. Publication 523 says a partial exclusion may apply when the main reason for the sale was a change in workplace location, a health issue, or an unforeseeable event. Each has specific rules. For a work move, for example, the new job generally needs to be at least 50 miles farther from the home than the old one.
These rules are detailed, so talk with a CPA before you count on a partial exclusion.
What Happens if I Rent the Home After I Move Out?
Renting it out for a while doesn't automatically end the break, yet it changes the math in two ways:
- Depreciation. Publication 523 says you can't exclude the part of your gain equal to depreciation allowed or allowable for rental or business use after May 6, 1997. That part is taxed.
- Timing of the rental. Publication 523 explains that time after you last lived in the home, within the five-year window, isn't counted as "nonqualified use." Rental use before you moved back in can reduce your exclusion.
So renting after you move out can work, as long as you still close within the window. A CPA can run your numbers.
Does California Follow the Same Rule?
Yes. The California Franchise Tax Board (FTB) says California follows the federal rules, with the same $250,000 and $500,000 limits and the same ownership and use requirements.
Withholding is a separate question. The FTB's Form 593 instructions list exemptions from California real estate withholding, including when the home qualifies as your principal residence under the federal rule. See will California withhold tax when I sell my home and move out of state.
If you're leaving the state, these may help too: what happens to my Prop 13 tax base if I move out of California and how do I stop being a California resident for taxes.
This is general information, not tax advice. Please confirm your situation with a CPA.
Let's Start With a Conversation
If your family is relocating and the timing of the sale matters, I'd love to have a private planning conversation with your family about the steps and the calendar. Call or text me at 714.366.8575 | DRE: 01397168, or contact me.
Frequently asked questions
Do the two years have to be the most recent two years?
Do the two years have to be recent? No. Publication 523 says the 24 months can fall anywhere in the five years before the sale.
Is the deadline based on when I list or when I close?
Which date counts? The five-year window ends on the date of sale. Plan around your expected closing date, with extra time for escrow.
Can I rent my home out and still use the exclusion?
Can I rent it first? Often, if you still meet the two-out-of-five test at the sale. Depreciation after May 6, 1997 can't be excluded.
Does California tax the gain if I've moved out of state?
Will California tax it? California follows the federal exclusion. Gain above the limit may be taxable. A CPA can explain how your move affects your California return.