Home Sale Capital Gains Tax Planning
The $500,000 exclusion is generous — but if you bought your home in 2005 for $600K and it's now worth $2.2M, you have a $1.6M gain. After the exclusion, $1.1M is fully taxable. At 2026 federal rates plus your state's top rate, that's a $350,000–$500,000 tax bill. Here's how the math works and what you can do about it.
The §121 exclusion: how it works
IRC §121 allows you to exclude up to $500,000 in gain from the sale of your primary residence if you are married filing jointly — or $250,000 if single. To qualify, you must meet two tests:1
- Ownership test: You owned the home for at least 24 months (2 years) during the 5 years before the sale. For MFJ, only one spouse needs to meet this.
- Use test: You used the home as your primary residence for at least 24 months during the same 5-year window. For MFJ, both spouses must satisfy this independently.
You can only use the exclusion once every two years. If you sell two homes in 24 months, only one qualifies. There is no lifetime cap on how many times you can use it — just the two-year lookback period.
What the $500K exclusion actually covers at today's prices
The §121 exclusion was set in 1997 and has never been inflation-indexed. At today's home values in high-cost metros, it often leaves a substantial taxable gain. Here's what the math looks like at different home values, assuming a couple who bought 20 years ago:
| Home value today | Original basis (example) | Total gain | After §121 exclusion ($500K) | Federally taxable gain |
|---|---|---|---|---|
| $1,200,000 | $400,000 | $800,000 | $300,000 | $300,000 |
| $1,800,000 | $500,000 | $1,300,000 | $800,000 | $800,000 |
| $2,500,000 | $650,000 | $1,850,000 | $1,350,000 | $1,350,000 |
| $3,500,000 | $800,000 | $2,700,000 | $2,200,000 | $2,200,000 |
Adjusted basis includes your purchase price plus capital improvements (an addition, kitchen remodel, new roof) — not maintenance. Keep receipts. Every $50,000 in verifiable improvements reduces your taxable gain by $50,000, which at 23.8% saves roughly $11,900 in federal tax.
The 2026 tax rates on the taxable portion
Long-term capital gains on a primary residence sale — held more than one year — are taxed at 0%, 15%, or 20% depending on your total taxable income. The Net Investment Income Tax (NIIT) adds 3.8% on top for high earners.23
| Your taxable income (MFJ) | Federal LTCG rate | NIIT applies? | Effective LTCG rate |
|---|---|---|---|
| Up to $98,900 | 0% | No (MAGI < $250K) | 0% |
| $98,901 – $250,000 | 15% | No | 15% |
| $250,001 – $613,700 | 15% | Yes (on gains exceeding $250K threshold) | Up to 18.8% |
| Over $613,700 | 20% | Yes | 23.8% |
For most $2M–$20M households, the full 20% + 3.8% = 23.8% rate applies. Your ordinary income already pushes you well above the $613,700 MFJ threshold before any home sale gain stacks on top.
If you ever rented the home: depreciation recapture
If you converted your home to a rental — even briefly — you likely claimed depreciation deductions. That depreciation reduces your adjusted basis and is "recaptured" when you sell at a maximum rate of 25%, plus 3.8% NIIT for high earners.4
Example: You rented the home for 4 years and claimed $60,000 in total depreciation. Your adjusted basis is now $60,000 lower. When you sell, that $60,000 in recaptured depreciation is taxed at 25% (+ 3.8% = 28.8% effective) — a $17,280 tax hit on just the depreciation portion.
Important nuance: the §121 exclusion does not eliminate depreciation recapture. Even if all your gain is below the $500,000 exclusion threshold, any prior depreciation claimed is still taxable as unrecaptured §1250 gain. This catches many homeowners by surprise.
State taxes on home sale gains
Most states tax long-term capital gains as ordinary income, adding a significant layer on top of the federal bill. A few states have no income tax at all:
| State | Top rate on home sale gain | Notes |
|---|---|---|
| California | 13.3% | No state LTCG preference; taxed as ordinary income |
| New York + NYC | 10.9% + 3.876% | NYC residents: up to 14.776% combined state+city |
| New Jersey | 10.75% | Taxed as ordinary income |
| Minnesota | 9.85% | Taxed as ordinary income |
| Oregon | 9.9% | Taxed as ordinary income |
| Massachusetts | 5.0% | Plus 4% surtax (Question 1) on income > $1M |
| Illinois | 4.95% | Flat rate, no exclusion |
| Washington | 7.0% | On LT gains > $262,000; primary residence likely excluded under WAC 458-20-00101 |
| Texas, Florida, Nevada | 0% | No state income tax |
For a California household with a $1.5M taxable gain (after exclusion), the state adds $199,500 to the federal bill of $357,000 — a combined $556,500 total. That's 37% of the entire gain. If that same household is considering moving to Florida or Texas before selling, the state tax savings alone can exceed $200,000.
Strategies to reduce the home sale tax hit
1. Establish domicile in a no-tax state before selling
If you are planning to relocate anyway, the sequencing matters enormously. Establishing domicile in Florida or Texas — and genuinely ceasing California or New York residency before the sale — can eliminate the state tax entirely. California's Franchise Tax Board audits these moves aggressively: the 19-factor "closest connections" test, proof of 546+ days outside California in a 24-month window, and clear breaks in community ties. This is not a casual move — but if you are leaving anyway, the timing of the close date around your domicile change can save six figures. See our state income tax planning guide for the full exit checklist.
2. Time the sale in a lower-income year
Long-term capital gains stack on top of your ordinary income. If you can sell in a year where your ordinary income is unusually low — a sabbatical year, the year before a new job starts, early retirement before Social Security begins — some of your gain may fall in the 15% bracket rather than 20%. On a $500,000 taxable gain, the difference between 20% and 15% is $25,000 in federal savings.
3. Maximize your basis with capital improvements
Every dollar of documented capital improvements increases your adjusted basis and reduces taxable gain. Common improvements that qualify: additions, kitchen and bath remodels, new roof, deck, finished basement, HVAC replacement, solar panel installation, landscaping that is part of original construction. Maintenance does not qualify (repainting, minor repairs). Reconstruct your improvement records before selling — a tax professional can help identify what you may have missed.
4. "Swap till you drop": hold and use the stepped-up basis at death
Under IRC §1014, assets inherited at death receive a stepped-up basis to fair market value — eliminating all embedded capital gain permanently.5 If you never sell the home and it passes to your heirs, your children can sell it the next day and pay zero capital gains tax, regardless of how much it appreciated during your lifetime. For a $2M home with a $400K basis, this represents a permanent elimination of a $1.6M gain — saving $380,000+ in taxes that would have been owed if you sold it yourself.
The tradeoff: you must live in or hold the property through death. If you want to downsize and access the equity, the tax cost is the price of that liquidity. But if the goal is simply to pass on a high-value home to your children, not selling it is the single most tax-efficient option.
5. Use a Qualified Personal Residence Trust (QPRT)
A QPRT lets you transfer a home to an irrevocable trust at a discounted gift-tax value, retain the right to live there for a fixed term (e.g., 10 years), and pass full ownership to your heirs at the end of the term. If you outlive the trust term, the home is out of your estate at a fraction of its current value — using less of your $15M lifetime gift/estate exemption (OBBBA, permanent).
The tax tradeoff: heirs receive your original basis (not a stepped-up basis), so they will owe capital gains when they sell. At current LTCG rates, this trade generally still favors the QPRT when estate tax exposure is real. See our trust strategies guide for QPRT mechanics and the GRAT success calculator.
6. Installment sale for a seller-financed transaction
If you are selling to an individual buyer who is willing to finance the purchase, an installment sale under IRC §453 lets you spread the gain — and the tax — over multiple years. This doesn't eliminate the tax but can prevent a large one-time spike that pushes all the gain into the 20% bracket or a high IRMAA tier in one year. Note: installment sales on high-value transactions can trigger "unstated interest" rules; a tax attorney should review any such arrangement.
7. What doesn't work: 1031 exchange
IRC §1031 like-kind exchanges apply only to property held for investment or business use. Your primary residence explicitly does not qualify, even if it has appreciated dramatically. If you want to convert to a rental first, you need at least 12 months of genuine rental activity (often 24 months to be safe) before a 1031 exchange — at which point you've also forfeited the §121 exclusion for the rental period. The strategies are generally incompatible unless structured very carefully with a long time horizon.
Interactive home sale tax calculator
Enter your numbers below to estimate your net proceeds after taxes.
The stepped-up basis advantage: a worked example
Consider two couples who each own a home worth $2.5M, purchased for $500K in 2000 (adjusted basis $500K with improvements).
Couple A sells today (2026 MFJ, $300K ordinary income, California resident):
- Total gain: $2.0M
- Less §121 exclusion: $500K
- Taxable gain: $1.5M
- Federal LTCG (all at 20%) + NIIT: $357,000
- California (13.3%): $199,500
- Total tax: $556,500 — 37% of the gain
Couple B holds until death (basis steps up to $2.5M):
- Heirs sell at $2.5M (or slightly higher) — zero capital gains tax
- The $556,500 in taxes is permanently eliminated
This is the most powerful home-sale tax strategy available: simply not selling. For households with a $15M estate tax exemption (OBBBA, permanent), the home will likely pass estate-tax-free as well. See our estate planning guide for how the exemption interacts with your real estate holdings.
Key questions for your tax advisor before you sell
- Have I met both the ownership and use tests — including any period the home was rented?
- What is my documented adjusted basis, including all improvements?
- What year would minimize the stacking effect on my LTCG rate?
- If I'm relocating, is my domicile change complete before the sale date?
- Is the stepped-up basis strategy viable for my estate plan, or do I need the liquidity?
- If the home was ever rented, how much depreciation was claimed and when?
Related guides
- State income tax planning and domicile exit checklist
- Estate planning for wealthy families: stepped-up basis, trusts, and beneficiary designations
- Capital gains tax strategies: 7 approaches for $2M–$20M households
- GRAT, SLAT, and QPRT: advanced trust strategies + QPRT mechanics
- 1031 exchange planning: investment property deferral
- IRMAA planning: one-time income spikes from home sales
Get matched with a specialist
A fee-only advisor who specializes in wealthy families can model the sell-vs-hold tradeoff for your specific situation — before you sign a listing agreement. Free match, no obligation.
Wealthy Advisor Match is a matching service. We connect you with vetted fee-only financial advisors in our network — we don't manage money or provide advice ourselves. Advisors in our network are fiduciaries who charge transparent fees (not product commissions), and we match you based on your specific situation.
Sources
- IRS Topic No. 701: Sale of Your Home — §121 exclusion, ownership and use tests
- Tax Foundation: 2026 Federal Tax Brackets — LTCG rates per IRS Rev. Proc. 2025-32
- IRS Topic No. 559: Net Investment Income Tax — 3.8% on MAGI above $250K MFJ (not inflation-adjusted)
- IRS Publication 544: Sales and Other Dispositions — unrecaptured §1250 gain at 25% max rate
- IRS Publication 523 (2025): Selling Your Home — §121 eligibility, depreciation recapture, partial exclusion rules
Tax values verified against 2026 rules: §121 exclusion $500K MFJ / $250K single (permanent statutory amount, unchanged by OBBBA); 2026 LTCG brackets per IRS Rev. Proc. 2025-32; NIIT threshold $250K MFJ (§1411, not indexed); unrecaptured §1250 gain 25% per IRC §1(h)(1)(D). Values current as of June 2026.