Capital Gains on a Home Sale Exceeding the Exclusion
Most sellers of primary residences pay no federal income tax on gains up to $250,000 (single) or $500,000 (married filing jointly), thanks to the Section 121 exclusion. But when a home’s profit exceeds these thresholds—as it does in expensive markets and long-held properties—the overage becomes taxable capital gain. Calculating and reporting that excess requires precision, because it can push a homeowner into an unfamiliar tax situation.
The Section 121 Exclusion and Its Limits
Under Section 121 of the Internal Revenue Code, homeowners who meet ownership and use tests can exclude up to $250,000 ($500,000 if married filing jointly) of gain from federal income tax when they sell a primary residence. This is a powerful tax break; it means millions of home sales occur entirely tax-free.
To qualify, you must have:
- Owned the home for at least 2 of the last 5 years before sale
- Lived in the home (as your principal residence) for at least 2 of the last 5 years before sale
- Not used the exclusion on another home within the past 2 years
These requirements are strictly applied. If you owned the home for 1.5 years, you do not qualify. If you lived elsewhere for 3+ years of the past 5, you do not qualify. If you sold another home 18 months ago and took the exclusion, you cannot take it again.
Calculating Your Cost Basis
To determine the taxable gain, you must know your cost basis—the original purchase price plus certain improvements, minus depreciation (if the home was ever rented or used for business).
Cost basis formula:
- Original purchase price
- Plus: Capital improvements (roof replacement, addition, major renovations)
- Plus: Certain closing costs (title insurance, survey, transfer tax if paid by buyer)
- Minus: Depreciation taken (only if the home was ever rented or used as a business)
- = Adjusted cost basis
Common home expenses that do not increase basis: routine maintenance, repairs, painting, new carpet (unless part of a broader renovation), HOA fees, property taxes, mortgage interest.
A home bought for $400,000 with $60,000 in kitchen and bathroom upgrades has an adjusted basis of $460,000.
Calculating the Gain and the Taxable Overage
Once you have adjusted basis, subtract it from the sale price (net of selling costs like realtor commission and title fees, typically 5–8% of sale price).
Gain calculation:
- Sale price: $1,200,000
- Less: Selling costs (6% realtor commission): -$72,000
- Net sale proceeds: $1,128,000
- Less: Adjusted cost basis: -$460,000
- Total gain: $668,000
For a single filer, the Section 121 exclusion is $250,000. The taxable overage is:
- $668,000 − $250,000 = $418,000 taxable gain
This $418,000 is long-term capital gain (assuming the home was held over one year, which it was). Federal tax at the long-term rate is 0%, 15%, or 20% depending on the taxpayer’s total income.
For a married couple filing jointly, the exclusion is $500,000:
- $668,000 − $500,000 = $168,000 taxable gain
- Federal tax on $168,000 at 15% (typical rate): ~$25,200
The couple still pays state income tax on the full $668,000 (or the portion taxed by the state).
State Taxes and the Full Cost
Federal tax is not the whole story. Most states with income tax impose a capital gains tax on home sales and do not recognize the Section 121 exclusion. California, for instance, taxes the full gain (after subtracting basis) at ordinary income rates—currently up to 13.3%.
Using the example above, a couple in California with $668,000 gain and 13.3% state tax would owe roughly $89,000 in state tax on the overage (or the full gain if the state disallows the Section 121 benefit). Federal tax (15%) on $168,000 is another $25,200. Total: $114,200 in combined income tax.
Some states offer their own primary-residence exclusions or capital-gains rate reductions, but most do not match the federal $250,000/$500,000 threshold. Married couples in high-tax states can face effective tax rates of 35%–50% on gains exceeding the federal exclusion.
Reporting the Gain on Form 1040 and Schedule D
The taxable portion of the home sale is reported on Schedule D (Capital Gains and Losses), then carried to the main Form 1040. You must:
- Attach a settlement statement (Closing Disclosure) showing the sale price and basis
- Line-by-line describe the transaction on Schedule D
- Calculate the gain
- Enter the Section 121 exclusion amount (negative, reducing taxable gain)
- Enter the taxable gain on Schedule D
- Carry the long-term capital gain to Form 1040
If the gain exceeds the exclusion, it typically flows to the favorable long-term capital gains rates. If the gain is below the exclusion, you enter zero taxable gain and owe no federal income tax (though you still file the return to document the transaction for IRS records).
The Married Filing Separately Trap
Married couples must typically file jointly to claim the full $500,000 exclusion. If either spouse files separately, each is limited to $250,000, and combined they lose $250,000 of exclusion.
Example: A couple with $600,000 of gain—above the $500,000 joint exclusion—might consider splitting the sale or filing separately to each take $250,000. This does not work. If they file separately, they each lose the full exclusion and owe tax on the entire $600,000 gain (split, so $300,000 each). Only joint filing allows the $500,000 exclusion.
There is a limited exception for divorces: if the home is transferred to one spouse as part of a settlement, each may be entitled to a separate exclusion, but the rules are strict and require legal advice.
Partial-Year Exclusion and the Pro-Rata Rule
If you do not meet the full 2-year ownership or use requirement but have lived in the home for some shorter period, you may qualify for a partial exclusion. You exclude a pro-rata portion of $250,000 (or $500,000), calculated as:
- Months lived in home ÷ 24 × Maximum exclusion
- Example: Owned and lived in home for 18 months
- Exclusion = (18 ÷ 24) × $250,000 = $187,500 (single)
This pro-rata rule applies if you sold due to a change in employment, health, or other unforeseen circumstance, and the home sale was not within 2 years of a prior exclusion use. It is a safety valve for people who move sooner than expected.
Depreciation Recapture and Investment Property
If any portion of the home was ever rented out, claimed as a home office for business, or otherwise used as investment property, that portion is subject to depreciation recapture. The gain on the investment-use portion is taxed at up to 25% (fed), not the long-term capital gains rate, even if the home was held for years.
A homeowner who rents out a guest house or converts a finished basement to a rental unit will owe recapture tax on the gain attributable to those square feet. The Section 121 exclusion does not apply to investment-use portions, though this is rarely a factor for true primary residences.
Planning for Gains Exceeding the Exclusion
Homeowners anticipating large gains (or advisors planning for clients) sometimes time sales to use exclusions strategically. Married couples can coordinate timing if one spouse recently used the exclusion; they might wait two years before selling to both be eligible. Unmarried partners cannot aggregate exclusions and should plan accordingly.
In extremely high-gain situations—a home bought for $200,000 and sold for $2 million—the overage of $1.5 million (for a single filer) is substantial. Both federal and state taxes apply; effective rates can easily exceed 25–30%. Advanced planning with a tax advisor is worthwhile.
See also
Closely related
- Capital-gains-tax-investor — Overview of capital gains taxation and rates
- Long-term-capital-gain-tax — Favorable tax treatment for gains held over 1 year
- Cost-basis — How to calculate the cost basis of home and investments
- Depreciation-recapture-investor — Recapture tax on investment property gains
- Schedule-d — IRS form for reporting capital gains
- Residential-real-estate — Home purchase and ownership context
Wider context
- Tax-bracket-investor — How capital gains affect overall tax brackets
- Estate-tax — Stepped-up basis planning at death
- Delinquency — Foreclosure and short-sale implications for gain exclusion
- Mortgage-backed-security — The broader housing finance market