Before you rely on this
Frank and Carol in the worked example are hypothetical, and their sale costs, carrying costs and tax figures are illustrative estimates using 2026 federal rules only. State income and transfer taxes, local property taxes and your own basis records can change the answer substantially. Have a tax professional check a large sale before you list the house.
The house decision in retirement is really four decisions: whether to release the equity, how much tax that triggers, where you want to live when stairs and driving get harder, and what you want to leave. Get the sequence right and downsizing can add years of spending to a plan. Get it wrong and it can cost six figures in tax that waiting would have avoided.
Key takeaways
- •Up to $500,000 of gain is tax-free for a married couple ($250,000 single) if you owned and lived in the home two of the last five years.
- •Gain above that is a capital gain, may add the 3.8% net investment income tax, and raises Medicare premiums two years later.
- •Keep every improvement receipt. Improvements raise your basis and cut the taxable gain dollar for dollar.
- •A house held until death gets a new basis for heirs. That is worth weighing, never worth staying in the wrong house for.
- •The 2026 HECM reverse mortgage limit is $1,249,125. A standby line of credit is the use that most often makes sense.
How Much of the Gain Is Tax-Free?
Up to $250,000, or $500,000 on a joint return. To qualify, you must have owned the home and used it as your main home for at least 24 months of the five years ending on the sale date, and you must not have excluded the gain on another home sold in the two years before (IRS Topic 701). On a joint return, either spouse can meet the ownership test, but both must meet the use test for the full $500,000.
Gain is the amount realized, the sale price less selling costs, minus your adjusted basis. Basis is what you paid plus the cost of improvements that add value or extend the home's life, such as additions, a new roof, a new heating system or landscaping; repairs and repainting do not count (IRS Publication 523). For people who bought decades ago, receipts for a 1998 kitchen or a 2010 roof are worth real money now.
Three rules matter especially after 60. A surviving spouse who has not remarried can still claim up to $500,000 if the sale happens within two years of the spouse's death (IRS Publication 523). If you move into a licensed care facility because you can no longer care for yourself, time there counts toward the two-year use test as long as you lived in the home for at least 12 months of the previous five years (IRS Publication 523). And inherited property generally takes a basis equal to its fair market value at the date of death (IRS Publication 551): at the first death, the deceased spouse's share of the house usually gets a new basis, and in community property states the whole house may.
Gain above the exclusion is a long-term capital gain. For 2026, joint filers pay 0% on gains that fall within the first $98,900 of taxable income, 15% up to $613,700 and 20% above (IRS Rev. Proc. 2025-32). The 3.8% net investment income tax also applies to the taxable portion when modified AGI exceeds $250,000 for joint filers, a threshold that is not indexed for inflation; the excluded portion is exempt (IRS).
First $500,000 (joint) or $250,000
Section 121 exclusionTax-free
Also excluded from the 3.8% NIIT
ExcludedGain above the exclusion
Long-term capital gains rates0%, 15% or 20%, plus 3.8% NIIT above $250,000 MAGI
Plus state income tax in most states
TaxedThe same gain, two years later
Medicare IRMAAOne year of higher Part B and D premiums
A home sale is not a life-changing event for appeal
Delayed costGain on a house held until death
Basis reset at deathHeirs’ basis becomes the date-of-death value
Built-up gain is never taxed
Erased
The exclusion covers most sales. For long-held homes in expensive markets, the excess gain is taxed twice in effect: once as capital gain and again through Medicare premiums.
What Does Moving Actually Cost?
More than most people budget, because costs arrive on both ends. On the sale: agent commission, which is negotiable; the seller's share of transfer taxes and title charges, which vary by state; repairs and staging; and carrying costs for the months between moving out and closing. On the purchase: closing costs, moving, new furniture sized to smaller rooms, and the first year of the new home's surprises. A combined 8% to 10% of the old home's value is a reasonable planning figure for a full sell-and-buy move, though your figure depends heavily on commission and state taxes.
The savings are also larger than people expect, and they recur. Property tax, insurance, utilities and maintenance usually scale with the size and value of the house. Many planners use 1% to 2% of a home's value a year for maintenance on an older house; you know your own figure from your records. A condominium or townhouse adds association dues but removes most exterior maintenance, which matters more at 80 than at 65.
If you still carry a mortgage, the sale is a natural point to retire it. Our Mortgage Payoff Calculator shows the interest remaining on your current loan, which is the right comparison when deciding whether to buy the next home outright or keep some leverage. For a new city, the Cost of Living Calculator translates your budget to the new location.
Worked Example: Frank and Carol Sell
Frank is 71 and Carol is 69. They bought their suburban house in 1994 for $240,000 and have $85,000 of documented improvements. It is worth $1,350,000. They have $1.6 million invested, a pension, Social Security, and about $100,000 of other income a year, about $70,000 of it taxable after deductions. The stairs are becoming a problem and they want a single-level condo near their daughter, priced at $700,000. They are hypothetical, and every figure below is federal only.
| Line | Amount |
|---|---|
| Sale price | $1,350,000 |
| Less selling costs (5% commission plus $12,500 other, assumed) | −$80,000 |
| Amount realized | $1,270,000 |
| Less basis ($240,000 purchase + $85,000 improvements) | −$325,000 |
| Gain | $945,000 |
| Less joint exclusion | −$500,000 |
| Taxable long-term gain | $445,000 |
| Capital gains tax ($28,900 at 0%, the rest at 15%) | $62,415 |
| Net investment income tax (3.8% of $295,000 MAGI over $250,000) | $11,210 |
| Federal tax on the sale | $73,625 |
The Medicare echo. The sale lifts their MAGI to about $545,000. Two years later, that puts each of them in the $410,001–$749,999 joint IRMAA tier: $649.20 a month for Part B instead of $202.90, plus $83.30 on Part D (CMS, 2026 brackets). That is $529.60 a month each, or about $12,700 for the couple for one year. Because a home sale is not a life-changing event, they budget for it rather than planning to appeal it. See our Medicare and IRMAA guide.
Where the money goes. After $73,600 of federal tax and $25,000 of moving and setup costs, they buy the condo for cash and add about $470,000 to their portfolio. Their carrying costs fall from about $34,000 a year (property tax, insurance, maintenance) to about $21,000 including association dues. At a 4% withdrawal rate the extra $470,000 supports about $18,800 a year, so the move adds roughly $32,000 a year to what they can spend, before counting the tax.
The case for waiting. If they stayed until the first death, half the house would get a new basis, cutting the taxable gain; if the survivor then sold within two years, the $500,000 exclusion would still apply. Held until both deaths, the $945,000 gain would vanish for their daughter. That tax saving, roughly $74,000 plus the IRMAA year, is real. But it would mean a stair lift, a first-floor bathroom and years in a house that no longer suits them, and it is only a saving if they would otherwise sell anyway. They decide to move now, while both are healthy enough to make the new place home.
Should You Rent Instead of Buy?
Rent when flexibility is worth more than the housing hedge. Selling and renting converts home equity into an investment portfolio and a monthly bill. For Frank and Carol, the $1.17 million left after tax and moving costs, withdrawn at 4%, would produce about $47,000 a year, close to the rent on a comparable two-bedroom near their daughter. They would own nothing that needs a roof, and could move to assisted living at the end of a lease instead of after a house sale.
The costs of renting are real too. Rent rises with local markets, while a paid-off home's costs mostly rise with property taxes and insurance. You give up control over the landlord, the building and the lease renewal. And a portfolio that pays rent is exposed to sequence risk in a way a paid-off home is not. Our rent vs. buy guide covers the general math. In retirement, renting tends to win in three cases: you face a large taxable gain regardless, you expect another move within five years, or maintaining a property has become a burden you would pay to be rid of.
What Does Aging in Place Take?
A house that works at 85, not just at 70, and a plan for help. The main physical risk is falling: more than 14 million older adults, one in four, report a fall every year, and falls are the leading cause of both fatal and nonfatal injuries among older adults (CDC). Most modifications are about preventing that.
- A bedroom and full bathroom on the entry level, or room to add them.
- A walk-in shower with grab bars and a bench, instead of a tub.
- Zero-step entry, wider doorways and lever handles.
- Brighter lighting, including on stairs and paths at night.
- A stair lift or, in larger homes, a residential elevator.
Get quotes before deciding. Some houses adapt for a modest sum; others would need tens of thousands of dollars and still sit at the end of a long driveway 20 minutes from a hospital. Aging in place also depends on help: a spouse, nearby family, or paid caregivers, which at 2025 national medians cost $35 an hour. Our long-term care guide covers how to plan for that.
Is a Reverse Mortgage Worth Considering?
Sometimes, mostly as a standby line of credit for people who intend to stay. The FHA-insured version, the Home Equity Conversion Mortgage, lets homeowners 62 and older borrow against the home with no monthly payments as long as it remains their principal residence, provided they keep paying property taxes and homeowner's insurance (HUD). Borrowers must first meet with a HUD-approved counselor. For 2026, the maximum claim amount is $1,249,125 nationwide (HUD Mortgagee Letter 2025-22). The amount you can actually draw is lower and depends on the youngest borrower's age, interest rates, and the lesser of the appraised value, the sale price or that limit.
The loan is repaid when the last borrower dies, sells or moves out. Heirs who want to keep the home repay the lesser of the loan balance or 95% of the appraised value, and if the balance exceeds the home's value, the FHA insurance covers the difference; heirs are not personally liable (CFPB). A spouse who is not a co-borrower may lose the right to stay unless they qualify as an eligible non-borrowing spouse, so both spouses should usually be on the loan (CFPB).
Costs are the objection. Upfront mortgage insurance, origination and closing costs are high relative to a conventional loan, and the balance compounds. The use that most often makes sense for affluent retirees is an unused line of credit opened in the early 60s: it can be drawn in a bad market year so the portfolio is not sold at a loss, or held for care costs later. For Frank and Carol, whose house is worth more than the limit, only the first $1,249,125 of value would count. There is also a HECM for Purchase, which lets you buy the next home with part cash and part reverse mortgage.
What Changes When You Move States?
Taxes, health coverage and your support network. State income tax treatment of Social Security, pensions and IRA withdrawals differs widely, as do property and estate taxes, and a move that saves income tax can cost more in property tax and insurance. Establishing residency in a new state takes more than a new address: change your driver's license, voter registration and wills, and expect a former high-tax state to scrutinize a part-year move.
Medicare coverage may need to change too. Medicare Advantage plans are local, so moving out of a plan's service area ends that plan and, in some cases, gives you a guaranteed right to buy a Medigap policy (Medicare.gov). Original Medicare with Medigap travels with you, though Medigap premiums are set by state and may change. Before moving, check that the doctors and hospitals you would use accept your coverage.
The most important factor is rarely financial. Most people who move in retirement move toward children and grandchildren, and the move is easiest while both spouses are healthy enough to build new friendships and find new doctors. A move at 70 is a new chapter. A move at 85 is usually a crisis.
How to Decide
Answer four questions in order. First, does the house still work physically for the next 15 years, and what would it cost to make it work? Second, what would you net from a sale after selling costs, federal and state tax and the IRMAA year? Third, what would the next home or rent cost, all in? Fourth, how much do you value leaving the house, or its untaxed gain, to your heirs?
| If… | Usually |
|---|---|
| The house works, the gain is far above the exclusion, and leaving it matters | Stay, adapt it, and consider a HECM line of credit as a reserve |
| The house no longer works, and the gain fits within the exclusion | Sell now; there is little tax reason to wait |
| You want to be near family and may move again for care | Sell and rent near them for a few years before buying |
| You need the equity to fund the plan | Downsize and invest the difference |
Frequently Asked Questions
How much of the gain on selling my home is tax-free?
Up to $250,000 of gain, or $500,000 for a married couple filing jointly, if you owned the home and lived in it as your main home for at least two of the five years before the sale and have not used the exclusion on another home in the previous two years. Gain above the exclusion is taxed as a long-term capital gain and may also be subject to the 3.8% net investment income tax.
Can a widow or widower still exclude $500,000?
Yes, if the house is sold within two years of the spouse's death, the survivor has not remarried, and the other requirements were met. After two years, the survivor filing single is limited to $250,000. The survivor also usually gets a new, higher basis on the deceased spouse's share of the house, which reduces the taxable gain further.
Does selling my house raise my Medicare premiums?
It can. Gain above the exclusion is part of your modified adjusted gross income, and Medicare's IRMAA surcharges are based on MAGI from two years earlier. A one-time home sale is not a life-changing event for Form SSA-44, so a large taxable gain usually means one year of higher Part B and Part D premiums two years after the sale.
What is the 2026 reverse mortgage limit?
For FHA-insured Home Equity Conversion Mortgages, the 2026 maximum claim amount is $1,249,125 nationwide. The amount you can actually borrow is lower and depends on the age of the youngest borrower or eligible non-borrowing spouse, current interest rates, and the lesser of the home's appraised value, the sale price or that limit. Borrowers must be at least 62 and live in the home as their principal residence.
Is it better to rent or own in retirement?
Owning a paid-off home is usually cheaper month to month and protects you from rent increases, while renting frees the equity to invest and makes it easy to move closer to family or to care. Renting tends to win when the home has a large untaxed gain you will realize anyway, when maintenance is becoming a burden, or when you expect another move within a few years.
Should I keep my house so my heirs get a step-up in basis?
If the house has a gain far above the exclusion and you are happy living in it, holding it until death can erase the gain for heirs, because inherited property generally takes a basis equal to its value at the date of death. That tax saving should not keep you in a house that no longer works for your health, finances or family; it is one input, not the decision.
The Bottom Line
Treat the house as an asset with a tax basis, a carrying cost and a date by which it will stop suiting you. Pull together your purchase records and improvement receipts now, estimate the gain, and price the alternatives with the Cost of Living Calculator and the Mortgage Payoff Calculator. Then decide while you still have the choice. If you plan to leave the house, our gifting guide explains why a low-basis house is often better left than given.