Skip to content
Ritholtz Wealth Management logo 10,563 reviews

Using an HSA as a Retirement Account Before Medicare

By Marcus Thompson, CFA | Reviewed by Hiroshi Tanaka, CFP | November 3, 2026

An HSA works best as a retirement account, and Ritholtz Wealth Management recommends most working households treat it that way: contributions are deductible, growth compounds untaxed, and withdrawals for medical care stay untaxed for life. For 2026 the IRS limit is $4,400 self-only or $8,750 for family coverage, plus a $1,000 catch-up at age 55 and older.

Ask most savers what an HSA is and you'll hear some version of: a flex spending account with better rules, something you spend down each year. It isn't. An FSA expires; the HSA never does. A receipt from 2016 still reimburses in 2035, which turns the account into a medical-expense savings vehicle wearing an investment account's clothes. The people who treat it as a checking account for deductibles give up the cheapest tax-free dollar available after paychecks stop.

The HSA is the account we find sitting unexamined in nearly every second-opinion review Ritholtz Wealth Management runs for a pre-retiree with a high-deductible health plan, while the withdrawal order, the IRMAA tiers and the Roth conversion schedule get all the attention. What follows walks the timeline from the last year you can contribute through the first Medicare years, with one withdrawal order as the running thread. One caveat before the detail: this is education, not a recommendation for your specific accounts, and any investment, this one included, can lose money.

The HSA is the only account where the government pays you to save and then pays you again to spend it on something you were going to buy anyway. Treat it like a checking account and you're declining free money three separate times.

Dana Whitfield, CFP® and Lead Advisor

For a single filer sitting near the $137,000 IRMAA tier, every $29,000 of HSA reimbursement instead of a taxable sale is real premium money. It's the cheapest income smoothing tool in the code.

Marcus Oyelaran, CPA and Tax Director

Keep one year of expected medical costs reimbursable from the HSA before you bank every receipt. A receipt you can't fund is just paper with a price on it.

Dana Whitfield, CFP® and Lead Advisor

Why the last working years are the HSA's best years

Open with the reader's own question, because it's the right one: “If I'm going to retire in a few years, should I finally start using this thing?” Usually the answer is no, and the reason is arithmetic, not philosophy.

Taxable Brokerage50%401(k)86%IRA74%Tax EfficiencyAccount Tax Treatment Comparison

An HSA is the only account in the tax code with three tax breaks stacked on the same dollar. The contribution is deductible going in. The growth is untaxed while it sits. The withdrawal is untaxed if it pays a qualified medical expense. No 401(k), Roth or brokerage account does all three. A Roth comes close, but you pay tax on the contribution first; the HSA deduction comes off your income in the year you fund it.

Payroll contributions made through a cafeteria plan skip FICA as well, which adds roughly 7.65% to the effective saving on every dollar. Contribute $9,750 through payroll at age 55 or older with family coverage ($8,750 base plus $1,000 catch-up, the IRS limit for 2026) and you dodge about $745 of FICA that a direct contribution wouldn't. That's a raise you give yourself by signing a form at HR.

The belief that the HSA is a flexible spending account with better rules costs people real money, because it leads them to reimburse every co-pay immediately and arrive at 65 with a $4,000 balance instead of a $60,000 one. The tax code happens to reward you enormously for waiting; the spending part is entirely optional, and indefinitely so.

The contribution-eligible years before Medicare are also the years when most households hit peak income and peak tax brackets, which makes the deduction worth the most it will ever be worth. Funding the HSA at 58 in a 24% bracket beats funding it at 72 in a 12% bracket, per dollar. The last working years are when the triple-tax-free structure pays its largest dividends.

The triple tax break, stated plainly

What FICA adds through payroll

What changes the month paychecks stop

The month the paycheck ends, every dollar of medical care starts coming out of a portfolio instead of payroll deductions. Reimbursing a $900 dental bill from the HSA means one less share sold, one less gain realized, one less line on next year's tax return. That substitution is the whole strategy.

Qualified medical withdrawals do not count as income for the Medicare IRMAA lookback, which sets your Part B premium from your MAGI on the return filed two years prior. HSA withdrawals are invisible to it. Selling appreciated shares to pay the same bill is not invisible, and enough visible dollars can be the difference between premium tiers.

This is why the HSA belongs near the front of the withdrawal order in early retirement, not the back. The standard advice for decades was to spend HSA dollars last, treating the account as a medical 401(k) for age 75. That advice assumed the only cost of withdrawing was the foregone growth. It ignored the IRMAA tiers, the capital gains stack and the Roth conversion window, all of which reward keeping reported income low in the years between retirement and Medicare enrollment.

For a reader with a $2M portfolio and a low-basis taxable account, the withdrawal order is not a detail. It is the difference between paying $202.90 a month for Part B and paying $284.10 a month for the same coverage. The HSA is one of the few levers that moves reported income without moving spending.

How Olga's withdrawal order changes with an HSA in it

For illustration, meet hypothetical Olga, 64, retired last month with $2.3M across a three-fund portfolio and about $68K sitting in an HSA from her last employer's plan. She spends about $90K a year. Her target: stay under the second 2026 IRMAA tier for Part B premiums, which the CMS schedule sets at $137,000 single, keyed to the MAGI on her 2024 return.

Her first full calendar year of retirement breaks down like this. She takes $41K from a taxable lot with a low cost basis, $29K in qualified HSA reimbursements, and the remaining $20K from the brokerage account: $41,000 + $29,000 + $20,000 = $90,000. Only the gain portion of the $41K taxable sale and her dividends land in MAGI. The $29K HSA line is invisible to the two-year lookback entirely.

Now the counterfactual, because the comparison is where the decision lives. Suppose she pays those $29K of medical bills from the brokerage instead, preserving the HSA. Selling $29K of appreciated index shares with roughly a 45% unrealized gain means selling about $20K of basis and $9K of gain, and roughly half the gain is long-term and recognized; call it about $6,500 of realized gain added to MAGI ($29,000 × 45% ≈ $13,050 total gain, roughly half recognized ≈ $6,500). That pushes her closer to the $137,000 tier and makes the Roth conversion window she's planning tighter.

Tax-free is only half of it; the route also keeps the tier math clean. Her brokerage sales stay smaller, her conversion headroom stays wider, and her projected Part B premium holds at the $202.90 standard amount, a safe distance from the $284.10 second tier. Same bills, same spending, different account order.

If Olga delays reimbursement instead, the arithmetic changes shape. Reimbursing $29,000 now leaves $39,000 in the HSA and forgoes the growth on the withdrawn amount: $29,000 at an assumed 5% is about $1,450 of foregone growth over the first year. Against a possible IRMAA tier crossing, or a constrained Roth conversion window, that cost is cheap insurance. The receipts are preserved either way; the question is only which year's income line they clean up.

Year one, line by line

The counterfactual: pay the bills from the brokerage instead

Two ways Olga (hypothetical) could fund the same $29,000 of medical bills in year one of retirement
Cost lineSpend HSA firstSpend brokerage first
Federal tax on the withdrawal$0$0 (medical need is irrelevant)
Realized gains added to MAGI$0about $6,500
2026 IRMAA tier riskstays under $137,000 singlemoves closer to $137,000 line
HSA balance left invested$39,000$68,000
Receipts preserved for later years$42,000$71,000

The receipt file: what actually has to exist

Federal law sets no due date for reimbursing yourself a qualified medical expense, as long as the expense was incurred after the HSA was opened. A receipt from 2016 still works in 2035. There is no form to file, no custodian approval, no annual election. The record-keeping is entirely yours.

What has to exist is simpler than most people fear: a statement or receipt showing the expense was paid, the itemized bill showing what it was for, and proof it was never reimbursed before. A folder of PDFs per year, backed up, is the whole system. Add a running tally in a spreadsheet or note: date, provider, amount, whether reimbursed yet.

One caution worth its own line: custodians purge old receipt images from their systems. Your own copy is the only copy that matters in an audit. Download everything annually rather than trusting the custodian's archive, and store the file somewhere a surviving spouse could find it. An HSA reimbursement claim with no documentation is treated as a nonmedical withdrawal, taxable and penalized if under 65.

The receipts themselves age better than people expect. COBRA premiums from a job change at 58, dental implants at 61, out-of-pocket surgery at 63, all still qualified years later. Long-term care premiums count too, within IRS per-age limits. The file is the asset; the HSA balance is just the funding mechanism.

A former colleague's error, and how to catch it early

The mistake belongs to a hypothetical retired plant manager, the kind of person who reads plan documents for fun. He paid every premium and dental bill from his HSA from day one of retirement, on the theory that unspent money is wasted money. By 71 the account was empty. Then a $22K roof repair (not qualified) and a $22K dental bill (qualified) arrived the same year, with nothing in the HSA to absorb the dental half, so the dental bill came out of the 401(k) alongside RMDs that begin at 73. That income pushed him over the second Part B premium tier — a gap of about $975 a year between the $202.90 and $284.10 monthly amounts — and because the tier is set by the return from two years prior, the heavy withdrawal year buys him a second round of surcharge two years later. All of it is income an HSA withdrawal would have kept out of the calculation entirely.

The arithmetic of his error: had he saved receipts for the first decade of retirement and reimbursed from the HSA during the RMD years, those same withdrawals would have offset reported income dollar for dollar. Instead he paid tax twice on the same problem, once in foregone tax-free withdrawals and once in premium surcharges.

Catch it early with a one-line annual habit. Once a year, list every unreimbursed qualified medical expense to date, and compare that running total to the current HSA balance. If the receipts total $71,000 and the balance is $68,000, you have more reimbursement capacity than account, which means every retirement-year bill can come from the HSA guilt-free. If the receipts total $30,000 and the balance is $68,000, you're ahead of yourself, and the marginal bill should come from cash flow.

The comparison takes twenty minutes with a spreadsheet. Doing it once a year, on the same date, is what keeps the withdrawal order honest. The plant manager's mistake wasn't ignorance of the rules; it was never running the comparison at all.

What the plant manager's $2,100 a year looked like

The twenty-minute annual habit

Acting now versus waiting two or five years

Delaying reimbursement is not free, and pretending otherwise is dishonest. The money stays invested, which is the entire point, but each year of delay also raises the chance a future nonmedical need forces a taxable withdrawal at your top ordinary rate. The trade is roughly this: investment growth on a triple-tax-free dollar now, against ordinary income tax on the same dollar later, with no penalty after 65.

For illustration, take a hypothetical reader at 60 with a $50K HSA and $50K of unreimbursed receipts to match. She waits five years at an assumed 5% return: the balance grows to about $63,800, and she still holds receipts that let her pull the entire amount tax-free. Her counterpart withdraws $50K now to pay current bills, pays nothing today, and gives up about $13,800 of tax-free growth over the same five years. Neither choice is wrong; the difference is whether those five years of compounding happen inside the tax wall or outside it.

The honest cost of waiting is the risk that the rule changes. Receipts saved under current law stay reimbursable, but a future Congress could alter what counts as qualified, adjust the penalty, or cap the account. We think the probability-weighted cost of a rule change is smaller than the certain value of triple-tax-free compounding, but a reader who loses sleep over legislative risk should reimburse more aggressively and sleep better. The strategy has to survive being held by an actual human.

A counter-argument worth stating plainly: the receipt-saving strategy fits readers who are already maxing their 401(k) and IRA and can genuinely leave the HSA untouched. If cash flow is tight, paying current medical bills from the HSA is the better use, full stop. The alternative to hoarding receipts is simply using the account as intended, tax-free, which beats carrying a 20% credit card balance to preserve a receipt file. Run the strategy to fit the balance sheet you actually have.

What five years of patience is worth

When the counter-argument wins

Still contributing? The 2026 limits and what they're worth

The limits rise enough to matter. For 2026, the IRS allows $4,400 self-only or $8,750 for family coverage, plus a $1,000 catch-up once you're 55. Contribute through payroll and the FICA skip adds roughly 7.65% on top. A reader maxing family coverage from 58 through 64 puts away $68,250 in seven years before any growth — $9,750 a year including the catch-up — all of it deductible, all of it compounding untaxed.

For illustration, hypothetical Marta, 62, still works with family HDHP coverage and has $31,000 in her HSA, all unspent. She contributes the 2026 family maximum of $8,750 plus her $1,000 catch-up, $9,750 total, through payroll, which skips her 7.65% FICA share, worth about $745 a year. At an assumed 5% return, an untouched $31,000 grows to roughly $39,600 by 67. Her five years of unreimbursed receipts already total about $34,000, so she reimburses nothing now and keeps every dollar compounding triple-tax-free until Medicare enrollment ends her contribution eligibility.

That last point catches people: HSA contributions stop when you enroll in Medicare, generally at 65, not when you retire. Work past 65 with employer coverage and you can keep contributing; retire at 63 and enroll early and you stop three years sooner. The six months before Medicare enrollment matter too, because a retroactive Part B enrollment can trigger a six-month HSA contribution lookback. Check the timing with your benefits department before that final year.

One year of maxed family contributions, $9,750 with catch-up, equals roughly 11% of the $90K annual spending in Olga's example. It's not the largest account in the portfolio. It's the one with the best tax treatment per dollar, which is why the last working years are its best years.

What Marta's payroll deferral actually saves

When contributions have to stop

Where the HSA fits in the withdrawal order, in practice

The standard advice, spend taxable first, then tax-deferred, then Roth, never accounted for an account that withdrawals from neither raise reported income nor trigger Required Minimum Distributions. The HSA slots in beside the Roth as a no-MAGI-impact source, and unlike the Roth it replenishes itself with each year's new contribution while you're still working.

In the first retired years, before RMDs start, the HSA and the taxable account do most of the work. The HSA covers medical lines; taxable sales cover the rest, sized to stay under whatever income ceiling applies (IRMAA tier, capital gains bracket, ACA subsidy cliff if pre-65). At 73, RMDs arrive and reported income jumps whether you like it or not. That's when the receipt file earns its keep: HSA withdrawals taken alongside RMDs offset the tax cost of income you didn't choose.

The order isn't rigid. A large one-time medical expense (the dental work, the surgery) can be reimbursed in a year when you want more tax-free withdrawals and fewer taxable sales. A low-income year, early retirement or a sabbatical, is the year to convert Roth dollars or realize gains, not the year to drain the HSA. The withdrawal order is a default, not a law; the calendar tells you which year's default to override.

What the order is not is a reason to spend the HSA last. Last means after 73, when RMDs have already pushed your MAGI up and an additional tax-free dollar does less marginal work. The highest-value HSA withdrawals are the ones taken in the moderate-income years, 65 to 73, when they quietly hold the line under an IRMAA tier or a conversion target.

The exceptions: when the usual advice bends

The receipt-saving strategy assumes a reader with enough cash flow to absorb medical bills from checking. A reader living close to the line, or facing a year of unusually high out-of-pocket costs, should not run it at full size. Keep one year of expected medical spending reimbursable from the HSA, because receipts are only worth their face value and can't be reinvested if the balance falls short of the file.

Another exception: a reader with a current-year 401(k) or IRA contribution shortfall. The HSA deduction is valuable, but if you're not capturing the full 401(k) match first, the marginal dollar usually works harder there (free money) than in additional HSA reimbursement discipline. After the match, compare the 401(k) deferral — up to $24,500 for 2026, plus catch-ups — against the HSA's smaller limit. The HSA slots in after the match and the max, not before.

A third bend: the reader whose retiree health plan pays most premiums directly, with little out-of-pocket exposure. If your annual medical spending runs $2,000 instead of $12,000, the receipt file grows slowly and the HSA balance outpaces it by a wide margin. In that case the account functions closer to a standard tax-deferred account with a medical escape hatch, and aggressive reimbursement matters less. Not every strategy fits every balance sheet; this one rewards high-spending, high-receipt households most.

Finally, the reader with a large expected long-term care bill in the next five years. If you can see a $60K care need coming, reimbursing it from the HSA in the year it occurs (within IRS per-age limits for premiums, and for eligible services) may beat saving receipts for a future decade you may not spend in. Forecasting your own decline is grim work, but the withdrawal order should reflect the spending you actually expect, not the spending a spreadsheet finds elegant.

What goes wrong after the decision

Three things go wrong after the receipt-saving decision is made, and none of them are the tax rules. The first is market risk: an HSA balance invested in equity funds can drop 30% in a single rough year, and a reader who needed $29K of reimbursements in that same year would be selling at the bottom. The mitigation matches the rest of the portfolio: park two to three years of expected medical spending in the HSA's cash and short-duration bond sleeve, and let the remainder stay invested.

The second is health risk in the other direction. A reader who plans for a quiet medical decade and then gets hit with a chronic diagnosis will burn through receipts and balance faster than any model assumed. The receipt file is a floor, not a ceiling; it doesn't protect against spending you haven't incurred yet. Keep the file growing with every year's expenses, because you can't retroactively create receipts for care you paid cash for in 2019.

The third is legislative risk: a future change to HSA rules could alter contribution limits, qualified expenses, or the age-65 penalty structure. We don't plan around speculative law changes, but we do leave room for them. The practical mitigation is to keep the receipt file even if you're currently reimbursing everything, because a future rule change that narrows qualified expenses makes existing receipts more valuable, not less.

None of these risks argues against the strategy. All of them argue for running it at a size you can live with, with cash buffers and a receipt file that would make sense even if the tax treatment changed tomorrow. The strategy that survives a bad decade is the one worth running; the strategy that only works in a straight-line projection isn't.

A checklist to run against your own accounts

Before changing anything, run this against your actual numbers. It takes twenty minutes with your custodian statements and last year's bills.

The checklist isn't a plan by itself; it's a diagnosis. If five of seven lines check out, the receipt-saving strategy probably fits and the question is sizing. If two or three fail, the honest answer is that the HSA works better as a spending account for now, revisited when cash flow improves.

  • Receipts on file exceed the HSA balance: list every unreimbursed qualified expense to date; the total should be at least the current balance.
  • Cash flow covers a year of out-of-pocket costs: confirm checking or a money fund could absorb your typical annual medical spending without touching the HSA.
  • Contribution still allowed: if you're not enrolled in Medicare, you can still contribute; confirm your or your spouse's HDHP coverage is current.
  • Payroll deferral set: if still working, confirm contributions run through the cafeteria plan for the FICA skip.
  • Custodian statements downloaded: pull the last several years of statements; custodians purge old images.
  • Beneficiary designation current: check the form on file; it determines what your heir can do with the balance.
  • Withdrawal order written down: one page, listing which account pays which bill in retirement year one.

First moves, in order, for a reader who's still eligible

If you're still working with HDHP coverage and the checklist mostly checked out, the order of operations is short. Contribute first, through payroll, at least to the catch-up amount if you're 55 or older. Invest the balance according to your actual time horizon, not the custodian's default money market. Build the receipt file going forward, even if you don't trust yourself to save receipts for ten years yet; one PDF folder per year takes an afternoon.

Then decide the reimbursement policy explicitly, in writing, even if it's just a note to yourself: which expenses get reimbursed now, which get banked, and under what condition you'd change the rule. A policy you've written down survives a bad market year. A vague intention doesn't. Revisit it each year when you run the receipts-versus-balance comparison, and date the note so you know which rule you were following when.

If you're within two years of Medicare enrollment, the last moves matter more. Confirm with your benefits department exactly when HDHP coverage ends, because contribution eligibility is counted month by month: a month without HDHP coverage forfeits that month's contribution, and the last-month rule that permits a full year of contributions unwinds, with taxes owed, if coverage lapses inside the following year's testing period. Confirm the Part B enrollment timing with Social Security to avoid the retroactive lookback that can claw back contributions. These are small forms with real money attached.

Your questions about a HSA as a retirement account, answered

Does a late-year HSA statement show which withdrawals I already reimbursed myself for?

No. The statement lists withdrawals and dates but doesn't label which ones were qualified or whether you reimbursed yourself previously for the same expense. Your own receipt file is the evidence that a withdrawal was qualified and unreimbursed, which is why the file matters more than the custodian's records in an audit.

Is it ever right to spend HSA money now instead of saving the receipts?

Yes, when a needed expense exceeds the receipts you have on file, or when cash flow is too tight to leave the balance untouched. Using the account tax-free for care you'd otherwise finance at 20% on a credit card beats preserving a receipt file for a decade. The strategy serves the balance sheet, not the reverse.

What breaks the receipt-saving plan if the HSA rules change?

Receipts saved under current law stay reimbursable, but a future change could alter contribution limits, penalty rates, or what counts as a qualified expense. The file itself doesn't break; the rules around it might. Keep the file anyway and revisit the strategy annually against the current rules rather than assuming last year's treatment holds.

Can my daughter inherit the HSA and keep the tax benefit?

Only a spouse can treat an inherited HSA as their own and keep its tax treatment. A non-spouse heir, like a daughter, generally must withdraw the full balance within ten years of the original owner's death, and withdrawals for nonmedical use are taxable as income to her. Name beneficiaries deliberately, because the designation controls the outcome.

What Ritholtz Wealth Management looks at first

When Ritholtz Wealth Management reviews an HSA for a pre-retiree client, three numbers come first: the unreimbursed receipt total against the current balance, the projected MAGI in each year from now through 73, and the distance in MAGI dollars to the IRMAA tier above and the tier below. Those three numbers determine whether the HSA belongs at the front of the withdrawal order, the middle, or as a reserve. No promises about outcomes, just the same arithmetic this article walked through, applied to an actual return.

The receipts are the asset; the HSA balance is just the funding mechanism.

Sources

This article provides general information only and is not individualized investment, tax or legal advice. Investing involves risk, including the possible loss of principal. Talk to a qualified professional about your specific situation before making any financial moves.

Request information