How to Find Your HSA Contributions for Taxes

To find your HSA contributions for taxes, check three places: Box 12 with code W on your Form W-2 for anything that ran through payroll, Box 2 on Form 5498-SA from your HSA custodian for the full annual total, and your HSA online portal or pay stubs if you need the numbers before those forms arrive. Together these sources tell you exactly what went into the account and from where, which is what you need to complete Form 8889 and confirm you stayed under the annual limit.

Form W-2, Box 12, Code W

If your HSA contributions came out of your paycheck, start with your W-2. Box 12 with the letter code “W” reports the combined total of your employer’s direct contributions and any pre-tax salary reductions you elected through a Section 125 cafeteria plan.1Internal Revenue Service. General Instructions for Forms W-2 and W-3 (2026) That amount was already excluded from the wages in Box 1, so it is tax-free without any further deduction on your return.

What Code W does not include is money you sent to the HSA on your own, outside of payroll. A personal check, a bank transfer, or any direct deposit you made to the custodian after your paycheck was issued will not show up on the W-2. Those contributions are deducted separately on Form 8889 and flow through to Schedule 1 of Form 1040.2Internal Revenue Service. Instructions for Form 8889 (2025) So if you also made deposits on your own during the year, the W-2 alone will understate your total.

Form 5498-SA From Your HSA Custodian

The bank, credit union, or financial institution that holds your HSA files Form 5498-SA with the IRS and sends you a copy.3Internal Revenue Service. About Form 5498-SA, HSA, Archer MSA, or Medicare Advantage MSA Information Box 2 reports total contributions made during the calendar year, covering both employer and personal deposits.4IRS. Form 5498-SA HSA, Archer MSA, or Medicare Advantage MSA Information If you did a qualified HSA funding distribution from a traditional IRA into the account, that amount is folded into Box 2 as well.

Box 4 is separate and tracks rollovers from another HSA or Archer MSA. Rollovers are not included in the Box 2 figure and do not count toward the annual limit.4IRS. Form 5498-SA HSA, Archer MSA, or Medicare Advantage MSA Information

One catch: because you can make prior-year contributions through the April 15 filing deadline, custodians are not required to issue Form 5498-SA until May 31 of the following year.5Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA (12/2026) Most people file their taxes before it arrives. That is not a problem as long as you have accurate records from the other sources below.

Pay Stubs and Your HSA Online Portal

If you need contribution totals before Form 5498-SA shows up, or you want to spot-check what your employer reported, two live sources fill the gap.

Your final pay stub of the year shows a year-to-date figure for HSA deductions. Look for a line labeled “HSA,” “HSA Contrib,” or similar in the deductions section. That year-to-date number should match Box 12 Code W on your W-2. If it doesn’t, raise it with payroll before the W-2 is finalized. Pay stubs also tell you whether the deduction is running pre-tax through a cafeteria plan or coming out after-tax; an after-tax HSA deduction does not appear in Code W and needs to be deducted on Form 8889 instead.1Internal Revenue Service. General Instructions for Forms W-2 and W-3 (2026)

Your HSA custodian’s website or app is the fastest way to see everything in one place. Most providers have a tax center or year-end summary that breaks contributions down by source, separating payroll deposits from personal transfers. Filtering the transaction history to show only incoming deposits isolates the total. Some custodians post a preliminary year-end statement by January 31, though they are not required to before the May 31 Form 5498-SA deadline.5Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA (12/2026)

Where the Numbers Go on Form 8889

Anyone who contributed to an HSA, or whose employer did, has to file Form 8889 with their federal return.2Internal Revenue Service. Instructions for Form 8889 (2025) The form is where your W-2 and 5498-SA numbers meet, and it splits contributions cleanly:

  • Line 2 is for personal contributions you made outside of payroll. It does not include employer contributions or cafeteria-plan salary reductions.2Internal Revenue Service. Instructions for Form 8889 (2025)
  • Line 9 is for employer contributions, which is the Box 12 Code W amount from your W-2. It covers both employer deposits and your own pre-tax payroll deductions.1Internal Revenue Service. General Instructions for Forms W-2 and W-3 (2026)

The deduction for your personal contributions is calculated on Line 13 and carried to Schedule 1 (Form 1040), Line 13.2Internal Revenue Service. Instructions for Form 8889 (2025) That is the mechanism that reduces your adjusted gross income for out-of-pocket HSA deposits.

Cross-Check Against the 2026 Contribution Limit

Finding your totals is only useful if you compare them to the annual ceiling. For 2026, the limits are $4,400 for self-only coverage and $8,750 for family coverage.6IRS.gov. Expanded Availability of Health Savings Accounts Under the One, Big, Beautiful Bill Act If you are 55 or older and not enrolled in Medicare, you can add another $1,000.7Office of the Law Revision Counsel. 26 U.S. Code 223 – Health Savings Accounts

The limit covers every dollar that went into the account: personal deposits, employer contributions, and pre-tax payroll deductions combined. Add your Code W amount to any direct deposits you made, and the sum has to sit at or below the applicable limit for your coverage type.

If You Went Over the Limit

An excess contribution is subject to a 6% excise tax for every year it stays in the account.8Office of the Law Revision Counsel. 26 U.S. Code 4973 – Tax on Excess Contributions to Certain Tax-Favored Accounts and Annuities Left uncorrected, it compounds year after year.

You can avoid the penalty by withdrawing the excess, along with any earnings attributable to it, by the due date of your return including extensions.2Internal Revenue Service. Instructions for Form 8889 (2025) If you already filed without fixing it, you still have a window: withdraw the excess within six months of the original (unextended) filing deadline and file an amended return. The withdrawn earnings become taxable income for the year they are returned, but pulling out the excess on time eliminates the 6% tax. That is why matching your W-2 Code W amount, your personal deposits, and your Form 5498-SA total is worth doing before you file rather than after.