How Does an HSA Affect Your Tax Return? Deductions and Form 8889

An HSA affects your tax return in three places: contributions reduce your taxable income for the year, any interest or investment growth inside the account is never taxed, and withdrawals for qualified medical expenses come out tax-free.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans The tradeoff is paperwork. If you contributed, received employer contributions, or took a distribution during the year, you must file Form 8889 with your Form 1040, and non-qualified withdrawals or excess contributions can trigger extra tax on top of your regular bill.2Internal Revenue Service. About Form 8889 – Health Savings Accounts (HSAs)

How Contributions Lower Your Taxable Income

The mechanism depends on how the money reaches the account.

Payroll Contributions

Most employers route HSA contributions through a Section 125 cafeteria plan, so the money leaves your paycheck before federal income tax, Social Security tax, and Medicare tax are calculated.3eCFR. 26 CFR 54.4980G-5 – HSA Comparability Rules and Cafeteria Plans and Waiver of Excise Tax That means you skip FICA (7.65% for most workers) on top of your income tax savings. Employer contributions made on your behalf are excluded from your gross income and never appear as taxable wages on your W-2. Because these amounts were already left out of your reported wages, you don’t take a separate deduction for them at filing time; the tax benefit is baked into the W-2 you receive.

Direct Contributions

If you put money into the HSA outside of payroll, you claim the deduction yourself. The HSA deduction is above-the-line, so it reduces your Adjusted Gross Income whether you itemize or take the standard deduction.4Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts A lower AGI can ripple outward: it may raise your eligibility for education credits, ease income-based phase-outs on other deductions, and reduce net investment income tax exposure. The one thing direct contributions don’t do is cut your Social Security and Medicare taxes, since that money has already had FICA withheld.

You have until the tax filing deadline to make contributions counting for the prior year. Contributions posted between January 1 and April 15, 2026 can be allocated to tax year 2025 if you were HSA-eligible during 2025.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans

How Withdrawals Are Taxed

Distributions used for qualified medical expenses are entirely tax-free. Publication 502 defines those expenses broadly: doctor visits, prescriptions, dental work, vision care, mental health treatment, and medical equipment all qualify.5Internal Revenue Service. Publication 502 – Medical and Dental Expenses Health insurance premiums generally do not, though COBRA continuation coverage and premiums paid while receiving unemployment benefits are exceptions.

Withdrawals for anything else are added to your gross income and taxed at your ordinary rate.4Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts If you’re under 65, the IRS also imposes a 20% additional tax on the non-qualified amount.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans A $1,000 non-medical withdrawal by someone in the 22% bracket under 65 would cost $420 in combined taxes and penalty. The 20% penalty drops away once you turn 65, become disabled, or die. Income tax still applies to non-medical withdrawals after 65.

Timing is flexible on the other side too. You can pay a medical bill out of pocket today, keep the receipt, and reimburse yourself from the HSA years later, still tax-free. The only requirement is that the expense was incurred after you opened the account.

Growth Inside the Account

Interest and investment gains inside your HSA accumulate tax-free.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans You don’t report those earnings anywhere on your annual return, and unused balances roll over indefinitely, unlike a Flexible Spending Account. As long as the money eventually pays for qualified care, no tax is ever owed on it, even if the account grew for decades.

Form 8889 and the Documents That Feed It

Anyone who contributed to an HSA, received employer contributions, or took distributions during the year must file Form 8889 with Form 1040.2Internal Revenue Service. About Form 8889 – Health Savings Accounts (HSAs) Even if you made no contributions and only took a small qualified distribution, the form is still required. Skipping it is one of the most common HSA filing mistakes.

Documents to Gather

Your HSA trustee sends Form 1099-SA reporting total distributions for the year, with the amount in Box 1.6Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA You’ll also receive Form 5498-SA showing total contributions and the account’s fair market value. Pull your own records of qualified medical expenses so you can separate tax-free distributions from any that aren’t.

How the Form Works

Form 8889 has three parts. Part I captures contributions and calculates your deduction, which flows to Schedule 1 of Form 1040 and reduces your AGI.7Internal Revenue Service. Form 8889 – Health Savings Accounts (HSAs) Part II reports distributions and compares them against your qualified medical expenses; if expenses equal or exceed distributions, none of the withdrawals are taxable. Part III calculates any additional tax owed if you lost HSA eligibility during the year.8Internal Revenue Service. Instructions for Form 8889 Tax software walks through each part from your 1099-SA and 5498-SA. On paper, Form 8889 goes directly behind Form 1040 in the filing order.

Excess Contributions

Going over the annual limit triggers a 6% excise tax on the excess, and it repeats every year the overage stays in the account.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans The fix is to withdraw the excess plus any earnings it generated before your filing deadline, including extensions.4Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts The withdrawn earnings are taxable income for the year you get them, but the excess contribution itself is not taxed again if you pull it out in time.

The usual culprits: switching from family to self-only HDHP coverage mid-year without adjusting contributions, receiving employer contributions at two jobs in the same year, or miscounting eligible months after enrolling in Medicare. Catch it before you file and the correction is painless. Miss it, and the 6% penalty compounds annually until the account balance is fixed.

State Income Tax

The federal treatment described above is uniform, but two states don’t follow it. California and New Jersey treat HSA contributions as taxable income at the state level, so residents owe state income tax on their own contributions and on employer contributions. Investment earnings inside the account are also taxable on those state returns. Federal benefits still apply in full; the state add-back is a separate calculation.

Records to Keep

The IRS requires records showing that HSA distributions went toward qualified medical expenses, that those expenses weren’t reimbursed by insurance, and that you didn’t also claim them as itemized deductions.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans You don’t attach these records to your return, but you’ll need them if the IRS asks. The general recordkeeping rule is at least three years after the filing date.9Internal Revenue Service. How Long Should I Keep Records If you plan to reimburse yourself years later for medical expenses paid out of pocket, hold the receipts until three years after the tax year you actually take the distribution.