HSA Withdrawal Tax Calculator: Formula, Examples, and Reporting

To estimate what you’ll owe on an HSA withdrawal, run three numbers through a simple formula: the amount withdrawn, your marginal federal tax rate, and a flat 20% penalty if you’re under 65. An HSA withdrawal tax calculator is really just that equation, plus your state tax rate if your state taxes the distribution. Qualified medical expenses owe nothing. Everything else gets taxed as ordinary income, and the penalty stacks on top until you turn 65.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts

The Formula

Every non-qualified HSA withdrawal is taxed the same way:

Total tax = (withdrawal × federal marginal rate) + (withdrawal × 20%) + (withdrawal × state rate)

Three inputs drive the result. Your withdrawal amount is whatever you pulled from the account. Your federal marginal rate depends on your taxable income for the year, which sits on line 15 of Form 1040.2Internal Revenue Service. Publication 1040 – Tax and Earned Income Credit Tables The 20% penalty is flat and applies only if you’re under 65 and not disabled. Your state rate is zero in states with no income tax and in most states that follow federal HSA treatment for qualified distributions, but non-qualified withdrawals are ordinary income at the state level too.

2026 Federal Brackets

  • 10%: up to $12,400 (single) / $24,800 (married filing jointly)
  • 12%: $12,401–$50,400 / $24,801–$100,800
  • 22%: $50,401–$105,700 / $100,801–$211,400
  • 24%: $105,701–$201,775 / $211,401–$403,550
  • 32%: $201,776–$256,225 / $403,551–$512,450
  • 35%: $256,226–$640,600 / $512,451–$768,700
  • 37%: over $640,600 / over $768,700

A withdrawal is stacked on top of your other income for the year, so a large distribution can push part of the withdrawal into a higher bracket than the one your wages sit in. Run the math on the portion that crosses.

Worked Example: Under Age 65

You’re a single filer with $90,000 in taxable income, which puts you in the 22% bracket. You take $5,000 out of your HSA to pay for a home renovation.

  • Federal income tax: $5,000 × 22% = $1,100
  • 20% penalty: $5,000 × 20% = $1,000
  • Total federal cost: $2,100

That’s 42% of the withdrawal gone before state taxes. Add a 5% state income tax and another $250 comes off, bringing the total to $2,350. You keep $2,650 of the original $5,000.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts

The tax math doesn’t show the second cost: the tax-free growth those dollars would have produced. A $5,000 withdrawal now can represent substantially more in lost tax-free medical spending later, depending on how many years the money would have compounded.

Worked Example: Age 65 or Older

Same facts, but you’re 67. The 20% penalty is gone.1Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts

  • Federal income tax: $5,000 × 22% = $1,100
  • State income tax at 5%: $5,000 × 5% = $250
  • Total cost: $1,350

You keep $3,650. Turning 65 saved $1,000 on this same withdrawal. The same exemption applies at any age if you’re permanently disabled, and the penalty is also waived if the distribution goes to a beneficiary after your death.

When a Withdrawal Owes Zero Tax

Withdrawals used for qualified medical expenses owe no income tax and no penalty, no matter your age.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans The IRS defines these as costs to diagnose, treat, or prevent disease, or to affect any part or function of the body, for you, your spouse, or your dependents.4Internal Revenue Service. Publication 502 – Medical and Dental Expenses Common qualifying costs include:

  • Doctor and hospital visits, copays, deductibles, coinsurance, lab work, and surgery
  • Dental care and vision, including eyeglasses, contacts, and corrective eye surgery
  • Prescription medications, including insulin and birth control pills
  • Mental health treatment, therapy, and substance abuse care
  • Medical equipment such as hearing aids, crutches, wheelchairs, and breast pumps

Expenses that are only generally good for your health don’t qualify. Cosmetic surgery not tied to a deformity from disease, injury, or a congenital condition; gym memberships; vitamins for general wellness; and everyday toiletries all fall outside the line.4Internal Revenue Service. Publication 502 – Medical and Dental Expenses Publication 502 keeps an alphabetical list.

After 65, Medicare premiums for Part A, Part B, Part D, and Medicare Advantage count as qualified expenses payable from your HSA tax-free.3Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans The standard Part B premium for 2026 is $202.90 per month, and high-income beneficiaries can pay up to $689.90 per month after income-related adjustments.5Centers for Medicare & Medicaid Services. 2026 Medicare Parts A and B Premiums and Deductibles Medigap premiums do not qualify, so paying those out of your HSA would trigger income tax.

State Taxes

Most states follow the federal treatment: qualified withdrawals are tax-free, non-qualified withdrawals are ordinary state income. California and New Jersey are the two exceptions. Neither state recognizes the federal HSA tax advantages, so contributions aren’t deductible on the state return, earnings are taxable annually, and distributions don’t get favorable state treatment even when spent on medical care. Residents of those states should factor the state rate into every HSA calculation, including qualified distributions. A handful of states have no income tax at all, which drops the state term out of the formula.

If You Withdrew by Mistake

If you took a distribution believing it was for a qualified expense and later discovered it wasn’t, you can return the money and avoid both the income tax and the 20% penalty. IRS Notice 2004-50 allows repayment of mistaken distributions when there is clear and convincing evidence the mistake resulted from reasonable cause.6Internal Revenue Service. IRS Notice 2004-50 – Health Savings Accounts The deadline is April 15 following the first year you knew or should have known the distribution was a mistake.

Your HSA custodian is not required to accept the return; it’s at their discretion, so contact them early. If they accept the repayment and haven’t yet filed Form 1099-SA for the year, they won’t report the distribution. If they’ve already reported it, they file a corrected form.6Internal Revenue Service. IRS Notice 2004-50 – Health Savings Accounts

This remedy is narrow. It does not cover buyer’s remorse. Withdrawing knowingly for a vacation and later regretting the tax bill is not a mistake of fact, and the repayment window won’t help.

Reporting the Withdrawal on Your Return

Every HSA distribution is reported to the IRS regardless of purpose. Your custodian issues Form 1099-SA showing the total distributed during the year, covering qualified and non-qualified amounts alike.7Internal Revenue Service. About Form 1099-SA, Distributions From an HSA, Archer MSA, or Medicare Advantage MSA Receiving that form doesn’t mean you owe tax.

You then file Form 8889 to sort qualified from non-qualified. Line 15 reports distributions used for qualified medical expenses. Line 17b calculates the 20% penalty on any taxable portion that doesn’t qualify for an exception.8Internal Revenue Service. 2025 Instructions for Form 8889 File Form 8889 even if every dollar was medical; skipping it is a common source of IRS notices.

If you’re 65 or older, disabled, or claiming the death exception, check the box on line 17a so the penalty doesn’t apply. The IRS does not know what you spent the money on until you tell them, so the qualified/non-qualified split, and the receipts behind it, are your responsibility. Keep documentation; the IRS can ask for proof years after the fact.8Internal Revenue Service. 2025 Instructions for Form 8889