The U. S.
The U.S. tax code contains one of the most generous breaks available to individual taxpayers: the primary residence capital gains exclusion. Under Section 121 of the Internal Revenue Code, most homeowners can exclude up to $250,000 in profit from capital gains tax when they sell their primary home — or up to $500,000 for married couples filing jointly. In a market where many homeowners have accumulated significant appreciation, understanding exactly how this exclusion works — and when it does not — is essential financial literacy before you sign a sales contract.
This guide explains the eligibility requirements, common exceptions, partial exclusion scenarios, and the situations where sellers may owe tax regardless of the exclusion. It also covers how to calculate your actual taxable gain, which is often different from what homeowners expect.
Who Qualifies for the Home Sale Capital Gains Exclusion?
To use the Section 121 exclusion, you must meet two tests: the ownership test and the use test.
The ownership test requires that you have owned the home for at least two of the five years ending on the sale date. The two years do not have to be consecutive — they just need to add up to 24 months within that five-year window.
The use test requires that you have used the home as your primary residence for at least two of the five years ending on the sale date. Again, these do not have to be consecutive.
Both tests are applied independently, but both must be satisfied. A homeowner who owns a property for six years but rents it out the entire time fails the use test and cannot claim the exclusion. Conversely, someone who lived in a home for two years as a renter before buying it cannot count those rental years toward the ownership test, even if the use test would otherwise be satisfied.
You can use this exclusion multiple times in your lifetime, but only once every two years. If you sold a previous home and used the exclusion less than two years ago, you are not eligible for a new exclusion on another sale.
How Do You Calculate Your Capital Gain on a Home Sale?
Many homeowners overestimate their taxable gain because they focus on the sale price rather than the actual profit over their adjusted cost basis. Your capital gain is not simply the difference between what you paid and what you sold for. It is calculated as:
Sale Price – Adjusted Cost Basis = Capital Gain
Your adjusted cost basis starts with what you paid for the home (your purchase price) and then increases for:
- Closing costs you paid when buying the home (title insurance, legal fees, transfer taxes paid by you as the buyer)
- Capital improvements — not repairs or maintenance, but genuine improvements that add value: a new roof, an addition, a kitchen remodel, a finished basement
- Selling costs — agent commissions, attorney fees, transfer taxes paid by you as the seller, staging costs, and other direct costs of the sale all reduce your realized gain
Routine repairs and maintenance — painting, fixing a leaky faucet, replacing appliances — do not increase your basis. Only improvements that add value or prolong the property's useful life qualify.
Example: You bought a home for $200,000, spent $30,000 on a kitchen addition, paid $10,000 in buyer closing costs, and are now selling for $550,000 with $25,000 in commissions and selling costs. Your adjusted basis is $240,000 ($200,000 + $30,000 + $10,000), your realized gain is $285,000 ($550,000 − $240,000 − $25,000), and — if you qualify for the exclusion — the entire gain is sheltered for a single filer ($285,000 < $250,000 limit) or well within the married couple limit.
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 Your Gain Exceeds the $250,000 or $500,000 Limit?
If your gain exceeds the applicable exclusion — increasingly common in high-appreciation markets — you owe capital gains tax on the excess. The rate depends on your income and holding period:
- Long-term capital gains (held over one year): 0%, 15%, or 20% depending on your taxable income. Most middle-income sellers will pay the 15% rate.
- Short-term capital gains (held one year or less): Taxed as ordinary income, which can reach 37% at the top bracket.
- Net Investment Income Tax (NIIT): High-income taxpayers (above $200,000 single, $250,000 married) owe an additional 3.8% on the lesser of net investment income or the excess of modified adjusted gross income over the threshold.
For sellers in expensive coastal markets — where homes bought 15 or 20 years ago may have appreciated by $1 million or more — the tax above the exclusion can be substantial. Consulting a CPA or tax attorney before selling is worth the cost when gains are large.
Are There Exceptions That Reduce the Two-Year Requirement?
Yes. The IRS allows a partial exclusion when a sale is triggered by a qualifying unforeseen circumstance, even if you have not met the full two-year residency requirement. Qualifying circumstances include:
- Job relocation: A new job or job change that requires moving more than 50 miles from the home
- Health reasons: A sale required for medical care, or to care for an ill or disabled family member
- Unforeseen circumstances: Death, divorce or legal separation, multiple births from a single pregnancy, job loss resulting in unemployment compensation eligibility, or damage from natural disaster or terrorism
The partial exclusion is calculated as a fraction of the full exclusion: if you lived in the home for 12 months out of the required 24, you may claim 50% of the full exclusion ($125,000 for single filers, $250,000 for married couples).
How Does Renting Out Your Home Affect the Capital Gains Exclusion?
This is one of the most important and misunderstood areas of the rule. If you rented out your home for any period during which you were not living there — and you claimed depreciation deductions on your taxes — the exclusion does not shelter the depreciation recapture. Depreciation recapture is taxed as ordinary income (up to 25%) regardless of the exclusion.
Additionally, any gain attributable to periods of non-qualified use after January 1, 2009, is ineligible for the exclusion. Non-qualified use generally means any period when neither you nor your spouse used the home as a primary residence, excluding the last two years of ownership. This rule was designed to prevent investors from temporarily moving into a property to qualify for the exclusion — but it also affects homeowners who legitimately rented out a property before moving in.
For example, if you bought a home in 2018, rented it out until 2022, then moved in and lived there until selling in 2026, you would have approximately four years of non-qualified use out of an eight-year ownership period. That means roughly half of your gain above your adjusted basis would be ineligible for the exclusion, even if you otherwise meet the two-year residency requirement.
Can a Fast Cash Sale Affect Your Capital Gains Tax Situation?
The mechanics of how you sell — agent listing, cash buyer, FSBO — do not change your capital gains tax liability. What changes is the net proceeds available to you after selling costs. Selling to a direct cash buyer typically means no agent commissions (saving 5-6% of the sale price), which directly increases your net proceeds and reduces the realized gain above your exclusion if your gain is already near the limit.
For sellers with large gains who are above the exclusion threshold, reducing selling costs through a commission-free cash sale can meaningfully reduce taxable gain. For sellers well below the exclusion threshold, the tax savings are irrelevant, but the speed and simplicity of a cash sale may still be attractive for other reasons.
Whatever your situation, consult a qualified tax professional before selling. The rules are nuanced, the stakes are high in appreciated markets, and personalized advice is worth far more than any general guide — including this one. Once you have a clear picture of your tax exposure, you can make an informed decision about how and when to sell.
If you are ready to explore your options, Chitty Buys Houses provides free, no-obligation cash offers nationwide. We close on your timeline and handle the paperwork so you can focus on what comes next.
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.