How Taxes Can Affect Your Home Sale
January 27, 2026Capital gains tax on home sale can significantly affect how much profit you keep when selling your property. Depending on how long you’ve owned the home and whether it qualifies as your principal residence, some or all of the gain may be taxable. Understanding the rules before listing your home can help you plan ahead and avoid surprises.
How Capital Gains on a Home Sale Are Calculated
Capital gains tax on home sale is calculated by subtracting your adjusted basis from the selling price. Your basis typically includes:
- the original purchase price
- certain closing costs
- major home improvements
Routine maintenance does not increase basis, but capital improvements, such as roof replacements, additions, or renovations, can reduce your taxable gain.
Short-Term vs. Long-Term Capital Gains on a Home Sale
You buy a home, the market booms, and suddenly your property is worth a lot more than you paid for it. If you sell within a year, though, the IRS classifies those profits as short-term capital gains, which are taxed as ordinary income. Depending on your tax bracket, that rate could be as high as 37%.
When Is Capital Gains Tax on a Home Sale Excluded?
If you’ve owned the home for at least two years and meet the IRS criteria for a principal residence, you may be eligible to exclude some of—or even all—those gains from taxation. The exclusion limit is up to $250,000 for single filers and $500,000 for married couples filing jointly.
How the “Two Out of Five Year” Rule Works
Only one home can be treated as your principal residence, and this is the only property that qualifies for the capital gains exclusion. The key rule is the “two out of five years” test. If you lived in the home for a total of at least 730 days within the five years before the sale, it counts. Those 24 months don’t need to be consecutive.
For married couples claiming the full $500,000 exclusion, both spouses must meet the residency requirement, even if the property is owned by just one of them. You can also offset gains from your home’s sale with unrelated capital losses from the same tax year.
That said, this exclusion can only be used once every two years.
State Capital Gains Taxes on Home Sales
Even if you qualify for the federal home sale exclusion, your state may still impose capital gains tax. State tax treatment varies widely. Some states follow federal rules closely, while others tax capital gains as ordinary income at their standard income tax rates.
If you recently moved or are selling property located in a different state, you may also face multi-state filing requirements. In certain cases, you could owe tax in the state where the property is located, even if you no longer reside there.
Before finalizing a sale, review your state’s specific rules to understand how they may affect your total tax liability. Factoring in both federal and state taxes provides a clearer picture of your true net proceeds.
Special Rules After the Death of a Spouse
In the case of a spouse’s death, the $500,000 exclusion may still apply, even if you’re now filing as a single individual—as long as you meet all the following criteria:
- the sale happens within two years of your spouse’s passing
- you haven’t remarried at the time of the sale
- neither you nor your late spouse used the exclusion on another home sold within the past two years
- you meet both the two-year ownership and residency requirements
Capital Gains Tax on Investment Property or Second Homes
If the property you’re selling is a rental or an investment asset, the exclusion doesn’t apply, even if you used it for personal reasons briefly during the year. There’s a slight silver lining: You may still offset those gains with capital losses from elsewhere in the same year.
Thinking of converting a second home into your main residence? You may be eligible for partial exclusion, but only for the time period when the property served as your principal residence. Any gains from the time it was used as a rental or an investment property won’t qualify for exclusion.
Using an Installment Sale to Reduce Capital Gains Tax
One way to reduce your capital gains tax liability is by using an installment sale. Rather than receiving the entire profit up front, payments are spread out over a set term.
This breaks the gain into smaller taxable amounts, which can lower the overall tax burden compared to a lump-sum payout. The duration of ownership still determines whether those gains are taxed as short or long term.
When to Consult a Tax Professional Before Selling
Capital gains from real estate sales can be complicated, especially when large amounts of money are involved. Working with our tax professional at Siepert & Co, LLP can help you evaluate capital gains exposure, apply available exclusions, and structure your sale strategically.