Key Takeaways
- An HSA dollar invested for 25 years at 7% annual return produces roughly 3.4x more after-tax wealth than the same dollar in a taxable brokerage account at a 22% marginal rate.
- Spending HSA funds immediately on medical costs forfeits all investment compounding. A $4,300 annual contribution spent in Year 1 never reaches its $23,400 projected balance at Year 25.
- Max-fund the HSA, pay current medical bills out of pocket, invest the full balance in low-cost index funds, and reimburse yourself years later using saved receipts.
- Tool: Model your HSA growth with the CalcMoney Savings Calculator →
Earn More on Your CashSPONSORED
Your bank pays almost nothing. Betterment Cash Reserve pays significantly more.
What "Triple Tax-Free" Actually Means in Dollar Terms
The phrase gets repeated constantly. The mechanics get explained rarely.
An HSA offers three distinct tax advantages, each of which compounds the others.
Tax advantage 1: Deduction on contributions. In 2026, the IRS contribution limit is $4,300 for individual coverage and $8,550 for family coverage. Every dollar contributed reduces your federal taxable income in the contribution year. At a 22% marginal rate, a $4,300 individual contribution saves $946 in federal income tax immediately.
Tax advantage 2: Tax-free growth. Dividends, capital gains, and interest earned inside the HSA generate no annual tax liability. In a taxable account, qualified dividends face a 15% to 20% federal rate each year. That drag compounds negatively over time.
Tax advantage 3: Tax-free withdrawals for qualified medical expenses. The IRS defines qualified medical expenses broadly. They include premiums for Medicare Parts B, C, and D after age 65, long-term care insurance premiums up to annual limits, dental, vision, and most out-of-pocket costs. Withdrawals for these expenses carry zero federal tax at any age.
No other account in the US tax code delivers all three. A Roth IRA eliminates the deduction. A traditional 401(k) taxes the withdrawal. The HSA taxes nothing, at any stage, when used correctly.
The Compounding Calculation: Step by Step
To quantify the advantage, you need a consistent framework. Use the standard future value formula applied to after-tax dollars at each stage.
The formula:
FV = PV × (1 + r)^n
Where:
- PV = present value of the contribution, after accounting for the upfront tax savings
- r = expected annual investment return
- n = number of years invested
Worked Example 1: Individual Coverage, 25-Year Horizon
Assumptions:
- Annual contribution: $4,300
- Federal marginal tax rate: 22%
- State income tax rate: 5%
- Expected annual investment return: 7%
- Investment horizon: 25 years
- Medical expenses paid out of pocket throughout
Step 1: Calculate the actual cost of contributing.
The $4,300 contribution reduces taxable income by $4,300. At a combined 27% rate (22% federal plus 5% state), the contributor saves $1,161 in taxes. The net out-of-pocket cost of contributing $4,300 is $3,139.
Step 2: Project the HSA balance at Year 25.
Using the future value of an annuity formula for 25 annual contributions of $4,300 at 7%:
FV = $4,300 × [((1.07^25) - 1) / 0.07]
FV = $4,300 × [(5.4274 - 1) / 0.07]
FV = $4,300 × 63.249
FV = $271,970
Step 3: Compare to a taxable brokerage account.
In a taxable account, the contributor first pays income tax on earnings used to fund the account. At a 27% combined rate, converting $3,139 of after-tax money to a pre-tax equivalent for fair comparison yields a gross contribution of $4,300.
But in the taxable account, the 7% annual return faces annual taxation. Assuming dividends and distributions reduce the effective net return to approximately 6.1% (after a blended 15% federal capital gains drag applied to a portion of annual distributions), the future value drops to:
FV = $4,300 × [((1.061^25) - 1) / 0.061]
FV = $4,300 × 51.218
FV = $220,237
Then the entire gain faces capital gains tax on withdrawal. Assuming a $220,237 balance with a cost basis of $107,500 (25 years of $4,300 contributions), the taxable gain is $112,737. At a 15% long-term rate, the tax bill is $16,911. Net after-tax proceeds: $203,326.
The gap: $271,970 (HSA) versus $203,326 (taxable brokerage).
That is a $68,644 difference on identical gross contributions, identical returns, and identical investment horizon. The gap widens materially at higher tax brackets and longer time horizons.
Worked Example 2: Family Coverage, 30-Year Horizon
Assumptions:
- Annual contribution: $8,550
- Federal marginal tax rate: 32%
- State income tax rate: 6%
- Expected annual investment return: 7%
- Investment horizon: 30 years
HSA projected balance at Year 30:
FV = $8,550 × [((1.07^30) - 1) / 0.07]
FV = $8,550 × [(7.6123 - 1) / 0.07]
FV = $8,550 × 94.461
FV = $807,641
Tax savings on contributions alone:
At a combined 38% rate, annual tax savings on $8,550 equals $3,249. Over 30 years without compounding, that is $97,470 in taxes never paid on contributions.
Taxable account equivalent:
Applying a 6.1% net return after blended annual gains taxation over 30 years:
FV = $8,550 × [((1.061^30) - 1) / 0.061]
FV = $8,550 × 77.415
FV = $661,898
Capital gains tax on $661,898 with a $256,500 cost basis: $405,398 in gains, taxed at 15% equals $60,810. Net proceeds: $601,088.
The gap: $807,641 (HSA) versus $601,088 (taxable brokerage). A $206,553 difference.
At higher brackets, the advantage grows further because the deduction is worth more in the contribution year.
The Receipt Strategy: Turning Old Medical Bills into Tax-Free Cash
The IRS imposes no deadline on HSA reimbursements. You can pay a qualified medical expense in 2026, keep the receipt, invest the HSA funds, and reimburse yourself in 2041. No tax. No penalty. No time limit.
This strategy converts the HSA into a parallel liquidity reserve. The invested balance compounds untouched. The receipts accumulate in a folder or digital archive. Years later, a lump-sum withdrawal against documented prior expenses produces tax-free cash with no age restriction.
How to execute this:
- Open a separate folder, digital or physical, labeled "HSA Reimbursable Expenses."
- Save every EOB (Explanation of Benefits), receipt, or provider invoice for qualified expenses paid out of pocket.
- Record the date, amount, and provider for each expense. A simple spreadsheet is sufficient.
- Never reimburse in the same year unless liquidity demands it.
- Periodically verify that your HSA custodian allows investment of the full balance with no required cash buffer. Many custodians impose a $1,000 to $2,000 cash floor. If yours does, evaluate switching to a custodian like Fidelity, which currently requires no minimum cash balance before investing.
A person paying $3,000 per year out of pocket for medical expenses accumulates $90,000 in documented reimbursable expenses over 30 years. That $90,000 withdrawal from a fully invested HSA carries zero federal tax.
Common Calculation Errors That Distort the Analysis
Error 1: Using gross return without accounting for the upfront deduction.
Some analysts model the HSA advantage using only the tax-free growth phase. The deduction at contribution is a guaranteed, immediate return equal to your marginal rate. Excluding it understates the true advantage by thousands of dollars.
Error 2: Comparing the HSA to a Roth IRA incorrectly.
Roth IRAs are post-tax contributions. HSA contributions are pre-tax. A $4,300 HSA contribution and a $4,300 Roth contribution do not cost the same out of pocket. The HSA contribution costs $3,139 after the 27% tax benefit. The comparison must normalize for this difference.
Error 3: Ignoring state tax treatment.
Most states conform to federal HSA treatment. California and New Jersey do not. In those states, HSA contributions are not state-deductible, and HSA earnings face state income tax annually. California residents at a 9.3% state rate lose a meaningful portion of the projected advantage. Run state-specific numbers before building your strategy around HSA investment growth.
Error 4: Assuming the HSA balance is inaccessible before 65.
After age 65, HSA withdrawals for any purpose face ordinary income tax but no penalty. This makes the account behave identically to a traditional IRA for non-medical spending. Before 65, non-medical withdrawals face income tax plus a 20% penalty. The account is not illiquid, but early non-medical withdrawal is expensive.
How to Model Your Specific HSA Growth
The worked examples above use fixed assumptions. Your actual outcome depends on four variables: contribution amount, marginal tax rate, expected investment return, and time horizon. Small changes in any one of them produce large changes in the terminal balance.
A person at a 24% federal rate versus a 32% federal rate sees a materially different upfront deduction benefit on the same $8,550 contribution: $2,052 versus $2,736 per year. Over 30 years, that difference in annual tax savings, if invested separately, adds another $56,000 to $80,000 in accumulated wealth at the same 7% return.
Use the CalcMoney Savings Calculator to input your specific contribution amount, expected return, and time horizon. The calculator projects future value based on your actual numbers, not illustrative averages. Run multiple scenarios: one with annual contributions at current limits, one assuming inflation-adjusted contribution limit increases of roughly 2% per year, and one stress-testing a 5% return instead of 7%.
The scenario analysis matters more than the base case. HSA strategy is a 20 to 30 year commitment. The base case assumption will be wrong. The range of outcomes tells you how much margin you actually have.
You Might Also Like
- How to Calculate a 50/30/20 Budget That Actually Works
- How to Calculate CD Ladder Returns and Build One That Actually Earns
- How to Calculate Discretionary Income for Budgeting and Loan Plans
Put These Numbers to Work
Open a Fidelity brokerage account. $0 commissions, no account minimums, fractional shares available.
Run the Numbers →Related Guides
Free Tools
Run the actual numbers
Stop estimating. Plug in your numbers and get a precise answer in seconds. Free, no signup required.
Open Free Calculators


