What to Do with Home Sale Proceeds: A Financial Planning Guide
Selling a home that has appreciated significantly creates a compressed window: you need to confirm the tax picture, set a reserve, decide on next housing, and plan the deployment of investable capital—often in the same few weeks. Mistakes made here are among the hardest to unwind.
The §121 exclusion: your first calculation
The primary residence gain exclusion under IRC §121 allows eligible homeowners to exclude up to $250,000 of gain from federal income tax (or $500,000 if married filing jointly).1 This is one of the largest tax breaks in the code for most households—and it does not change with inflation. The exclusion amounts have remained at $250K/$500K since 1997.
To qualify for the full exclusion, you must meet two tests:
- Ownership test: You owned the home for at least 2 of the 5 years before the sale.
- Use test: You used the home as your principal residence for at least 2 of the 5 years before the sale. The 2-year periods do not need to overlap and do not need to be continuous.
- One exclusion per 2 years: You cannot claim the exclusion on a second home sale if you already claimed it within the prior 24 months.
Divorced spouses: If the home is transferred to you in a divorce and you later sell, the years your former spouse owned the home count toward your ownership test. If your former spouse lived there as their principal residence, those years count toward your use test as well.1
Calculating your taxable gain
The exclusion shields gain from tax—but only gain above the exclusion is the problem. The sequence matters:
- Amount realized: Sale price minus selling costs (agent commission, closing costs, negotiated repairs, transfer taxes). If you sold for $1.4M with $90K in costs, the amount realized is $1,310,000.
- Adjusted basis: Your original purchase price plus documented capital improvements (additions, renovations, roof, HVAC, kitchen, windows—not maintenance). If you paid $450K and spent $80K on improvements, adjusted basis is $530,000. Keep receipts.
- Realized gain: Amount realized minus adjusted basis. In this example: $1,310,000 − $530,000 = $780,000.
- Subtract the exclusion: $780,000 − $500,000 (MFJ) = $280,000 taxable gain.
- Depreciation recapture: If any portion of the home was rented or used for business and you claimed depreciation deductions, that depreciation must be recaptured at a maximum 25% rate—it is not sheltered by the §121 exclusion.2
| Component | Tax rate (federal, 2026) | Note |
|---|---|---|
| Gain within §121 exclusion | 0% — excluded | $250K single / $500K MFJ limit |
| Long-term capital gain above exclusion (taxable income ≤ $98,900 MFJ / $49,450 single) | 0% LTCG rate | Gain stacks on top of ordinary income3 |
| Long-term capital gain above exclusion (taxable income $98,901–$613,700 MFJ / $49,451–$566,700 single) | 15% LTCG rate | Most homeowners fall here3 |
| Long-term capital gain above exclusion (taxable income above $613,700 MFJ / $566,700 single) | 20% LTCG rate | Plus 3.8% NIIT if MAGI ≥ $250K MFJ / $200K single |
| Unrecaptured §1250 gain (depreciation on rented portion) | Up to 25% | Applies to prior rental use with depreciation claimed |
State capital gains tax also applies in most states. California taxes capital gains as ordinary income (up to 13.3%). Some states (TX, FL, NV, WA, WY, AK, SD) have no income tax. Factor your state into the reserve estimate.
Net Investment Income Tax (NIIT): The 3.8% NIIT applies to the lesser of (a) net investment income or (b) the amount by which MAGI exceeds $200,000 (single) / $250,000 (MFJ). Capital gain from the home sale is net investment income.2 This threshold is not indexed for inflation.
IRMAA: the 2-year Medicare lookback on a large home sale
If you are on Medicare or approaching age 65, a large capital gain on a home sale in 2026 will increase your Medicare Part B premiums in 2028—because Social Security sets IRMAA surcharges using your MAGI from two years prior.4
2026 IRMAA thresholds for reference (based on 2024 MAGI; 2028 thresholds will be inflation-adjusted but directionally similar):4
| MAGI (single) | MAGI (married filing jointly) | Monthly Part B premium |
|---|---|---|
| Up to $109,000 | Up to $218,000 | $202.90 (base) |
| $109,001 – $137,000 | $218,001 – $274,000 | $284.10 |
| $137,001 – $164,000 | $274,001 – $328,000 | $365.30 |
| $164,001 – $191,000 | $328,001 – $382,000 | $446.50 |
| $191,001 – $500,000 | $382,001 – $750,000 | $527.70 |
| Over $500,000 | Over $750,000 | $689.90 |
A couple who normally earns $150,000 per year and reports a $400,000 taxable gain from a home sale will have 2026 MAGI above $500,000 — pushing 2028 Part B premiums to $689.90 per person per month ($16,560 per year for both), versus $202.90 ($4,870/year) at baseline. A one-time home sale can create a two-year IRMAA surcharge that costs more than the capital gains tax itself if you are already drawing down modest retirement income.
What about a 1031 exchange?
A 1031 like-kind exchange allows investors to defer capital gains by rolling proceeds directly into a replacement property of equal or greater value.5 This is a powerful tool for real estate investors—but it is not available for your primary residence.
IRC §121 (primary residence exclusion) and IRC §1031 (like-kind exchange deferral) are separate provisions and serve different purposes. The IRS does not allow a §1031 exchange for the sale of a home that qualifies as your principal residence.
If you also own investment or rental property, those properties may qualify for a 1031 exchange—and can be part of the same planning conversation. But the home you lived in does not.
First 90 days: cash policy for home sale proceeds
The period immediately after closing is when the most consequential decisions get made in haste. A written cash policy before any distribution reduces risk.
- Set the tax reserve first. Estimate federal capital gains tax on the taxable portion plus NIIT plus state tax, and move that amount to a separate FDIC-insured account or Treasury money market fund before anything else. Do not spend the reserve.
- Hold near-term liquidity for housing transition costs. If you are buying the next home, keep enough liquid for the down payment, closing costs, and 3–6 months of carrying costs. Bridge loans and contingency periods require accessible cash.
- Do not rush the investment of the remainder. A lump sum of investable capital earned over 20 years of home appreciation should have a deliberate deployment plan—not an ad-hoc one made at closing. A 90-day hold in a HYSA or T-bill fund costs almost nothing and protects you from premature decisions.
- Respond to requests in writing. Family members, financial product salespeople, and charitable solicitations often appear quickly after a major liquidity event is visible. A written policy—held in advance—makes saying "not yet" easier.
Deploying the investable capital
Once the tax reserve is set aside and the next housing decision is made, the remainder is investable capital—possibly for the first time in your household's financial life at this scale. The same deployment discipline that applies to other windfalls applies here:
- Three buckets: Near-term liquidity (12–24 months of expenses in cash and short-term bonds), medium-term capital (3–7 year horizon in balanced allocation), and long-term invested capital (equities, real assets, for horizons beyond 10 years). Size the buckets before making any investment commitments.
- Lump sum vs. phased deployment: Statistically, investing the full investable amount immediately outperforms a systematic monthly plan about two-thirds of the time over long horizons. But for a household experiencing their first large liquidity event, a 6–12 month deployment schedule reduces regret and prevents panic selling if markets drop shortly after deployment. Choose based on your psychology as much as the math.
- Asset location: Taxable account proceeds from a home sale are best deployed in tax-efficient assets (broad index funds, municipal bonds if you are in the top bracket) rather than high-turnover or ordinary-income-generating investments. If you also have IRA room, make sure allocation decisions reflect which assets go in which account.
- IRMAA-aware income planning: If you will be on Medicare within two years, structure the investable capital's income profile carefully—high dividend-paying equity or bond funds that generate above-the-line ordinary income can push future MAGI into a surcharge tier.
For a full framework, see our Windfall Investment Strategy Guide and How Much Can You Safely Spend calculator page.
If you are buying the next home
A home sale and purchase often happen in close sequence, which creates its own planning complexity:
- Down payment liquidity: Keep enough in accessible cash to close on the next home without depending on investment returns. Markets can drop between signing and closing.
- Bridge loans: If you are buying before selling—or if there is a settlement overlap—a bridge loan using your equity can provide liquidity. Rate and term matter; bridge loans are typically short-term (6–12 months) at floating-rate pricing.
- Proceeds above the next home's purchase price: The residual after buying the next home is the windfall. Treat it as investable capital and apply the three-bucket framework. Do not spend down the surplus as a lifestyle reward before modeling the long-term plan.
- Downsizing retirees: Selling a $1.4M family home and buying a $700K condo creates a $700K+ liquidity event (minus taxes and costs). This is often the largest single capital injection in a retiree's financial life—and the moment when an income policy becomes essential. See our safe spending guide.
What a fee-only advisor does for home sale proceeds
Most home sellers work with a real estate agent and a CPA—but neither typically coordinates the full financial picture. A sudden-wealth advisor fills the gap:
- Adjusted basis documentation: Help identify and document qualifying capital improvements that increase your basis and reduce taxable gain. A $50,000 addition you forgot to record can cost $7,500–$10,000 in extra capital gains tax.
- Tax reserve modeling: Calculate the exact federal + state reserve accounting for your filing status, other income, NIIT threshold, depreciation recapture, and IRMAA exposure—before closing.
- IRMAA projection: If you are approaching Medicare age, model the 2-year lookback impact and explore whether charitable giving (DAF contribution from proceeds) can reduce MAGI in the sale year.
- Investment policy statement: Write a written plan for deploying investable capital—bucket sizing, asset allocation, deployment schedule, income target—before any accounts are opened.
- Coordination with your CPA and estate attorney: A home sale often triggers beneficiary updates, trust amendments, or estate plan reviews. The advisor's role is to align the financial plan with those professionals.
For a complete first-steps checklist, see our Sudden Wealth Planning Checklist. For the full windfall tax picture, see our Windfall Tax Planning Guide.
Get matched with a fee-only home sale advisor
A home sale at significant gain involves tax, investment, housing, and estate decisions that interact in ways that are easy to miss. A fee-only sudden-wealth advisor can coordinate the full picture—adjusted basis, tax reserve, IRMAA exposure, and investable capital deployment—without selling products.
Sources
- IRC §121 — Exclusion of gain from sale of principal residence; $250,000 single / $500,000 MFJ exclusion, 2-of-5-year ownership and use tests, reduced exclusion for partial eligibility (work, health, unforeseen circumstances), and divorced-spouse tack-on rule. IRS Publication 523: Selling Your Home (2025 edition); IRS Topic 701: Sale of Your Home.
- IRC §1411 — Net Investment Income Tax (3.8%) on capital gain above MAGI threshold ($200K single / $250K MFJ, not indexed); unrecaptured §1250 depreciation recapture taxed at maximum 25% rate for rental portion of a home. IRS Topic 409: Capital Gains and Losses.
- 2026 long-term capital gains rate thresholds: 0% up to $49,450 (single) / $98,900 (MFJ); 15% to $566,700 (single) / $613,700 (MFJ); 20% above those amounts. Per IRS Rev. Proc. 2025-32 as updated by 2026 OBBBA inflation adjustments. IRS Rev. Proc. 2025-32; IRS 2026 OBBBA-amended inflation adjustments.
- 2026 IRMAA thresholds: SSA uses 2024 MAGI to set 2026 Medicare Part B premiums; Part B base $202.90/month; surcharges up to $487.00/month per person for MAGI over $500K (single) / $750K (MFJ). Form SSA-44 used to appeal IRMAA when income dropped due to a qualifying life-changing event. CMS Fact Sheet: 2026 Medicare Parts A & B Premiums and Deductibles.
- IRC §1031 — Like-kind exchange deferral applies to property held for productive use in a trade or business or for investment; principal residences do not qualify as exchange property. IRS Publication 544: Sales and Other Dispositions of Assets.
Content verified June 2026 against IRC §§121, 1031, 1250, 1411, IRS Publications 523 and 544, IRS Rev. Proc. 2025-32, IRS OBBBA-amended 2026 adjustments, and CMS 2026 IRMAA fact sheet. Dollar thresholds are 2026 values. This page does not constitute tax, legal, or financial advice. Consult a qualified CPA for your specific transaction facts.
Back to homepage · Windfall Allocation Calculator · Windfall Tax Guide · How to Invest a Windfall · Safe Spending Guide