Hey everyone! ![]()
I’ve been deep in FIRE optimization mode lately, and I want to share something that’s become a cornerstone of my retirement strategy: using HSAs as a stealth retirement account that actually beats traditional 401(k)s and IRAs on tax advantages.
The Triple Tax Advantage (Better Than Any Other Account!)
Most people know about HSAs for medical expenses, but here’s the mind-blowing part: HSAs have a triple tax advantage that makes them the most powerful tax-advantaged account available:
- Tax-deductible contributions (beats Roth accounts)
- Tax-free growth (like both Traditional and Roth)
- Tax-free withdrawals for qualified medical expenses (beats Traditional accounts)
Compare this to:
- Traditional 401(k)/IRA: Tax-deductible contributions + tax-deferred growth, but taxed on withdrawal
- Roth 401(k)/IRA: After-tax contributions + tax-free growth + tax-free withdrawal (2 out of 3)
- HSA: All three benefits! Plus no RMDs ever, and you can pay Medicare premiums tax-free after 65!
The Reimbursement Hack: The Secret Weapon
Here’s where it gets really interesting. IRS rules say you can reimburse yourself for qualified medical expenses at any time — there’s no deadline!
So the strategy is:
- Max out HSA contributions every year ($4,400 for individuals in 2026, $8,750 for families)
- Pay all current medical expenses out-of-pocket from your checking account
- Save every receipt (scan and archive digitally)
- Let your HSA investments compound tax-free for decades
- Reimburse yourself 20-30 years later for those old medical expenses — completely tax-free!
This is 100% legal and IRS-compliant. You’re building a “receipt bank” of future tax-free withdrawals.
My 2026 Strategy: Front-Loading and Investing
For 2026, I’m doing:
- $4,400 contribution (individual coverage) — contributed in January for maximum growth time
- 100% invested in VTSAX (total market index) — not keeping cash
- $0 withdrawn — paying all medical expenses out-of-pocket
- Every receipt saved in a digital vault with metadata
If I can save $200/month in medical expenses (insurance copays, dental, vision, prescriptions), that’s $2,400/year in “receipt bank” assets. Over 20 years at 7% growth, that’s potentially $98,000 in tax-free withdrawals I can access in retirement!
Tracking This in Beancount
Here’s my account structure:
; HSA accounts
2024-01-01 open Assets:HSA:Fidelity:Cash USD
2024-01-01 open Assets:HSA:Fidelity:Investments:VTSAX VTSAX
2024-01-01 open Income:HSA:Contributions
; Medical expenses (tracking reimbursement status)
2024-01-01 open Expenses:Medical:HSA-Reimbursable USD
2024-01-01 open Expenses:Medical:Out-of-Pocket USD
; Example: Paying dental bill out-of-pocket (NOT from HSA)
2026-03-10 * "Dentist - Cleaning and Filling"
Expenses:Medical:HSA-Reimbursable 350.00 USD
receipt: "2026-03-10-dental-receipt.pdf"
hsa-qualified: TRUE
Assets:Checking -350.00 USD
; Example: HSA contribution via payroll
2026-03-15 * "HSA Payroll Contribution"
Assets:HSA:Fidelity:Cash 366.67 USD
Income:HSA:Contributions -366.67 USD
I use custom metadata tags to track:
receipt:- Link to scanned receipt PDFhsa-qualified:- Whether expense is IRS-qualified for HSA reimbursement
Then I can query my “future tax-free withdrawal balance”:
SELECT sum(position) WHERE account ~ "Medical:HSA-Reimbursable"
This tells me how much I could withdraw tax-free from my HSA right now!
The FICA Bonus: Save an Extra 7.65%
One more optimization: if you contribute via payroll deductions (vs direct contributions), you save an additional 7.65% in FICA taxes (Social Security + Medicare). On $4,400, that’s an extra $337 saved!
After 65: Even More Flexibility
At age 65, HSAs become even better:
- Still tax-free for medical expenses (including Medicare premiums!)
- Can withdraw for any purpose (taxed like Traditional IRA, but no 20% penalty)
- No required minimum distributions — let it grow forever if you want
My Question to the Community
How are others tracking HSA + medical receipt management in Beancount? I’d love to hear:
- Your account structures
- Receipt storage and linking strategies
- Any Beancount queries or plugins you’ve built
- Long-term users: have you successfully reimbursed old expenses?
For those pursuing FIRE: are you maxing HSA before Roth IRA? The math strongly suggests you should!
Looking forward to learning from this community!
— Fred