How to Use an HSA to Pay Zero Tax on Medical Expenses
A Health Savings Account is the only account in the US tax code that gives you a triple tax benefit. Here is how it works, who qualifies, and how to use it to make medical costs effectively free.

Most tax-advantaged accounts give you one tax benefit. A 401k reduces your taxable income now. A Roth IRA gives you tax-free growth and withdrawals later. The Health Savings Account (HSA) does both of those things simultaneously and adds a third benefit on top.
It is genuinely the most tax-efficient account available under the US tax code, and a meaningful number of people who qualify for it either do not use it or do not use it correctly.
What Is an HSA?
A Health Savings Account is a personal savings account specifically for medical expenses. It is available only to people enrolled in a High-Deductible Health Plan (HDHP). Contributions are tax-advantaged, the money grows tax-free, and withdrawals for qualified medical expenses are also tax-free.
Unlike a Flexible Spending Account (FSA), HSA funds roll over indefinitely. There is no "use it or lose it" rule. Money contributed to an HSA stays in your account until you spend it, potentially for decades.
The Triple Tax Advantage Explained
The HSA is described as having a "triple tax advantage" because it delivers three distinct tax benefits:
Benefit 1: Tax-free contributions. Money you contribute to an HSA is deducted from your taxable income, reducing your federal (and most states') income tax bill for the year. If you are in the 22% federal bracket and contribute $4,000, you save $880 in federal income tax immediately. Unlike a 401k deduction, the HSA contribution deduction is an "above-the-line" deduction, meaning it reduces your Adjusted Gross Income even if you take the standard deduction.
Benefit 2: Tax-free growth. Any money invested inside your HSA grows without being taxed. Dividends, interest, and capital gains inside an HSA are never taxed as long as the money is eventually used for qualified medical expenses.
Benefit 3: Tax-free withdrawals for medical expenses. When you withdraw HSA funds to pay for qualified medical expenses, you pay no federal income tax on the withdrawal. Contributions go in pre-tax, grow tax-free, and come out tax-free for medical use.
To illustrate the difference, compare $1,000 spent on a medical expense through different account types:
| Funding Method | Pre-Tax Income Needed to Cover $1,000 (22% bracket) | Tax Paid |
|---|---|---|
| Regular checking account | $1,282 | $282 |
| FSA | $1,000 | $0 on contribution, but use-it-or-lose-it |
| HSA | $1,000 | $0 on contribution, growth, and withdrawal |
Who Can Contribute to an HSA
To contribute to an HSA in a given year, you must:
- Be enrolled in a High-Deductible Health Plan (HDHP) for the months you contribute. For 2026, an HDHP is a plan with a minimum deductible of $1,650 for individual coverage or $3,300 for family coverage.
- Have no other health coverage that is not an HDHP (with narrow exceptions for dental, vision, and certain other coverages)
- Not be enrolled in Medicare
- Not be claimed as a dependent on someone else's tax return
If you are covered by your employer's HDHP, you qualify. If you buy your own HDHP through the marketplace or directly from an insurer, you also qualify. Coverage through a parent's non-HDHP plan while you are a dependent disqualifies you.
2026 HSA Contribution Limits
For tax year 2026:
- Individual coverage: $4,400
- Family coverage: $8,750
- Catch-up contribution (55 or older): Additional $1,000
Source: IRS Revenue Procedure 2025-19.
Contributions can be made up to the tax filing deadline (April 15, 2027 for the 2026 tax year) and still count for the 2026 tax year, similar to IRA contributions.
If your employer contributes to your HSA (many do, often $500-1,500 annually), those employer contributions count toward your annual limit. Combined employee plus employer contributions cannot exceed the annual limit.
Qualified Medical Expenses
HSA funds can be used tax-free for a broad range of qualified medical expenses defined by the IRS in Publication 502. These include:
- Doctor visits, urgent care, and hospital charges
- Prescription medications
- Dental care (cleanings, fillings, orthodontia)
- Vision care (eye exams, glasses, contact lenses)
- Mental health therapy
- Chiropractic care
- Acupuncture
- Medical equipment (crutches, blood pressure monitors, hearing aids)
- Certain over-the-counter medications and menstrual products (restored as qualifying expenses in 2020)
- COBRA premiums if you are between jobs
- Long-term care insurance premiums (up to limits based on age)
What is not qualified: gym memberships (unless prescribed for a specific medical condition), cosmetic procedures, most health insurance premiums while employed, and general wellness expenses without a medical diagnosis.
If you withdraw HSA funds for a non-qualified expense before age 65, you pay income tax on the amount plus a 20% penalty. After age 65, you can withdraw for any reason and pay only income tax (no penalty), making the HSA effectively function like a traditional IRA for non-medical expenses in retirement.
The Investment Strategy: Letting HSA Money Grow
Most people use their HSA as a spending account, paying medical bills directly from it each year. This captures Benefits 1 and 3 (tax deduction and tax-free withdrawal) but not the full power of Benefit 2.
A more aggressive strategy: invest your HSA and pay medical expenses out of pocket while keeping the receipts.
Here is how it works:
- Contribute to your HSA and invest the funds in index funds or similar.
- When you have a qualified medical expense, pay it from your regular bank account instead of your HSA.
- Keep the receipt permanently.
- Let your HSA grow for years or decades.
- At any future point, withdraw from the HSA equal to the total of receipts you have accumulated, tax-free, as reimbursement for those old expenses.
The IRS has no time limit on when you reimburse yourself for a qualified medical expense from an HSA, as long as the expense occurred after you opened the account. A $500 dental bill from 2026 can be reimbursed in 2041, with 15 years of tax-free compound growth on those funds in between.
This strategy turns the HSA into a long-term investment account with the best tax treatment available. The catch: you need to be able to afford to pay medical expenses out of pocket and invest the HSA contributions simultaneously.
How to Open an HSA
If you are enrolled in an employer's HDHP, your employer may offer a designated HSA provider. You can use that or often choose your own HSA custodian and have contributions made there instead.
If you buy your own HDHP, you open an HSA independently through a bank, credit union, or investment platform that offers HSA accounts. Popular HSA custodians for investing (rather than just spending) include Fidelity, HSA Bank, and HealthEquity. Fidelity's HSA has no fees and access to low-cost index funds, making it a common recommendation for people who want to invest their HSA rather than just spend it.
Contributions can be made by check, bank transfer, or payroll deduction (payroll deductions avoid both income tax and FICA taxes, which bank contributions only avoid income tax on).
Real-World Examples
Example: Tariq, 29, healthy and rarely uses healthcare
Situation: Tariq is enrolled in an HDHP with a $1,800 individual deductible. His employer contributes $600 to his HSA annually. He adds $3,800 himself to reach the $4,400 individual limit. He has virtually no medical expenses.
What he does: He invests his entire HSA balance in a total market index fund. Over 30 years at 7% average return, that $4,400 annual investment grows to approximately $440,000, all in a tax-free account.
His strategy: He saves all medical receipts from every year. At retirement, he will reimburse himself from the HSA for decades of accumulated medical expenses, pulling the money out tax-free while the rest continues to grow.
Example: Priya, 34, family HDHP with regular medical expenses
Situation: Priya's family has typical medical costs: pediatric checkups, a few sick visits, one parent's prescription glasses. She contributes $8,750 to her HSA (the 2026 family limit). Her actual annual medical costs are about $3,200.
What she does: She pays the $3,200 in medical bills from her HSA (tax-free withdrawal). The remaining $5,550 stays invested. Her net tax savings on the $8,750 contribution at her 22% marginal rate: $1,925 in federal income tax. Plus she avoided FICA taxes on the payroll-deducted portion.
Net effect: $3,200 in medical expenses effectively cost her significantly less than if she had paid them from after-tax income. The invested $5,550 continues growing tax-free.
HSA vs FSA: Key Differences
| Feature | HSA | FSA |
|---|---|---|
| Eligibility requirement | Must have HDHP | Any employer health plan |
| Rollover | Unlimited | Generally limited ($660 carryover in 2026 or 2.5-month grace period) |
| Portability | Yours forever, regardless of employer | Usually forfeited if you leave |
| Investment option | Yes (varies by custodian) | Generally no |
| Contribution limit (2026, individual) | $4,400 | $3,300 |
| Triple tax advantage | Yes | Partial (no tax-free growth since not invested) |
If you are eligible for an HSA, it is almost always the better choice. The FSA's "use it or lose it" rule is a significant downside, and the lack of investment ability eliminates the compound growth benefit.
Common Mistakes
Leaving HSA funds in cash. Many HSA accounts default to a cash/savings fund that earns minimal interest. Check your HSA portal and move funds into investment options once your balance exceeds your expected near-term medical costs.
Not contributing the maximum. If you can afford it, the tax savings from maxing your HSA are significant. Treat the contribution like a mandatory expense.
Forgetting to keep receipts. If you plan to pay medical expenses out of pocket and reimburse yourself later, receipts are your proof. A digital scan saved in a dedicated folder is sufficient.
Spending HSA on non-qualified expenses before 65. The 20% penalty is steep. If you are not sure whether an expense qualifies, check IRS Publication 502 or use your HSA provider's expense eligibility tool.
For a broader look at how the HSA tax deduction interacts with your marginal rate to calculate real savings, see How Does a Tax Bracket Actually Work?.
This post is for informational purposes only and does not constitute tax, financial, or medical advice. HSA contribution limits and HDHP thresholds are adjusted annually by the IRS. Verify current figures at irs.gov. Consult a qualified financial advisor for personalized HSA strategy guidance.
Tags
Savvy Nickel Team
Financial education expert dedicated to making complex money topics simple and accessible for everyone.
Recommended Articles
Medical Debt: What Your Rights Are and How to Handle It
Medical debt is the leading cause of bankruptcy in the United States. But it works differently from other debt, and knowing the rules gives you real options most people never use.
How the Roth IRA Saves You Money on Taxes Decades Later
The Roth IRA's tax advantage is invisible today but enormous over time. Here is exactly how it works, who it benefits most, and why starting early changes everything.

Capital Gains Tax Explained: What Happens When You Sell Investments
Every time you sell a stock, fund, property, or crypto at a profit, a tax bill can follow. Here is how capital gains tax works, what the rates are in 2026, and how to legally reduce what you owe.
Run the Numbers
Free calculators related to this article.
HSA Growth Calculator
A Health Savings Account is the only triple-tax-advantaged account in the U.S. See how much yours can grow if you invest it instead of spending it, and why many financial planners call it the best retirement account most people ignore.
Open calculator →CD Ladder Calculator
Build a certificate of deposit ladder that balances higher long-term rates with regular access to your money. Enter your total deposit and see how splitting it across staggered terms compares to a single CD or high-yield savings account.
Open calculator →Millionaire Calculator
Find out when you will reach your first million (or any wealth target) based on your current savings, monthly contributions, and expected investment returns. See how different contribution levels change your timeline.
Open calculator →Popular Posts
How to Negotiate Your First Salary (And Why It Matters for Retirement)
Delayed Gratification: The One Skill That Predicts Financial Success
How the Roth IRA Saves You Money on Taxes Decades Later
Fractional Shares Explained: How to Invest in Amazon With $10
What Is a Safe Withdrawal Rate? The 4% Rule Explained
Latest Posts

Capital Gains Tax Explained: What Happens When You Sell Investments

How to Do Your Own Taxes for Free Step by Step
Tax Loss Harvesting: A Simple Strategy Most Investors Ignore

