A Couple’s $400,000 Gain on a Main Home Never Reaches Medicare. On a Second Home, It Could Cost $10,711.20 in Surcharges

David Hanson • 6 minute read
Reviewed by: David Hanson
Last updated Dec 3, 2026

studioroman and Chad Baker/Jason Reed/Ryan McVay from Photo Images via Canva

Key Takeaways

  • A married couple can exclude up to $500,000 of gain on a main home they’ve owned and lived in for two of the last five years, so a $400,000 gain on that home never reaches the income Medicare uses to set its surcharge.
  • The same $400,000 gain on a second home, with $100,000 of other income, would put a couple’s Medicare income at $500,000 and cost them $10,711.20 in Part B surcharges for the year at this year’s rates.
  • Medicare reads the tax return from two years before, so a sale that closes this year would raise premiums in 2028.
  • A gift to a donor-advised fund can cut the income tax on a big gain, but it doesn’t lower the income Medicare reads, since that income is figured before itemized deductions.

If you’re on Medicare and selling a house before year-end, I have some good news: the gain on the home you live in almost certainly won’t touch your Medicare premiums. A second home is a different story, and there the difference can run past $10,000.

A listener in Georgia asked about this on The Clark Howard Podcast this week. She’s selling a house for around $500,000 and wanted to know if opening a donor-advised fund that year would help her avoid IRMAA, Medicare’s income-related surcharge.

Financial advisor Wes Moss wasn’t sure a charitable deduction would help, since Medicare is “looking at what the CPA would call an above the line number.” Then Christa DiBiase pointed out that “for a couple, $500,000 is the amount that you can gain tax-free,” and Moss agreed that a primary residence should get that exclusion anyway. They were both right.

6 safe dividend stocks paying retirees 6%+ yields

There are over 100 stocks paying 6%+ annual dividends today.

But after an extensive investment review leveraging TIKR’s proprietary data, we now believe only six of them are truly safe for retirees.

They’re all yours for free as part of our new investment report, which you can access right here.

The home you live in stays off Medicare’s books

The IRS lets a couple filing jointly exclude up to $500,000 of gain on a main home from their income ($250,000 for a single filer), as long as they’ve owned it and lived in it for at least two of the last five years. Medicare sets its surcharge from modified adjusted gross income, which is your adjusted gross income plus tax-exempt interest, taken from your tax return from two years before. Gain you’ve excluded never gets into that figure.

So let’s say the listener and her spouse are both on Part B, the house is their main home, the sale brings a $400,000 gain, and they have $100,000 of other income that year. All $400,000 stays out, so Medicare sees $100,000. That’s well under the $218,000 joint line where this year’s surcharge starts. On a house selling for around $500,000, the gain can’t reach the $500,000 limit anyway, since your cost basis and selling costs come off the price first.

The donor-advised fund only helps your taxes

A donor-advised fund wouldn’t lower Medicare’s figure on any sale. A gift to one is an itemized deduction on Schedule A, and adjusted gross income is figured before itemized deductions come off. So the gift can cut your income tax without lowering the income Medicare reads.

A qualified charitable distribution, which Moss also mentioned, is the kind of gift that does stay out of income. If you’re 70½ or older, you can give straight from your IRA to charity, tax-free, so that money never counts as income. It only keeps IRA money out of income, though, so it does nothing about the gain on a house.

Moss said a donor-advised fund makes the most sense in a big tax year, like one where you sell an investment property at a large long-term gain. A second home is that kind of sale.

A second home can cost $10,711.20

Now take the same couple, with the same $400,000 gain and the same $100,000 of other income, and make the house a second home. The exclusion covers only a main home, so the whole gain goes into their adjusted gross income, and Medicare sees $500,000. That’s past this year’s $410,000 joint line. Above it, the surcharge is $446.30 a month on top of each spouse’s Part B premium. Over a year, that’s $5,355.60 each, or $10,711.20 between the two of them.

The bill shows up late. Medicare reads the return from two years before, so a sale that closes this month goes on the 2026 return and sets the surcharge for 2028. Medicare sets 2029’s surcharge from the 2027 return, so for a one-time gain, the couple pays one year of surcharges. A gift to a donor-advised fund would still cut their income tax that year, but Medicare would see the same $500,000.

What sellers can still control

If you’re selling the home you live in, make sure you’ve owned it and lived in it for at least two of the last five years, and that the gain fits under the limit. Any gain past $500,000 on a joint return ($250,000 single) is income, and Medicare counts it. A widow or widower who hasn’t remarried still gets the $500,000 limit on a sale within two years of the spouse’s death. On a second home, selling costs like the agent’s commission come off the amount you realize, so every dollar of them is a dollar of gain Medicare never sees.

If it’s your main home and the gain fits, I wouldn’t let Medicare shape the sale at all, and I wouldn’t open a donor-advised fund to dodge a surcharge that isn’t coming. On a second home, give if you were going to give anyway, since the deduction still cuts your income tax, and set money aside for 2028’s premiums. Medicare will publish 2028’s surcharges and income lines in the fall of 2027. The $410,000 line rises with inflation each year, rounded to the nearest $1,000, but a couple at $500,000 would almost certainly still be above it.

Enjoy your retirement in style with these safe 6%+ dividend yields

Dividends can hold the key to enormous wealth. But only if you buy the right ones.

Picking the right high-yield dividend stock can be the difference between a dream retirement…and scraping by every month, waiting for the next Social Security check to clear.

We’ve identified six stocks yielding 6%+ that we believe every retiree should know about right now.

Learn more here.

Disclaimer:

Please note that the articles on TIKR are not intended to serve as investment or financial advice from TIKR or our content team, nor are they recommendations to buy or sell any stocks. We create our content based on TIKR Terminal’s investment data and analysts’ estimates. Our analysis might not include recent company news or important updates. TIKR has no position in any of the stocks mentioned. Thank you for reading, and happy investing!

Join thousands of investors worldwide who use TIKR to supercharge their investment analysis.

Sign Up for FREENo credit card required