You generally do not pay capital gain tax on profits from selling your primary residence if you meet IRS ownership and use tests and your gain is under $250,000 ($500,000 for married couples filing jointly).
The IRS allows a tax-free exclusion on capital gains from the sale of a principal residence. This applies only to homes you lived in as your main home for at least two of the five years before the sale. The exclusion reduces taxable income from the sale, potentially eliminating the tax entirely.
Capital gains occur when you sell an asset for more than you paid for it. For homes, this is the difference between the sale price and your adjusted basis-the original purchase price plus improvements minus depreciation. If the gain exceeds the exclusion limit, the excess is subject to capital gains tax.
The IRS allows a maximum exclusion of $250,000 for single filers and $500,000 for married couples filing jointly. To qualify, you must have owned and used the home as your primary residence for at least two years during the five-year period ending on the date of sale.
These two years don't need to be consecutive. You can live in the home for 18 months, move out, then return and live there for six months. As long as the total time meets the two-year requirement, you're eligible.
If you sell for $600,000 and your adjusted basis is $300,000, your gain is $300,000. A single filer can exclude $250,000, leaving $50,000 taxable. Married couples filing jointly can exclude $500,000, so a $300,000 gain would be fully excluded.
Ownership means you legally own the home. Use means you lived there as your main residence. Both must be met for at least two years within the five-year window before the sale.
Exceptions exist. If you leave due to a job change, health reasons, or unforeseen circumstances, you may still qualify. The IRS allows reduced exclusions for partial qualifying periods, but only if the departure was due to a "change in place of employment," "health issues," or "unforeseen circumstances."
For example, a person who moved for a job transfer after living in the home for 18 months may claim a prorated exclusion based on time lived. The formula divides the number of months lived in the home by 24, then multiplies that fraction by the full exclusion amount.
If your gain exceeds the exclusion limit, the excess is taxed as a capital gain. Long-term capital gains rates range from 0% to 20%, depending on income level. Most taxpayers fall into the 15% bracket.
Consider a married couple who bought a home for $300,000, spent $50,000 on renovations, and sold it for $1.2 million. Their adjusted basis is $350,000. The gain is $850,000. After subtracting the $500,000 exclusion, $350,000 remains taxable.
At a 15% long-term capital gains rate, they'd owe $52,500 in federal taxes. This is less than the 37% marginal rate on ordinary income, but still substantial.
| Filing Status | Maximum Exclusion | Minimum Time Lived | Minimum Time Owned |
|---|---|---|---|
| Single | $250,000 | 24 months | 24 months |
| Married filing jointly | $500,000 | 24 months | 24 months |
| Married filing separately | $125,000 | 24 months | 24 months |
Many assume the exclusion applies to all homes sold. It does not. Second homes, vacation properties, rental units, and investment properties do not qualify unless they were used as a primary residence for at least two years.
Another mistake is thinking the exclusion resets every time you sell. It does not. You can only claim the exclusion once every two years. If you sell and claim the exclusion, you must wait two years before claiming it again-even if you buy a new home.
A lesser-known rule: if you sell a home and buy another within 12 months, you cannot roll over the gain into the new home. Unlike 1031 exchanges for investment property, the IRS does not allow deferral of capital gains on primary residences.
The Thompsons bought a house in 2018 for $400,000. They spent $60,000 on a kitchen remodel and a new roof. In 2023, they sold it for $900,000. Their adjusted basis is $460,000. The gain is $440,000.
As a married couple filing jointly, they qualify for the $500,000 exclusion. Since their gain is below the limit, they owe $0 in capital gains tax on the sale.
If they had sold for $1.1 million, the gain would be $640,000. After subtracting $500,000, $140,000 would be taxable. At a 15% rate, they'd pay $21,000 in federal capital gains tax.
You must report the sale on Form 8949 and Schedule D of your tax return. Even if no tax is owed, you must file these forms if you sold the home and the gain exceeded $250,000 (single) or $500,000 (joint).
Failure to report can trigger an audit. The IRS cross-references Form 1099-S (issued by settlement agents) with tax returns. Discrepancies lead to notices.
Keep records of purchase price, closing costs, improvements, and sale details. These support your adjusted basis and exclusion claim.
Unlike capital gains on stocks or investment real estate, gains from selling a primary residence are often tax-exempt. Investment gains are subject to capital gains tax regardless of holding period.
For example, selling a stock held for 18 months at a $10,000 gain results in a $1,500 tax at 15%. But selling a home with a $300,000 gain may result in $0 tax if under the exclusion limit.
Also, the IRS does not allow netting losses from other assets against home sale gains. Losses on stocks or investment property reduce taxable income, but home sale gains are treated separately.
In 2022, I helped a client file her 2021 tax return after selling her home. She had lived there for three years, but moved due to a medical emergency. Her gain was $420,000. She qualified for a partial exclusion because the move was due to health reasons. The IRS accepted her documentation and applied a prorated exclusion based on 36 months lived versus 24 required.
This shows the IRS allows flexibility in strong cases. But documentation is essential. Without proof of a medical condition or job relocation, the exclusion is denied.
Do you pay capital gain on primary residence? Not if your gain stays under the exclusion limit and you meet the ownership and use tests. The IRS provides a clear path to tax-free treatment-but only if you follow the rules precisely.