As a tax preparation specialist and former IRS auditor, I’m seeing more clients ask about HSA strategies this year. The triple tax advantage is real, but there are critical compliance issues that plain text accounting can help solve.
Why HSAs Matter for Tax Planning in 2026
For those unfamiliar, Health Savings Accounts offer the most tax-advantaged structure available:
- Contributions are tax-deductible (or pre-tax via payroll)
- Growth is tax-deferred (no tax on investment gains)
- Withdrawals are tax-free for qualified medical expenses
2026 contribution limits:
- Individual coverage: $4,400
- Family coverage: $8,750
- Age 55+ catch-up: $1,000
The Tax Compliance Challenge
Here’s where clients get into trouble: the IRS can audit your HSA withdrawals for up to 7 years after filing. If you can’t prove an expense was qualified, you face:
- 20% penalty on the distribution
- Income tax on the amount
- Potential additional penalties for negligence
The problem? Most people don’t maintain adequate documentation.
Beancount as Your Audit Defense System
This is where plain text accounting shines. Every transaction is documented, version-controlled, and linked to source documents.
My recommended metadata structure:
For every medical expense you plan to claim against HSA:
Qualified Expense Categories (IRS Pub 502)
What qualifies for HSA withdrawal? More than most people realize:
Medical & Dental:
- Doctor visits, copays, deductibles
- Prescriptions (WITH doctor’s note for OTC as of 2020)
- Dental cleanings, fillings, orthodontics
- Vision exams, glasses, contact lenses
Expanded in Recent Years:
- Menstrual care products (2020 CARES Act)
- Over-the-counter medications WITHOUT prescription (2020)
- Telehealth visits
- COVID-19 testing and PPE (temporary but extended)
Often Missed:
- Mileage to/from medical appointments ($0.21/mile for 2026)
- Lodging for medical travel (up to $50/night per person)
- Long-term care insurance premiums (age-based limits)
- Qualified long-term care services
NOT Qualified:
- Cosmetic procedures (unless medically necessary)
- Over-the-counter supplements (unless prescribed)
- Health club dues (unless specific medical need)
- General health expenses (fitness trackers, healthy food)
The “Stealth Retirement Account” Strategy
Some clients pay medical expenses out-of-pocket and let their HSA grow tax-free for decades. This works because:
- No time limit on reimbursement
- After age 65, can withdraw for any purpose (penalty-free, but taxed as income if non-medical)
But this requires meticulous record-keeping. The burden of proof is on the taxpayer.
Beancount Account Structure for Tax Compliance
I recommend this to clients:
The account tracks your “reimbursement bank” - expenses you’ve paid that are eligible for tax-free HSA withdrawal.
Document Retention Requirements
Minimum 7 years for:
- Receipts showing date, provider, service, amount paid
- EOBs (Explanation of Benefits) from insurance
- Prescriptions or doctor’s notes (for OTC items)
- Provider statements
- Payment confirmations
Store digitally: Paper fades. Use cloud storage (encrypted) or Git LFS with Beancount metadata links.
Common Tax Mistakes to Avoid
- Contributing while not HSA-eligible (e.g., enrolled in non-HDHP after job change)
- Contributing while on Medicare (Part A enrollment ends HSA eligibility)
- Missing the pro-rata calculation (if you weren’t HDHP-covered for full year)
- Forgetting employer contributions count toward limits
- Claiming cosmetic procedures (unless medically necessary with documentation)
Questions for the Community
How are others handling:
- Receipt digitization workflows?
- Metadata tagging for audit readiness?
- Queries to calculate reimbursable balance?
- Tracking qualified vs non-qualified expenses?
For those using Beancount professionally, are you advising clients to adopt plain text accounting for HSA tracking?
The transparency and audit trail make it ideal for tax compliance, but the learning curve is real.
What’s your experience?