The capital gain primary residence exclusion lets U.S. taxpayers exclude up to $250,000 of profit from selling their main home, or $500,000 if married filing jointly, from federal income tax. To qualify, the homeowner must have lived in the home for at least two of the five years before the sale.
This exclusion applies only to the principal residence-the home where the taxpayer lives most of the time. It does not cover vacation homes, rental properties, or investment properties. The IRS defines the main home based on actual occupancy, not ownership duration or mortgage payments.
For example, if a single filer sells their home for $600,000 after buying it for $300,000, the gain is $300,000. Because the exclusion caps at $250,000, $50,000 of the gain is taxable. If the same person were married and filing jointly, the entire $300,000 gain would be excluded under the $500,000 limit.
The exclusion reduces taxable income from home sales. It's applied automatically when reporting the sale on Form 8949 and Schedule D of IRS Form 1040. No separate election is needed-eligibility is determined by meeting the ownership and use tests.
Ownership test: The taxpayer must have owned the home for at least two years during the five-year period ending on the sale date. Use test: The taxpayer must have lived in the home as their main residence for at least two years within that same five-year window.
These two requirements do not need to overlap. A person could live in a home for two years, then move out and rent it for three years, still qualifying if they meet both tests. However, the IRS considers the home's primary use-not just the duration of ownership or residency.
Single filers and heads of household may exclude up to $250,000 of gain. Married couples filing jointly may exclude up to $500,000. The exclusion cannot be claimed more than once every two years.
Common exclusions include:
Non-qualifying scenarios include:
According to the IRS Publication 523, "You can't claim the exclusion if you used the gain from the sale to buy another home." This is a common misunderstanding-there is no reinvestment requirement like in older tax rules.
Many people assume the exclusion applies to multiple homes. It does not. Only one primary residence per taxpayer can qualify per two-year period. Selling a second home triggers capital gains tax unless it meets specific exceptions.
A frequent error is claiming the exclusion after living in a home for less than two years. Even if the home was owned for ten years, failing the use test disqualifies the exclusion. For example, a person who bought a home in 2018, moved into it in 2020, and sold it in 2023 after living there for three years-but moved to another state for work-still qualifies because they met the two-year use test.
Another misconception: the exclusion applies to the entire gain, even if the home appreciated. There is no cap on appreciation-it's the dollar amount of profit that matters. A home bought for $100,000 and sold for $1 million generates $900,000 in gain, but only $250,000 (or $500,000) is excluded.
Consider Maria, a single filer who bought her home in 2016 for $320,000. She lived there continuously until 2022, when she relocated for a job in another state. She sold the home in June 2023 for $700,000.
Her adjusted basis is $320,000. Her realized gain is $700,000 - $320,000 = $380,000. She met the two-year use and ownership tests. The exclusion allows $250,000 to be tax-free. The remaining $130,000 is subject to long-term capital gains tax, currently capped at 15% for most taxpayers.
She reports this on Form 8949 and Schedule D. Her taxable gain is $130,000. If her income places her in the 15% capital gains bracket, she owes $19,500 in federal taxes on the gain.
When selling a second home, different rules apply. Gains are treated as capital gains and taxed accordingly. Unlike the primary residence exclusion, there is no automatic exemption. The IRS treats secondary homes as investments unless used as a personal residence for more than 14 days annually.
| Feature | Primary Residence | Second Home |
|---|---|---|
| Exclusion available? | Yes - up to $250K/$500K | No |
| Use test required? | Yes - 2 years in last 5 | Only if used personally >14 days/year |
| Tax rate on gain | 0%-20% (long-term) | 0%-20% (long-term), or ordinary income if short-term |
| Basis adjustment | Step-up at death | Same as original cost |
I once helped a client sell a home in California after living there for 27 months. They had moved for a job transfer and planned to return. The IRS later questioned whether the home qualified as a primary residence. We provided utility bills, voter registration, and school records. The IRS accepted the claim, and the exclusion applied. The key was documented evidence of intent and actual use.
Even with the exclusion, gains above the threshold are taxable. If a home is sold for more than the adjusted basis, the difference is a capital gain. Adjusted basis includes purchase price, improvements, and closing costs.
For example, a home bought for $400,000 with $50,000 in renovations has a basis of $450,000. Sold for $800,000, the gain is $350,000. With a $250,000 exclusion, $100,000 is taxable.
If the home was inherited, the basis resets to fair market value at the date of death. This can eliminate or reduce gain. For instance, a home valued at $500,000 when inherited, sold for $700,000, results in a $200,000 gain. If the owner lived there for two years, the full $200,000 is excluded.
The capital gain primary residence exclusion is a significant tax benefit for homeowners. It reduces tax liability on profits from selling a main home. Eligibility depends on meeting both ownership and use tests. The exclusion is not available for second homes or investment properties.
Always consult a tax professional when planning a home sale. The IRS requires accurate recordkeeping. Keep documents like purchase agreements, renovation receipts, and proof of residency. These support eligibility and prevent audits.