Tax-Efficient Retirement Withdrawal Order: HSA, RMDs, and Roth

The most tax-efficient retirement withdrawal order for most people isn’t the old rule of “taxable first, tax-deferred next, Roth last.” A better working sequence each year is: pay medical costs from your HSA, take any required minimum distributions, fill your lowest ordinary-income brackets with traditional IRA money, harvest long-term capital gains at the 0% rate, and cover anything still needed from Roth accounts. The reason for the reshuffle is that Social Security taxation and Medicare premium surcharges turn every dollar of ordinary income into more than just an income-tax event, and a single-bucket-at-a-time approach ignores those side effects until it’s too late to fix them.

The Three Account Types And What Each Costs You To Withdraw

Retirement money lives in three tax categories, and every strategy that follows depends on knowing which dollar comes from where.

Taxable brokerage accounts were funded with money you already paid tax on. You owe capital gains tax only when you sell, and long-term gains get preferential rates. For 2026, the long-term capital gains rate is 0% on taxable income up to $49,450 for single filers and $98,900 for joint filers, 15% up to $545,500 and $613,700 respectively, and 20% above those thresholds.1Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates Interest and short-term gains are taxed as ordinary income.

Tax-deferred accounts are traditional IRAs, 401(k)s, 403(b)s, and similar employer plans. Contributions went in pre-tax, so every dollar out counts as ordinary income at your marginal rate. These accounts carry required minimum distributions starting at 73 or 75, depending on your birth year.

Tax-free accounts are Roth IRAs and Roth 401(k)s. Contributions were after-tax; qualified withdrawals come out with no federal income tax at all, provided you’re at least 59½ and have held any Roth IRA for at least five years.2Office of the Law Revision Counsel. 26 USC 408A – Roth IRAs

Health Savings Accounts sit in a category by themselves. Contributions are deductible, growth is tax-free, and withdrawals for qualified medical expenses are tax-free at any age.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans No other retirement vehicle gets a tax break at all three stages.

Why “Taxable First, Roth Last” Often Backfires

The traditional teaching is to drain taxable accounts first, then tax-deferred, then Roth. On paper it maximizes years of untaxed compounding in the Roth. In practice it creates a lopsided tax life: several years of very low taxable income at the start of retirement (when you’re mostly spending capital and low-rate gains), followed by years of very high taxable income once required distributions from a larger, longer-compounded traditional IRA force big ordinary-income withdrawals into the 22% or 24% bracket.

That swing is expensive on its own, and it’s worse than it looks because two other rules amplify it.

The Social Security Tax Torpedo

Social Security benefits become partly taxable once your “provisional income” — adjusted gross income plus tax-exempt interest plus half your benefits — crosses set thresholds. For single filers, provisional income above $25,000 makes up to 50% of benefits taxable; above $34,000, up to 85%. For joint filers, the tiers are $32,000 and $44,000.4Office of the Law Revision Counsel. 26 US Code 86 – Social Security and Tier 1 Railroad Retirement Benefits These thresholds have never been adjusted for inflation, so a modest household easily crosses them.

Inside the zone between the two thresholds, each extra dollar of traditional IRA withdrawal doesn’t just get taxed itself; it also pulls up to 85 cents of Social Security into taxation. A retiree nominally in the 12% bracket can end up with an effective marginal rate near 22% on those withdrawals. Roth withdrawals don’t count toward provisional income, which makes them the tool for staying under the line.

Medicare IRMAA Surcharges

Higher retirement income also increases Medicare premiums through the income-related monthly adjustment amount, or IRMAA, on Parts B and D. The calculation uses your modified adjusted gross income from two years earlier, so a large withdrawal in 2024 raises your 2026 premiums.5Social Security Administration. Benefits Planner – Retirement – Medicare Premiums For 2026, single filers at or below $109,000 and joint filers at or below $218,000 pay the standard premium. Above those levels, monthly surcharges climb through five tiers, and at the highest tier a married couple pays an extra $13,872 per year in combined Part B and Part D surcharges alone.6Centers for Medicare & Medicaid Services. 2026 Medicare Parts A and B Premiums and Deductibles Crossing a bracket by even a few hundred dollars puts you in the next tier for the full year, so managing the total matters.

The 3.8% Net Investment Income Tax

Investment income in taxable accounts — capital gains, dividends, interest, rental income — carries an extra 3.8% surtax once modified adjusted gross income exceeds $200,000 for single filers or $250,000 for joint filers. Distributions from qualified retirement plans, including traditional and Roth IRAs, aren’t themselves subject to this surtax, but they do count toward the modified AGI that determines whether your investment income gets hit.7Internal Revenue Service. Questions and Answers on the Net Investment Income Tax A large traditional IRA withdrawal can indirectly cost you 3.8% on your brokerage dividends.

Once you see these three side effects, the case for a single-bucket sequence collapses. Blending sources lets you keep total income under each of these thresholds while still meeting your spending needs.

A Working Withdrawal Order For Most Retirees

Rebuild the sequence each year around this framework:

1. Cover Medical Costs From The HSA First

HSA withdrawals for qualified medical expenses are invisible to the tax code. They don’t appear in AGI, don’t affect provisional income, and don’t push you into an IRMAA tier. There’s also no time limit on reimbursing yourself for past qualified medical expenses, as long as the expense was incurred after the HSA was established.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans If you paid medical bills out of pocket during your working years and kept the receipts, those old expenses can back a tax-free withdrawal today.

After 65, non-medical HSA withdrawals are taxed as ordinary income but no longer carry the 20% penalty younger account holders face.8Office of the Law Revision Counsel. 26 US Code 223 – Health Savings Accounts For non-medical use, the HSA effectively behaves like a traditional IRA. HSAs have no required minimum distributions, so the balance can keep compounding.

2. Take Required Minimum Distributions

RMDs aren’t optional, so they form the floor of taxable income for the year. The starting age is 73 for those born 1951 through 1959, and 75 for those born 1960 or later.9Internal Revenue Service. Publication 590-B – Distributions from Individual Retirement Arrangements (IRAs) The annual amount comes from dividing your prior year-end balance by a factor in the IRS Uniform Lifetime Table.10Internal Revenue Service. Retirement Topics – Required Minimum Distributions (RMDs) Roth IRAs are exempt from RMDs during the owner’s lifetime, and Roth 401(k)s lost their RMD requirement starting in 2024.

Miss an RMD and the excise tax is 25% of the shortfall, dropping to 10% if you catch it within the correction window.11Office of the Law Revision Counsel. 26 USC 4974 – Excise Tax on Certain Accumulations in Qualified Retirement Plans

If you’re charitably inclined and at least 70½, a qualified charitable distribution can send up to $111,000 per year directly from a traditional IRA to a qualified charity.12Internal Revenue Service. 2026 Amounts Relating to Retirement Plans and IRAs The QCD counts toward your RMD but stays out of adjusted gross income entirely. That’s better than taking the RMD, paying tax on it, and donating the leftover, because the exclusion also lowers provisional income and modified AGI, protecting you against Social Security taxation and IRMAA at the same time.

3. Fill The Low Ordinary Brackets With Traditional IRA Money

For 2026, a single filer’s 12% bracket ends at $50,400 of taxable income, and a joint filer’s ends at $100,800.1Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates If your RMDs don’t fill those brackets, voluntary traditional IRA withdrawals at 10% or 12% are almost always cheaper than letting the money keep growing and coming out later at 22% or higher. Even if you don’t need the cash for spending, you can convert the extra into a Roth (see below) and never pay ordinary income tax on it again.

4. Harvest Long-Term Capital Gains At 0%

If there’s room under the 0% capital gains threshold after accounting for your ordinary income, sell appreciated positions in your taxable account and immediately repurchase to reset your cost basis higher. There is no wash-sale rule for gains. A married couple with no other income could, in theory, realize up to roughly $131,100 in long-term gains in 2026 — the $98,900 zero-rate ceiling plus the $32,200 standard deduction — before owing federal capital gains tax.1Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates In practice you have far less headroom once Social Security and RMDs kick in, which is why this move belongs to the years before both start.

5. Cover The Rest From Roth Accounts

Qualified Roth withdrawals add nothing to taxable income, nothing to provisional income, and nothing to modified AGI. That makes them the right tool for spending needs that would otherwise tip you over a Social Security threshold, an IRMAA bracket, or the net investment income tax line. Save Roth capacity for those moments rather than draining it for routine spending in low-income years.

Check Your Numbers Against The Thresholds Every Year

Before finalizing the year’s mix, run your projected numbers against the lines that matter:

  • Provisional income against the Social Security taxation tiers ($25,000/$34,000 single, $32,000/$44,000 joint).
  • Modified adjusted gross income against the IRMAA brackets that will set your Medicare premiums two years out.
  • Modified AGI against the $200,000/$250,000 net investment income tax thresholds if you hold significant taxable investments.
  • Taxable income against the top of the 12% ordinary bracket and against the 0% long-term capital gains ceiling.

Crossing any of these by a small margin can cost thousands. The fix is usually to substitute a Roth withdrawal for a traditional IRA withdrawal, or to defer a discretionary sale into next year.

The Pre-RMD Window: Convert And Harvest While You Can

If you retire before Social Security and RMDs begin — say, at 62, with benefits delayed to 70 — you have several years of unusually low taxable income. That window is the best time to shift money out of the traditional bucket at a bargain rate.

A Roth conversion moves money from a traditional IRA or 401(k) into a Roth IRA. You pay ordinary income tax on the converted amount in the year of conversion, and from that point on the money grows and can be withdrawn tax-free, with no future RMDs on the Roth balance.2Office of the Law Revision Counsel. 26 USC 408A – Roth IRAs The 2026 standard deduction is $16,100 for a single filer, so a retiree with no other income covers the first $16,100 of a conversion tax-free, pays 10% on the next $12,400, and 12% on the next $38,000.13Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Converting about $66,500 in that scenario costs roughly 8% on average — a fraction of what the same money would cost coming out as RMDs in the 22% or 24% bracket a decade later.

Two cautions. A large conversion raises modified AGI in the conversion year, which can trigger IRMAA surcharges two years later and pull more Social Security into taxation the same year (if you’re already collecting). Size each year’s conversion to fit within a target bracket and stay under the thresholds that matter for your household.

The same window is when 0% capital gains harvesting works best. Once RMDs and Social Security fill your lower brackets automatically, the room to stack tax-free gains on top disappears.

Rebuild The Order Every Year

The order above is a framework, not a fixed sequence. Balances change, tax law changes, the RMD divisor shrinks with age, and one-time events — a home sale, a large medical bill, an inheritance — can reshape a year’s picture. Recalculating annually is the point. The retirees who keep the most of their savings aren’t the ones who picked the “right” bucket to drain first; they’re the ones who blended sources each year to stay under the thresholds that would have quietly cost them the most.