# HSA tax savings calculator

Source: https://www.getprescience.com/tools/hsa-tax-savings-calculator
Author: Rishab Jain, Cofounder and CEO, Prescience
Published: 2026-11-02
Updated: 2026-11-02
Cite as: Rishab Jain. "HSA tax savings calculator." Prescience, November 2, 2026. https://www.getprescience.com/tools/hsa-tax-savings-calculator

A health savings account is the only account in the tax code that's tax-free going in, while it grows and coming out for medical costs. Contributions through payroll also skip the 7.65% FICA tax. At a 22% federal bracket and 5% state tax, putting the 2027 self-only maximum of $4,500 in an HSA saves about $1,560 in taxes, and investing it every year for 20 years at 6% could build more than $165,000. Enter your numbers to see your savings.

- **2027 limit, self-only / family:** $4,500 / $9,000
- **2026 limit, self-only / family:** $4,400 / $8,750
- **Taxes avoided through payroll:** Federal, most state, FICA
- **States that tax HSA contributions:** California and New Jersey

## Calculate your HSA tax savings

_Interactive calculator: open the page in a browser to use it. The rules and figures it applies follow._

The growth figure assumes you contribute the same amount at the end of each year and never withdraw it, at a steady return. Real returns vary, and most people spend some of their HSA on care along the way. Treat it as a picture of what the account can do, not a forecast.

## The triple tax advantage

- **Going in:** contributions reduce your taxable income. Through payroll, they also skip Social Security and Medicare tax, which a 401(k) doesn't.
- **While it grows:** interest, dividends and investment gains aren't taxed each year.
- **Coming out:** withdrawals for qualified medical expenses are tax-free at any age, including expenses from years ago if you've kept the receipts and had the HSA then.

After 65, you can withdraw HSA money for anything; non-medical withdrawals are taxed as income, like a traditional IRA, but with no penalty. Before 65, non-medical withdrawals are taxed and pay a 20% penalty.

> **California and New Jersey are different:** Both states tax HSA contributions and earnings. If you live there, enter 0% for state tax in the calculator, since you won't save it.

## Worked examples

**Maxing out a self-only HSA in 2026**

Illustrative. $4,400 through payroll at a 22% federal bracket and 5% state tax, invested for 20 years at 6%.

- Tax rate saved: 22% + 5% + 7.65% = 34.65%
- Taxes saved this year: $1,524.60
- Contributed over 20 years: $88,000
- Balance after 20 years: About $161,857

**$1,524.60 saved now, and a balance that can cover medical costs in retirement tax-free.**

**A family HSA in 2027**

Illustrative. $9,000 a year through payroll, same tax rates, invested for 10 years at 5%.

- Taxes saved this year: $3,118.50
- Contributed over 10 years: $90,000
- Balance after 10 years: About $113,201

**More than $3,100 a year back,** which can go a long way toward the family deductible.

## Who can contribute

You need to be covered by an HSA-qualified high-deductible health plan and have no other disqualifying coverage: no general-purpose FSA, no Medicare and no non-HDHP plan through a spouse. You also can't be claimed as someone else's dependent. Starting in 2026, bronze and catastrophic marketplace plans also count as HSA-qualified.

**HDHP requirements**

|  | 2026 | 2027 |
| --- | --- | --- |
| Minimum deductible, self-only / family | $1,700 / $3,400 | $1,750 / $3,500 |
| Maximum out-of-pocket, self-only / family | $8,500 / $17,000 | $8,700 / $17,400 |
| HSA limit, self-only / family | $4,400 / $8,750 | $4,500 / $9,000 |
| Catch-up, age 55+ | $1,000 | $1,000 |

Employer contributions count toward the same limit. If you start mid-year, your limit is usually prorated by month; the [HSA contribution calculator](https://www.getprescience.com/tools/hsa-contribution-calculator) works out the exact figure and the amount per paycheck. For the full rules, see [HSA eligibility rules](https://www.getprescience.com/guides/hsa-eligibility-rules).

## Getting the most out of an HSA

1. **Contribute through payroll, not directly** Direct contributions are deductible on your return but don't get the 7.65% FICA savings.
2. **Capture any employer match first** Employer HSA money is free and also skips payroll tax.
3. **Keep a cash cushion for the deductible** Leave enough in cash to cover your deductible. Invest the rest.
4. **Invest for the long term** Most HSA providers let you invest above a minimum balance in low-cost funds, the same way you would in a 401(k).
5. **Save your receipts** You can reimburse yourself for qualified expenses years later, as long as they happened after you opened the HSA.

Whether an HSA plan is right for you in the first place depends on your expected care. The [HDHP vs PPO calculator](https://www.getprescience.com/tools/hdhp-vs-ppo-calculator) compares the two with your numbers.

## HSA or 401(k) first?

If you have both, a common order is: contribute enough to your 401(k) to get the full employer match, then fund the HSA to its limit, then go back to the 401(k). The HSA comes before extra 401(k) money because it avoids FICA tax on payroll contributions and can come out tax-free for medical costs, while 401(k) withdrawals are taxed.

**HSA and 401(k) compared**

|  | HSA | Traditional 401(k) |
| --- | --- | --- |
| Contributions | Pre-tax, and no FICA through payroll | Pre-tax, but FICA still applies |
| Growth | Tax-free | Tax-deferred |
| Withdrawals for medical costs | Tax-free at any age | Taxed, plus a 10% penalty before 59½ |
| Other withdrawals after 65 | Taxed as income, no penalty | Taxed as income |
| Required minimum distributions | None | Yes, starting at 73 or 75 |
| 2026 limit | $4,400 / $8,750 | $24,500 |

## HSAs and Medicare

Once you enroll in any part of Medicare, you can't contribute to an HSA, though you can keep spending what's in it. Medicare Part A coverage can start up to six months before the month you sign up, so people who delay Medicare past 65 and then enroll should stop HSA contributions six months before enrolling to avoid an excess contribution.

In retirement, HSA money can pay Medicare Part B and Part D premiums, Medicare Advantage premiums and out-of-pocket costs tax-free. It can't pay Medigap premiums. Our guide to [employer health insurance and Medicare](https://www.getprescience.com/guides/employer-health-insurance-and-medicare) covers the rules for employees over 65.

## Mistakes that cost HSA owners money

- **Contributing over the limit.** Excess contributions are taxed 6% a year until you withdraw them. Remember that employer contributions count.
- **Leaving everything in cash.** A balance that never gets invested misses most of the long-term benefit.
- **Contributing directly instead of through payroll,** which gives up the 7.65% FICA savings.
- **Losing eligibility mid-year without adjusting,** for example by joining a spouse's non-HDHP plan or Medicare.
- **Using the money for non-medical costs before 65.** The withdrawal is taxed as income and pays a 20% penalty, which wipes out years of tax savings.
- **Not naming a beneficiary.** A spouse who inherits an HSA can keep it as their own; anyone else pays income tax on the balance.

## Paying yourself back later

There's no deadline for reimbursing yourself from an HSA. If you pay a $1,200 bill out of pocket this year and keep the receipt, you can withdraw $1,200 tax-free in ten years, after the money has had a decade to grow. The only conditions are that the expense happened after you opened the HSA and that you didn't already claim it as a deduction or get it reimbursed some other way.

That's why some people treat an HSA as a retirement account: they pay current medical costs from their checking account, invest the full HSA, and save receipts in a folder or app. It only works if you can afford the bills now, so keep enough cash for at least your deductible before trying it. Save itemized receipts and explanations of benefits, not card slips, since you may need to show the IRS what each withdrawal paid for. A shared folder or the HSA provider's own receipt vault both work, as long as it will still be there in twenty years.

## For employers: HSAs as a benefit

Employer HSA contributions are deductible for the company, tax-free to employees and free of payroll tax on both sides. Even $500 a year makes an HDHP feel much less risky for employees. Our guide to [employer HSA contributions](https://www.getprescience.com/guides/employer-hsa-contributions) covers how much companies typically give and the comparability rules.

> **Prescience Diamond: A company health plan with an effective $0 deductible.** If your team would rather not choose between an HSA and low out-of-pocket costs, Diamond has an effective $0 deductible.
> - **An effective $0 deductible** and simple copays shown before a visit
> - **A broad national PPO network,** plus providers we contract with directly
> - **24/7 physician-led care navigation** that books visits and explains costs
> - **Usually 10–20% below comparable fully insured coverage,** fixed in your quote, with no admin fees
> Best for teams of about 15 or more that want one great group plan. [Get a Diamond quote](https://www.getprescience.com/get-started?p=Employer&product=diamond)

**Compare the medical premium and employer HSA funding**

Use the actual census to price the plan and confirm its HSA eligibility. Keep the proposed account contribution and employee cost-sharing in the budget instead of choosing on the tax-savings estimate alone.

[Compare my team's benefits budget](https://www.getprescience.com/quote)

## Frequently asked questions

**How much does an HSA save in taxes?**

Your federal income tax rate, your state rate (except in California and New Jersey) and, through payroll, 7.65% FICA on every dollar you contribute. At 22% federal and 5% state, that's about 35 cents per dollar.

**What are the HSA limits for 2027?**

$4,500 for self-only coverage and $9,000 for family coverage, plus $1,000 if you're 55 or older (IRS Revenue Procedure 2026-24).

**Is it better to contribute to an HSA through payroll?**

Yes. Payroll contributions avoid FICA tax as well as income tax. Direct contributions are deductible, but you still pay the 7.65% FICA.

**Can I invest my HSA?**

Most HSA providers let you invest balances above a minimum in mutual funds or ETFs. Earnings grow tax-free.

**What happens to my HSA when I leave my job?**

It's yours. The money stays in your account, and you can keep using it, investing it or moving it to another HSA provider.

**Do all states treat HSA contributions as tax-free?**

No. California and New Jersey tax HSA contributions and earnings at the state level. Every other state with an income tax follows federal treatment.

## Sources

- [IRS Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans](https://www.irs.gov/publications/p969)
- [IRS Revenue Procedure 2025-19 (2026 HSA and HDHP limits)](https://www.irs.gov/pub/irs-drop/rp-25-19.pdf)
- [IRS Revenue Procedure 2026-24 (2027 HSA and HDHP limits)](https://www.irs.gov/pub/irs-drop/rp-26-24.pdf)
- [California FTB, Schedule CA instructions and HSA adjustments](https://www.ftb.ca.gov/forms/2025/2025-540-ca-instructions.html)
- [IRS Form 8889 instructions](https://www.irs.gov/instructions/i8889)
