Call 702-605-0190
Selling Your Home Before You Retire: How the $250,000 and $500,000 Exclusion Really Works
Selling a Home

Selling Your Home Before You Retire: How the $250,000 and $500,000 Exclusion Really Works

Most home sellers owe no tax on their profit, but common retirement moves can change that. Here is how the $250,000 and $500,000 exclusion works and where sellers get caught.

K
Kris
October 22, 2026
6 min read 7 views

For many people approaching retirement, the family home is the largest asset they own, and selling it to downsize or relocate raises one question before any other: how much of the profit will go to taxes? For most sellers the answer is none, thanks to the home-sale exclusion in Section 121 of the tax code. But the rules have conditions, and some of the most common retirement moves, such as moving out before selling, renting the house for a while, or selling after a spouse dies, change the answer.

The Exclusion in Brief

When a qualifying main home sells for more than its adjusted cost, the IRS lets the seller exclude up to $250,000 of that gain from income, or up to $500,000 for a married couple filing jointly. To qualify, according to IRS Publication 523:

  • Ownership: the seller owned the home for at least 24 months during the five years before the sale.
  • Use: the seller lived in it as a main home for at least 24 months (730 days) in that same five-year window. The time doesn't have to be continuous.
  • Frequency: the seller hasn't used the exclusion on another home sale in the previous two years.

For the $500,000 limit, the couple files jointly, at least one spouse meets the ownership test, and both spouses meet the use test. If only one spouse lived in the home long enough, the limit generally drops to $250,000.

How the Gain Is Figured

The taxable gain isn't simply the sale price minus the purchase price. It's the amount realized, which is the sale price minus selling costs such as commissions and closing costs, minus the adjusted basis. Basis starts with the purchase price and certain purchase costs, then increases with capital improvements: projects that add value, extend the home's life or adapt it to new uses, such as a new roof, an addition or a remodeled kitchen. Routine repairs and maintenance, like painting a room or fixing a leak, generally don't count, although repair work done as part of a larger remodel can.

A fictional example shows how much this matters. A couple bought their home in 1998 for $220,000 and over the years added a garage, replaced the roof and remodeled the kitchen, for $90,000 in improvements. Their basis is about $310,000, plus qualifying purchase costs. They sell for $950,000 and pay $55,000 in selling costs, so the amount realized is $895,000. Their gain is about $585,000. After the $500,000 joint exclusion, roughly $85,000 is taxable. Without records of the improvements, the gain would look $90,000 larger.

The lesson for anyone who has lived in a home for decades: find the receipts, permits and contractor invoices for major improvements before listing.

What Happens to Gain Above the Limit

Any gain beyond the exclusion is a long-term capital gain if the home was owned more than a year. Federal long-term capital gains rates are 0%, 15% or 20%, depending on total taxable income. Higher-income sellers may also owe the 3.8% net investment income tax on the taxable portion. Excluded gain isn't subject to either.

A loss on the sale of a personal residence isn't deductible.

Retirement Moves That Change the Answer

Moving out before selling

The use test looks back five years from the sale date, not from the move. A seller who lived in the old home for at least two years right before moving out generally has up to three years after the move to sell and still meet the two-out-of-five test. Waiting longer than that can cost the entire exclusion.

Renting the old home for a while

Turning the old home into a rental before selling has two effects. Gain tied to periods of "nonqualified use" after 2008, such as years as a rental before the owner moved back in, generally can't be excluded, with exceptions for rental periods after the owner moves out within the five-year window. And any depreciation claimed, or allowed, for rental use after May 6, 1997 can't be excluded; it's taxed when the home sells.

Selling after a spouse's death

A surviving spouse who hasn't remarried can still use the $500,000 limit if the home sells within two years of the spouse's death, provided the other requirements are met. After that window, the limit generally drops to $250,000. Separately, inherited property and property held jointly at death may receive a stepped-up basis, which can shrink the gain. That's a question for a tax professional.

Selling a second home

The exclusion applies only to a main home. A vacation home or winter home doesn't qualify unless it becomes the main home and meets the tests on its own.

Selling before two years for a qualifying reason

A seller who doesn't meet the two-year tests may still get a partial exclusion if the sale is due to a work-related move (the new job is at least 50 miles farther from the home than the old one), a health-related move, or certain unforeseeable events. The exclusion is prorated by the time the tests were met.

State Taxes Follow the House

Moving to a state without an income tax before selling doesn't erase the old state's claim on the sale. States generally tax gains from real estate located within their borders, even when the seller has moved away. California, for example, treats gain on California real property as California-source income for nonresidents, according to the Franchise Tax Board's Publication 1100. A former Californian who moves to Nevada and then sells the California home can still owe California tax on gain above the exclusion.

The flip side: Nevada has no personal income tax, so gain on a home in Nevada isn't taxed by the state, though federal rules still apply.

A Short Checklist Before Listing

  1. Confirm the ownership and use dates against the five-year window, using the planned closing date.
  2. Gather records of the purchase price, purchase costs and every major improvement.
  3. Estimate the gain using realistic selling costs.
  4. Note any rental use, home-office depreciation or time away from the home.
  5. If moving states, ask how the old state will tax the sale.
  6. Have a tax professional review the numbers before signing a listing agreement.

For Sellers Relocating to Mesquite

Many buyers in Mesquite, Nevada are selling long-held homes in California, Utah, the Pacific Northwest or the Midwest to fund the move, and the timing of that sale affects both the exclusion and the tax bill. The guide to selling your old home when relocating to Mesquite walks through selling first, buying first and selling from a distance. Once in Nevada, the state's 3% cap on yearly property tax increases for a primary residence helps keep the new home's costs predictable; the property tax cap explainer covers how to claim it. Current listings are on the Mesquite homes for sale page, and Homes For Sale In Mesquite Nevada can help with the buying side.

Frequently asked questions

How much profit can I make on my home without paying taxes?

A single filer can exclude up to $250,000 of gain on the sale of a main home, and a married couple filing jointly can exclude up to $500,000, if they meet the IRS ownership and use tests and haven't used the exclusion in the previous two years.

What is the 2-out-of-5-year rule?

To qualify for the home-sale exclusion, the seller must have owned the home and lived in it as a main home for at least 24 months each during the five years before the sale. The months don't have to be continuous.

Can I still get the exclusion if I moved out before selling?

Often, yes. A seller who lived in the home for at least two years right before moving out generally has up to three years after the move to sell and still meet the two-out-of-five-year test.

What are the capital gains tax rates on a home sale?

Gain above the exclusion on a home owned more than a year is taxed at federal long-term capital gains rates of 0%, 15% or 20%, depending on taxable income. Higher-income sellers may also owe the 3.8% net investment income tax on the taxable portion.

Can a widow or widower use the $500,000 exclusion?

Yes, if the surviving spouse hasn't remarried and sells the home within two years of the spouse's death, and the other requirements are met. After that, the limit generally drops to $250,000.

If I move to Nevada before selling my California home, do I avoid California tax?

No. California treats gain on California real property as California-source income even for nonresidents, so gain above the federal exclusion can still be taxed by California. Nevada has no personal income tax, but that only helps with income Nevada would otherwise tax.

Homes for sale in Mesquite, Nevada

Thinking about a move to Mesquite?

Browse every active listing — Sun City 55+, golf-course homes, new construction and more — updated multiple times a day. Or talk to a local agent who knows the neighborhoods.

Share