How Does Tax-Free Growth Inside an HSA Compare to a Taxable Account Over Decades?
Two people can invest the same amount of money, in the same fund, for the same number of years, and end up with different amounts simply because of the account each one used.
The short answer
Money invested inside an HSA and used for qualified medical expenses grows without being taxed along the way and isn’t taxed on withdrawal either, while money invested in a taxable account is generally subject to tax on dividends, interest, and capital gains each year, plus tax on gains when sold. Over a long horizon, avoiding that ongoing tax drag can meaningfully increase the amount available at the end, though the comparison depends on how the money is ultimately used.
Why tax drag matters more the longer money sits
In a taxable brokerage account, dividends and interest are generally taxed in the year received, and selling an investment at a gain triggers a capital gains tax. That means a portion of the account’s growth is siphoned off periodically rather than continuing to compound. Inside an HSA, none of that happens — dividends reinvest without a tax bill, and there’s no gain to report as long as the eventual withdrawal is used for a qualified medical expense. Compounding uninterrupted by taxes tends to produce a larger ending balance than compounding with periodic tax drag, and the gap tends to widen the longer the money is invested.
A simple illustration
Consider a hypothetical $5,000 invested and left untouched for 25 years, growing at some assumed average annual return. Inside a tax-free structure, all of that growth compounds without interruption. In a taxable account, a portion of each year’s dividends or interest is taxed as it’s received, and any gains realized along the way (through rebalancing, for example) are taxed too. Over 25 years, even a modest annual tax drag compounds into a noticeably smaller ending balance than the untaxed version — this is illustrative math, not a guarantee of any particular outcome, since actual returns and tax rates vary and are unpredictable.
Why this favors starting early
The compounding advantage of tax-free growth is small in year one and much larger by year twenty. That’s simply how compound interest works — the tax savings from each earlier year has more time to itself generate additional untaxed growth. This is part of why HSAs are often recommended especially to higher earners who can afford to prioritize investing their contributions, rather than leaving the balance in cash, as early as eligibility and other financial priorities allow.
What keeps this from being a pure win
- The withdrawal has to be for a qualified expense. If the money is eventually withdrawn for something other than qualified medical costs before age 65, it’s taxed and generally penalized, which erases much of the advantage.
- Not everyone invests their HSA balance. Some accounts default to cash unless the owner actively opts into investing a portion, meaning the tax-free growth advantage only applies to money actually invested.
- Access is more restricted than a taxable account. A taxable brokerage account can be tapped for any purpose at any time; an HSA’s most favorable treatment is tied specifically to medical spending.
What to weigh
The size of the long-term advantage depends on assumptions about investment returns and future tax rates, both of which are uncertain and shouldn’t be treated as predictions. It also depends on whether the account holder realistically expects enough qualified medical expenses, now or decades from now, to eventually use the balance under its most favorable tax treatment.
A practical habit
Reviewing HSA investment elections periodically, the same way one might review a 401(k) or IRA allocation, helps ensure that money intended for long-term growth isn’t sitting uninvested by default and missing out on decades of potential compounding.
The takeaway
Avoiding ongoing taxation inside an HSA can meaningfully improve long-term outcomes compared to a taxable account holding the same investments, and that advantage compounds the longer the horizon. The benefit is real but conditional — it depends on investing the balance and eventually using it for qualified medical expenses.