The HSA as an Investment Account: Rules Before Returns
How a health savings account works when you invest the balance: who can contribute, the 2026 limits, how contributions, growth and withdrawals are taxed, and the rules that trip people up.

A health savings account (HSA) is usually described as a way to pay medical bills. It can also hold investments, and the tax treatment is unusual: the IRS rules allow contributions to be deducted or excluded from income, earnings to grow untaxed, and withdrawals for qualified medical expenses to come out tax-free. That combination is why the HSA keeps appearing in investing discussions.
The returns depend on what you invest in and on the market. The rules don’t, so this guide starts there: who can contribute, how much for the 2026 tax year, and how the money is taxed on the way in, while invested and on the way out. Federal rules come from IRS Publication 969 and the IRS revenue procedures; state income tax treatment may differ.
Who can contribute to an HSA
You can only contribute for months when you’re an “eligible individual.” IRS Publication 969 sets out the conditions (IRS Pub 969 (2025), checked November 9, 2026):
- You’re covered by a high deductible health plan (HDHP) on the first day of the month.
- You have no other health coverage, apart from the kinds the rules allow.
- You aren’t enrolled in Medicare.
- You can’t be claimed as a dependent on someone else’s tax return.
Medicare is the rule people most often meet late. Pub 969 says that beginning with the first month you’re enrolled in Medicare, your contribution limit is zero. You can keep and invest an existing balance, but new contributions stop.
Two newer rules widen eligibility. An IRS news release explains that, starting January 1, 2026, bronze and catastrophic plans available through an Exchange are treated as HSA-compatible, and that people in certain direct primary care arrangements may contribute to an HSA and use HSA money tax-free for the periodic fees (IRS, IR-2025-119, December 9, 2025, checked November 9, 2026). The same release says the ability to receive telehealth before meeting the deductible while staying HSA-eligible was made permanent. The details sit in IRS Notice 2026-05, and whether a particular plan or arrangement qualifies is worth confirming with the plan and, where it matters, a tax professional.
The 2026 HSA limits and HDHP thresholds
For the 2026 tax year, the IRS set these amounts in Revenue Procedure 2025-19 (IRS Rev. Proc. 2025-19, checked November 9, 2026):
| 2026 tax year | Self-only coverage | Family coverage |
|---|---|---|
| HSA contribution limit | $4,400 | $8,750 |
| HDHP minimum annual deductible | $1,700 | $3,400 |
| HDHP maximum out-of-pocket expenses | $8,500 | $17,000 |
The out-of-pocket maximum counts deductibles, co-payments and other amounts, but not premiums. Pub 969 adds that if you’re 55 or older at the end of the tax year, your contribution limit increases by $1,000.
The limit isn’t only for money you put in yourself. Pub 969 says the amount you or anyone else can contribute must be reduced by your employer’s contributions, including those made through a cafeteria plan. On timing, Pub 969 allows contributions for the 2025 tax year through April 15, 2026; the 2026 edition of the publication will give the deadline for 2026 contributions.
Separate figures already announced for 2027
For 2027, the IRS has announced different figures in Revenue Procedure 2026-24 (IRS Rev. Proc. 2026-24, checked November 9, 2026): an HSA contribution limit of $4,500 for self-only coverage and $9,000 for family coverage, and an HDHP minimum deductible of $1,750 (self-only) or $3,500 (family) with out-of-pocket maximums of $8,700 and $17,400. Those apply to calendar year 2027 only and don’t replace the 2026 figures above. Everything else in this guide uses 2026 figures.
How the money is taxed
On the way in. Pub 969 says you can deduct contributions you make yourself, and those made by anyone other than your employer, even if you don’t itemize. Employer contributions, including those made through a cafeteria plan at work, aren’t included in your income.
While invested. Pub 969 states that interest and other earnings on the assets in the account are tax-free. Dividends, interest and gains from selling investments inside the HSA aren’t taxed each year the way they would be in a taxable brokerage account.
On the way out. Withdrawals used for qualified medical expenses are tax-free. Withdrawals for anything else are included in income and may also face an additional 20% tax. Pub 969 says that additional tax doesn’t apply to distributions made after you become disabled, reach age 65 or die. After 65, a non-medical withdrawal is still taxed as income, but without the 20% addition.
An invented example of the difference: someone aged 50 withdraws $2,000 for a non-medical purchase. Under the federal rules, the $2,000 is added to their taxable income and an additional tax of 20% × $2,000 = $400 may apply. The same withdrawal used for a qualified medical expense would be tax-free. The figures are hypothetical, and state tax isn’t included.
What counts as a qualified medical expense
Qualified medical expenses can be for you, your spouse and your dependents, subject to the dependent rules in Pub 969. Two limits matter most to people treating the account as a long-term investment.
First, timing. Pub 969 says expenses incurred before you establish your HSA aren’t qualified medical expenses. Because the rule turns on when the expense was incurred, the date the account was opened matters.
Second, records. Pub 969 asks you to keep records showing that distributions paid only for qualified medical expenses that weren’t reimbursed from another source or claimed as an itemized deduction. You don’t send them with your return, but you need them if asked.
Insurance premiums generally don’t qualify. Pub 969 lists the exceptions: long-term care insurance, health care continuation coverage such as COBRA, coverage while receiving unemployment compensation, and Medicare and other health care coverage if you’re 65 or older (but not Medicare supplemental policies such as Medigap).
Investing inside the HSA
The HSA is your account, not your employer’s. Pub 969 says it’s portable and stays with you if you change employers or leave the workforce, contributions stay in the account until you use them, and you don’t have to make withdrawals each year.
The tax rules don’t set an investment menu; the trustee does. Pub 969 says a trustee can be a bank, an insurance company or anyone already approved by the IRS. Providers differ in what they allow: some hold only cash, others also offer funds. What to check in a provider’s account agreement and fee schedule:
- Which investments are available and whether a cash minimum must stay uninvested.
- Account and investment fees, which come out of the same tax-advantaged balance. A small yearly difference adds up over long periods; the fee-drag calculator shows how, using assumptions you choose. For reading a fund’s own costs, see what an expense ratio costs.
- How cash is protected. Cash held at a bank may be deposit-insured, but invested funds can lose value. Investments in an HSA carry the same market risk as anywhere else.
- Transfer options, if you want to move the balance to another trustee later.
How the HSA fits next to an IRA, Roth IRA or taxable account is covered in IRA, Roth IRA, taxable or HSA, and the general tax reasoning about which holdings people place in which account is in asset location.

Rules that trip people up
Excess contributions. Putting in more than your limit allows, or contributing in months you weren’t eligible, creates an excess contribution. Pub 969 says excess contributions generally face a 6% excise tax for each year they stay in the account. You can avoid that tax on the excess if you withdraw it and the earnings on it by your return’s due date, including extensions. Because eligibility is tested month by month, a tax professional can confirm how the rules apply to a mid-year change in coverage.
The last-month rule. Pub 969 lets someone who is eligible on the first day of the last month of the tax year be treated as eligible for the whole year. The condition is a testing period: you must remain eligible through the 12th month after that month. If you don’t, for reasons other than death or becoming disabled, the contributions allowed only by the rule become taxable income, plus a 10% additional tax.
Form 8889. Pub 969 says you must file Form 8889 with your return if you had any HSA activity during the year, even if the only activity was employer contributions.
At death. If your spouse is the designated beneficiary, the HSA becomes your spouse’s HSA. If anyone else inherits it, Pub 969 says the account stops being an HSA and its fair market value becomes taxable to that beneficiary.
Common questions
Can I still contribute to an HSA after I enroll in Medicare? No. Pub 969 says your contribution limit is zero starting with the first month you’re enrolled. You can keep the existing balance and use it.
Do I have to spend my HSA money by the end of the year? No. Pub 969 says contributions stay in the account until you use them and you don’t have to make withdrawals each year.
What happens if I use HSA money for something that isn’t medical? Under the federal rules, the withdrawal is taxable income and may face an additional 20% tax. After age 65, disability or death, the 20% doesn’t apply, but the withdrawal is still taxed as income.
What are the 2026 HSA contribution limits? For the 2026 tax year, $4,400 for self-only HDHP coverage and $8,750 for family coverage, plus $1,000 if you’re 55 or older at year-end (Rev. Proc. 2025-19 and Pub 969).
Is HSA money insured like a bank account? Only cash held in an insured deposit can be. Money invested in funds isn’t insured against market losses and can fall in value.
Sources checked November 9, 2026: IRS Rev. Proc. 2025-19 (2026 HSA and HDHP amounts); IRS Rev. Proc. 2026-24 (2027 amounts); IRS Publication 969 (2025); IRS news release IR-2025-119 (Notice 2026-05).