Sudden Wealth Advisor Match

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:

Reduced exclusion for partial eligibility: If you fail to meet the full 2-year tests because of a work-related move, a health situation, or other unforeseen circumstances, you may qualify for a partial exclusion—a pro-rated share of $250K/$500K based on the months you satisfied the requirements. This is often worth claiming even at a smaller amount.1

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:

  1. 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.
  2. 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.
  3. Realized gain: Amount realized minus adjusted basis. In this example: $1,310,000 − $530,000 = $780,000.
  4. Subtract the exclusion: $780,000 − $500,000 (MFJ) = $280,000 taxable gain.
  5. 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
ComponentTax rate (federal, 2026)Note
Gain within §121 exclusion0% — excluded$250K single / $500K MFJ limit
Long-term capital gain above exclusion (taxable income ≤ $98,900 MFJ / $49,450 single)0% LTCG rateGain 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 rateMost homeowners fall here3
Long-term capital gain above exclusion (taxable income above $613,700 MFJ / $566,700 single)20% LTCG ratePlus 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,000Up 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,000Over $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.

Form SSA-44 appeal: You can request that SSA use more recent income if the IRMAA was triggered by a life-changing event (retirement, divorce, death of spouse, reduced work hours). A home sale alone typically does not qualify as a "life-changing event" under SSA's definitions—but if the sale was tied to a qualifying event (for example, you sold because of a divorce or after your spouse died), an appeal may succeed. Document the connection carefully before filing.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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:

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:

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:

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.

Fee-only focus · No product sales · Privacy-minded · Built for seven-figure planning decisions

Sources

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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