How a health savings account works
By Jude Wallis
A health savings account can receive deductible or payroll contributions, shelter investment growth, and pay qualified medical costs tax free. That three-stage treatment is the triple tax advantage. Eligibility depends on health coverage, and the balance remains yours when work or insurance changes.
Balance after 10 years
$41,872.85
$12,872.85 of that is interest you did not pay in.
- You put in
- $29,000.00
- Interest earned
- $12,872.85
- Ending balance
- $41,872.85
How often interest is added to the balance.
On this page
Next on Class and household
Roth conversionIn short
- An HSA is an individually owned account available to someone who meets the high-deductible health plan and other eligibility rules.
- Federal treatment can give relief on eligible contributions, no annual tax on growth, and tax-exempt withdrawals for qualified medical expenses.
- An illustrative $4,150 left for 20 years at 7 percent grows to $16,059.19, including $11,909.19 of growth.
- Contributing $4,150 at each year end for 20 years at 7 percent produces $170,131.29: $83,000 contributed and $87,131.29 of growth.
- The balance carries forward and belongs to the account holder. It is not a use-it-or-lose-it spending account.
Three tax steps in one account
A health savings account, or HSA, is a tax-advantaged account tied to eligibility rules for health coverage. Its federal tax treatment can work at three separate stages:
1. Eligible contributions can be deducted or excluded from federal taxable income. 2. Interest, dividends, and realized gains can remain inside without annual federal tax. 3. Withdrawals for qualified medical expenses can be federally tax exempt.
That is the triple tax advantage. It is an arithmetic description of three tax stages, not a claim that every contribution or withdrawal qualifies. State treatment can differ, and payroll contributions can have a different payroll-tax result from contributions deducted on a return.
Pre-tax dollars describes the first stage. Tax exempt describes the third.
Eligibility belongs to the contribution date
An HSA can be opened or funded only for months when the account holder meets the applicable eligibility test, generally including coverage under an HSA-qualified high-deductible health plan and no disqualifying additional coverage. Enrollment in certain government health coverage and being claimable as another person's dependent can also affect eligibility.
Eligibility controls new contributions. It does not erase an existing account. Once money is in the HSA, the account belongs to the individual, travels across jobs, and remains available after health coverage changes. The unused balance carries into the next year without forfeiture.
Contribution caps, catch-up rules, and plan thresholds are statutory figures that can change. The $4,150 used here is an illustrative deposit for the growth calculation, not a claim about this year's contribution limit.
Qualified withdrawals complete the third stage
A withdrawal is federally tax free when it pays or reimburses a qualified medical expense under the applicable rules. The expense must be eligible, incurred after the HSA was established, and not already reimbursed or deducted elsewhere.
The expense and withdrawal do not always have to happen at the same time. If records support an eligible expense and no earlier reimbursement was taken for it, an account holder can pay from other cash, leave the HSA invested, and reimburse later under current federal rules. Receipts, explanations of benefits, and proof of payment are what connect that later withdrawal to the earlier expense.
A nonqualified withdrawal is taxable income and can face an additional tax before the statutory age threshold. After that threshold, the additional tax can fall away while ordinary income tax remains, making the account resemble a tax-deferred retirement account for nonmedical withdrawals. Qualified medical withdrawals keep their exempt treatment.
The growth comes from time, not from the label
The HSA wrapper does not create investment return. It prevents annual federal tax from interrupting return inside the account and can remove federal tax at a qualified medical withdrawal.
Leave an illustrative $4,150 invested for 20 years at a constant 7 percent annual return and it reaches $16,059.19. The original $4,150 remains the contributed amount and $11,909.19 is growth. Deposit $4,150 at the end of every year on the same path and the account reaches $170,131.29, made from $83,000 of contributions and $87,131.29 of growth.
The compound interest calculator shows the same future-value mechanics. A real portfolio will not return 7 percent in a straight line, and HSA providers can offer cash, funds, or both. Fees, minimum cash balances, and the investment menu affect what actually compounds.
Spending now against investing for later
The same HSA unit can pay a qualified bill now or remain invested for a later qualified bill. Spending now captures the tax-exempt withdrawal immediately. Investing preserves more tax-sheltered capital but requires other cash for the current expense and accepts market risk.
Neither route changes who owns the account. Unlike a flexible spending arrangement, the HSA balance does not expire at the plan-year boundary. Unlike health insurance, the HSA does not promise to pay a claim. It is an account used alongside coverage.
The examples use an illustrative $4,150 deposit, 7 percent annual growth, and a 20-year horizon to isolate compounding. Eligibility, qualified expenses, contribution caps, state treatment, provider fees, and investment risk follow current rules and account terms. This is educational material, not financial advice.
Worked examples
One illustrative HSA deposit left invested
An illustrative $4,150 remains in an HSA for 20 years and earns a constant 7 percent annually, with no further deposits or withdrawals. What does it grow to?
- Start with $4,150 and make no additional contributions.
- Compound once each year at 7 percent for 20 years.
- The ending balance is $16,059.19.
- Subtract the original $4,150. Investment growth is $11,909.19.
The $4,150 grows to $16,059.19. The account contains $4,150 contributed and $11,909.19 of growth.
An illustrative deposit at each year end
Deposit $4,150 at the end of each year for 20 years and earn a constant 7 percent annually. What are the ending balance, contributions, and growth?
- There is no starting principal. Each $4,150 contribution arrives at year end.
- Over 20 years, total contributions are $83,000.
- Compounding the end-of-year deposits at 7 percent produces $170,131.29.
- Subtract $83,000 of contributions. Investment growth is $87,131.29.
The account reaches $170,131.29. Of that, $83,000 was contributed and $87,131.29 is growth. The constant return is illustrative.
Common questions
Does HSA money expire at the end of the year?
No. The balance carries forward and remains owned by the account holder. Changing employers or losing HSA-eligible coverage stops neither ownership nor access to existing money, although it can change eligibility for new contributions.
Can I invest an HSA balance?
Many HSA providers offer investments, often after a required cash balance, while others hold only cash. The account's tax treatment does not guarantee a return. The available menu, fees, risk, and time before spending determine the investment result.
Is \$4,150 the current HSA contribution limit?
The $4,150 is an illustrative contribution used to show compounding, not a claim about this year's statutory limit. Current caps depend on coverage category, eligibility months, age rules, and the law for the contribution year.
Keep reading
This page is educational material, not financial advice. The figures come from the formula shown and assume the inputs you enter hold for the whole term. Your own rate, fees, taxes and timing will differ, so treat the output as arithmetic to check a decision against, not as a recommendation.