Chapters0/25 ▾
Chapter 2 · Lesson 3 of 5
Selling a main home: the section 121 exclusion
1 min read
Gain on the sale of a principal residence can be excluded if, during the five years ending on the date of sale, the taxpayer owned the home for at least two years and used it as a main home for at least two years, and did not use the exclusion on another sale in the prior two years.
The two years of use do not have to be continuous. For 2025 the maximum is $250,000, or $500,000 on a joint return; these amounts are set by statute and are not indexed.
On a joint return only one spouse needs to meet the ownership test, but both must meet the use test and neither may have used the exclusion in the prior two years. A spouse whose name was never on the deed can still count.
A taxpayer who falls short because of a change in place of employment, health or another qualifying unforeseen event gets a reduced exclusion: the maximum times the shortest qualifying period over 24 months. Example: a single filer who owned and lived in her home for 18 months before a job transfer may exclude up to $250,000 times 18/24, or $187,500.
Check yourself
1. Nadia, who files as single, owned and used her home as her principal residence for 15 months and then sold it because her employer transferred her to an office 600 miles away. She had not excluded gain on any other sale. Assume the maximum exclusion for a single filer is $250,000. What is the maximum gain she may exclude?
2. Raj owned and lived in his house for six years. He married Nina three years ago, and since the marriage she has lived in the house as her principal residence. They sell the house at a gain and file a joint return; neither has excluded gain on another home sale in the prior two years, and Nina's name was never on the deed. Which statement is correct?
Facts checked 2026-11-15 · Sources: IRS Publication 551: Basis of Assets, IRS Publication 544: Sales and Other Dispositions of Assets, IRS Publication 523: Selling Your Home
Enrolled Agent (SEE) cheat sheet: every key fact on one page →