At 65, He’ll Sell One Stock for a $120,000 Gain and Another for a $100,000 Loss. Medicare Will See Only the $20,000 Net Gain, and His Premium Won’t Move
This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.
He’s 65, married, with both spouses on Medicare. Before year-end he wants to clean up a taxable brokerage account. One stock shows a $120,000 gain. Another shows a $100,000 loss. A friend warned that a six-figure gain will increase his Medicare premiums. If he sells both in the same tax year, the tax return shows a $20,000 net gain. For these two sales, Medicare sees the $20,000 net capital gain that flows into adjusted gross income (AGI), not the $120,000 gross gain.
Whether that $20,000 matters for Medicare depends on where the rest of his household income lands.
Medicare’s Income-Related Monthly Adjustment Amount (IRMAA) reaches about 8% of people with Part B. If household income stays well below $218,000 on a joint return (or $109,000 for a single filer), this decision changes nothing about premiums. The offset rule still shapes the tax bill.
How His Tax Return Turns $120,000 Into $20,000
IRS rules require investors to tally short-term gains and losses separately from long-term ones, then combine the results. The taxable figure is whatever net gain remains after the offset. His AGI picks up only that net difference. If losses topped gains instead, he could deduct up to $3,000 a year against ordinary income (the limit is $1,500 for married filing separately) and carry anything beyond that forward indefinitely.
Medicare Reads One Line, and It Shows the Net
IRMAA is set by Social Security based on modified adjusted gross income (MAGI), which is total AGI plus tax-exempt interest. Interest from municipal bonds counts toward MAGI even though it feels tax-free at the federal level. Social Security looks back two years at filed income, so 2024 income set 2026 premiums, and a sale completed in 2026 shows up in the 2028 premium calculation.
The 2026 standard Part B premium is $202.90 per month, a jump of $17.90 from $185.00 in 2025 — the steepest single-year increase in recent memory. That baseline matters because every IRMAA surcharge stacks on top of it.
Suppose the couple’s pensions, IRA withdrawals, and taxable Social Security put their MAGI at $190,000 before any trades. Adding the $20,000 net gain brings them to $210,000, which is under the $218,000 joint threshold. Each spouse keeps paying the standard $202.90 Part B premium with no Part D surcharge. Their premiums stay exactly where they are.
If he sells only the winner, their MAGI rises to $310,000. That lands in the $274,000 to $342,000 bracket, which adds $202.90 a month to Part B and $37.50 a month to Part D for each spouse.
| Scenario | Household MAGI | Monthly extra premium for each individual (Part B + Part D) | Annual surcharge, couple |
|---|---|---|---|
| Both sales, $190,000 base | $210,000 | $0 | $0 |
| Both sales, $205,000 base | $225,000 | $81.20 + $14.50 | $2,296.80 |
| Winner only, $190,000 base | $310,000 | $202.90 + $37.50 | $5,769.60 |
That last row works out to $2,884.80 per spouse for a full year, all from a single year of income. IRMAA is one of several Medicare surcharges that catch retired people off guard (we laid out the rest in a free guide here: Medicare’s Hidden Bills).
Why $20,000 Can Still Hurt Close to a Bracket
Capital gains simply add to MAGI. With a $190,000 base, the couple has $28,000 of room before hitting the first surcharge tier. With a $205,000 base, the same $20,000 net gain pushes them over the $218,000 joint line and into the lowest surcharge bracket. Crossing a threshold by even a dollar triggers the full tier amount — there is no phase-in.
Timing can also break the netting entirely. Gains and losses only offset each other within the same tax year. If he sells the winner in December and the loser in January, his 2026 MAGI lands at $310,000. On the 2027 return he can deduct just $3,000 of the loss, leaving MAGI at $187,000 and carrying $97,000 forward. The loss shows up a year too late to protect his 2028 premium. Form SSA-44 applies only when income drops because of a qualifying life event such as stopping work or the death of a spouse. A voluntary stock sale never qualifies.
Run These Numbers Before December 31
- Total your realized gains and losses so far this year. Download the year-to-date report from your brokerage. Add estimated pension income, IRA withdrawals, taxable Social Security, and interest from municipal bonds. Then compare the total with the 2026 brackets as a rough guide to 2028 premiums.
- Keep offsetting sales in one calendar year. Your holding period ends on the trading date, so the trade date determines which return a sale lands on. If you plan to buy back a position you sold at a loss, check the wash-sale rule first.
- Look at all your sales together. A big gain only matters for Medicare after losses offset it. If your estimated MAGI is within $20,000 of a bracket, a fee-only advisor who models tax-efficient retirement income can test different sale sequences before the year closes. Note also that the One Big Beautiful Bill Act (signed July 4, 2025) added a temporary $6,000 bonus deduction for taxpayers 65 and older, though it phases out for joint filers above $150,000 — below the IRMAA-sensitive income levels in this scenario.
For Medicare, the timing of the loss can matter just as much as the size of the gain.
Editor’s note: This article was updated to reflect the 2026 standard Part B premium of $202.90, a $17.90 increase from the 2025 rate of $185.00, and to note the new $6,000 senior deduction created by the One Big Beautiful Bill Act (signed July 4, 2025), which phases out for joint filers above $150,000.
Contact [email protected] for any questions or corrections.








