Taxes on the sale: the $250,000 and $500,000 exclusion, the 2-of-5-year test and your basis
Deciding and the money · 1 study hours
Bottom line: Most long-time owners who sell their main home owe little or no federal tax on the gain, because up to $250,000 of gain ($500,000 married filing jointly) is excluded if you owned and lived in the home 2 of the last 5 years. Your gain starts from your basis, so dig out the purchase papers and the receipts for big improvements.
Bottom line first. The federal rule is kind to people selling the house they have lived in for years. If you meet the test, you may exclude the first $250,000 of gain from the sale of your home, and the exclusion is $500,000 for a married couple filing jointly (IRS Publication 523). Many downsizers pay no federal tax on the sale at all. The rest of this lesson shows how to tell, and what paperwork to gather now so the numbers are easy later.
This is general education, not tax advice. A tax professional who sees your return can confirm every number here for your situation.
Three words you need
- Basis is what you have in the house for tax purposes: usually what you paid, plus the cost of improvements.
- Gain is the sale price, minus selling costs, minus your basis. It is the profit the tax code looks at.
- Exclusion is the part of the gain the law lets you leave off your income entirely.
The eligibility test: 2 of the last 5 years
Publication 523 has two parts to the main test, both measured over the 5 years ending on the closing date:
- Ownership. You owned the home for at least 24 months (2 years) out of the last 5 years. For a married couple filing jointly, only one spouse has to meet this part (IRS Pub 523).
- Residence. You lived in the home as your residence for at least 24 months of the previous 5 years. The 24 months do not have to be one block; a total of 730 days counts. For a couple to get the full $500,000, each spouse must meet the residence part individually (IRS Pub 523).
A long-time owner who has lived in the house for decades passes both parts easily. The test matters more if you moved out early, rented the house, or moved into care a few years before selling. If you have been out of the house for more than 3 years, talk to a tax professional before closing, because the 5-year window may have closed.
If your spouse has died
Publication 523 says a surviving spouse may still take the $500,000 exclusion if the home is sold within 2 years of the spouse's death and neither spouse took the exclusion on another home sold less than 2 years before (IRS Pub 523). Beyond that window the single $250,000 amount usually applies. There may also be a separate rule that raises the basis of the deceased spouse's share; a tax professional can check it, and it often matters more than the exclusion.
Finding your basis
Basis begins with what you paid for the house, including certain closing costs. It goes up with improvements: things that add value or extend the life of the house, such as a new roof, a furnace, an addition, a remodeled kitchen or a new driveway. It does not go up with ordinary repairs or upkeep, like painting a room or fixing a leak (Publication 523 lists examples of improvements you can and cannot include).
Records to gather:
- The settlement statement from when you bought the house.
- Receipts, contracts or cancelled checks for big improvements over the years.
- Any paperwork from a prior home sale where gain was rolled over under old rules, if you bought before the late 1990s; this can lower your basis.
- The settlement statement from this sale, for the selling costs.
If receipts are gone, write down what you remember, with years and rough amounts, and keep any photos or permits. A reasonable, honest reconstruction is far better than claiming nothing.
Example with real numbers
Dana's Littleton ranch, all numbers made up:
| Step | Amount |
|---|---|
| Purchase price, 1988 | $110,000 |
| Improvements over the years (roof, furnace, kitchen, windows) | + $60,000 |
| Adjusted basis | $170,000 |
| Sale price | $525,000 |
| Selling costs (commission, title, fees) | - $31,500 |
| Amount realized | $493,500 |
| Gain ($493,500 - $170,000) | $323,500 |
If Dana files as single: exclusion $250,000. Taxable gain = $323,500 - $250,000 = $73,500. That part is generally a long-term capital gain, taxed at the capital gains rates for Dana's income that year, which a tax professional can figure. Colorado also taxes income, so some state tax may follow.
If Dana is married filing jointly and both spouses pass the test: exclusion $500,000, which is more than the $323,500 gain. Taxable gain = $0.
Notice how the $60,000 of improvements mattered. Without those records Dana's gain would have been $383,500 and, filing single, the taxable part $133,500 instead of $73,500. Every receipt you find lowers the taxable number dollar for dollar.
Reporting the sale
The closing company may send you Form 1099-S showing the sale price. Publication 523 explains that if the whole gain is excluded and you did not receive a Form 1099-S, you generally do not need to report the sale; if you did receive one, or part of the gain is taxable, you report the sale on Schedule D (Form 1040) (IRS Pub 523). Keep the closing papers with your tax records for the year of sale.
What this means for the decision
For most downsizers the sale itself is not a tax problem; the cash freed in Lesson 1 is largely yours to keep. The exceptions are a very large gain filed single, or a sale long after moving out. Both are reasons to call a tax professional before you sign a listing agreement, not after closing.
Law cited
- IRS Publication 523, Selling Your Home
- Schedule D (Form 1040)
Key terms
- Basis
- What you have in the house for tax purposes: purchase price plus the cost of improvements, with some adjustments.
- Adjusted basis
- Basis after adding improvements and making other adjustments.
- Gain
- Sale price minus selling costs minus adjusted basis; the profit the tax code measures.
- Amount realized
- The sale price minus selling costs.
- Exclusion
- The part of the gain on a main home that is left off income: up to $250,000, or $500,000 married filing jointly (IRS Pub 523).
- Improvements
- Work that adds value or extends the life of the house, such as a roof, furnace or addition; added to basis.
- Repairs
- Ordinary fixes and upkeep that keep the house in condition; not added to basis.
- Long-term capital gain
- Gain on something owned more than a year, taxed at capital gains rates.
- Form 1099-S
- The IRS form a closing company may send reporting the sale price of real estate.
- Schedule D
- The part of Form 1040 where capital gains and losses, including a taxable home sale, are reported.
Flashcards
Exclusion for a single filer?
Up to $250,000 of gain (IRS Pub 523).
Exclusion for married filing jointly?
Up to $500,000 of gain (IRS Pub 523).
Ownership test?
Owned at least 24 months of the last 5 years.
Residence test?
Lived there at least 24 months (730 days) of the last 5 years, not necessarily in one block.
Surviving spouse keeps $500,000 if sold within?
2 years of the spouse's death (IRS Pub 523).
Dana's adjusted basis (example)?
$110,000 + $60,000 = $170,000.
Dana's gain (example)?
$493,500 - $170,000 = $323,500.
Dana's taxable gain, single?
$73,500.
Dana's taxable gain, married jointly?
$0.
A new roof: improvement or repair?
Improvement; it adds to basis.
Where is a taxable home sale reported?
Schedule D (Form 1040).
Quiz: 10 questions
Tap an answer. It shows right or wrong and opens the reason. Your score is saved in this browser and counts in the study app.
Under IRS Publication 523, a single filer who meets the test may exclude gain on a main home up to:
- A $500,000
- B $250,000
- C $100,000
- D $1,000,000
Show answer and why
Answer: B. $250,000
The first $250,000 of gain may be excluded; $500,000 applies to a married couple filing jointly (IRS Pub 523).
IRS Publication 523
To meet the ownership and residence tests, you generally need at least how many months in the 5 years before the sale?
- A 12 months
- B 60 months
- C 24 months
- D 36 months
Show answer and why
Answer: C. 24 months
Publication 523 requires at least 24 months (2 years) of ownership and 24 months of residence within the 5-year period.
IRS Publication 523
Dana paid $110,000 and spent $60,000 on improvements. The adjusted basis is:
- A $110,000
- B $50,000
- C $170,000
- D $60,000
Show answer and why
Answer: C. $170,000
Basis is purchase price plus improvements: 110,000 + 60,000 = 170,000.
Littleton ranch example (made up)
Sale price $525,000, selling costs $31,500. The amount realized is:
- A $493,500
- B $556,500
- C $525,000
- D $323,500
Show answer and why
Answer: A. $493,500
525,000 - 31,500 = 493,500. The $323,500 figure is the gain after subtracting basis.
Littleton ranch example (made up)
Dana's gain is $323,500. Filing single with a $250,000 exclusion, the taxable gain is:
- A $323,500
- B $0
- C $73,500
- D $250,000
Show answer and why
Answer: C. $73,500
323,500 - 250,000 = 73,500.
Littleton ranch example (made up)
Same gain of $323,500, married filing jointly, both spouses pass the test. Taxable gain is:
- A $0
- B $73,500
- C $176,500
- D $323,500
Show answer and why
Answer: A. $0
The $500,000 exclusion is larger than the $323,500 gain, so nothing is taxable.
Littleton ranch example (made up)
Which of these adds to basis?
- A Painting a bedroom
- B Fixing a dripping faucet
- C Mowing the lawn
- D Replacing the roof
Show answer and why
Answer: D. Replacing the roof
A new roof adds value and extends the life of the house, so it is an improvement; the others are repairs or upkeep.
IRS Publication 523
A surviving spouse may still use the $500,000 exclusion if the home is sold within how long after the spouse's death (and no other exclusion was taken within 2 years)?
- A 6 months
- B 2 years
- C 5 years
- D 10 years
Show answer and why
Answer: B. 2 years
Publication 523 allows the higher exclusion when the sale is within 2 years of the spouse's death.
IRS Publication 523
For married filing jointly, which part of the test must EACH spouse meet individually to get the full exclusion?
- A The residence requirement
- B The ownership requirement
- C Neither; one spouse is enough for both
- D Both parts, no exceptions
Show answer and why
Answer: A. The residence requirement
Only one spouse has to meet ownership, but each spouse must meet the residence requirement individually (IRS Pub 523).
IRS Publication 523
Without the $60,000 of improvement records, Dana's single-filer taxable gain would be:
- A $73,500
- B $13,500
- C $133,500
- D $0
Show answer and why
Answer: C. $133,500
Gain would rise to $383,500; minus the $250,000 exclusion leaves $133,500. Receipts lower the taxable number dollar for dollar.
Littleton ranch example (made up)
← Deciding whether and when: what staying costs, what moving costs, on one houseColorado property tax help for seniors: the homestead exemption, the 2024 portability change and tax deferral →