Most seniors do not pay capital gains tax when they sell a home. Federal law lets you exclude up to $250,000 of profit from the sale of your primary residence, or up to $500,000 if you are married and file jointly, and that exclusion erases the entire gain for the vast majority of older homeowners. Tax only enters the picture if your gain runs above those limits, and even then the rate depends on your other income. The bigger surprise for many seniors is not the tax itself but the side effects: a taxable gain can raise Medicare premiums two years later and can complicate Medicaid or SSI eligibility.
The $250,000 and $500,000 Exclusion
The exclusion comes from Section 121 of the Internal Revenue Code, and it applies at any age. There is no special senior version, and no senior penalty either. A single filer can exclude up to $250,000 of gain from selling a main home. A married couple filing jointly can exclude up to $500,000, as long as at least one spouse meets the ownership test, both spouses meet the residency test, and neither spouse used the exclusion on another home sale in the previous two years.1Internal Revenue Service. Topic No. 701, Sale of Your Home These dollar limits are fixed by statute and do not adjust for inflation.2Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
If your gain is below the limit, you owe nothing and usually do not even have to report the sale. If your gain is above the limit, only the excess is taxable.
Do You Qualify? The Ownership and Use Tests
To claim the full exclusion, you need to pass two tests during the five years ending on the date of sale. You must have owned the home for at least two of those five years, and you must have lived in it as your main home for at least two of those five years.3Internal Revenue Service. Publication 523, Selling Your Home – Section: Eligibility Test The two years do not need to be consecutive. For a married couple, only one spouse needs to meet the ownership test, but each spouse must independently meet the residency test.1Internal Revenue Service. Topic No. 701, Sale of Your Home You also cannot claim the exclusion more than once every two years.
If You Moved to a Care Facility
The residency test bends for seniors who can no longer live independently. If you become physically or mentally unable to care for yourself and lived in the home for at least one year during the five-year window, the time you spend in a state-licensed care facility counts toward the two-year residency requirement.4Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence – Section: Special Rules (d)(7) So a senior who lived in the home for 14 months and then spent 10 months in a nursing home before selling can still qualify for the full exclusion.
A Partial Exclusion for Health-Related Sales
If you sell before hitting the two-year mark because of a health reason, you can claim part of the exclusion. Qualifying reasons include moving to get medical treatment for yourself or a family member, moving to care for a sick relative, or selling on a doctor’s recommendation.5Internal Revenue Service. Publication 523, Selling Your Home – Section: Partial Exclusion The partial exclusion divides the months you owned or lived in the home (whichever is shorter) by 24, then multiplies that fraction by $250,000 or $500,000. A single filer who lived in the home for 18 months before a health-related sale could exclude up to $187,500.
Your Actual Gain Is Probably Smaller Than You Think
Before assuming you have a taxable sale, work out the real gain. It is not the sale price minus what you originally paid. The IRS formula is selling price, minus selling expenses, minus your adjusted basis.
Your adjusted basis starts with the original purchase price plus certain closing costs from when you bought the home, such as title insurance, legal fees, recording fees, and transfer taxes.6Internal Revenue Service. Publication 530, Tax Information for Homeowners You then add the cost of capital improvements: projects that add value, extend the home’s life, or adapt it to a new use. New roofs, kitchen renovations, added bathrooms, central air, decks, fencing, and landscaping all qualify.7Internal Revenue Service. Publication 523, Selling Your Home – Section: Adjusted Basis Routine repairs and maintenance do not, unless they were part of a larger remodeling project.
Selling expenses reduce the gain further. Real estate commissions, advertising costs, legal fees, and any loan charges you paid on the buyer’s behalf all come off the top.8Internal Revenue Service. Publication 523, Selling Your Home – Section: Worksheet 2 For a senior who has owned the home for decades and made improvements along the way, the combination of a higher basis and typical closing costs usually shrinks the taxable gain well below the exclusion threshold. Keep the receipts. They are what proves your basis if the IRS asks.
Special Rules for Widows and Widowers
Losing a spouse changes the tax picture, but two rules work in the survivor’s favor.
First, a surviving spouse who sells the home within two years of the other spouse’s death can still claim the $500,000 exclusion, as long as the couple would have qualified for it immediately before the death.9Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence – Section: Limitations (b)(4) After that window, the survivor files as single and the exclusion drops to $250,000. For a home with a large built-up gain, timing the sale inside the window can save real money.
Second, the tax basis of the home resets to fair market value on the date of the first spouse’s death. In common-law property states, only the deceased spouse’s half of the home gets this step-up. In community property states, both halves step up, which can wipe out nearly all built-in gain.10Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent – Section: (b)(6) Between the step-up and the $500,000 exclusion window, a surviving spouse rarely owes tax on a home sale that follows a death by a year or two.
What Happens If Your Gain Is Above the Exclusion
If your gain runs over the limit, only the excess is taxable, and it is taxed as a long-term capital gain (assuming you owned the home more than a year, which nearly every senior has). For 2026, the long-term capital gains brackets are:
- 0% on taxable income up to $49,450 (single) or $98,900 (married filing jointly)
- 15% on taxable income up to $545,500 (single) or $613,700 (married filing jointly)
- 20% on taxable income above those higher figures
The 0% bracket is worth attention. A retired senior living on modest Social Security and pension income can have a taxable capital gain and still owe nothing federal on it, as long as total taxable income stays inside that bracket. Taxable income is figured after deductions, and the standard deduction is larger for filers 65 and older, which helps.
Higher-income seniors face an extra layer. A 3.8% net investment income tax applies to capital gains once modified adjusted gross income passes $200,000 (single) or $250,000 (married filing jointly).11Internal Revenue Service. Topic No. 559, Net Investment Income Tax The tax applies to the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. These thresholds have not moved since 2013.
One separate wrinkle applies if you ever rented the home or claimed a home office deduction: any depreciation you took after May 6, 1997 is not covered by the Section 121 exclusion and is taxed at a flat 25%, even if your total gain otherwise falls within the exclusion.12Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence – Section: Special Rules (d)(6)
The Medicare Premium Trap
This is the piece that catches seniors off guard. Medicare Part B premiums are income-based, and a taxable gain from a home sale can push you into a higher premium bracket for a year or two through the Income-Related Monthly Adjustment Amount, or IRMAA.
Medicare sets your premiums using the tax return from two years earlier. Sell in 2026 with a large taxable gain, and your 2028 premiums can jump. For 2026, the standard Part B premium is $202.90 per month, but modified adjusted gross income above $109,000 (single) or $218,000 (married filing jointly) triggers surcharges that can push the monthly premium as high as $689.90.13Centers for Medicare & Medicaid Services. 2026 Medicare Parts A and B Premiums and Deductibles
IRMAA looks at total MAGI, which includes only the taxable portion of your gain (the amount above your exclusion), not the full sale price. If the exclusion covers your entire gain, IRMAA is not affected at all. But a couple with $600,000 of gain and a $500,000 exclusion adds $100,000 of taxable gain to their other income, which can easily bump them up a tier. Premiums drop back once the high-income year rolls out of the two-year lookback. You can also ask the Social Security Administration for a reconsideration based on a life-changing event, though a home sale by itself does not automatically qualify.
Medicaid and SSI Effects
Your primary home is generally an exempt asset for Medicaid and Supplemental Security Income while you live in it. The cash from selling it is not exempt, and that conversion can put benefits at risk.
For Medicaid long-term care coverage, states set a home equity limit between the federal minimum of $752,000 and the maximum of $1,130,000 for 2026.14Centers for Medicare & Medicaid Services. 2026 SSI and Spousal Impoverishment Standards Once you sell, the proceeds become a countable resource. If you rely on Medicaid, or expect to apply for long-term care coverage soon, selling without a plan for the proceeds can make you ineligible until you spend down.
SSI is tighter. The resource limit is $2,000 for an individual and $3,000 for a couple in 2026.15Social Security Administration. 2026 Cost-of-Living Adjustment (COLA) Fact Sheet Home sale proceeds count as a resource in the month after you receive them.16Social Security Administration. A Guide to Supplemental Security Income for Groups and Organizations For an SSI recipient, selling without immediately putting the money into a new residence or otherwise spending it down usually means losing benefits.
Reporting the Sale
If the exclusion covers your entire gain, you generally do not have to report the sale. The main exception is if the closing agent issues you a Form 1099-S showing the gross proceeds. When that form is issued, the sale goes on your return even if no tax is owed.17Internal Revenue Service. Instructions for Form 1099-S Closing agents can skip the 1099-S if you give them a written certification that the home was your principal residence and the full gain is excludable, but not every agent asks for one.
When you do have to report, whether because a 1099-S was issued, your gain exceeded the exclusion, or you are claiming a partial exclusion, the sale goes on Schedule D and Form 8949.18Internal Revenue Service. Publication 523, Selling Your Home Hold on to records of the original purchase, every capital improvement, and every selling expense. Those documents are what carry the exclusion through if anyone ever asks.