Selling Your Home? How the $250,000/$500,000 Capital Gains Exclusion Works

Most homeowners can exclude a large gain on the sale of their main home from income tax, if they meet the ownership and use tests. Here's how the exclusion works, partial exclusions, and what reduces it.

By DailyInfo EditorialPublished · 3 min read
House with lit windows at dusk
Photo: Unsplash

Key takeaways

  • 01.
    Exclude up to $250,000 of gain ($500,000 for married couples)—If you owned and lived in the home 2 of the last 5 years.
  • 02.
    You can use it every two years—As long as you meet the tests each time.
  • 03.
    Partial exclusions exist—For moves due to work, health or certain unforeseen events.
  • 04.
    Rental use and depreciation reduce it—Depreciation claimed after May 6, 1997 is taxable when you sell.

If you sell your main home for more than you paid, the profit is a capital gain. But under Section 121 of the tax code, most homeowners can exclude a large part of that gain, or all of it, from income tax.

The basic rule

You can exclude up to:

  • $250,000 of gain if you're single, or
  • $500,000 if you're married filing jointly,

as long as you meet two tests during the five years before the sale:

  1. Ownership test: you owned the home for at least two years.
  2. Use test: you lived in it as your main home for at least two years.

The two years don't have to be continuous, and they don't have to be the same two years. For the $500,000 joint exclusion, either spouse can meet the ownership test, but both must meet the use test (and neither can have used the exclusion in the past two years).

You can use the exclusion once every two years.

How to calculate your gain

Gain = amount realised − adjusted basis

  • Amount realised: sale price minus selling costs (agent commissions, certain closing costs).
  • Adjusted basis: what you paid, plus certain purchase costs, plus the cost of capital improvements (a new roof, an addition, a kitchen remodel), minus any depreciation or casualty losses claimed.

Routine repairs and maintenance don't add to basis. Keep receipts for improvements: over decades of ownership they can significantly reduce your gain.

Example (hypothetical): a married couple bought a home for $400,000, spent $80,000 on improvements, and sell for $1,100,000 with $60,000 of selling costs. Gain = $1,040,000 − $480,000 = $560,000. They exclude $500,000 and report $60,000 as a long-term capital gain.

Partial exclusions

If you don't meet the two-year tests, you may still qualify for a reduced exclusion if you sold mainly because of:

  • a change in work location (generally a new job at least 50 miles farther from the home than the old one),
  • health reasons, or
  • certain unforeseen circumstances, such as divorce, death of a spouse, job loss qualifying for unemployment, or multiple births from the same pregnancy.

The exclusion is prorated by the time you met the tests. For example, living there 12 months out of the required 24 gives half the exclusion: up to $125,000 single or $250,000 married.

What reduces the exclusion

  • Depreciation: if you rented out the home or used part of it as a home office and claimed depreciation after May 6, 1997, that depreciation is taxable on sale (at up to 25%) even if the rest of the gain is excluded.
  • Nonqualified use: periods after 2008 when the home wasn't your main residence (for example, a rental period before you moved in) can reduce the excluded portion. Time after you move out, within the five-year window, generally doesn't count against you.
  • Recently acquired through a 1031 exchange: you must own the home for at least five years before the exclusion applies.

Reporting

If your entire gain is excluded and you didn't receive Form 1099-S, you generally don't need to report the sale. If you received a 1099-S or have a taxable gain, report it on Form 8949 and Schedule D.

Planning tips

  • Track improvements from the day you buy.
  • If you're close to the two-year mark, waiting a few months to sell may save significant tax.
  • Converting a rental into your home (or vice versa)? Model the nonqualified use and depreciation rules first.
  • Gains above the exclusion may also be subject to the 3.8% net investment income tax at higher incomes.

General information. Talk to a tax professional before selling a home with a large gain or mixed rental and personal use.

Sources

  1. IRS Publication 523: Selling your home
  2. IRS Topic No. 701: Sale of your home
Real estateHome saleCapital gainsSection 121

DailyInfo Editorial

Independent editorial desk

DailyInfo explains money, tax and business in plain English, with no hype and no sales pitch. Every article is checked against primary sources and reviewed by founding editor Faithful Godwin before it's published.

Not advice: this article is general information, not personal financial, tax or legal advice. Rules change and depend on your circumstances, so check with a qualified professional before acting.

Spotted an error? Email corrections@dailyinfo.tech. See our editorial standards.

Newsletter

Get new explainers by email

A short roundup of what we've published on money, tax and business. No spam, and you can unsubscribe at any time.

We only use your email to send the newsletter. See our privacy policy.