The home sale exclusion: $250,000 or $500,000

When you sell your main home, a big part of the profit can be tax-free. The exam asks how much, who qualifies and how the gain is figured. Here are the rules, then three practice questions.

Last updated November 25, 2026

The rules to know

RuleWhat to know
The exclusionUp to $250,000 of gain on selling a principal residence isn't taxed
Married couplesUp to $500,000 on a joint return when both spouses meet the use test, either meets the ownership test, and neither used the exclusion in the last 2 years
The 2-of-5 testOwned and lived in as the principal residence for at least 2 years in total during the 5 years before the sale. The years don't have to be in a row
How oftenOnce every 2 years
Figuring the gainSale price, minus selling costs, minus the adjusted basis (what you paid plus improvements)
Gain over the limitOnly the part above $250,000 or $500,000 is taxed
Investment propertyDoesn't qualify. Investors use a 1031 exchange to defer tax instead

Practice questions

Three questions we wrote for this page. Try each one before you open the answer.

Question 1

A married couple filing jointly sells the home they've both owned and lived in for 3 years, with a $420,000 gain. Neither has used the exclusion before. How much of the gain is taxable?

  1. $0
  2. $170,000
  3. $80,000
  4. $420,000
Show the answer and explanations

Answer: A. $0

  • A: right. A married couple filing jointly can exclude up to $500,000 when both meet the 2-of-5-year use test (26 U.S.C. 121(b)(2)). $420,000 is under that.
  • B: wrong. That uses the $250,000 single exclusion. A qualifying couple filing jointly gets $500,000.
  • C: wrong. That subtracts the gain from $500,000. The question is how much is taxed, which is none.
  • D: wrong. The home sale exclusion applies, so most or all of the gain isn't taxed.

Tests: 26 U.S.C. 121(b) (exclusion of gain from the sale of a principal residence). Report a problem

Question 2

A single owner bought a house 4 years ago, rented it out for 3 years, then lived in it for 1 year before selling. Does she get the full exclusion?

  1. Yes, because she owned it for 4 years
  2. Yes, because it was her home on the day of sale
  3. Yes, if her gain is under $250,000
  4. No, she lived there only 1 of the last 5 years
Show the answer and explanations

Answer: D. No, she lived there only 1 of the last 5 years

  • A: wrong. Ownership is only half of the test. She also has to have lived there 2 of the 5 years.
  • B: wrong. Living there on the day of sale isn't enough. The use must total 2 years.
  • C: wrong. The amount of gain doesn't matter if she fails the use test.
  • D: right. The full exclusion requires owning and using the home as a principal residence for at least 2 years in the 5 years before the sale (26 U.S.C. 121(a)).

Tests: 26 U.S.C. 121(a) (ownership and use test). Report a problem

Question 3

A single seller bought her home for $200,000, added a $30,000 kitchen, and sells it for $560,000 with $30,000 in selling costs. She qualifies for the exclusion. How much gain is taxable?

  1. $80,000
  2. $50,000
  3. $0
  4. $110,000
Show the answer and explanations

Answer: B. $50,000

  • A: wrong. That skips the selling costs, which lower the gain.
  • B: right. Gain is $560,000 − $30,000 selling costs − $230,000 adjusted basis (price plus the kitchen) = $300,000. After the $250,000 exclusion, $50,000 is taxable.
  • C: wrong. Her $300,000 gain is more than the $250,000 she can exclude.
  • D: wrong. That skips the kitchen and the selling costs: $560,000 − $200,000 − $250,000.

Tests: 26 U.S.C. 121(b)(1) and basic gain arithmetic (amount realized minus adjusted basis). Report a problem

Want more? The practice test opens on this topic: 15 questions, all free. Each one explains every answer choice. Practice financing questions.

Related: 1031 exchanges and math practice questions. Tax rules have more detail than the exam asks, so sellers should talk to a tax professional. Studying for Michigan or Florida? Practice the same topic in the Michigan practice test or the Florida practice test.

Source: 26 U.S.C. 121 (Internal Revenue Code), on Cornell LII, read November 22, 2026. The gain arithmetic is our own.

Questions people ask

How much profit on a home sale is tax-free?
Up to $250,000 for a single owner, or $500,000 for most married couples filing jointly, if you owned and lived in the home for 2 of the 5 years before the sale.
Do the 2 years have to be in a row?
No. The use and ownership must add up to at least 2 years within the 5 years before the sale.
Can you use the home sale exclusion on a rental property?
Not on a property that wasn't your principal residence for 2 of the last 5 years. Investment property uses a 1031 exchange to defer tax instead.