Four federal tax forms document what goes into and out of a health savings account, and only one of them is a form you fill out yourself. The tax forms that show your HSA contributions are your W-2 (Box 12, Code W) for anything routed through your employer, Form 5498-SA from your account custodian for total contributions credited to the account, and Form 8889, which you complete and attach to your tax return to report contributions, calculate your deduction, and reconcile any withdrawals. A companion form, 1099-SA, reports distributions rather than contributions but works alongside the others when you file.
W-2 Box 12, Code W
If your employer offers an HSA through payroll, your annual wage statement reports those contributions in Box 12 with Code W.1Internal Revenue Service. Form W-2 Reporting of Employer-Sponsored Health Coverage The Code W figure combines two things into one number: money your employer deposited into your HSA, and pre-tax dollars you elected to send from your paycheck through a cafeteria plan.2Internal Revenue Service. HSA Contributions – IRS Courseware Those dollars were already left out of your taxable wages, so you do not deduct them again on your return.
Code W does not include after-tax contributions you sent directly to your custodian outside of payroll, such as a personal check or bank transfer. Those are the contributions that produce the above-the-line HSA deduction, and they get reported separately on Form 8889. On that form, the Code W total goes on Line 9 as employer contributions, and your direct personal contributions go on Line 2.3Internal Revenue Service. Instructions for Form 8889
Form 5498-SA From Your Custodian
Your HSA custodian, typically a bank, brokerage, or insurance company, files Form 5498-SA with the IRS and sends you a copy.4Internal Revenue Service. About Form 5498-SA, HSA, Archer MSA, or Medicare Advantage MSA Information Box 2 shows all contributions deposited during the calendar year. Box 3 shows contributions made between January 1 and the April filing deadline that you designated for the prior tax year. Box 5 shows the fair market value of the account on December 31.5Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA
Custodians have until May 31 to file the form, because they need to capture contributions made all the way through mid-April. You will usually receive your copy in late May or early June, well after you file your return.5Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA You do not need Form 5498-SA to file. Your own records of what you contributed are enough. The form is a permanent record and the document the IRS uses to cross-check the numbers on your return.
Form 8889, The One You File
Form 8889 is what you attach to your Form 1040 (or 1040-SR or 1040-NR). It pulls together the numbers from your W-2 and your own records and handles four jobs: reporting contributions, calculating your deduction, reporting distributions, and confirming eligibility.6Internal Revenue Service. About Form 8889, Health Savings Accounts (HSAs) You must file it any year you or your spouse (if filing jointly) had HSA contributions or took distributions, even if you would not otherwise need to file a return.7Internal Revenue Service. Instructions for Form 8889 (2025)
Part I is where contributions and the deduction happen. Line 2 is your direct after-tax contributions. Line 3 is your annual contribution limit, which depends on whether you had self-only or family HDHP coverage. Line 9 is your employer’s contributions from W-2 Code W. The form walks you through the math and produces a deduction on Line 13, which flows to Schedule 1 of Form 1040 and reduces your adjusted gross income.8Internal Revenue Service. 2025 Schedule 1 (Form 1040) – Additional Income and Adjustments to Income Because it is an above-the-line adjustment, you get it whether or not you itemize.
Part II handles distributions, drawing from your 1099-SA. Part III asks about the months you were covered under an HDHP and works out a prorated contribution limit if your coverage changed during the year.
If You Are Married and Both Have HSAs
Each spouse completes a separate Form 8889. Combine the Line 13 deduction amounts from both forms and enter the total on Schedule 1. Attach both completed forms to the joint return.7Internal Revenue Service. Instructions for Form 8889 (2025)
Form 1099-SA for Withdrawals
When you take money out of an HSA, your custodian reports the withdrawal on Form 1099-SA. Box 1 is the total distributed for the year. Box 3 is a code identifying the type: Code 1 for a normal distribution, Code 2 for excess contributions withdrawn, and Codes 3 through 6 for special situations like disability or death.9Internal Revenue Service. Form 1099-SA Distributions From an HSA, Archer MSA, or Medicare Advantage MSA
Distributions used to pay qualified medical expenses are tax-free. If you used any part of a distribution for anything else, you owe income tax on that amount plus an additional 20 percent tax, which you calculate in Part II of Form 8889.10Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
The Common Mistake at Filing
Before you submit, check two lines on Form 8889 against your paperwork. Line 9 should match the Code W figure from your W-2 exactly. Line 2 should include only after-tax deposits you made directly to your custodian, not anything that came out of your paycheck. Adding your payroll contributions to Line 2 double-counts them, inflates your deduction, and tends to draw an IRS notice.
Contributions Made After Year-End
You have until the April 15 filing deadline of the following year to make contributions for a given tax year. Contributions for 2025, for example, can be made through April 15, 2026.10Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans If you file early and then add more before April 15, tell your custodian to designate the deposit for the prior year. Those late contributions show up in Box 3 of the Form 5498-SA you receive that spring, which is why the form does not arrive until after tax season.
Keep copies of your W-2, 1099-SA, 5498-SA, and Form 8889 with your receipts for qualified medical expenses for at least three years after filing.11Internal Revenue Service. How Long Should I Keep Records If the IRS ever questions a distribution, those receipts are the proof that it went to something qualified.