← Back to all articles
Progressive Planner Article · August 20, 2026

Capital Gains in Retirement: Taxes and Timing Explained

Understand how to manage capital gains in retirement effectively. Learn tax strategies to maximize your income and minimize taxes.

Capital Gains in Retirement: Taxes and Timing Explained

Capital Gains in Retirement: Taxes and Timing Explained

Hands reviewing retirement financial tools

Long-term capital gains in taxable brokerage accounts get taxed at preferential 0%, 15%, or 20% rates depending on your taxable income, according to IRS Topic No. 409. Withdrawals from a traditional IRA or 401(k) get no such break. Every dollar you pull out is taxed as ordinary income, no matter how much the underlying investments appreciated.

That difference is the single biggest lever you control in retirement. You decide when to sell, how much to sell, and which account to sell from. Vanguard’s retirement-income framework and Fidelity’s guidance on tax-savvy withdrawals both point the same direction: sequence your withdrawals deliberately, and a meaningful share of your gains can land in the 0% bracket instead of the 15% or 20% one.

Before you sell anything, know that a gain does more than trigger a capital-gains bill. It can:

  • Push your income past the Net Investment Income Tax threshold, adding a 3.8% surcharge
  • Make more of your Social Security benefit taxable, up to 85%
  • Raise your Medicare premiums two years later through IRMAA

Key Takeaways

The tax rate on your capital gain matters less than when you realize it and what else it drags into your tax return that year.

Point Details
Account type decides the rate Taxable accounts get 0%/15%/20% capital-gains rates; IRAs and 401(k)s tax every withdrawal as ordinary income.
Watch the secondary triggers A gain can add 3.8% NIIT, tax more Social Security, and raise Medicare premiums two years later through IRMAA.
Use lot selection and timing Split large sales across years and choose specific lots to stay inside the 0% or 15% band.
Pair losses with gains Tax-loss harvesting offsets gains dollar for dollar and can bank losses for a future large sale.
Check state and benefit rules State capital-gains treatment and needs-based program thresholds vary and deserve their own projection before you sell.

Table of Contents

What Determines Capital Gains Tax in Retirement

Where an asset sits determines how it gets taxed when you cash it out, and that single fact reshapes most retirement withdrawal decisions.

Taxable brokerage accounts hold assets that qualify for long-term capital gains treatment once you’ve owned them more than a year. Your rate, 0%, 15%, or 20%, depends on total taxable income after deductions, not on the size of the gain alone.

Traditional IRAs and 401(k)s work differently. Every withdrawal counts as ordinary income, taxed at your marginal rate, whether the money came from stock appreciation, bond interest, or your original contributions. The IRS treats a $50,000 withdrawal the same whether the account tripled or barely grew.

Roth accounts sidestep the issue entirely. Qualified withdrawals are tax-free, which makes them valuable for years when you need extra cash without disturbing your capital-gains room.

Here’s how the mechanics play out for 2026:

  1. Ordinary income fills the bracket first. Wages, pensions, RMDs, and taxable Social Security stack at the bottom of your income. Capital gains stack on top of that.
  2. The 0% band tops out at modest taxable income levels for married couples filing jointly and single filers, according to 2026 breakpoint projections.
  3. The 15% band extends to higher taxable income levels for married couples filing jointly and single filers. Above those levels, long-term gains hit 20%.
  4. The standard deduction expands your 0% room. A retired couple with modest ordinary income can often realize a real amount of gains at 0% before ordinary income and gains together exceed that $98,900 threshold.

Hidden Costs That Can Turn a Small Sale Into an Expensive One

The headline capital-gains rate is rarely the whole story. Three secondary effects can quietly cost more than the tax on the gain itself.

The Net Investment Income Tax. Once modified adjusted gross income crosses statutory thresholds for joint or single filers, an additional 3.8% NIIT applies to net investment income, including capital gains, under §1411. A retiree sitting just under the threshold can trip it with one well-timed stock sale.

Social Security taxability. Under 26 U.S.C. §86, a capital gain raises your combined income, and combined income determines how much of your Social Security benefit gets taxed, up to 85%. Retirees who assumed their benefit was tax-free are often surprised when a single large sale pulls a big chunk of it into taxable territory.

Medicare IRMAA. Medicare sets Part B and Part D premiums using your tax return from two years earlier, so a large sale can raise premiums with a two-year delay, often catching retirees off guard because the connection isn’t obvious at tax time.

A one-time large sale can have effects that outlast the tax year itself: Medicare premium surcharges triggered by a single high-income year don’t disappear until the lookback period rolls forward again.

None of this means gains are bad. It means the total cost of a sale is bigger than the capital-gains line on your tax return, and it deserves a full projection before you click “sell.”

How Can You Use the 0% Capital Gains Bracket?

Here’s the practical sequence.

  1. Project your total taxable income for the year first. Add up RMDs, pensions, taxable Social Security, and interest before you even consider a sale. Whatever room remains below the 0% or 15% threshold is your target zone.
  2. Use specific-lot identification when you sell. Instead of letting your brokerage default to first-in-first-out, choose the lots with the smallest embedded gain, or the ones that keep your total realized gain inside a favorable band.
  3. Spread large gains across multiple years. Selling a concentrated position over two or three tax years, rather than all at once, often keeps more of the gain inside the 0% or 15% bracket instead of pushing it into 20% or triggering NIIT.
  4. Confirm the holding period before you sell. Assets held more than one year qualify for long-term treatment; anything held a year or less gets taxed as ordinary income, often at a much higher rate.

Pro Tip: Run the projection in November, not December. You’ll still have time to adjust the sale size before year-end, and your custodian’s tax software will have that year’s real numbers instead of estimates.

Should You Adjust Your Withdrawal Order in Retirement?

The conventional order, taxable accounts first, then tax-deferred, then Roth last, holds up well in most cases, and U.S. Bank’s retirement guidance backs that sequence for a reason: it lets tax-deferred and Roth balances keep compounding while you draw down accounts that already get favorable capital-gains treatment.

But rigid rules break down around required minimum distributions.

That’s where Roth conversions earn their place. Converting a slice of a traditional IRA during a genuinely low-income year:

  • Shrinks future RMDs, leaving more capital-gains room in later years
  • Costs ordinary income tax now, so it only makes sense below your current bracket ceiling
  • Needs the same NIIT and Social Security check as any other income event, since a conversion counts as ordinary income too

Where You Hold Assets Changes What Happens When You Die

Sell-versus-hold isn’t only a tax-rate question. It’s also an estate question, and the account type quietly decides the answer.

Appreciated assets in a taxable brokerage account receive a step-up in basis at death. Heirs who inherit that stock can often sell it immediately with little or no capital-gains tax, because their basis resets to the value on the date of death.

Traditional IRAs offer no such reset. Heirs who inherit a traditional IRA owe ordinary income tax on every distribution, often on an accelerated schedule under current inherited-IRA rules.

That asymmetry changes the math for retirees who don’t need every dollar of a taxable account for living expenses:

  • Holding appreciated stock for heirs can preserve more after-tax value than selling it now and reinvesting
  • Spending down the IRA first, and letting the taxable account ride, often produces a better outcome for beneficiaries
  • If legacy planning isn’t a goal, this consideration disappears, and the tax-timing tactics above take priority

Your Year-End Capital Gains Checklist

Run this sequence before you authorize any large sale.

  1. Project total taxable income, including RMDs, pensions, and the taxable portion of Social Security.
  2. Model the candidate gain against that projection to see which bracket it lands in.
  3. Check NIIT and IRMAA thresholds, remembering Medicare premiums respond to income from two years back, not this year.
  4. Select lots and consider splitting the sale across two tax years if it keeps you in a lower band.
  5. Document the plan, including cost basis and holding period, before you file.

Update it every time a 1099 or RMD estimate changes.*

When an Advisor-Led Strategy Makes Sense

Running these projections by hand works for some retirees. Others want a second set of eyes, and that’s the gap Progressiveplanner built its Dual Purpose Retirement Strategy™ to fill.

The approach layers an Indexed Universal Life policy alongside traditional retirement accounts, so the same savings dollar can build tax-advantaged cash value while your other accounts handle capital-gains timing. The IUL component adds a source of income that isn’t tied to realized gains, which gives you another lever when you’re trying to stay under an IRMAA or NIIT threshold in a given year.

This tends to fit retirees who:

  • Want downside protection alongside market exposure
  • Are juggling multiple income streams and need more flexibility in which one to draw from
  • Value tax diversification as much as investment diversification

What Happens When Investments Lose Value Instead of Gain It

Losses aren’t just a consolation prize. Used well, they’re a planning tool with real value in retirement.

Capital losses offset capital gains dollar for dollar in the same tax year. Sell a losing position the same year you realize a gain elsewhere, and the loss directly reduces the taxable amount of that gain, potentially keeping you in a lower bracket or under the NIIT threshold.

Hands organizing financial documents and calculator

If losses exceed gains for the year, up to $3,000 of the excess offsets ordinary income annually, with the remainder carried forward indefinitely. A retiree sitting on a large unrealized gain in one holding and a loser in another has a natural pairing opportunity every December.

Tax-loss harvesting in retirement works a bit differently than during your accumulation years. You’re not just trying to minimize this year’s bill. You’re trying to bank losses you can pair against a future large sale, maybe the one that funds a home renovation or a Roth conversion three years from now.

One trap to watch: the wash-sale rule. Sell a security at a loss and buy a substantially identical one within 30 days before or after, and the IRS disallows the loss. Retirees rebalancing a portfolio need to route around this deliberately, often by swapping into a similar but not identical fund rather than repurchasing the same holding.

Loss harvesting also interacts with the sequencing tactics covered earlier.

Does Your State Tax Capital Gains Too?

Federal rates are only half the picture. State treatment of capital gains varies enormously, and it changes the real-world payoff of every tactic above.

Nine states, including Florida, Texas, and Nevada, charge no state income tax at all, so capital gains realized by a resident there face only the federal rate.

A few states carve out partial breaks. Some exempt a portion of retirement income or offer preferential treatment for gains on specific asset types, though these provisions vary and change with legislative sessions, so check your state’s current rules rather than assuming last year’s treatment still applies.

Residency matters more than people expect. Retirees who split time between two states, or who move in retirement specifically to reduce taxes, need to understand their state’s residency test, since establishing domicile in a no-income-tax state usually requires more than owning a second home there. Timing a big sale around a move, closing on the sale after establishing residency in the lower-tax state, can meaningfully change the total bill.

If you live in a state with its own capital-gains tax, run your projections at the combined state-and-federal rate before deciding whether a sale is worth it in a given year, not just the federal number.

Can a Capital Gain Cost You a Benefit You’re Counting On?

Realizing a large gain doesn’t just raise your tax bill. It can also change what you qualify for.

Programs like Medicaid, Supplemental Security Income, and many state-level assistance programs use income and, in some cases, asset tests to determine eligibility. A capital gain counts as income in the year it’s realized, even though it’s a one-time event rather than ongoing income. That can push a retiree who normally qualifies for a program above the threshold for that single year.

Medicaid’s long-term care eligibility is especially sensitive to this. A retiree planning to apply for Medicaid to cover nursing-home or in-home care costs needs to think carefully about the timing of any asset sale in the years leading up to that application, since a large gain can delay eligibility or trigger a review.

Subsidies tied to the Affordable Care Act marketplace work the same way. A big capital gain can push modified adjusted gross income above the threshold for premium tax credits, turning an affordable health plan into a much more expensive one for that coverage year. Retirees relying on ACA subsidies before Medicare eligibility at 65 should model this before selling anything large.

The fix isn’t avoiding gains altogether. It’s timing them around the years you’ll be applying for or renewing a needs-based benefit, the same discipline that protects your NIIT and IRMAA thresholds elsewhere in this guide.

Can a Capital Gain Cost You a Benefit You're Counting On? — overview diagram

Where to Verify These Rules and Get Personalized Guidance

Check these sources directly, and talk to an advisor before acting on any single-year projection.

The Real Lever Retirees Overlook

That’s the wrong obsession. The rate is fixed by law. What you control is taxable income itself, and that’s a function of timing, not tax code.

The conventional wisdom, “sell taxable first, defer the rest,” is directionally right but incomplete. It ignores RMD collision years, ignores the two-year IRMAA lookback, and treats Social Security taxability as an afterthought when it should be part of the same spreadsheet as the capital-gains projection.

What actually works is treating every sale as a five-line calculation: ordinary income, capital gain, NIIT exposure, Social Security taxability, and IRMAA lookback.

For retirees juggling multiple income streams already, that’s exactly the kind of coordination an advisor-led strategy like Progressiveplanner’s Dual Purpose Retirement Strategy™ is built to handle, not as a replacement for doing the math, but as a second income stream that gives you more room to do it well.

This article is general information, not a substitute for advice from a qualified financial advisor. Consult a qualified financial professional about your own circumstances before acting on anything here.

Sources

Want to See How This Strategy May Apply to Your Numbers?

Articles are helpful, but your situation is personal. Request a free review so we can look at your age, contributions, current retirement plan, tax exposure, and income goals.

Request My Free Retirement Income Review
Important: The information on this blog is for educational purposes only and should not be considered tax, legal, investment, or individualized financial advice. Individual results will vary based on age, income, contribution levels, product design, tax situation, market conditions, and other personal factors. Please consult with a qualified financial, tax, or legal professional before making retirement planning decisions.