Many U.S. baby boomers are planning to trade larger homes for properties that are easier to manage. Freddie Mac research shows that 66% of baby boomer homeowners planning to move in 2026 intend to downsize; among those who have already moved, 36% chose a smaller home. Selling can unlock home equity, but years of appreciation may complicate the tax bill. Federal rules can affect how much gain is excluded, what remains taxable and how much sellers ultimately keep.
Surviving spouses face a two-year window
Married couples who meet the requirements can generally exclude up to $500,000 of gain on the sale of a primary residence. An unmarried surviving spouse may still qualify for the $500,000 limit if the home is sold within two years of the spouseās death and other conditions are met. After that window, the applicable limit is generally up to $250,000 for an individual taxpayer.
Any gain above the exclusion may be taxed at long-term capital gains rates of 0%, 15% or 20%, depending on income. Gain is generally calculated by subtracting the homeās adjusted tax basis from net sale proceedsānot simply by comparing the sale price with the original purchase price.
When a spouse dies, the basis of the deceased spouseās share is generally adjusted to the homeās fair market value on the date of death. In community property states, the basis of the entire home may be adjusted. This step-up in basis can reduce taxable gain, but the timing of a sale may still affect eligibility for the home-sale exclusion. The rules depend on the circumstances.
Business use or rentals can trigger depreciation recapture
A home used for business or rental purposesāincluding rentals through platforms such as Airbnbāmay be subject to tax on depreciation claimed, or that could have been claimed, in prior years. This gain generally cannot be sheltered by the primary-residence exclusion. The tax rate on depreciation recapture can be as high as 25%; certain depreciation on personal property or accelerated depreciation on land improvements may instead be taxed at ordinary federal income tax rates of up to 37%.
Depreciation recapture generally applies when the sale produces a net gain above the homeās adjusted basis. If the sale price is below adjusted basis, recapture tax generally does not apply. A primary residence also generally cannot use a like-kind exchange under Section 1031 of the Internal Revenue Code to defer tax. That provision applies to real estate used for business or investment, not the home itself.
Major renovations and permanent improvements can increase a homeās basis and reduce taxable gain. Keeping receipts for the work, along with records of depreciation claimed over the years, can help establish the correct figures. Inherited homes may receive a basis adjustment as of the ownerās death, but the outcome depends on how the property was used and which rules apply.
Moving into a vacation home does not shelter all the gain
Some owners move into a former vacation home or rental property, live there for two years and then sell, hoping to claim the primary-residence exclusion. But the ānonqualified useā rules under the 2008 Housing Assistance Tax Act can limit the exclusion. Periods after 2008 when a home was used as a second residence or rental property before becoming the ownerās primary residence may count as nonqualified use.
As a result, a portion of the gain may be taxable, based on the share of the total ownership period that counts as nonqualified use. The remaining gain may qualify for the usual exclusion of up to $250,000 for an individual or $500,000 for a married couple. Gain tied to depreciation claimed after May 6, 1997, generally remains taxable and cannot be excluded under the home-sale rules.
The order of events matters. If an owner first uses a home as a primary residence, then rents it for no more than three years, the rental period generally is not treated as nonqualified use if the owner meets the test of living in the home for at least two of the five years before sale. Depreciation recapture may still apply. Years the property was rented before January 1, 2009, generally do not count as nonqualified use, though they remain part of the total ownership period.
Selling a new home less than two years after moving in will generally prevent the owner from claiming the full exclusion. Exceptions for certain health issues or unforeseen circumstances may allow a partial exclusion calculated according to the period of residence.
Selling late in life differs from passing on a home
Heirs generally receive a new tax basis based on a homeās fair market value at the ownerās death. Selling soon after inheriting can therefore leave them with relatively little capital gain. By contrast, an owner selling a long-appreciated family home in their 80s or 90s may owe capital gains tax on the amount above the original purchase cost, qualifying improvements, any basis adjustment after a spouseās death and the applicable exclusion. That tax can reduce the assets left to heirs.
Once sale proceeds are moved into a savings account or certificate of deposit (CD), the cash generally does not receive the same basis adjustment at the ownerās death that inherited real estate may receive. Interest is usually taxed as ordinary income, which can exceed the long-term capital gains rate that applies to some retirees. The timing of a sale can therefore interact with estate planning; housing costs after a move are only part of the calculation.
A home sale may also trigger the 3.8% NIIT
Taxable gain above the $250,000 or $500,000 exclusion may count as net investment income. Sellers may also owe the 3.8% net investment income tax (NIIT) if modified adjusted gross income (MAGI) exceeds $200,000 for single filers or $250,000 for married couples filing jointly. The tax applies to the lesser of net investment income or the amount by which income exceeds the relevant threshold, and may be added to regular capital gains tax.
Records for permanent improvements, such as a kitchen remodel or a new deck, can help establish basis and calculate taxable gain. Tax-loss deductions or qualifying charitable distributions from an individual retirement account may also affect income and tax owed, depending on the taxpayerās circumstances. These federal rules do not cover state income taxes, and the result can vary with the homeās use, filing status and sale date. Checking basis, depreciation records and exclusion eligibility before selling can help clarify the tax impact.