You do not need Form 5498-SA in hand to know what you contributed to your HSA. That form usually arrives by May 31 — after most people file — so tax season requires a different playbook. Add payroll amounts from W-2 Box 12 Code W to any direct deposits you made, pull the same totals from your HSA portal or year-end statement, and you can complete Form 8889 on time. The IRS designed the system this way deliberately. HSA contributions for a tax year can be made until April 15 of the following year, so Form 5498-SA cannot be finalized until after that deadline. You file first, then verify later.
This guide walks through four practical methods to reconstruct your contribution total, then shows how to combine them without double-counting or triggering the 6% excise tax. When the 5498-SA finally arrives in late May or early June, you compare it to what you filed and amend only if necessary.
What You Are Trying to Rebuild
- Employer + payroll (cafeteria) contributions → usually W-2 Box 12, Code W (Form 8889 employer/payroll line)
- Direct / after-tax contributions you made → portal, bank records, or year-end statement (Form 8889 personal contribution line)
- Prior-year contributions made Jan 1–April 15 → include only if designated for the tax year you are filing
- 5498-SA → May verification document your custodian files with the IRS — do not attach it to your return
Form 8889 has two contribution lines: one for employer and payroll cafeteria contributions (typically Line 9), and one for your personal after-tax contributions (typically Line 2). Most people fund their HSA through payroll, so Code W captures the bulk of their annual total. If you made additional contributions outside of payroll with money from your checking account, those go on the personal line. The math ensures you do not get a double deduction.
Method 1: W-2 Box 12 Code W for Payroll Contributions
Start with every Form W-2 you received for the tax year. In Box 12, look for Code W. That figure is the total of employer HSA contributions plus employee pre-tax payroll contributions under a cafeteria (salary reduction) plan. The IRS treats all payroll-based HSA funding as "employer contributions" for Form 8889 purposes, regardless of whether the money came from your paycheck or your employer added it as a benefit.
How to use it:
- List Code W from each W-2 if you changed jobs. If you worked for two employers in 2025 and both offered HSA contributions, you will receive two W-2s with Code W entries. Total both amounts.
- Add those amounts together. If Employer A shows $2,400 in Code W and Employer B shows $1,800, your combined payroll contribution is $4,200.
- Enter the total on the employer/payroll contribution line of Form 8889 (commonly Line 9). Most tax software auto-populates this when you enter your W-2 data.
Do not also enter Code W amounts on the personal contribution line. Those dollars were already excluded from taxable wages shown in W-2 Box 1. Reporting them again on Line 2 creates a double deduction and triggers a 6% excise tax on the excess. Deep dive: W-2 Box 12 Code W Explained.
What Code W includes:
- Your payroll deduction contributions (every dollar deducted from your paycheck before taxes)
- Direct employer contributions (matching, per-pay-period, or annual lump-sum amounts your employer added)
- Cafeteria plan (Section 125) contributions (the pre-tax mechanism most employers use)
What Code W does NOT include:
- Contributions you made directly to your HSA outside of payroll
- Rollovers from another HSA or IRA
- Contributions made in January through April 2026 designated for tax year 2025
Code W Can Mix Timing
If your employer contributed in the following year for the prior tax year, Code W on this year's W-2 may need the Form 8889 Employer Contribution Worksheet. When the W-2 looks "too high" or "too low" versus your portal, ask payroll which tax year each deposit was for before you file. Employer contributions are reported on the W-2 for the year they are made, not the year they are designated for.
If your W-2 shows no Code W entry, either your employer did not offer HSA contributions or all your contributions were made outside of payroll. This is normal for self-employed individuals, freelancers, and anyone who opened an HSA independently. You report those contributions on Form 8889 Line 2 instead.
Method 2: HSA Provider Online Portal or App
Most custodians show contribution history filtered by calendar year or tax year. The portal displays contributions in real-time, making it your single most reliable source for confirming totals before the 5498-SA arrives. In the portal or app:
- Open contributions, transactions, or tax center. Navigate to the section that lists account activity. Most providers have a dedicated "Contributions" tab or a "Tax Documents" section.
- Filter to the tax year you are filing (and the Jan 1–April 15 window if you made prior-year deposits). Select "2025" as the tax year if you are filing your 2025 return. The system should show contributions received in 2025 plus any contributions made in early 2026 that you designated for 2025.
- Export or screenshot totals by contribution type: employer/payroll vs member/direct. The portal typically breaks down contributions by source: "Employer," "Payroll," "Member," "Direct," "Rollover." You need the employer/payroll total for Line 9 and the member/direct total for Line 2.
- Confirm any deposit tagged "prior year" or "tax year 20XX." If you made a contribution in February 2026 and designated it for 2025, verify the portal shows it under 2025, not 2026.
Portals are often clearer than paper 5498-SA boxes for day-to-day reconciliation. Most major HSA administrators provide year-to-date contribution summaries that separate calendar year cash movements from tax year designations.
Specific portal navigation for major providers:
- Fidelity HSA: Log in → Activity → View Contributions by Tax Year
- HealthEquity: Dashboard → Account Activity → Contributions → Filter by Tax Year
- Optum Bank: Account Summary → Transaction History → HSA Contributions → Select tax year
- Lively: Transactions → Contributions tab → Tax Year dropdown
If you cannot locate the contribution summary by tax year, contact your HSA provider's customer service. They can provide a year-end contribution statement showing exactly what was contributed for each tax year. Download and save the PDF. This is primary documentation for your tax return if the IRS ever questions your Form 8889.
Your HSA provider's portal total should match the sum of your W-2 Code W amount plus any direct contributions you made. If the numbers do not reconcile, investigate the discrepancy before filing. Common causes include pending contributions that have not posted, rollovers reported separately, or contributions designated for the wrong tax year. If your portal reporting is too thin to trust at a glance, compare HSA providers with clearer tax-year tracking.
Method 3: Bank and Transaction Records
Use this for money you sent yourself — ACH, debit, check, or brokerage transfer — that never hit payroll. Direct contributions are transfers you initiated outside of your employer's payroll system. You logged into your bank account, your HSA provider's portal, or a payment service and moved money from your checking or savings account into your HSA. These contributions are made with after-tax dollars, so they generate a deduction on Form 8889 Line 2.
How to track them:
- Search statements for the HSA routing/account or custodian name. Look for outbound transfers to your HSA provider. Custodian names like "Fidelity Investments," "HealthEquity," "Optum Bank," or "Lively" appear in your bank transaction history.
- Total outbound transfers that settled as HSA contributions. Add up every transfer you initiated between January 1, 2025 and April 15, 2026 that you designated for tax year 2025.
- Match each to a portal confirmation (amount + date + tax-year designation). Your HSA provider sends a confirmation email for each contribution. Cross-reference your bank statement amounts to those confirmations to ensure every transfer posted correctly.
- Exclude transfers that were reimbursements to you, investment moves inside the HSA, or rollovers/trustee-to-trustee transfers (those follow different Form 8889 rules). Only count contributions — money flowing into the HSA that counts against your annual limit.
Keep PDFs or CSV exports with your tax file. They are your backup if the May 5498-SA disagrees with Line 2. If you made multiple direct contributions throughout the year, create a simple spreadsheet listing each contribution date, amount, and tax year designation. This becomes your audit trail.
Real-world example: Rachel contributed $250 per month through payroll in 2025, totaling $3,000 shown in her W-2 Code W. In March 2026, she made a one-time $1,300 direct contribution from her checking account and designated it for 2025 to maximize her deduction. Her total 2025 contribution is $4,300: $3,000 from Code W plus $1,300 from the direct contribution. On Form 8889, she reports $1,300 on Line 2 (direct contribution) and $3,000 on Line 9 (Code W).
Verify each direct contribution posted to your HSA account. Just because you initiated a transfer does not mean it processed in time to count for 2025. HSA providers generally require contributions to settle by April 15 or shortly after to count for the prior tax year. A contribution initiated on April 14 that does not post until April 17 counts for 2026, not 2025.
Method 4: Year-End HSA Statement
Many custodians publish a December 31 or annual tax statement before 5498-SA ships. It may list contributions during the calendar year, fair market value on December 31, and sometimes employer vs member splits. This statement summarizes account activity for the prior calendar year and serves as an early confirmation of your contribution totals.
The year-end statement is not an IRS form. It is an account summary your HSA provider generates for your records. It typically includes:
- Beginning balance as of January 1, 2025
- Total contributions received in 2025
- Total distributions taken in 2025
- Investment gains or losses during 2025
- Ending balance as of December 31, 2025
Treat it as a cross-check, not a substitute for knowing which deposits are payroll (Code W) versus personal. Calendar-year totals can differ from tax-year totals when you contribute in January–April for the prior year. The year-end statement only captures calendar year activity. It does not include contributions made in early 2026 designated for 2025.
Good to Know
Year-end statement vs. Form 5498-SA: The year-end statement shows contributions received during the calendar year. Form 5498-SA Box 3 separately reports contributions made in the following year (January 1 through April 15, 2026) designated for 2025. Add Box 2 and Box 3 together to get your complete 2025 contribution total — but you will not have the 5498-SA until May.
If your HSA provider sent a year-end statement, use it to confirm your payroll and direct contributions during 2025. Then add any contributions you made in early 2026 for 2025. Your HSA provider's online portal will reflect those post-year contributions immediately, but the year-end statement will not. Not all HSA providers issue standalone year-end statements. If you did not receive one, rely on your W-2 Code W and your provider's online portal instead.
Adding It All Up: Payroll Plus Direct Contributions
A clean worksheet for Form 8889:
| Source | Where it goes | Notes | | --- | --- | --- | | Sum of W-2 Code W | Employer/payroll line | Includes cafeteria deferrals | | Direct / after-tax deposits for this tax year | Personal contribution line | Not in Code W | | Prior-year deposits made by the April deadline | Personal line for that tax year | Must be designated correctly | | Rollovers / qualified HSA funding distributions | Separate 8889 treatment | Do not dump into Line 2 casually |
Quick formula: Code W (for this tax year, after worksheet tweaks) + direct contributions designated for this tax year
Then run the contribution calculator against the annual limit (plus catch-up if age 55+) so you catch excess before you file. For 2025, the limits are $4,300 for self-only coverage and $8,550 for family coverage. If you are age 55 or older by December 31, 2025, add the $1,000 catch-up contribution to your limit.
Common calculation scenarios:
Scenario 1: Payroll only, no direct contributions
- W-2 Code W: $4,000
- Direct contributions: $0
- Total: $4,000
- Form 8889: Line 9 = $4,000, Line 2 = $0
Scenario 2: Payroll plus direct contributions
- W-2 Code W: $3,200
- Direct contributions made in 2025: $800
- Direct contributions made in early 2026 for 2025: $300
- Total: $4,300
- Form 8889: Line 9 = $3,200, Line 2 = $1,100
Scenario 3: No payroll contributions, direct only
- W-2 Code W: Not present or $0
- Direct contributions made in 2025: $3,500
- Direct contributions made in early 2026 for 2025: $800
- Total: $4,300
- Form 8889: Line 9 = $0, Line 2 = $4,300
Do not include rollovers in your contribution total. Rollover contributions from another HSA, an Archer MSA, or a qualified HSA funding distribution from an IRA do not count against your annual contribution limit. They are reported differently on Form 8889 and appear separately on Form 5498-SA Box 4.
Important
Watch for double-counting. The most common HSA tax error is reporting Code W amounts on both Form 8889 Line 9 and Line 2. Code W contributions are already excluded from your taxable income. Reporting them again on Line 2 as a deduction triggers a 6% excise tax on the excess. Payroll contributions go on Line 9. Direct contributions go on Line 2. Never report the same dollars on both lines.
Compare your total to the contribution limit for your coverage type. If your total exceeds the limit, you have an excess contribution problem that must be corrected before the tax filing deadline to avoid penalties. Request a return of excess contributions from your HSA provider, who will return the excess plus any earnings attributable to it.
How to Handle Prior-Year Contributions in the Count
Contributions made from January 1 through the unextended filing deadline can count for the prior tax year if you and your trustee treat them that way. This creates a two-step verification process to ensure you are counting contributions for the correct year.
When you make an HSA contribution in early 2026, your HSA provider asks which tax year the contribution applies to. If you designate it for 2025, it counts against your 2025 limit and generates a 2025 deduction. If you designate it for 2026 (the default), it counts against your 2026 limit instead.
How to handle prior-year contributions:
- Include those designated prior-year deposits in that year's personal contribution total. If you contributed $500 in March 2026 and designated it for 2025, report that $500 on your 2025 Form 8889 Line 2.
- Exclude them from the current calendar year's "for this year" count if they were tagged prior-year. That same $500 does not count toward your 2026 limit.
- Keep the designation email/screenshot — custodians use it when building 5498-SA reporting. This is your proof that the contribution was made before the deadline and designated for the correct tax year.
Some HSA providers let you change the tax year designation online up until the April 15 filing deadline. Others require you to call customer service. Do not assume the designation is correct — verify every contribution made in the overlap period.
Deadline to Make Prior-Year Contributions
You can contribute to your 2025 HSA until April 15, 2026. Contributions must be received and posted by your HSA provider by that date. If you initiate a transfer on April 14 but it does not post until April 17, it counts for 2026, not 2025. Give yourself at least three business days for contributions to clear.
A filing extension does not extend the contribution deadline. The contribution deadline remains April 15 regardless of whether you file for an extension.
Your W-2 Code W only captures contributions made through payroll in calendar year 2025. It does not include contributions you made in early 2026, even if designated for 2025. You must manually add those early-2026 contributions to your Form 8889 Line 2 total.
Real-world example: Marcus's W-2 shows $3,700 in Code W for 2025. On April 12, 2026, he contributes an additional $600 directly to his HSA and designates it for 2025. His total 2025 contribution is $4,300. On Form 8889, he reports $600 on Line 2 (the direct contribution) and $3,700 on Line 9 (Code W). He gets a $600 deduction on his 2025 return even though the cash left his checking account in 2026.
Frequently Asked Questions
Is the portal total supposed to match Code W?
Not always. Portals often show all inbound contributions — employer, payroll, and direct. Code W is only employer + payroll cafeteria amounts. Direct deposits appear in the portal but not in Code W. If you contributed $1,000 directly and $3,000 came through payroll, your portal shows $4,000 but Code W shows only $3,000. This is normal and expected.
What if I have two HSA accounts?
Total contributions across accounts against one annual limit (with the usual family/self-only and married-couple rules). Follow Form 8889 instructions for multiple HSAs. The limit applies to you, not to each account. If you contributed $2,500 to Account A and $2,000 to Account B, your total is $4,500 against the $4,300 self-only limit — you have a $200 excess.
Do rollovers count toward the annual contribution limit?
Trustee-to-trustee HSA-to-HSA transfers and many rollovers are reported differently from regular contributions. They do not count against your annual contribution limit and are reported separately on Form 8889 and Form 5498-SA Box 4. Check IRS Publication 969 and Form 8889 instructions when unsure. Do not casually dump rollover amounts into Line 2 — they follow their own rules.
When 5498-SA arrives, what should match?
Compare your filed Form 8889 worksheet to the custodian's contribution reporting. Add Form 5498-SA Box 2 and Box 3 together. This is your total contribution for the tax year that should match the sum of Line 2 and Line 9 on your filed Form 8889. If they match, you filed correctly. If they do not match, investigate why. Amend only if a real dollar error changes your tax. See HSA Contribution Mismatch for common discrepancy scenarios.
Can I file my taxes without the 5498-SA?
Yes. The 5498-SA arrives in late May, well after the April 15 filing deadline. The IRS expects you to file without it. Your W-2, HSA provider portal, and bank records contain all the information you need to complete Form 8889. The 5498-SA is a year-end confirmation document, not a required filing document.
What if my HSA provider has not updated my online portal with all contributions?
Contact your HSA provider immediately. If you made a contribution and it has not posted to your account, obtain written confirmation of the contribution date, amount, and tax year designation. Use that confirmation as documentation for your tax return. If the contribution was made before April 15, 2026 and designated for 2025, it counts for 2025 even if it has not posted yet.
Do employer contributions and my payroll deductions go on different lines of Form 8889?
No. Both go on Line 9. The IRS treats all contributions made through a cafeteria plan as employer contributions, regardless of whether the money came from your paycheck or your employer added it. Your W-2 Box 12 Code W combines both amounts into one number that flows to Line 9. Only contributions you made outside of payroll with after-tax dollars go on Line 2.
I changed jobs mid-year and have two W-2s with Code W. How do I report that?
Add the Code W amounts from both W-2s and report the total on Form 8889 Line 9. If you contributed to your HSA at both employers, make sure the combined total does not exceed the annual limit. The limit applies to you, not to each employer. If you exceeded the limit because both employers contributed, you have an excess contribution problem that must be corrected.
Bottom Line
Build your contribution total from Code W + direct deposits + clear prior-year tags, using the portal and year-end statement as cross-checks. File Form 8889 on that worksheet, then verify with Form 5498-SA in May. The IRS designed the timeline this way deliberately — you file first, verify later. If a genuine discrepancy emerges when the 5498-SA arrives, determine whether it is your error or your custodian's, then amend only if necessary.
Next: contribution calculator to verify you are under the limit → compare HSA providers if your portal reporting is too thin to trust at a glance → understand 1099-SA vs 5498-SA timing and purposes.
Written by
Michael is a Certified Public Accountant and IRS Enrolled Agent who has spent 12 years helping individuals and businesses navigate tax-advantaged health accounts. He leads HSA Orbit's tax strategy content.