For most homeowners, the single biggest financial event of their lifetime is selling their home. And yet the tax implications of that sale remain a mystery to millions of sellers — until they're sitting across from their accountant after closing, wondering why they owe money to the IRS.
For most homeowners, the single biggest financial event of their lifetime is selling their home. And yet the tax implications of that sale remain a mystery to millions of sellers — until they're sitting across from their accountant after closing, wondering why they owe money to the IRS.
The good news: federal tax law includes a generous exclusion for homeowners who sell their primary residence. But the rules come with conditions, exceptions, and limits that not everyone understands. This guide explains how capital gains tax on home sales works in 2026, what you can do to minimize your liability, and when it makes sense to act quickly rather than wait.
What Is Capital Gains Tax and How Does It Apply to Home Sales?
Capital gains tax is a federal tax on the profit you earn from selling an asset — including real estate. The gain is calculated as the difference between your adjusted cost basis (roughly what you paid for the home, plus qualifying improvements) and your net sale price after selling costs.
There are two categories:
- Short-term capital gains: Applies if you owned the property for one year or less. Taxed at ordinary income rates, which can reach 37% for high earners.
- Long-term capital gains: Applies if you owned the property for more than one year. Taxed at preferential rates of 0%, 15%, or 20%, depending on your taxable income.
For most homeowners who have lived in their property for several years, long-term capital gains rates apply — and the primary residence exclusion may eliminate the tax entirely.
What Is the Primary Residence Exclusion and Who Qualifies?
The most powerful tax break available to home sellers is the Section 121 exclusion, which allows you to exclude up to $250,000 in capital gains from your taxable income if you're single, or up to $500,000 if you're married filing jointly.
To qualify, you must meet two tests:
- Ownership test: You must have owned the home for at least two of the five years immediately before the sale.
- Use test: You must have used the home as your primary residence for at least two of the five years immediately before the sale.
The two-year periods for ownership and use don't need to be the same two years, and they don't need to be continuous. You can rent the home out for part of the five-year lookback period and still qualify for a partial or full exclusion, depending on the timing.
Importantly, you can use this exclusion repeatedly throughout your life — but you must wait at least two years between uses. If you sold another home and claimed the exclusion within the past two years, you cannot claim it again on a current sale.
How Do You Calculate Your Capital Gain on a Home Sale?
Your taxable gain is not simply your sale price minus your original purchase price. The IRS allows you to increase your cost basis — reducing your taxable gain — through legitimate adjustments:
- Original purchase price plus closing costs you paid at purchase (loan origination fees, title insurance, recording fees)
- Plus qualifying capital improvements made during ownership: room additions, roof replacements, new HVAC systems, kitchen remodels, finished basements, driveways, and similar permanent upgrades. Routine repairs and maintenance do not count.
- Minus depreciation claimed if you ever used the property as a rental or home office (this can increase your gain)
Your net sale price is your gross sales price minus selling expenses: agent commissions, closing costs, transfer taxes, and seller-paid concessions. The difference between your adjusted basis and net sale price is your realized gain — the figure on which tax is calculated.
Example: You bought your home for $250,000 in 2015, made $40,000 in qualifying improvements, and sell it in 2026 for $600,000 after paying $36,000 in selling costs. Your adjusted basis is $290,000, your net sale price is $564,000, and your realized gain is $274,000. As a married couple, your entire gain falls under the $500,000 exclusion — zero federal capital gains tax.
Need to Sell Your House Fast?
Get a free, no-obligation cash offer from Chitty Buys Houses. No repairs, no fees — close on your timeline.
What Happens When Your Gain Exceeds the Exclusion Limit?
In high-appreciation markets, it is increasingly possible for long-time homeowners to exceed the $500,000 exclusion cap. If your gain is $700,000 and you're married, the first $500,000 is excluded and the remaining $200,000 is subject to long-term capital gains tax at either 15% or 20%, depending on your income — plus an additional 3.8% Net Investment Income Tax if your modified adjusted gross income exceeds $250,000 for married filers.
Strategies to manage excess gains include:
- Document every improvement meticulously. Many homeowners undercount their capital improvements because they didn't keep receipts. Permits, contractor invoices, and bank statements can reconstruct your record.
- Consult a CPA before listing. Timing the sale to fall in a lower-income year can shift you into the 15% bracket instead of 20%.
- Consider installment sales. Spreading proceeds over multiple years via seller financing can spread the gain recognition and potentially keep you in lower tax brackets.
Are There Special Rules for Inherited Homes, Divorces, or Relocations?
Several life circumstances create specific capital gains situations:
Inherited property: Inherited homes receive a stepped-up cost basis equal to the property's fair market value on the date of the owner's death. If you sell soon after inheriting, you may owe little or no capital gains tax regardless of how much the property appreciated during the original owner's lifetime. Learn more in our guide to selling inherited homes.
Divorce: If a couple divorces and one spouse is awarded the home, the non-occupying spouse's ownership period still counts toward the two-year test for five years after the divorce. This means a divorced seller who didn't live in the home for two years can still claim a partial exclusion based on the ownership test alone — up to $250,000.
Forced relocation: The IRS allows a partial exclusion if you must sell before meeting the two-year use test due to a job change, health reason, or other unforeseen circumstance. The partial exclusion equals the fraction of two years you actually lived in the home multiplied by the full exclusion amount.
Should You Sell Now or Wait for Tax Reasons?
Tax considerations rarely justify delaying a home sale if the market, your financial needs, and your life circumstances favor selling now. The cost of carrying a property — mortgage payments, property taxes, insurance, and maintenance — often exceeds the tax savings from waiting. Our analysis of the true cost of waiting to sell illustrates how quickly those carrying costs accumulate.
That said, there are legitimate timing considerations: if you're 18 months into a two-year ownership or use period, waiting a few months to qualify for the exclusion could be worth tens of thousands of dollars in tax savings. Conversely, if you've already triggered the exclusion within the past two years, waiting at least two years before your next sale is necessary to claim it again.
The bottom line: talk to a tax professional before you sign a listing agreement, not after. Understanding your specific situation — your basis, your gain, your income, and your exclusion eligibility — takes an hour with a CPA and can save you a significant amount of money.
If you're ready to sell quickly and want a no-obligation cash offer with a flexible timeline that works for your tax planning, contact Chitty Buys Houses today. We buy homes in any condition, nationwide, and can close on your schedule.
Frequently Asked Questions
Related Guides
Last updated:
Chitty Buys Houses is not a licensed real estate brokerage. We connect homeowners with cash buyers and licensed professionals.