How HSAs work and why the triple tax advantage matters
A Health Savings Account (HSA) combines tax benefits, portability, and long-term investing to help people pay for health care and to supplement retirement savings. The “triple tax advantage” means:
- Contributions are tax-deductible or pre-tax if made through payroll (lowering taxable income).
- Investment earnings (interest, dividends, capital gains) grow tax-free inside the HSA.
- Withdrawals used for IRS-qualified medical expenses are tax-free.
Those three features together make HSAs unusually efficient compared with other tax-advantaged accounts. For example, unlike Flexible Spending Accounts (FSAs), HSA balances roll over year to year and remain with you if you change employers (see our guide comparing HSA vs. FSA for practical differences: HSA vs. FSA).
(Authoritative sources: IRS Publication 969 — Health Savings Accounts (HSAs) and Other Tax-Favored Health Plans (irs.gov/publications/p969) and Consumer Financial Protection Bureau — Health Savings Accounts (CFPB).)
Eligibility, enrollment and basic rules
- To open and contribute to an HSA you must be enrolled in a qualified High-Deductible Health Plan (HDHP). HDHP minimum deductibles and out-of-pocket maximums are defined annually by the IRS.
- You cannot be enrolled in Medicare (Part A or B) and still contribute to an HSA.
- You cannot be claimed as a dependent on someone else’s tax return and also contribute.
The IRS adjusts HSA contribution and HDHP limits each year. For example, 2023 limits were $3,850 (individual) and $7,750 (family), and 2024 limits increased (check the IRS for the most recent year-to-year limits) — the annual adjustments matter for planning contributions and catch-up contributions (age 55+ typically allowed an extra $1,000). Always confirm the current year limits on IRS.gov (see Publication 969 and the HSA limits page) before finalizing tax or contribution decisions.
How contributions and tax treatment work in practice
- Employer payroll contributions are generally pre-tax (excluded from income for federal income tax and often Social Security and Medicare taxes depending on plan setup).
- If you contribute outside payroll (e.g., direct to HSA custodian), you typically deduct the contribution on your Form 1040 as an “above-the-line” deduction.
- Catch-up contributions: People age 55 and older can make an additional catch-up contribution each year (commonly $1,000, but confirm the current amount each year).
In my practice I recommend treating employer HSA contributions like free money. If your employer offers a match or contributes a fixed amount, fund at least enough to capture the full match before prioritizing other tax-advantaged accounts.
Investment and long-term planning
Most HSA custodians let you invest HSA dollars once a minimum cash balance is held. Investments include mutual funds, ETFs, and sometimes self-directed options. Because earnings are tax-free if used for qualified medical expenses, HSAs can be particularly powerful long-term savings vehicles.
Use cases I regularly implement for clients:
- Short-term medical spending: Use the HSA cash portion for current-year copays and predictable out-of-pocket costs.
- Long-term growth strategy: Pay current medical bills with other funds, let the HSA balance grow invested, and reimburse yourself years later. Retain receipts to substantiate tax-free withdrawals.
- Retirement supplement: After age 65, HSA funds can be withdrawn for non-medical purposes penalty-free (but subject to ordinary income tax), similar to a traditional IRA. Withdrawals for qualified medical expenses remain tax-free.
For deeper tactics on investing inside an HSA and coordinating HSA funds with retirement planning see our related pieces: Maximizing HSA Growth: Long-Term Investment Strategies and How HSAs Work as a Retirement and Health Planning Tool.
Real-world example
A 35-year-old client in my practice set up an HSA and contributed the annual maximum whenever possible. She maintained a cash cushion for near-term costs but invested any excess in low-cost index funds. Over 10 years, the account’s tax-free growth covered a major surgery and several dental procedures tax-free, and the invested portion continued compounding for retirement. The key behaviors that made this work were disciplined annual contributions, using the HSA to pay only truly qualified expenses when convenient, and keeping detailed receipts for later tax-free reimbursements.
Qualified medical expenses and recordkeeping
Qualified expenses are defined in IRS Publication 502 and include things like deductibles, copays, prescriptions, dental and vision care, and other medically necessary treatments. Over-the-counter medicines and certain services have changed rules in recent years; always check current IRS guidance before relying on an expense.
Recordkeeping tips:
- Keep invoices, receipts, and Explanation of Benefits (EOBs) for any medical expense you plan to reimburse from your HSA.
- Store digital copies and an indexed spreadsheet listing date, provider, service, and amount. This makes it easy to substantiate tax-free withdrawals if the IRS ever questions them.
Common mistakes and how to avoid them
- Treating an HSA only as a short-term bank: HSAs are most valuable when used as a long-term, invested vehicle for unpredictable health costs and retirement health expenses.
- Missing the deduction: If you make after-tax contributions directly to your HSA custodian, remember to claim the deduction on your tax return (Form 1040). Employer pre-tax payroll contributions won’t need this step.
- Inadequate recordkeeping: Losing receipts can convert tax-free withdrawals into taxable income and possible penalties if the IRS disallows the expense.
- Accidentally contributing while ineligible: Contributing after enrolling in Medicare or while claimed as a dependent can trigger excess contribution penalties.
See our article on excess contributions for rules and correction strategies: Health Savings Account (HSA) Excess Contributions.
Coordination with other benefits
- FSAs: You generally cannot contribute to a general-purpose FSA and an HSA at the same time unless the FSA is limited-purpose (dental/vision) or the FSA is run as a post-deductible FSA. For detailed coordination rules and case studies, review: How to Coordinate FSA and HSA Benefits Through the Year.
- Employer contributions: Employer HSA contributions are treated as employer-provided coverage for reporting but remain your money. Employer matches effectively increase your total compensation and should influence your saving priorities.
Frequently asked questions
- Who can contribute? Anyone enrolled in a qualified HDHP and not enrolled in Medicare can contribute. Others (friends/family) can also contribute to your HSA, but the total must stay under the annual IRS limit.
- What if I change jobs? The HSA is yours; you can keep the account, roll it to a new custodian, or open another HSA and transfer funds.
- Can I use HSA funds for non-medical expenses? Yes, after age 65 withdrawals for non-medical purposes are taxable but penalty-free. Before 65, non-qualified withdrawals are subject to income tax and a 20% penalty unless an exception applies.
Practical next steps (checklist)
- Confirm HDHP eligibility and current-year contribution limits on IRS.gov (Publication 969).
- If your employer offers an HSA match, enroll and capture the match first.
- Decide how much to keep in cash for near-term expenses vs. how much to invest.
- Establish a recordkeeping system for medical receipts you may reimburse later.
- Review investment options and fees at your HSA custodian; high fees can erode tax advantages.
Professional disclaimer
This article is for educational purposes only and does not constitute financial, tax, or legal advice. Rules and annual limits for HSAs change; consult a qualified tax professional or financial planner about your specific situation and verify current contribution limits and HDHP definitions on IRS.gov (Publication 969).
Authoritative resources
- IRS: Publication 969 — Health Savings Accounts (HSAs) and Other Tax-Favored Health Plans (https://www.irs.gov/publications/p969)
- Consumer Financial Protection Bureau — Health Savings Accounts (https://www.consumerfinance.gov/consumer-topics/health-savings-accounts/)
- IRS: Publication 502 — Medical and Dental Expenses (qualified expenses list) (https://www.irs.gov/publications/p502)
Internal FinHelp links
- How HSAs Work for Families: Contributions and Qualified Expenses — https://finhelp.io/glossary/how-hsas-work-for-families-contributions-and-qualified-expenses/
- Using an HSA: When It Makes Sense and How to Start — https://finhelp.io/glossary/using-an-hsa-when-it-makes-sense-and-how-to-start/
- HSA vs. FSA — https://finhelp.io/glossary/hsa-vs-fsa/

