Do You Have to Buy Another House to Avoid Capital Gains Tax?
No. You do not have to buy another house to avoid capital gains tax when you sell your home. There is no 60-day window, no six-month clock, and no "buy up or pay up" rule in today's federal tax law.
I still hear this one at closing tables all the time, usually from a well-meaning parent or a coworker who sold a house years ago. It made sense once. It just hasn't been true since 1997. Here's what actually decides whether you owe tax when you sell, and where real deadlines still exist.
Where the "buy another house" myth came from
The myth comes from an old rule that really did exist. Before 1997, homeowners could defer the gain on a sale by rolling the money into a new primary home of equal or greater value within two years.
That rule pushed a whole generation of sellers to "buy up" fast, and agents and tax preparers repeated it for decades. The tax wasn't erased, just postponed, but for families moving up the ladder it felt the same.
The Taxpayer Relief Act of 1997 wiped that rule out. It replaced it with a test that looks backward at how you owned and lived in the home, not forward at what you buy next. If someone gives you advice built around a reinvestment deadline, they're working from a tax code that's nearly 30 years old.
The rule that actually matters: Section 121
Today, Section 121 of the tax code lets you exclude a big chunk of profit on the sale of your primary home, and you can do whatever you want with the money afterward.
|
Filing status |
Gain you can exclude |
|---|---|
|
Single |
Up to $250,000 |
|
Married filing jointly |
Up to $500,000 |
To qualify, you need to pass two tests within the five years before the sale:
- Ownership: you owned the home for at least two years.
- Use: you lived in it as your main home for at least two years.
Those two years don't have to be back to back. Lived in it a year, rented it out, then moved back in for another year? You can still add up to 24 months.
You can generally use the exclusion once every two years. And if a job change, health issue, or other unforeseen event forces a sale before you hit two years, you may still get a partial exclusion instead of losing it entirely.
Running the math on your own sale
Most sellers owe nothing, but you won't know until you run the numbers. The formula is simple: sale price minus adjusted basis equals your gain.
Your adjusted basis is what you paid plus the capital improvements you've made, like a new roof, a pool, an addition, or a kitchen remodel. Routine repairs and maintenance don't count.
Here's a Gilbert-style example for a married couple:
|
Item |
Amount |
|---|---|
|
Purchase price (2014) |
$310,000 |
|
Pool, roof, kitchen remodel |
$85,000 |
|
Adjusted basis |
$395,000 |
|
Sale price |
$640,000 |
|
Gain |
$245,000 |
|
Taxable after $500,000 exclusion |
$0 |
Tip: start digging up receipts for improvements now, before you list. Homeowners almost always underestimate what they've put into a house, which makes their gain look bigger than it really is.
A note for service members and veterans
If you're active duty, there's a rule built for you. Members of the uniformed services on qualified official extended duty can elect to suspend the five-year lookback for up to 10 years.
In plain English: if you bought in Gilbert, lived there two years, then got PCS'd to San Diego or overseas, you may still be able to sell and claim the full exclusion years later. A lot of military families don't know this and either sell in a rush or assume they've lost the break.
As a Navy veteran, I've been through the orders-in-hand scramble myself. If you're weighing whether to sell or rent out your home before a move, let's talk it through, and loop in a tax pro who knows the military rules.
Investors: this is where real deadlines still live
If the property you're selling is a rental or investment, Section 121 doesn't apply. That's where deadlines come back, through a 1031 exchange:
- 45 days from closing to identify replacement properties in writing.
- 180 days from closing to close on the replacement.
Miss either one and the whole gain becomes taxable. Line up a qualified intermediary before you close, not after.
Two more things to watch:
- Depreciation recapture. If you ever rented the home and took depreciation, that portion gets taxed even if the rest of the sale qualifies for the exclusion.
- Converted homes. A former primary residence that became a rental mixes both sets of rules. As an investor myself, I'd get a CPA involved before you list one of these.
What about Arizona state tax?
States don't all treat the exclusion the same way, so it's worth checking. Arizona's income tax starts from your federal adjusted gross income, so gain you exclude federally generally doesn't show up on your Arizona return either.
If you're relocating here from another state, or still own property in a place like California, that state's rules may differ. Confirm with a tax professional before you assume you're fully in the clear.
It all starts with the right list price
Every number above depends on one thing: what your home actually sells for. Price it too high and it sits; price it too low and you leave money on the table.
I'm a top-producing agent with Loyalty Home Group at Real Broker, and I'm also a Certified Residential Appraiser in Arizona. That appraiser background gives me insight into how homes are really valued that most agents simply don't have, and I use it to help my sellers price correctly from day one.
Thinking about selling, buying, or making a move after PCS orders? Call or text me at 480-588-2281 or email jhubbard@loyaltyhomegroup.com. Fellow veterans, I'd especially love to help.
This article is for general information only and isn't tax or legal advice. Tax rules change and every situation is different, so talk with a qualified CPA or tax advisor about your specific sale.
Jason Hubbard, Loyalty Home Group at Real Broker.
Categories
Recent Posts











