Skip to main content

Capital Gains Tax in Retirement: What Retirees Need to Know

By Sparkwise Editorial Team · Updated November 6, 2026

Retirees with taxable income of $49,450 or less (single) or $98,900 or less (married filing jointly) in 2026 owe 0% federal tax on long-term capital gains[1] — creating a strategic opportunity to realize gains, reset basis, and manage future taxes. But large gains can also push more Social Security into taxable territory[2] and trigger Medicare IRMAA surcharges,[4] creating hidden effective rates above the stated bracket.

The 0% Capital Gains Bracket in Retirement

Long-term capital gains tax rates in 2026 are tied to taxable income thresholds (IRC §1(h)).[1] For the 0% rate, the 2026 thresholds (Rev. Proc. 2025-32) are:

  • Single filers: $0 – $49,450 taxable income[1]
  • Married filing jointly: $0 – $98,900 taxable income[1]
  • Head of household: $0 – $66,200 taxable income[1]

Taxable income = AGI − standard deduction (or itemized deductions). For a married couple in 2026, the standard deduction is $32,200 plus an additional $1,650 per spouse age 65+ ($35,500 if both are 65+). For 2025–2028, each spouse 65+ can also take the new $6,000 senior deduction, which phases out by 6% of MAGI above $150,000 (MFJ) or $75,000 (single). With both, a couple 65+ with MAGI under $150,000 can deduct $47,500, so their AGI can reach $146,400 ($98,900 + $47,500) with every dollar of long-term gain still in the 0% bracket.

Capital Gains Harvesting: How Retirees Use the 0% Rate

If a retiree expects to be in the 0% capital gains bracket in the current year, they can strategically sell appreciated assets to reset basis. This is sometimes called "gain harvesting" or "zero-rate harvesting."

Example (2026): Married couple, both age 68, with $40,000 in Social Security benefits, $15,000 in IRA withdrawals, and deductions of $47,500 ($32,200 standard + $3,300 age-65 additions + $12,000 senior deduction).

  • Once large gains are added, provisional income passes the point where the maximum 85% of benefits ($34,000) is taxable, so ordinary AGI is $49,000 ($15,000 IRA + $34,000 Social Security)
  • 0% ceiling: $98,900 taxable income + $47,500 deductions = $146,400 AGI
  • Room for 0% gains: $146,400 − $49,000 = $97,400
  • The couple can realize about $97,400 of long-term gains at 0%. The gains themselves are untaxed, but they make an extra $32,500 of Social Security taxable, leaving $1,500 of ordinary taxable income — about $150 of federal tax

After harvesting, the new cost basis is higher, reducing future gains when the investments are eventually sold or left to heirs.

The Social Security Tax Torpedo

Social Security benefits become taxable based on "combined income" (also called provisional income): AGI + nontaxable interest + half of Social Security benefits. When combined income exceeds $25,000 (single) or $32,000 (MFJ), up to 50% of SS benefits are taxable; above $34,000 single/$44,000 MFJ, up to 85% are taxable.[2]

Capital gains increase AGI, which increases combined income, which can trigger taxation of Social Security benefits that were previously tax-free. For a single filer, each $1 of capital gain adds $0.50 of benefits to the tax base while combined income is between $25,000 and $34,000, and $0.85 above $34,000 until 85% of benefits are taxable — creating an effective marginal rate significantly higher than the stated capital gains bracket.

Example: A single retiree with $20,000 of Social Security and $18,000 of other income realizes a $5,000 capital gain. Combined income rises from $28,000 ($18,000 + half of benefits) to $33,000 — within the 50% zone — and taxable benefits rise from $1,500 to $4,000. AGI therefore rises by $7,500, not $5,000. Once taxable income exceeds your deductions, that extra $2,500 of benefits is taxed at ordinary rates and also uses up 0% capital-gain room.

IRMAA: Capital Gains That Raise Medicare Premiums

Medicare IRMAA (Income-Related Monthly Adjustment Amount)[4] adds premium surcharges for Part B and Part D based on MAGI from two years prior. The 2026 schedule below (set by CMS, based on 2024 MAGI) shows the structure; the thresholds that will apply to 2026 income (2028 premiums) are inflation-indexed and not yet published:[4]

2024 MAGI (Single)2026 Part B Surcharge/Month
≤$109,000$0 (standard premium $202.90)
$109,001–$137,000+$81.20
$137,001–$171,000+$202.90
$171,001–$205,000+$324.60
$205,001–$499,999+$446.30
$500,000++$487.00

Using the 2026 schedule, a retiree just below the $109,000 IRMAA threshold[4] who realizes a $5,000 capital gain that pushes MAGI to $114,000 pays an extra $81.20/month for Part B ($974.40/year) plus $14.50/month for Part D ($174/year) — $1,148.40 for the year, two years later. That is an effective "tax" of about 23% on the $5,000 gain, on top of capital gains tax.

Plan large capital gain events carefully in retirement to avoid IRMAA cliff effects. Consider spreading large asset sales across multiple years to stay below IRMAA thresholds.

Use our capital gains tax calculator to see your federal and state capital gains tax at different income levels, and see our guide on Medicare IRMAA surcharges for how to calculate premium impacts.

Frequently Asked Questions

Sources

  1. IRC §1(h) — Maximum capital gains rates; Rev. Proc. 2025-32 — 2026 thresholds and standard deductions; One Big Beautiful Bill Act (P.L. 119-21) — $6,000 senior deduction
  2. IRC §86 — Social Security benefit inclusion in gross income (provisional income thresholds)
  3. IRS Publication 915 — Social Security and Equivalent Railroad Retirement Benefits
  4. 42 U.S.C. §1395r(i) — Medicare IRMAA surcharges; CMS 2026 Medicare Parts B and D premium and IRMAA amounts
  5. IRC §401(a)(9) — Required Minimum Distributions (RMD rules); SECURE 2.0 Act §107 (age 73 RMD start)

Calculate capital gains tax in retirement

Enter your retirement income and capital gains to see your exact federal and state tax — and how much 0% gain harvesting room you have this year.

Open Capital Gains Tax Calculator
Run your own numbersCapital Gains Tax Calculator