If you sold your primary residence and made a profit, you may owe capital gains tax-but the IRS allows up to $250,000 in exclusion ($500,000 for married couples filing jointly) if you lived in the home for at least two of the five years before the sale.
The IRS treats home sales as capital transactions. When you sell property for more than your adjusted basis (original cost plus improvements minus depreciation), the difference is a capital gain. This gain is taxable unless it qualifies for the primary residence exclusion under Internal Revenue Code §121.
Not all home sales result in tax liability. If your profit is below the exclusion limit and you meet ownership and use tests, you report the sale but pay no tax. If your profit exceeds the exclusion, you owe tax on the excess at long-term capital gains rates-currently 0%, 15%, or 20%, depending on income.
Capital gains tax applies only to the portion of your profit above the exclusion amount. To calculate this, subtract your adjusted basis from the sale price, then subtract the exclusion limit.
For example: You bought a house for $300,000 in 2015. You spent $40,000 on renovations and paid $10,000 in closing costs. Your adjusted basis is $350,000. You sold it in 2023 for $700,000. The gain is $350,000 ($700,000 − $350,000).
As a single filer, you qualify for a $250,000 exclusion. The taxable gain is $100,000. If your income places you in the 15% long-term capital gains bracket, you owe $15,000 in federal tax on the sale.
To claim the $250,000 ($500,000 if married filing jointly) exclusion, you must have owned and used the home as your principal residence for at least two of the five years before the sale. These two years don't need to be consecutive.
Exceptions exist. If you sell due to a job change, health reasons, or unforeseen circumstances, you may claim a reduced exclusion. For example, if you moved because of a job relocation more than 50 miles away, you can prorate the exclusion based on time lived in the home.
Non-primary residences-such as vacation homes or rental properties-are not eligible for the exclusion. Selling those triggers full capital gains tax on the entire profit.
Many people assume selling a home automatically results in tax debt. That's false. If your profit is under the exclusion threshold and you met the use test, no tax is due-even if you made $300,000 in profit.
Another error: thinking the exclusion applies to multiple homes. You can only claim it once every two years. If you sold a home in 2021 and buy another in 2023, you can't claim the exclusion again until 2025.
A lesser-known rule: if you inherited a home and sold it within two years of the original owner's death, you may still qualify for the exclusion if you lived in it as your primary residence during the required period.
You must file IRS Form 8949 and Schedule D even if no tax is owed. Reporting is mandatory if the sale resulted in a gain, regardless of whether it's taxable.
Form 8949 requires details: date acquired, date sold, sale price, adjusted basis, and net gain. The IRS uses this data to verify eligibility for the exclusion. Failing to report can trigger audits.
I once helped a client who sold their home for $600,000 after living there for four years. Their adjusted basis was $320,000. They reported a $280,000 gain. Since the exclusion was $250,000, they had $30,000 in taxable gain. They filed correctly and avoided penalties.
| Scenario | Exclusion Eligible? | Taxable Gain | Notes |
|---|---|---|---|
| Single filer sells home after living there 3 years; profit $240,000 | Yes | $0 | Profit under $250,000 limit |
| Married couple sells home after 1 year; profit $400,000 | No | $400,000 | Only 1 year of use; no exclusion |
| Single filer sells vacation home; profit $100,000 | No | $100,000 | Rental or secondary home; no exclusion |
| Married couple sells home after 2 years; profit $520,000 | Yes (partial) | $20,000 | Exclusion of $500,000 applies; $20,000 gain is taxable |
Report the sale using Form 8949 and attach it to your Form 1040. Keep records of purchase price, closing costs, repairs, and time lived in the home for at least seven years.
Home sale profits aren't automatically taxable. The IRS distinguishes between personal residences and investment properties. Knowing the difference ensures you comply with the law and avoid unnecessary payments.