Certopolis

Special Enrollment Examination, Part 1: Individuals

Home sale exclusion: the $250,000 / $500,000 rule explained

Per IRS Publication 523 (2025), a taxpayer can exclude up to $250,000 of gain on the sale of a main home, or $500,000 on a joint return, after owning it and living in it for at least 24 months of the 5 years before the sale and not excluding gain on another home sold in the prior 2 years.

What are the three tests for the full exclusion?

Ownership: the taxpayer owned the home for at least 24 months of the 5 years ending on the date of sale. Residence: the taxpayer used it as a residence for at least 24 months of those 5 years. The 24 months, or 730 days, can fall anywhere in the period and need not be one block, so a home that stood empty for the last 2 years can still qualify. Short absences such as vacations count as time lived there.

Look-back: the taxpayer did not exclude gain on the sale of another home during the 2 years before this sale. The exclusion is available only once in a 2-year period.

A sale is disqualified outright if the home was acquired in a like-kind exchange during the past 5 years, or if the taxpayer is subject to expatriate tax.

When does a married couple get $500,000?

On a joint return the $500,000 limit applies when one or both spouses meet the ownership test and both spouses meet the residence and look-back tests. If one spouse fails the residence test, the couple checks whether either spouse qualifies for the $250,000 limit as a single person.

A surviving spouse who has not remarried can count the time the late spouse owned and lived in the home, and can use the $500,000 limit if the sale is within 2 years of the death and the other conditions are met.

Gain above the limit is taxable. A couple that qualifies for $500,000 and has a $620,000 gain reports $120,000.

How is a partial exclusion figured?

A taxpayer who fails the tests can still get a partial exclusion if the main reason for the sale was a change in workplace location, a health issue or an unforeseeable event. The work test is met when the new work location is at least 50 miles farther from the home than the old one was.

The limit is prorated. Take the shortest of the time of residence in the 5-year period, the time of ownership, and the time since the last excluded sale; divide by 24 months or 730 days; and multiply by $250,000. Nine months gives 9/24 of $250,000, or $93,750, so a $120,000 gain leaves $26,250 taxable.

Publication 523 also notes that a period after 2008 when the property was not used as a main home is, with certain exceptions, nonqualified use, and gain allocated to it cannot be excluded.

Where the exam catches people

  • Requiring the 2 years of residence to be the 2 years just before the sale: any 24 months within the 5 years counts.
  • Giving $500,000 when only one spouse lived in the home for 24 months: both spouses must meet the residence test, though only one must meet ownership.
  • Prorating the gain for a partial exclusion: the fraction is applied to the $250,000 limit, and gain under the reduced limit is excluded in full.
  • Allowing a second full exclusion within 2 years of the last one.
  • Using the married filing jointly limit on a married filing separately return: that limit is $250,000.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A married couple filing jointly sells their main home in 2025 for a gain of $620,000. Both spouses have owned and lived in the home as their main home for the past 9 years, and neither has excluded gain on another home sale. How much of the gain is taxable?

    Right. In the game that’s Renown for your Income and Assets building.

    Not that one: B is right. In the game your Income and Assets building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The maximum exclusion for a married couple filing jointly is $500,000. Taxable gain: $620,000 - $500,000 = $120,000.

    Written from www.irs.gov/pub/irs-prior/p523--2025.pdf

  2. A taxpayer cannot claim the full exclusion of gain on the sale of a main home if the taxpayer excluded gain on the sale of another home during the:

    Right. In the game that’s Renown for your Advising the Individual Taxpayer building.

    Not that one: D is right. In the game your Advising the Individual Taxpayer building would lose a little Renown, and this question would come back later.

  3. A single taxpayer bought a condominium and lived in it as her main home for exactly 9 months. Her employer then transferred her from an office 10 miles from the condominium to one 75 miles from it, and she sold the condominium for a gain of $120,000. She has never excluded gain on another home sale. How much of the gain is taxable?

    Right. In the game that’s Renown for your Advising the Individual Taxpayer building.

    Not that one: A is right. In the game your Advising the Individual Taxpayer building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    Step 1: 75 − 10 = 65 miles farther, so the move qualifies. Step 2: the shortest qualifying period is 9 months; 9 ÷ 24 = 0.375. Step 3: 0.375 × $250,000 = $93,750 reduced exclusion (Worksheet 1, Section B). Step 4: taxable gain = $120,000 − $93,750 = $26,250.

    Written from www.irs.gov/pub/irs-prior/p523--2025.pdf

Ask for something