For most homeowners, selling a house is the largest financial transaction of their lives. It is also one of the most tax-consequential — yet the IRS rules on capital gains from home sales are both more generous and more nuanced than most people realize.
For most homeowners, selling a house is the largest financial transaction of their lives. It is also one of the most tax-consequential — yet the IRS rules on capital gains from home sales are both more generous and more nuanced than most people realize. Understanding them before you list can save you thousands, and in many cases, can mean owing nothing at all.
This guide explains exactly how capital gains taxes work when you sell a home, who qualifies for the exclusion, how to calculate your actual taxable gain, and the strategies that sellers use to reduce or eliminate their tax exposure in 2026.
What Is Capital Gains Tax on a Home Sale, and When Does It Apply?
A capital gain is the profit from selling an asset for more than you paid for it. When you sell a home, your gain is the difference between your net proceeds and your adjusted cost basis — what you originally paid, plus certain improvements and costs, minus any depreciation you claimed.
The good news for most homeowners is that the IRS provides a substantial exclusion under Section 121 of the tax code:
- Single filers may exclude up to $250,000 of gain from their primary residence sale from federal income tax
- Married couples filing jointly may exclude up to $500,000 of gain
These exclusion limits have been the same since 1997, which means that in many high-appreciation markets, sellers are now more likely to exceed them than they were a decade ago. The median home price appreciation in many markets between 2012 and 2026 has been dramatic enough that long-term owners may face real capital gains exposure despite the generous exclusion.
If your gain exceeds the exclusion, the excess is taxed at capital gains rates — typically 0%, 15%, or 20% depending on your income and filing status, plus potentially a 3.8% Net Investment Income Tax for high earners. These rates apply to long-term gains (on assets held more than one year). Short-term gains — from homes held one year or less — are taxed as ordinary income, which is significantly less favorable.
Do You Qualify for the $250,000 / $500,000 Exclusion?
To claim the full exclusion, you must meet three tests:
Ownership test: You must have owned the home for at least two of the five years before the sale. The two years do not need to be consecutive.
Use test: You must have lived in the home as your primary residence for at least two of the five years before the sale. Again, these don't need to be consecutive. A summer home or rental property you also use personally may qualify if you meet this threshold, but investment properties held purely for rental do not qualify for this exclusion — see the separate section on rental property below.
Frequency test: You cannot have used this exclusion for another home sale in the two-year period before the current sale. You can only claim the exclusion once every two years.
For married couples claiming the $500,000 exclusion, both spouses must meet the use test, but only one needs to meet the ownership test.
Partial exclusions are available to sellers who do not fully meet these tests due to a qualifying hardship — divorce, job relocation (moving at least 50 miles for employment), health reasons, or other unforeseen circumstances. If you're selling earlier than expected, consult a tax professional about whether a partial exclusion applies to your situation.
How Do You Calculate Your Actual Capital Gain?
Your taxable capital gain is not simply your sale price minus what you originally paid. The calculation involves your adjusted basis, which accounts for several items that can significantly reduce your gain:
Starting point: purchase price. Your original purchase price, including closing costs you paid as the buyer (loan origination fees, title insurance, attorney fees, recording fees, and similar acquisition costs). Don't include points you deducted on your tax return.
Add: qualifying home improvements. Capital improvements — renovations, additions, system replacements — that added to your home's value, extended its useful life, or adapted it to a new use can increase your basis and reduce your taxable gain. This includes a new roof, HVAC system replacement, kitchen remodel, added bathroom, deck, or room addition. Routine repairs and maintenance do not qualify.
Subtract: depreciation. If you used any portion of your home for business purposes and claimed depreciation deductions, those deductions reduce your basis. Sellers who ran a home office with depreciation may face "depreciation recapture" on the amount previously deducted, taxed at a maximum 25% rate regardless of the exclusion.
Sale proceeds to use: Your net proceeds after subtracting selling expenses — agent commissions, transfer taxes, closing costs paid by the seller, and costs of repairs made specifically to facilitate the sale.
The resulting gain — net proceeds minus adjusted basis — is what you compare to the exclusion limit. Only the gain exceeding the exclusion is potentially taxable. Understanding the full costs of selling a house is essential to an accurate gain calculation, since every deductible selling expense reduces your taxable gain dollar for dollar.
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 If You've Rented Out Part or All of Your Home?
Home sales become more complex when you've rented the property at some point. The IRS applies a two-part analysis:
Periods of non-qualified use. If you rented your home for a significant period before living in it as your primary residence, part of your gain may not qualify for the exclusion. The IRS prorates the gain based on how long the property was used for non-qualified purposes versus qualified primary residence use. Periods of non-qualified use generally include any time after January 1, 2009, when the home was rented or used for investment purposes.
Depreciation recapture. If you claimed depreciation on the property while renting it, that depreciation reduces your basis and is subject to recapture at a 25% maximum rate — even if the remainder of your gain falls within the exclusion. This is one of the most frequently overlooked tax traps for sellers who converted a rental back to their primary residence before selling.
Rental property sales that don't qualify for the primary residence exclusion are covered in detail in our seller's guide to selling a rental property. For mixed-use properties — part personal, part rental — working with a tax professional before you list is strongly advisable.
What Strategies Can Reduce Capital Gains Tax When Selling?
Beyond the Section 121 exclusion, sellers have several legitimate strategies to reduce their tax exposure:
Document every capital improvement. Every qualifying improvement you made during ownership increases your basis and reduces your gain. Gather contracts, receipts, and permit records for every renovation project. Many homeowners underestimate their basis because they never aggregated their improvement history.
Time the sale for favorable rates. If you're close to the two-year ownership and use thresholds, waiting until you qualify for the full exclusion is often worth the carrying cost. Similarly, if your gain will exceed the exclusion, selling in a year when your income is lower (early retirement, sabbatical, between jobs) may qualify you for lower capital gains rates or even the 0% rate, which applies to taxpayers in the lower income brackets.
Consider installment sales for large gains. If your gain significantly exceeds the exclusion, an installment sale — where the buyer pays over time rather than all at once — can spread your taxable gain across multiple years, potentially keeping you in lower tax brackets each year. Not all buyers and not all property types are suited to installment arrangements, but it is a strategy worth discussing with a tax professional for large-gain situations.
1031 Exchange for investment property. If the property being sold is investment or rental property, a Section 1031 like-kind exchange allows you to defer capital gains taxes by reinvesting proceeds into a replacement investment property. Rules are strict — timelines, intermediary requirements, and property qualification criteria must all be met precisely — but for investment sellers who want to continue owning real estate, a 1031 exchange is the most powerful available tax deferral tool.
Understanding your specific tax situation before you list allows you to make informed decisions about timing, pricing, and structure. Sellers considering a fast cash sale — which closes on your timeline — have particular flexibility in choosing which tax year their sale falls in, a planning opportunity that traditional sales with extended closing timelines don't always provide. Learn how a cash home sale works and request your free cash offer from Chitty Buys Houses to understand your options.
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.