Potential Long-Term Benefits of Investing Your HSA

March 12, 2025 • Rob Williams
Health savings accounts (HSAs) are for more than just routine medical expenses. By investing a portion of your account, you can potentially grow your funds tax-free.

Health savings accounts (HSAs) are not only a tax-smart way to pay for your current health care needs, but you could also rely on your savings—and any potential growth from investing HSA dollars—in your retirement. HSAs are particularly prized for their triple tax advantages: Contributions are tax-deductible, earnings are tax-free, and withdrawals are tax-free when used for qualified medical expenses. (While HSA contributions, earnings, and qualified distributions are exempt from federal income tax, they may not, in whole or in part, be exempt from state taxes.)

That said, according to the Employee Benefit Research Institute, roughly 88% of HSA holders kept their accounts entirely in cash in 2021. We generally suggest keeping two to three years' worth of routine medical expenses in cash, cash investments, or similar low-volatility investments within your HSA. Account holders who don't invest their excess HSA contributions could be missing an opportunity to earn tax-free returns. Here's how you can contribute to your HSA and get started with investing your account.

Contributing to an HSA

To enroll in an HSA, you must participate in an eligible high-deductible health plan (HDHP)—often, but not always, offered through an employer. For an individual account, you can contribute up to $4,300 in 2025 ($8,550 for a family plan), plus an additional $1,000 in catch-up contributions if you're 55 or older.

And if you haven't met your annual limit by the end of the year, you have until Tax Day to fund your account. Let's look at some ways to add contributions to your HSA.

Employee and employer contributions

Typically, you contribute to your HSA by deferring a set amount from each paycheck to be directly deposited by your employer into your account. Because the contribution is made pretax, it won't count toward your income.

Your employer may also make a separate contribution to your HSA, such as a match or as an incentive for participating in a wellness program, which will be applied to your annual limit as well. Employer contributions won't be considered income either, though they will be reported on your W-2.

You're also allowed to contribute after-tax dollars to your HSA to maximize your savings for the year if you aren't able to do so with your employer contributions or don't have an individual eligible HDHP. In this case, you may be able to deduct this amount through your tax return.

Spousal contributions and gifts

Indeed, anyone can fund your account—up to your contribution limit. Although you can't share a joint HSA with your spouse, your spouse can contribute to your HSA family plan so long as both of you are eligible for coverage. (Your spouse can't be insured under their own non-HCDP, enrolled in Medicare, or a dependent under someone else's tax return.) If your spouse is 55 or older, however, they can't make a catch-up contribution to your HSA—they'll need to add their catch-up to their own account.

While you can deduct spousal contributions on your tax return, the IRS considers contributions from nonspouses as gifts, which are subject to the annual gift exclusion amount ($19,000 for 2025) and are not deductible.

IRA rollovers

Though not done often, it's possible to roll over a tax-deferred IRA into your HSA to take advantage of tax-free earnings and withdrawals (if used for health care expenses) and no required minimum distributions. This could be especially helpful if you expect your medical costs to increase as you grow older or if you plan to use your HSA as another means of retirement income down the road.

Keep in mind, the rollover will count toward your contribution limit. Here are some other considerations:

  • Generally, you may perform an IRA-to-HSA rollover just once in your lifetime. However, if your HSA was originally under an individual plan and you change to a family plan the same tax year, you may roll over the difference in contribution limits of your HSA from an IRA.
  • You must remain covered by an HDCP for 12 months after the transfer to avoid owing income tax on the converted amount and, if you're younger than 59½, a 10% penalty for early withdrawal from your IRA.
  • If you're close to applying for Medicare, take note that you can't enroll within 12 months of the rollover or else you'll owe income tax on the converted amount—as well as pay a 10% early withdrawal penalty if you're younger than 59½.

Because IRA-to-HSA conversions are uncommon, we suggest you speak to your IRA custodian and consult with a tax professional or financial advisor to make sure you don't sidestep any rules.

HSA transfers and rollovers

If you have multiple HSAs, consolidating them could help you better manage your savings and reduce administration fees. For example, let's say you change jobs and receive coverage under a new HDHP—and HSA. You can move funds from your old HSA to your new one through either a transfer or rollover, and only current-year contributions will count toward your annual limit.

HSA transfers are generally less complicated than a rollover, and there's no annual limit on how many transfers you can make. Plus, you typically won't owe taxes on the transferred funds. With a trustee-to-trustee transfer, your old HSA administrator moves account funds, including an in-kind transfer of investments, to your new custodian.

Be aware that if your current HSA administrator requires you to sell your investments first, you could face tax consequences. Though you won't pay capital gains tax on investment earnings at the federal level, you could owe state taxes not just on capital gains but also dividends or interest. After the sale, your current custodian will transfer the cash balance to your new HSA provider.

With an HSA rollover, your current custodian will send you a check instead. You must then deposit the funds into your new account within 60 days to avoid paying ordinary income tax on the withdrawal, plus a 20% early withdrawal penalty if under age 65. Unlike HSA transfers, you can perform only one HSA rollover per year.

Before moving your HSA funds, consider speaking with a tax advisor to help minimize your tax bill.

Investing HSA funds

Beyond keeping two to three years' worth of routine medical expenses in cash, cash investments, or similar low-volatility investments within your HSA, consider investing any excess funds for potential growth—for two reasons:

  1. Given the likelihood that health care costs will be even higher in the future, doing all that you can to get ahead of them is wise. Indeed, a 65-year-old couple retiring today can expect to need as much as $351,000 in savings to have a 90% chance of covering their Medicare premiums and out-of-pocket health care costs throughout retirement.1
  2. After age 65, you can use your HSA to pay for things other than health care. You'll owe ordinary income tax on the funds with no other penalty—similar to withdrawals from 401(k)s and IRAs. (Nonqualified withdrawals made prior to age 65 will be subject to ordinary income tax plus a 20% early withdrawal penalty.) However, HSAs aren't subject to required minimum distributions, making them a compelling option for retirement savings overall.

Most HSAs require you to maintain a minimum cash balance before you can invest your savings. Once you have sufficient funds to meet your investment threshold and cover health care costs, you can start investing some of your contributions based on your risk tolerance, your time horizon, and, ideally, a diversified portfolio.

If you feel that your investment choices are limited with your HSA provider, another option that may be available to you is a linked health savings brokerage account (HSBA). Most HSBAs offer you the ability to invest your savings your way, including a wider selection of investments and different levels of investment management.

For example, if you're a more seasoned investor, you may prefer a self-directed account where you can select from a variety of stocks, mutual funds, exchange-traded funds (ETFs), and other assets based on your investment objectives. Whereas, if you're not comfortable with or knowledgeable about trading, you can choose to have an investment advisor manage your portfolio.

Just remember, before investing in any fund, you should consult the fund's prospectus to understand its investment objectives, risks, charges, and expenses. And once you've set up your portfolio, regular rebalancing will help ensure your investment strategies and allocations remain aligned with your savings goals.

Bottom line on investing HSA funds

An HSA can be a tax-smart way to cover health care costs. And once you turn 65, you can use your savings not just to pay for medical expenses but also as a source of income, akin to other retirement accounts. By maxing out your annual contributions now, you can invest excess funds for tax-free growth—potentially boosting your savings for future use.

Not sure if you'll have enough to retire?

Explore more topics