Skip to content
Creative Planning logo 8,620 reviews

How to Plan for Selling a Home in Retirement Taxes and Protect Your Proceeds

By Robert Kim, AIF | Reviewed by James Whitfield, CIC | October 29, 2026

If you're selling a home in retirement, Creative Planning starts from one rule: federal taxes apply only to gain above $250,000 single or $500,000 married, once you've owned and lived there two of five years. The main exception is widowhood: a surviving spouse who has not remarried keeps the $500,000 exclusion only if the house sells within two years of the date of death, and after that the exclusion drops to $250,000. This article is mostly for retirees downsizing a paid-off primary residence who want to turn home equity into reliable retirement cash flow without triggering unnecessary tax penalties. If you are selling a commercial property, a pure vacation rental, or an inherited house you never occupied, these specific exclusion rules will not apply. Much of what follows comes directly from the questions Creative Planning hears in first meetings with recent retirees.

Three timing slips that turn a tax-free sale into a tax bill

Renting out the old house for more than three years after moving out, while waiting for a better price, breaks the two-of-five-years use test. A married couple with a $400,000 gain then loses the whole exclusion and, at an assumed 15% rate, owes $60,000 on money that could have been tax-free. Any depreciation claimed during the rental years is recaptured on top of that, at rates up to 25%, even when the exclusion still covers the rest of the gain.

Retirement Age Milestones InfographicTimeline showing key retirement age milestones from 50 to 75.Retirement Age Milestones50Catch-upcontributions begin55Penalty-free401(k) withdrawal (SEPP)59.5Penalty-freeIRA withdrawal62Earliest SocialSecurity claiming age65Medicareeligibility begins70Max SocialSecurity benefit73RMDs begin(born 1951+)75RMDs begin(born 1960+)Creative Planning

Waiting past the two-year cutoff after a spouse passes away is another severe timing trap. A surviving spouse who misses that window sees their federal exclusion cut in half from $500,000 to $250,000, creating immediate taxable gain where none existed before.

Closing on your sale in the same tax year as a large Roth conversion or a big taxable IRA withdrawal stacks the income. Gain above your exclusion raises your adjusted gross income, and Medicare reads that year's income when it sets your Part B and Part D IRMAA surcharges for the second year after the sale. A second trap: if you sold another home and excluded the gain within the past two years, you lose the exclusion on this sale. The exceptions are a move for health, a job change or unforeseen circumstances, and even those allow only a partial exclusion.

Before you sign a purchase agreement, Creative Planning puts three dates side by side: the day you moved out, the closing date you're aiming for, and any Roth conversion or large IRA withdrawal planned for the same calendar year. If any two of them collide, we move one of them.

The three-year rental trap

Stacking home gains on retirement distributions

Renting your home for more than 36 months after moving out permanently disqualifies you from the Section 121 capital gains exclusion. To preserve the tax-free status, the sale must close before your three-year departure anniversary.

How much in taxes do we owe after selling our home in retirement?

Your taxable gain equals the net sale price minus selling costs and adjusted tax basis, with up to $250,000 excluded for single filers and up to $500,000 for married couples filing jointly. Any excess gain above those statutory thresholds is taxed at federal long-term capital gains rates of 0%, 15%, or 20%.

Joint filers need only one spouse to meet the two-year ownership test, but both spouses must satisfy the two-year use test. Neither of you can have claimed the primary residence exclusion on another home in the prior two years. If your profit runs past the threshold, look up the current IRS brackets. Your total taxable income sets your capital gains rate and decides whether the 3.8% net investment income tax applies.

In the table below, excluded gain never shows up in adjusted gross income. For this couple, federal tax and any Medicare surcharge start with the first dollar of gain above $500,000. In the $600,000 column, that dollar is the start of the $100,000 taxable slice.

To run your own numbers, start with the 'Gain after costs and basis' row in the table below. Put in your net sale price, after selling costs, minus your purchase price and documented improvements. Subtract $250,000 or $500,000 from that gain, and what is left belongs in the 'Taxable gain' row.

Ownership versus use requirements

Capital gains tiers and net investment income tax

Hypothetical married couple filing jointly who meet both tests; $500,000 exclusion; federal long-term rate assumed at 15% for illustration; state tax and the 3.8% surtax not included
Item$400,000 gain$600,000 gain$900,000 gain
Gain after costs and basis$400,000$600,000$900,000
Excluded from income$400,000$500,000$500,000
Taxable gain$0$100,000$400,000
Federal tax at assumed 15%$0$15,000$60,000
Added to MAGI two years later$0$100,000$400,000

Where the $500,000 rule bends: widows, care facilities and old rentals

A surviving spouse retains the full $500,000 exclusion provided the sale settles within two years of the date of death and they remain unmarried. In common-law property states, a jointly titled home generally receives a stepped-up basis on the deceased spouse's half, while community property states typically grant a full step-up across the entire property. How your deed was titled determines your true starting basis.

Consider Lakshmi (hypothetical), age 65, whose husband passed away 18 months ago. They originally bought their home for $200,000, and it held an appraised value of $800,000 on the date of his death. Under common-law rules, her half maintains its $100,000 original basis while his half steps up to $400,000, establishing a new combined basis of $500,000. If she nets $850,000 from a sale, her gain comes to $350,000 ($850,000 net proceeds minus $500,000 basis). Because she closes within the two-year cutoff, the full $500,000 allowance shelters her entire $350,000 profit. If she waits past that cutoff, her allowance drops to $250,000, exposing $100,000 to taxation. That delay costs about $15,000 in federal tax at an assumed 15% rate. It also adds $100,000 to her modified adjusted gross income for the sale year, and Medicare will read that figure when it prices her Part B and Part D coverage for the second year after the sale.

Moving into a licensed nursing home or assisted living facility brings another statutory exception. If you become physically or mentally unable to care for yourself, your residency in that licensed care facility counts toward the two-year primary residence use test, provided you personally occupied the home for at least one year during the preceding five years.

Be careful with properties that had nonqualified use. Under IRS rules, periods after 2008 where a home served as a rental or secondary vacation home before becoming your primary residence require a pro-rata reduction of the exclusion. In contrast, converting a primary home to a rental right before selling within your five-year window does not trigger nonqualified use math. Meanwhile, stand-alone vacation homes, inherited real estate you never occupied, or the rented side of a duplex cannot use the Section 121 exclusion.

Stepped-up basis calculations for surviving spouses

The licensed care exception for aging parents

Comparison of primary residence exclusion rules across varied ownership scenarios
ParameterMarried couple filing jointlySurviving spouse (within 2 years)Single individualFormer home converted to rental (<3 years)
Maximum exclusion$500,000$500,000$250,000$250,000 or $500,000
Ownership testAt least 2 of prior 5 years (either spouse)At least 2 of prior 5 years (either spouse)At least 2 of prior 5 yearsAt least 2 of prior 5 years
Use testAt least 2 of prior 5 years (both spouses)At least 2 of prior 5 years (both spouses)At least 2 of prior 5 yearsAt least 2 of prior 5 years (must close in 3 years)
Depreciation recaptureNone (unless home office)None (unless home office)None (unless home office)Taxed at up to 25% on rental years
Impact on Medicare IRMAAOnly on gain over $500,000Only on gain over $500,000Only on gain over $250,000Taxable gain and depreciation added to MAGI

Should we invest Lyle and Darlene's $240,000 or hold it as cash?

Deciding between market investments and liquid cash reserves depends on your planned portfolio withdrawal rate and essential monthly expenses. Lyle and Darlene (hypothetical), ages 66 and 64, recently sold their paid-off ranch house for $800,000. He retired from regional rail dispatch with a small union pension, she worked as a school librarian with a 403(b), and together their pension and Social Security provide $4,200 per month toward their $7,000 per month spending budget.

Their 6% real estate transaction costs equaled $48,000, leaving $752,000 net. Their original purchase price was $170,000, and because they systematically retained $80,000 in receipts for capital improvements, their adjusted basis reached $250,000. Their net gain came to $502,000 ($752,000 minus $250,000). Applying their $500,000 joint exclusion leaves just $2,000 in taxable profit, generating approximately $300 in federal tax at an assumed 15% capital gains rate. Had they discarded those receipts, their basis would have remained $170,000, exposing $82,000 to taxation and costing them $12,300 in unnecessary taxes.

After paying $500,000 cash for a low-maintenance condo and covering $12,000 in moving fees and closing costs, Lyle and Darlene held $240,000 in liquid capital. Prior to the sale, their $900,000 investment portfolio supported a $33,600 annual draw, representing a 3.7% withdrawal rate. Merging the $240,000 into their portfolio increases their asset base to $1,140,000, reducing their draw rate to a conservative 2.9%.

Before Creative Planning suggests investing new proceeds, our advisors rerun the distribution rate and reset the flexible spending guardrails on the larger balance. Lyle and Darlene asked, 'Does this mean the grandkids trip is safe even if stocks drop?' Our answer came from the wider guardrails. We did not treat the home equity check as surplus cash. Their remaining choice was between two options. They could raise withdrawals by $8,580 a year (about $715 a month) to get back to a 3.7% distribution rate. Or they could keep two years of portfolio distributions, $67,200, in cash. The condo charges $500 a month in association dues, $6,000 a year, which would use up most of a draw increase. That tipped them toward holding two years of cash.

Unpacking basis receipts in a downsizing scenario

Adjusting withdrawal guardrails on enlarged balances

Ten to 15 years out, the receipt folder is worth $12,000

Documenting capital improvements early protects your equity long before you ever contact a real estate agent. Every $10,000 in verifiable structural upgrades—such as a replacement roof, redesigned kitchen, or room addition—directly offsets $10,000 of taxable gain once appreciation exceeds your exclusion threshold. Normal maintenance, basic repairs, and cosmetic repainting do not count, and the IRS demands proof through invoices and building permits rather than personal recollections.

Downsizing 10 to 15 years before formal retirement can also free substantial cash to maximize savings during peak earning years. In 2026, employees can defer up to $24,500 into a 401(k) or 403(b). Workers age 50 and older can add an $8,000 catch-up ($32,500 total), and those ages 60 to 63 get a higher $11,250 catch-up ($35,750 total). If your prior-year FICA wages exceeded $150,000, current tax rules require those catch-up dollars to go into a Roth account.

Consider what downsized equity can grow into. For illustration, $100,000 of freed home equity invested in a diversified portfolio at an assumed 5% per year grows to roughly $162,889 after ten years and about $207,893 after 15. No investment is guaranteed, and markets can drop sharply and take a long time to recover. As retirement gets closer, the question changes from how much the money can grow to how much it can pay you each month.

Capital improvements versus routine maintenance

Supercharging catch-up contributions with freed equity

When do we owe the tax, and when does Medicare notice?

Federal tax on a home sale is owed for the year your closing takes place. Quarterly estimated payments for that year fall on April 15, June 15, September 15, and January 15 of the next year. The settlement agent sends Form 1099-S by mid-February. You report the sale on Form 8949 and Schedule D with the return due April 15. Medicare then uses that return to set your Part B and Part D premiums for the second year after the sale.

Retirees who book an unexpected taxable gain in midyear have a simple way to avoid the estimated tax penalty. Ask your IRA custodian to withhold federal tax from a distribution in November or December. The IRS treats IRA withholding as if it had been paid evenly across all four quarters, so a December withholding can make up for quarters you underpaid earlier in the year.

A clear timeline helps prevent missed cutoffs: establish 24 months of residence within the 60 months prior to sale; execute the closing; file necessary quarterly estimates; receive Form 1099-S; file your annual return; monitor Medicare premiums two years later; observe the two-year surviving spouse window; and wait two full years before claiming the primary exclusion on another property.

The Social Security Administration accepts retirement or the death of a spouse as a life-changing event for an IRMAA appeal, but it does not accept a real estate sale. If a taxable gain pushes your modified adjusted gross income over the first threshold, the surcharge applies to every month of premiums two years after the sale year. It drops off the following year if your income falls back below the threshold.

The two-year lookback for Medicare Part B

Using IRA withholding to resolve quarterly underpayments

What should I ask the closing agent and my IRA custodian, and which papers do I need?

Ask your title company or settlement agent: 'Will you issue Form 1099-S, and will it show the gross selling price?' It is standard for Form 1099-S to reflect the gross contract price rather than your net gain. If any agent suggests you can omit reporting a sale that exceeds the statutory exclusion limit, disregard that advice; whenever you receive Form 1099-S or owe capital gains tax, you must detail the figures on IRS Form 8949 and Schedule D.

When you call your financial institution, ask: 'Can I deposit the proceeds from my house sale into my IRA?' If the answer is a plain yes, be wary. For the 2026 tax year, total traditional and Roth IRA contributions are capped at $7,500, plus an extra $1,100 catch-up for people age 50 and older ($8,600 total), and you need earned income from work to contribute at all. Home sale proceeds are capital gains, not earned compensation. The IRS charges a 6% excise penalty each year on excess deposits until you take them out. We put real estate proceeds in a taxable brokerage account or a high-yield cash reserve.

Watch out for listing agents who assert that retirees never pay taxes on home sales. They are mistakenly recalling the old over-55 rollover rule that was repealed in 1997.

Gather these records before closing: your original purchase settlement closing disclosure, receipts and municipal permits for capital improvements, the final sale closing statement, prior-year tax returns showing unused capital loss carryforwards, and current investment statements to evaluate your withdrawal plan.

The earned income restriction on IRA contributions

Documenting historical settlement statements

What people ask about selling home in retirement taxes

How much of a home sale is tax-free for a married couple?

Spouses who file a joint return can exclude up to $500,000 of capital gain from federal income tax. To qualify, either spouse must satisfy the two-year ownership test, both spouses must meet the two-year residency requirement during the five-year period ending on the sale date, and neither can have used the exclusion within the preceding two years.

How long do I have to live in a house before the gain is excluded?

You must physically live in the residence as your primary home for at least 24 months during the five years immediately preceding the closing date. The 24 months can be accumulated incrementally and do not need to be consecutive, as long as the total equals 730 days of actual occupancy.

We moved into our condo two years ago and rent out the old house, can we still exclude the gain?

Yes, provided the sale of your former home closes before you hit the three-year anniversary of moving out. Within that window, you still meet the two-of-five-years residency rule. However, any depreciation deductions claimed while leasing the property will be taxed at rates up to 25%.

My mother is moving into assisted living; does she lose the home sale exclusion if she sells later?

No, assuming she resided in the home for at least one full year during the five years prior to sale. Under IRS exceptions, time spent in a licensed healthcare facility counts toward the required two-year residency test once a homeowner becomes physically or mentally unable to care for themselves.

Do I have to report the sale if the whole gain is under the exclusion?

If your total capital gain is completely sheltered by the $250,000 or $500,000 exclusion and the title company does not issue Form 1099-S, reporting is generally not required. If you receive Form 1099-S, you must report the transaction on IRS Form 8949 and Schedule D.

Can I deposit the proceeds from my house sale into my IRA?

No. Real estate proceeds do not qualify as earned compensation. To fund a traditional or Roth IRA, you must have taxable wages or self-employment income. Contributing unearned capital gains triggers an IRS excess contribution penalty of 6% per year until the funds are formally withdrawn.

Will selling our house raise our Medicare premiums?

Only the taxable portion of your capital gain that exceeds the statutory exclusion enters your modified adjusted gross income. If your taxable profit raises your income above Medicare IRMAA thresholds, your Part B and Part D monthly premiums will increase two calendar years after the sale year.

Does a home sale reduce my Social Security check?

No. The Social Security retirement earnings test evaluates only earned income from employment or active business operations. Capital gains from real estate sales do not reduce monthly benefits, though a taxable gain may increase the overall percentage of your Social Security benefits subject to federal income taxes.

Is the old over-55 home sale exclusion still available?

No. The old one-time $125,000 exclusion for taxpayers age 55 and older was repealed by Congress under the Taxpayer Relief Act of 1997. It was replaced by the modern Section 121 rules, which allow individuals to exclude gains every two years regardless of age.

What counts as a home improvement when figuring the gain?

Permanent upgrades that add substantial value, prolong the property's useful life, or adapt it to new uses count toward basis. Eligible expenditures include room additions, complete roof replacements, new heating systems, and modern kitchen remodels. Routine painting, minor repairs, and general upkeep do not qualify.

The kitchen-table half and the Creative Planning half

You can independently verify your two-of-five-year occupancy timeline, gather historical purchase statements, and tabulate improvement receipts from your household filing cabinet. Seeking an advisory conversation with Creative Planning makes sense when your capital appreciation surpasses the statutory limit, when closing falls within the same calendar year as planned Roth conversions, or when fresh liquidity requires resetting your monthly retirement paycheck and spending guardrails.

A home sale is not treated as a life-changing event for Medicare appeals, which makes coordinating your sale year and distribution plan critical.

Read the rules at the source

This material is for general information. It is not individualized investment, tax or legal guidance. Investing involves risk, including the possible loss of principal. Before making any financial decision, talk with a qualified professional about your specific circumstances.

Ready to turn savings into income?

A first conversation about your situation. No cost, no obligation.

Request a conversation
Request a conversation