Where HSA information appears on your tax forms
Your HSA contributions and withdrawals show up on Form 1040 (your main tax return) and Form 8889 (Health Savings Account Information). Form 8889 is the detailed record — it lists what you put in, what you took out, and whether the IRS thinks you owe tax on any of it. Form 1040 pulls the key numbers from Form 8889 and puts them in the right boxes so your total income and deductions are correct.
If your employer deducted HSA contributions from your paycheck before taxes, those amounts also appear on your W-2 in Box 12 with code "W". That money never hits your taxable income in the first place, so it won't show as a deduction on Form 1040 — it's already been removed.
Your HSA provider (the bank or financial company holding your account) sends you a statement each year showing deposits and withdrawals. Keep this alongside your tax forms. The IRS doesn't always receive a copy of what your provider sent you, so if there's a mismatch later, you'll need that statement to prove what actually happened.
Key Takeaways
- Form 8889 is the HSA-specific tax form where you report all contributions you made yourself and all withdrawals you took during the year.
- Employer contributions appear on your W-2 in Box 12 with code "W" and do not need to be reported again on Form 1040.
- Form 1040 pulls summary numbers from Form 8889 to calculate your adjusted gross income and tax liability.
- Your HSA provider's year-end statement is your proof of what went in and out; keep it with your tax records for at least three years.
How to read Form 8889
Form 8889 has two main sections: Part I covers contributions (money going in) and Part II covers distributions (money coming out). Line 1 asks for your HSA balance at the start of the year. Lines 2 through 4 ask you to list contributions you made yourself during the year — not employer contributions, which are handled separately. Line 5 is where you add up everything that went into the account.
Part II starts with your balance at the end of the year and then asks about distributions. Line 8 is where you enter the total amount you withdrew. Lines 9 and 10 ask you to separate may have access to medical expenses (which are not taxed) from non-may have access to withdrawals (which are taxed as income plus a 20% penalty, unless you're over 65). The form then calculates whether you owe tax on any of those withdrawals.
If you received a Form 1099-SA from your HSA provider, it will show the total distributions they recorded. This number should match what you put on line 8 of Form 8889. If it doesn't, you'll need to explain the difference — for example, if you withdrew money but haven't spent it yet on medical care, or if your provider's records are out of sync with yours.
Finding your contributions on the tax return
Self-funded contributions (money you deposited yourself, not through payroll) appear on Form 1040, line 12 as an "above-the-line" deduction. This means you get the deduction even if you don't itemize. The amount comes directly from Form 8889, line 5. You do not need to list each deposit separately — just the annual total.
Employer contributions never appear on Form 1040 because they're already excluded from your W-2 wages. If you see them listed in Box 12 of your W-2 with code "W", that's the IRS's way of saying "this person had HSA contributions taken out of their paycheck, and we've already subtracted them from their taxable wages." You should not deduct them again on Form 1040, or you'll be claiming the same deduction twice.
If you made contributions after the year ended but before your tax deadline (up to April 15 or your filing date), you can still deduct them on that year's return. Your HSA provider will issue a corrected statement showing the contribution date. Keep proof of when you actually deposited the money — a bank receipt or provider confirmation — because the IRS may ask.
Locating withdrawals and medical expense claims
Withdrawals for may have access to medical expenses are not taxed. Withdrawals for anything else are taxed as ordinary income plus a 20% penalty (unless you're 65 or older, in which case the penalty drops but the income tax remains). Form 8889 asks you to separate these two categories on lines 9 and 10.
You do not need to list every medical expense on your tax return. The IRS does not require receipts to be attached to Form 8889. However, you must keep receipts and proof of payment for at least three years in case of an audit. If the IRS questions whether a withdrawal was truly for a may have access to expense, you'll need to show the original bill, the date of service, and proof that you paid it from your HSA.
Common may have access to expenses include doctor visits, prescriptions, dental work, vision care, and medical equipment. Non-may have access to expenses include cosmetic surgery (unless medically necessary), gym memberships, and over-the-counter vitamins. If you're unsure whether an expense qualifies, the IRS Publication 969 has a full list, and your HSA provider's website usually has a searchable database too.
What to do if your HSA information doesn't match your records
Start by comparing three documents: your HSA provider's year-end statement, the Form 1099-SA they sent to the IRS, and what you entered on Form 8889. If all three match, you're aligned with what the IRS has on file. If they don't match, figure out which one is wrong before you file.
Common mismatches happen when contributions are deposited after the provider's cutoff date for the year-end statement, when you made a withdrawal but haven't yet spent it on medical care, or when your provider recorded a transaction in a different year than you did. Call your HSA provider's customer service line with your statement in front of you. They can tell you the exact date each transaction posted and whether they've sent corrected information to the IRS.
If you filed your return and then discovered an error, you can file Form 1040-X (Amended U.S. Individual Income Tax Return) to correct it. You have three years from the original filing date to amend. If the IRS sends you a notice about an HSA discrepancy, respond with your provider's statement and any receipts showing what the money was actually used for.
HSA withdrawals after age 65
Once you turn 65, the rules change. You can still withdraw money tax-free for may have access to medical expenses, but non-may have access to withdrawals are no longer penalized — they're only taxed as ordinary income. This makes HSAs function more like traditional IRAs after 65, except the may have access to medical expense option never goes away.
On Form 8889, you'll still separate may have access to from non-may have access to withdrawals, but the penalty calculation on line 16 will be zero if you're 65 or older. The income tax on non-may have access to withdrawals still applies, though. If you're not sure whether you've reached 65 in the eyes of the IRS, use your birth date and the tax year in question — you're considered 65 on the last day of the year in which you turn 65.
Keeping records for an audit
The IRS can audit your HSA for up to three years after you file (or six years if they think you underreported income by 25% or more). Keep your HSA provider's statements, all deposit and withdrawal confirmations, receipts for medical expenses, and a copy of Form 8889 and Form 1040 for each year you had an HSA.
Organize receipts by year and by expense type — medical, dental, vision, pharmacy — so you can quickly find proof if the IRS asks about a specific withdrawal. Digital copies are fine as long as they're legible. If you can't find a receipt for an old expense, a credit card statement showing the charge to a doctor or pharmacy can sometimes substitute, though a detailed receipt is always better.
If you claimed a withdrawal as may have access to but the IRS disagrees, you'll owe income tax on that amount plus interest. The 20% penalty (if you were under 65) may also apply. Having clear documentation of what the money was spent on — an itemized bill from the provider, not just a charge description — is your best defense.
Frequently Asked Questions
Do I have to file Form 8889 even if I only had employer contributions?
No. If your employer deducted all HSA contributions from your paycheck and you made no withdrawals, Form 8889 is not required. The contributions already appear on your W-2 in Box 12 with code "W", and that's all the IRS needs. You only file Form 8889 if you made your own contributions or took any withdrawals during the year.
What if I withdrew money from my HSA but haven't spent it on medical care yet?
You still report the withdrawal on Form 8889, line 8. On line 10, you'll report it as a non-may have access to distribution, which means it's taxed as income plus a 20% penalty (unless you're 65 or older). If you later spend that money on a may have access to medical expense, you cannot go back and reclassify the withdrawal. The tax and penalty are owed in the year you withdrew it, not the year you spent it.
Can I deduct HSA contributions if I'm claimed as a dependent?
No. If someone else claims you as a dependent on their tax return, you cannot deduct HSA contributions on your own return, even if you earned the money yourself and opened the account in your name. This is true whether the dependent is a child, a student, or an adult. Check with whoever claims you before opening an HSA or making contributions.
Where do I report HSA contributions if I'm self-employed?
Self-employed people report HSA contributions on Form 1040, line 12, the same way employees do. The contribution is an above-the-line deduction, so you get it whether or not you itemize. You still file Form 8889 to show the IRS the details. Self-employment tax (Social Security and Medicare) does not apply to HSA contributions.
What happens if my HSA provider sends the wrong Form 1099-SA to the IRS?
Contact your provider immediately and ask them to issue a corrected form. They will send a corrected 1099-SA to both you and the IRS, marked as a correction. File your tax return with the correct numbers from the corrected form. If you've already filed and the IRS received the wrong form first, they may send you a notice. Respond with a copy of the corrected form and your Form 8889 showing the accurate amounts.