ACCT 330 · Federal Income Tax I: Individuals
Selling a Home and Other Special Rules
How the home-sale exclusion shields most gains, and how wash sales, related-party sales and installment sales bend the usual rules.
Key takeaways
- A homeowner can exclude a large part of the gain on selling a main home, if the home passes an ownership test and a use test.
- The exclusion is capped per sale, and the cap is higher for married couples who file together.
- Losses on a personal home are never deductible, because a home you live in is personal property, not an investment.
- A wash sale or a sale to a related person can delay or block a loss you wanted to claim.
- An installment sale spreads the gain over the years the buyer actually pays you.
Picture Maya, who bought a small house for $200,000 and lived in it for six years. She added a new kitchen, sold the place, and made a nice profit. Her cousin Leo says she will owe a huge tax bill. Her neighbor Dana says homes are never taxed. Who is right?
Both are partly right, and neither is exactly right. Congress decided long ago that most families should not pay tax on the gain from selling the place they live in. But the break has tests, limits and traps. And a home is only one of several kinds of sales where the ordinary rules bend. In this lesson you will learn the home-sale exclusion, then three other special rules that change when a gain or loss counts: wash sales, sales to relatives, and installment sales.
Why homes get special treatment
Think back to basis and gains on property. A gain is the amount you receive minus your basis, which is roughly what you paid plus improvements. Normally that gain is taxed, often at the lower rates for long-term capital gains described in capital gains and losses.
Homes are different for a plain reason. Prices drift up with inflation, and families often must move for jobs, schools or health. Taxing every move would punish people for living their lives. So the tax code lets you exclude gain on your main home, the place where you really live most of the time.
The rule is in section 121 of the Internal Revenue Code. The dollar limits below are the ones in the law as of this writing, but check the IRS for the current rules before you rely on them.
The two tests
To use the exclusion, you must pass two tests during the five years that end on the day you sell.
- Ownership test: you owned the home for at least two years (24 months) of those five.
- Use test: you lived in it as your main home for at least two years of those five.
The two years need not be in a row. They also need not be the same two years for both tests. A person who lived in the home for 14 months, rented it out for a while, then lived there another 10 months would have 24 months of use.
There is a third rule. You generally cannot use the exclusion if you used it on another home sale within the past two years. The tax code does not want people to flip houses tax free, one every few months.
All three checks must pass for the full exclusion.
The size of the exclusion
Under current law the cap per sale is $250,000 of gain for a single filer, and $500,000 for a married couple filing a joint return. For the larger amount, either spouse must pass the ownership test and both must pass the use test. Study filing status again if joint returns are still fuzzy.
Notice the word gain. The exclusion has nothing to do with the sale price. A home that sells for $900,000 could produce no taxable gain at all if the owner paid $700,000 and improved it. What you must compute first is the gain, so let us do that.
A worked example: Maya's first sale
Maya bought her house for $200,000. Over the years she spent $30,000 on a kitchen and a new roof. These are improvements, so they add to her basis. Then she sold the home for $400,000 and paid $18,000 for the agent's commission and closing fees.
Selling price $400,000
Less selling costs − 18,000
Amount realized $382,000
Purchase price $200,000
Plus improvements + 30,000
Adjusted basis $230,000
Gain = 382,000 − 230,000 = $152,000 Maya is single and passes both tests. Her cap is $250,000, and her gain is only $152,000, so she excludes all of it. She owes no tax on the sale.
Example with made-up numbers.
Two details deserve a pause. First, repairs, such as repainting a room, do not raise basis. Improvements, such as a new roof, do. Second, the cost of the sale comes off the price, which lowers the gain. People often forget the second step and pay tax on money they never kept.
When the gain is larger than the cap
Now suppose the market had been hotter. Maya sells for $600,000 and pays $36,000 in selling costs, so the amount realized is $564,000. Her basis is still $230,000.
Gain = 564,000 − 230,000 = $334,000
Exclusion (single) = $250,000
Taxable gain = 334,000 − 250,000 = $84,000 The $84,000 is a long-term capital gain, since she held the home for more than a year. If she were married and filed jointly with the same facts, the cap would be $500,000 and she would owe nothing.
Maya, single, with the hotter market. Example with made-up numbers.
Moving sooner than two years
What if a job transfer forces Maya to sell after only 12 months? The law offers a partial exclusion when the move is caused by a work change, a health reason, or certain unforeseeable events. The full cap is cut down in proportion to the time she met the tests.
Fraction of two years met = 12 ÷ 24 = one half
Reduced cap = $250,000 × 1/2 = $125,000 With the original gain of $152,000, Maya would exclude $125,000 and report $27,000 as taxable gain. The IRS publishes the list of qualifying reasons, so confirm the current list before you assume a move qualifies.
The common mistake: treating a loss like a gain
Suppose a different owner bought a house for $300,000 and sold it for $270,000 after a slump. Can she deduct the $30,000 loss? No. A home you live in is personal property. Gains on it can be taxed, but losses are not deductible. The code does not let you take only the half of the deal that helps you.
There is a second, quieter trap. If you used part of the home as an office or rented it out, the tax rules may require you to count depreciation you claimed. The exclusion does not cover that piece of gain. See business property sales and recapture for how depreciation comes back to haunt a seller.
Other special rules that bend the usual timing
A home sale is the friendliest special rule. Three others matter to every tax student.
Wash sales
A wash sale happens when you sell stock or securities at a loss and buy the same or a substantially identical security within 30 days before or after the sale. The loss is not allowed in that year. Instead, the disallowed loss is added to the basis of the new shares.
Suppose Leo buys 100 shares at $50 each, so $5,000. He sells them at $35, for $3,500, and a loss of $1,500. Ten days later he buys 100 shares again at $36, a cost of $3,600.
Loss disallowed = 5,000 − 3,500 = $1,500
New basis = 3,600 + 1,500 = $5,100 The loss is not gone. It is stored in the basis of the new shares and comes back when he finally sells for good. The rule only stops him from claiming a loss while holding nearly the same position.
Sales to related people
Imagine Leo selling a rental property to his sister at a loss, so he can deduct it while the family keeps the property in the family. The law blocks this. A loss on a sale between related persons, such as siblings, a spouse, parents, children, or a person and a corporation he controls, is disallowed. The buyer, when she later sells at a gain, can subtract the blocked loss from that gain, but only up to the amount of the gain.
Installment sales
Sometimes the buyer pays over several years. Take Dana, who sells land with a basis of $40,000 for $100,000. The buyer pays $20,000 now and $20,000 at the end of each of the next four years.
Gross profit = 100,000 − 40,000 = $60,000
Gross profit percentage = 60,000 ÷ 100,000 = 60%
Gain each year = $20,000 × 60% = $12,000 Dana reports $12,000 of gain each year for five years, which totals $60,000. This is the installment method. It matches the tax to the cash received, so she is not taxed on money she does not yet have. Some sales, such as sales of inventory, cannot use it, and depreciation recapture is reported in the first year anyway. The details are in the IRS rules.
Words to know
Main home the place where you live most of the time, also called a principal residence.
Exclusion income the law lets you leave out of taxable income, up to a limit.
Adjusted basis what you paid plus improvements, minus certain items such as depreciation.
Amount realized the selling price minus the costs of selling.
Wash sale a loss sale followed by buying the same security within 30 days before or after.
Related party a close family member or a controlled entity, as defined by the tax code.
Installment method reporting gain in proportion to the payments received each year.
Check yourself
- What are the ownership test and the use test for the home-sale exclusion?
- Leo bought a home for $150,000, added a $20,000 room, and sold it for $330,000 with $15,000 in selling costs. He is single and passes the tests. What is his gain and his taxable gain?
- Why can a taxpayer who sells a personal home at a loss not deduct it?
- Dana, single, has a $300,000 gain on a home she owned and lived in for four years. How much is taxable under a $250,000 cap?
- A taxpayer buys 200 shares for $4,000, sells them for $3,000, and rebuys 200 shares of the same stock 15 days later for $3,100. What is the new basis?
- Explain why an installment sale can lower the tax paid in the year of the sale.
Show the answers
- Over the five years ending on the sale date, you must have owned the home at least 2 years and lived in it as your main home at least 2 years.
- Amount realized = 330,000 − 15,000 = 315,000; basis = 150,000 + 20,000 = 170,000; gain = 145,000, fully below the $250,000 cap, so taxable gain is $0.
- A home you live in is personal property, and personal losses are not deductible, even though gains can be taxed.
- Taxable gain = 300,000 − 250,000 = $50,000, taxed as a long-term capital gain.
- The loss is 4,000 − 3,000 = 1,000, which is disallowed; the new basis is 3,100 + 1,000 = $4,100.
- Only the share of the gain tied to money received that year is reported, so a sale paid over several years spreads the gain instead of landing in one year.