Short answer: HSA form 8889 reconciliation means matching three sets of records to one tax form. Your employer’s W-2 (box 12, code W) feeds line 9. Your own deposits and the trustee’s Form 5498-SA feed line 2. Your Form 1099-SA (box 1) feeds line 14a, and your unreimbursed qualified medical expenses feed line 15. If the totals do not reconcile, the usual culprits are employer money counted twice, contributions made after year-end, withdrawals of excess contributions, and expenses you cannot document.

Form 8889 is short, but it pulls numbers from documents that use different labels and different timing rules. A payroll deduction that appears in your pay stub as an employee contribution is reported as an employer contribution on the W-2. A deposit you make in April 2026 for tax year 2025 shows up on a different line of the trustee’s statement than one you make in December 2025. None of this is hard once you see the map. It does catch people off guard when the numbers will not tie.

This guide walks through the reconciliation line by line, with illustrative scenarios and a table that matches every document to a line on the form. It uses the 2025 Form 8889 instructions and IRS Publication 969, checked November 12, 2026. The examples are illustrations, not filing advice, and your own facts can change the answer.

What matters most before you fill in Form 8889

  • Employer money goes on line 9, not line 2. The instructions say line 2 excludes employer contributions, and that cafeteria-plan payroll contributions count as employer contributions.
  • Line 9 comes from W-2 box 12, code W. Adjust it with the worksheet if some amounts relate to a different year.
  • Your limit is shared. Employer and personal contributions together count against one annual limit ($4,300 self-only or $8,550 family for 2025; $4,400 and $8,750 for 2026).
  • Form 1099-SA box 1 is gross. It includes everything that left the account, including returned excess contributions and rollovers. You subtract those on line 14b.
  • Only unreimbursed qualified medical expenses reduce the taxable amount. You also cannot deduct the same expenses on Schedule A.
  • Excess contributions have a deadline. You can avoid the 6% excise tax by withdrawing the excess and its earnings by the return due date, including extensions.

The documents you need and where each number lands

Start by gathering paper. The trustee reports on Form 1099-SA (distributions) and Form 5498-SA (contributions). Your employer reports on the W-2. Your own records fill in the rest: payment confirmations for contributions you made directly and receipts or explanation-of-benefits statements for medical expenses.

Source documentBox or itemFeeds Form 8889What it tells you
W-2Box 12, code WLine 9Employer contributions, including payroll deductions made through a cafeteria plan
Form 5498-SABox 2Cross-check for line 2 and line 9 totalsTotal HSA contributions made during the calendar year, including prior-year amounts paid in that year and IRA-to-HSA transfers
Form 5498-SABox 3Cross-check, next tax yearContributions made in the following year but designated for this calendar year
Form 5498-SABox 4Not a contribution on line 2Rollover contributions received
Form 5498-SABox 5Not a Form 8889 lineFair market value of the account on December 31
Form 1099-SABox 1Line 14aGross distribution for the calendar year
Form 1099-SABox 2Part of line 14b if you withdrew excessEarnings on excess contributions returned
Form 1099-SABox 3 (code)Tells you the nature of the payoutNormal, excess return, disability, death, prohibited transaction
Your recordsReceipts and statementsLine 15Unreimbursed qualified medical expenses
Your recordsCoverage dates and plan typeLines 1 and 3Self-only or family, and months of eligibility

Sources: IRS Instructions for Form 8889; Instructions for Forms 1099-SA and 5498-SA. Checked November 12, 2026.

What the 1099-SA distribution codes mean

Box 3 of Form 1099-SA carries a code that explains why money left the account. Code 1 is a normal distribution, including a direct payment to a medical provider. Code 2 is an excess contribution returned to you. Code 3 covers distributions after disability. Code 4 is a death distribution to an estate. Code 5 is a prohibited transaction, and code 6 is a death distribution after the year of death to a nonspouse beneficiary other than an estate.

CodeMeaning (per IRS instructions)What you usually do
1Normal distribution, including direct payments to a providerReport on line 14a; subtract qualified expenses on line 15
2Excess contributions returnedReport on line 14a and 14b; include the earnings as income
3Distribution after disabilityReport on 14a; the 20% additional tax does not apply after disability
4Death distribution to an estateReporting differs by the recipient; ask a tax professional
5Prohibited transactionTreat with caution; see the Form 8889 instructions
6Death distribution after the year of death to a nonspouse beneficiaryBeneficiary rules apply; the 20% tax does not apply on death

Source: IRS Instructions for Forms 1099-SA and 5498-SA. Checked November 12, 2026.

HSA form 8889 reconciliation: Map showing which W-2, Form 5498-SA, Form 1099-SA and receipt numbers feed each line of Form
Each document feeds a different line of Form 8889.

Part I: reconciling contributions

Part I decides how much you can deduct and whether anything is excessive. It has four moving pieces: your coverage type, your personal contributions (line 2), your limit (line 3 and related lines), and employer contributions (line 9). The deductible amount (line 13) is the smaller of line 2 and line 12, where line 12 is your limit minus employer contributions and funding distributions.

Two facts here cause most mismatches. First, line 2 includes only your own contributions for the tax year, including those made by the filing deadline for that year. The 2025 instructions say contributions for 2025 can be made through April 15, 2026. Second, a payroll deduction through a cafeteria plan is an employer contribution, so it belongs on line 9 and never on line 2.

Contribution sourceWhere it goesCounts toward the annual limit?Deductible on Form 8889?
Payroll deduction through an employer cafeteria planLine 9 (W-2 code W)YesExcluded from income at the W-2 level; not on line 13
Employer’s own depositLine 9 (W-2 code W)YesExcluded from income at the W-2 level; not on line 13
Your own deposit from a bank accountLine 2YesYes, up to the limit (line 13)
Deposit made in the next year for this tax yearLine 2 if made by the filing deadlineYesYes, if within the limit
Qualified HSA funding distribution from an IRALine 10Yes (reduces your limit)No; excluded from income instead
Rollover from another HSANot on line 2NoNo

Sources: IRS Instructions for Form 8889; IRS Publication 969. Checked November 12, 2026.

The contribution limits by year

Item20252026
Self-only HDHP maximum contribution$4,300$4,400
Family HDHP maximum contribution$8,550$8,750
Catch-up contribution (age 55 or older)$1,000$1,000 (a fixed statutory amount; confirm on IRS.gov)
Minimum HDHP deductible (self-only / family)$1,650 / $3,300$1,700 / $3,400
Maximum out-of-pocket (self-only / family)$8,300 / $16,600$8,500 / $17,000

Sources: IRS Instructions for Form 8889 (2025) and IRS Publication 969. Checked November 12, 2026. Figures are indexed each year.

Worked scenarios: employer plus direct contributions

All five scenarios below are illustrations, not real people or current quotes. They use the 2025 limits from the IRS instructions. Each shows what goes on line 2, line 9, line 12 and line 13, and what happens to any excess.

Scenario A: employer money plus your own deposits, over the limit

A worker has self-only HDHP coverage all year. Her W-2 shows $2,500 in box 12, code W, which includes her payroll deferrals plus a small employer match. She also deposits $2,300 from her checking account. Her limit is $4,300. Line 2 is $2,300 (her own deposits only). Line 9 is $2,500. Line 12 is $4,300 minus $2,500, which equals $1,800. Line 13 is the smaller of line 2 and line 12, so she deducts $1,800. Her total contributions are $4,800, which is $500 over the limit.

That $500 is an excess contribution. If she leaves it in the account, it is subject to a 6% excise tax for each year it remains, which is $30 for the first year. To avoid it, she can withdraw the $500 plus its earnings by the due date of her return, including extensions, and report the earnings as income. The withdrawn amount and earnings go on line 14a and 14b, and the trustee reports the return of excess on Form 1099-SA with distribution code 2.

LineItemAmount (illustrative)Source of the number
1CoverageSelf-onlyYour plan records
2Your own contributions$2,300Your payment records; Form 5498-SA
3Annual limit$4,300IRS instructions (2025)
9Employer contributions$2,500W-2 box 12, code W
12Limit minus employer money$1,800$4,300 − $2,500
13Deductible amount$1,800Smaller of lines 2 and 12
ExcessContributions over the limit$500$2,300 + $2,500 − $4,300
Form 53296% excise tax if left in$30 per year$500 × 6%

Illustrative numbers. Not tax advice.

Scenario B: family coverage with room to spare

A couple has family HDHP coverage for all of 2025. His W-2 shows $3,000 in code W. She makes $4,000 of direct deposits into her own HSA. Both spouses are treated as having family coverage, and the family limit of $8,550 is shared. Total contributions are $7,000, which is $1,550 under the limit. The line 12 limit works out to $5,550 and the deduction is the full $4,000. No excess arises, but the couple must still split the limit properly if each has an HSA, since the IRS instructions allocate it equally unless you agree otherwise.

Scenario C: the last-month rule and the testing period

A person enrolls in a self-only HDHP on October 1, 2025 and is covered on December 1. Under the last-month rule, she is treated as eligible for the full year, so her limit is $4,300 rather than the $1,075 that three months would give (3 divided by 12 times $4,300). The extra $3,225 is allowed only if she remains eligible through the testing period, which Pub. 969 describes as running from December 1 through December 31 of the following year.

If she switches to a non-HDHP plan during the testing period, other than because of death or disability, the $3,225 is added to her income and a 10% additional tax applies, or $322.50. This goes on Part III of Form 8889 (line 18). The takeaway: contributing the full year’s amount for a partial year is not free money. Her coverage choices for the next year matter.

Scenario D: starting Medicare midyear

Medicare enrollment ends your ability to contribute. Your limit drops to zero starting with the first month you are enrolled. Suppose a 66-year-old with self-only coverage enrolls in Medicare Part A effective July 1, 2025. For six eligible months, her limit would be $4,300 times 6 divided by 12, or $2,150, plus a prorated catch-up of $1,000 times 6 divided by 12, or $500, for a total of $2,650. If Medicare coverage is later backdated, contributions made during the retroactive months are treated as excess, according to Pub. 969.

Scenario E: IRA-to-HSA funding distribution

Line 10 covers a qualified HSA funding distribution, a direct trustee-to-trustee transfer from a traditional or Roth IRA. The instructions say it is excluded from income, not deductible, and reduces your contribution limit. You get one per lifetime, it cannot come from an ongoing SEP or SIMPLE IRA, and a 12-month testing period applies. People often forget it shows up in box 2 of Form 5498-SA, so box 2 can exceed what you personally deposited.

ScenarioLine 2Line 9Line 12Line 13Result
A: single, over the limit$2,300$2,500$1,800$1,800$500 excess; 6% tax unless withdrawn
B: family, under the limit$4,000$3,000$5,550$4,000No excess
C: last-month ruleUp to $4,300variesvariesvaries$3,225 added to income plus 10% ($322.50) if eligibility ends in testing period
D: Medicare July 1Up to $2,650variesvariesvariesLimit prorated to six months
E: IRA funding distributionExcluded from line 2variesLimit reducedvariesNot deductible; excluded from income

Illustrative scenarios using 2025 limits from IRS instructions. Not personalized advice.

Scenario C and D numbers use the monthly method from the instructions. The actual line 3 worksheet has additional steps, so use it rather than this shortcut for your own return. If a payroll code W figure looks wrong, our guide to missing payroll and direct deposit problems explains how to start the conversation with an employer. If you also made the deposits from a bank, your checking account statements are the best evidence of dates and amounts.

Stacked bar of employer and personal HSA contributions against the $4,300 limit showing a $500 excess
Employer and personal money share one limit.

The reconciliation table: employer and direct contributions

This is the table to build before you open the tax software. List every source in a column, tie each to a document, and compare the total to your limit. If your total exceeds the limit, you have an excess to fix before the deadline.

StepQuestionWhere the number comes fromIf it does not tie
1What coverage did I have each month?Insurance cards, plan documents, HDHP statusUse the monthly worksheet; do not assume full year
2What did my employer contribute, including payroll deferrals?W-2 box 12, code WAsk payroll; do not add it to line 2
3What did I deposit myself?Bank statements; Form 5498-SACheck dates; a deposit after year-end may be for the prior year
4Did any come from an IRA?Form 5498-SA box 2; custodian statementLine 10 treatment applies
5What did the trustee report as total contributions?Form 5498-SA box 2 plus box 3Compare with steps 2 through 4
6What is my limit?IRS instructions and the line 3 chartAdjust for age 55, spouse, and Medicare
7Is the total over the limit?Add steps 2 through 4; subtract the limitPlan withdrawal of the excess and earnings

Original reconciliation worksheet; each step maps to a Form 8889 line. Checked against IRS instructions November 12, 2026.

ContributorAmount (illustrative)DocumentForm 8889 lineCounts toward limit
Employer match$1,000W-2 box 12, code WLine 9Yes
Payroll deferral (cafeteria plan)$1,500W-2 box 12, code WLine 9Yes
Direct deposit from bank$1,800Bank statement; 5498-SALine 2Yes
Deposit in 2026 for 2025$0 here5498-SA box 3Line 2 if designated for 2025Yes
Total$4,300Limit $4,300 self-only (2025)

Illustrative example of a person at exactly the self-only 2025 limit.

Part II: reconciling Form 1099-SA to your medical expenses

Part II answers one question: how much of what you took out was not spent on unreimbursed qualified medical expenses? Line 14a is the gross distribution from Form 1099-SA box 1. Line 14b subtracts rollovers and any excess contributions (plus earnings) you withdrew by the return due date. Line 15 enters the distributions used for qualified medical expenses that insurance or others did not reimburse and that you incurred after the HSA was established. The remainder is taxable.

Expenses can cover you, your spouse, your dependents and certain other qualifying persons. You cannot also claim the same expenses on Schedule A, so check your itemized deductions if you itemize. You generally do not send receipts with your return, but you should keep records that show each expense was qualified, unreimbursed, and incurred after the account was opened.

Scenario F: withdrawals above your expenses

Say your Form 1099-SA shows $3,200 in box 1 with code 1. Your records show $2,700 of unreimbursed qualified medical expenses paid in that year. Line 14a is $3,200, line 15 is $2,700, and the taxable amount is $500. If you are under 65, not disabled and the exception does not apply, a 20% additional tax applies to the $500, which is $100. At an assumed 22% ordinary tax rate, the $500 adds $110 of income tax. The total federal cost of the shortfall is about $210. State tax, if any, is extra.

Scenario G: a returned excess contribution mixed into box 1

Return to Scenario A, where $500 of excess was withdrawn along with $12 of illustrative earnings. Combined with $3,200 of ordinary distributions, box 1 shows $3,712, with $12 in box 2 and code 2 on the returned excess. Line 14a is $3,712. Line 14b is $512 (the excess plus earnings). That leaves $3,200 to compare with line 15. If the full $2,700 is unreimbursed qualified expenses, the taxable amount is $500, the same as Scenario F. The $12 of earnings is separate: report it as other income, as Pub. 969 describes.

StepScenario FScenario G
1099-SA box 1 (line 14a)$3,200$3,712
Less rollover or returned excess (line 14b)$0$512
Distributions to test (line 14c)$3,200$3,200
Unreimbursed qualified expenses (line 15)$2,700$2,700
Taxable amount$500$500
20% additional tax (if no exception)$100$100
Assumed 22% income tax$110$110
Extra income for earnings on excess$0$12 (box 2)

Illustrative numbers. The 22% bracket is an assumption, not a current rate quote.

Exceptions to the 20% additional tax

The 20% additional tax applies to taxable distributions unless an exception applies. The IRS instructions list death, disability and reaching age 65. Pub. 969 says the same. The exceptions do not remove ordinary income tax on a nonqualified distribution; they only remove the additional 20%.

Situation20% additional tax?Income tax on non-medical use?Where decided
Under 65, no disability, not for medical expensesYesYesFederal tax code and Form 8889 instructions
Age 65 or olderNoYes, if not for medical expensesSame
DisabledNoYes, if not for medical expensesSame
Account holder died; spouse is beneficiarySpouse treats HSA as ownDepends on useIRS instructions
Account holder died; other beneficiaryAccount ends; FMV reported by the beneficiary; 20% does not applyYes, with a reduction for medical expenses paid within a yearIRS instructions
Prohibited transaction or loan securityGenerally yesYesIRS instructions

Sources: IRS Instructions for Form 8889; IRS Publication 969. Checked November 12, 2026.

If your spouse or you are the beneficiary after a death, the rules differ by relationship. Our guide on bank accounts after death explains the general access problems, but HSAs have their own tax rules, so rely on the Form 8889 instructions for the tax result.

Interesting fact

If you filed on time without withdrawing an excess HSA contribution, the IRS still lets you withdraw it up to six months after the due date of your return (excluding extensions). You file an amended return and write “Filed pursuant to section 301.9100-2” at the top. That relief is spelled out in the Form 5329 instructions, not in the Form 8889 ones.

When the numbers do not match: troubleshooting

MismatchLikely causeHow to checkFix
5498-SA box 2 is higher than my depositsIncludes employer, payroll and IRA transfersAdd W-2 code W and any IRA transferUse the split on the correct lines
Total exceeds the limitEmployer money plus your own depositsComplete the reconciliation tableWithdraw excess plus earnings by the deadline
1099-SA box 1 is larger than I rememberIncludes returned excess, rollovers or direct provider paymentsCheck box 3 code and statementsSubtract on line 14b
Box 3 on 5498-SA shows an amountContributions made in the next year designated for this yearCompare datesInclude on line 2 if made by the deadline
Employer amount differs from the W-2W-2 includes payroll deferralsRequest a payroll summaryUse W-2 for line 9
Contribution after Medicare startLimit is zero from the first month enrolledCheck Medicare effective dateWithdraw the excess
Expense receipts are missingPoor record-keepingRequest explanation of benefits and provider statementsUse only expenses you can document

Illustrative troubleshooting based on IRS form instructions.

If a payment appears to have been deposited into the wrong account or in the wrong amount, our overview of money deposited by mistake explains how banks usually handle it. For HSA trustees, the Form 1099-SA instructions say a mistaken distribution can be repaid and excluded from income by the due date of the return for the year after you knew or should have known of the mistake.

Documents to keep and how long

DocumentWhy it mattersWhere to get itSuggested retention
W-2 (box 12 code W)Employer contributionsEmployer or payroll portalWith tax records
Form 5498-SATrustee’s contribution reportHSA custodianWith tax records
Form 1099-SADistributionsHSA custodianWith tax records
Receipts and explanation of benefitsProve qualified, unreimbursed expensesProvider and insurerAs long as the HSA funds could be used for them
Coverage documents and datesSupport limit and last-month ruleInsurer or employerThrough the testing period
Form 8889 and any Form 5329Your filed returnYour tax softwarePer your tax preparer

Retention periods are not set in the IRS pages cited here; ask your tax professional. Fees on your account can also matter, see our overview of bank account fees.

Waterfall of a $3,200 HSA withdrawal minus $2,700 of expenses leaving $500 taxable and $210 federal cost
Only the part not matched to qualified expenses is taxable.

A decision framework for a mismatch

  1. Total your contributions by source. Employer (code W), your deposits, IRA transfers.
  2. Compare to your limit. Adjust for coverage months, age 55, spouse allocation and Medicare.
  3. If over the limit, check the deadline. Withdrawing the excess plus earnings by the return due date (including extensions) avoids the 6% excise tax.
  4. Total your distributions. Start with 1099-SA box 1, then subtract rollovers and returned excess.
  5. Match distributions to unreimbursed qualified expenses. The gap is taxable and may carry the 20% additional tax.
  6. Check Part III. If you lost HDHP eligibility during a testing period, add the extra amounts back and compute the 10%.
OptionBest whenUpsideDownsideWhat to verify
Withdraw the excess before the due dateYou are over the limitAvoids the 6% excise taxEarnings taxed as income; paperwork with trusteeTrustee’s excess-removal form
Leave a small excess inNext year’s limit will absorb itAvoids paperwork6% tax for each year it remains (Form 5329)Next year’s eligibility
Amend a filed return to withdrawYou filed without correctingStill allowed up to six months after the due date (excluding extensions)Requires an amended return with the special statementForm 5329 instructions
Pay taxes on a nonqualified withdrawalYou had no qualified expensesCash in handIncome tax plus 20% if under 65Exceptions
Repay a mistaken distributionTrustee error or your mistakeExcluded from incomeDeadline tied to the following year’s returnTrustee’s process

Illustrative decision matrix; not individualized advice.

Decision path for an HSA mismatch: over the limit, deadline, withdraw excess, match distributions, check Part III
Work down the path before you file.

Questions to ask before you file

Ask this personQuestionWhy it matters
Payroll or HRDoes code W include my payroll deferrals and employer match?Determines line 9
Payroll or HRWere any amounts for a different year?The worksheet adjusts line 9
HSA trusteeDoes the 5498-SA split contributions made in the year from those made later for the year?Affects line 2 timing
HSA trusteeHow do I return an excess contribution and its earnings?Deadline tied to your return
HSA trusteeWill the 1099-SA show code 2 for the returned excess?Reporting accuracy
Insurer or planWas my plan an HDHP every month?Affects the limit
Tax preparerDo I have Medicare or a spouse’s coverage that changes my limit?Prorating and family rules
Tax preparerDo my receipts support unreimbursed qualified expenses?Line 15

Glossary of HSA reconciliation terms

TermPlain-English meaningWhy it mattersCommon confusion
HDHPHigh deductible health plan that meets IRS thresholdsYou must be covered to contributeNot every high deductible plan qualifies
Code WW-2 box 12 code for employer HSA contributionsFeeds line 9Includes payroll deferrals
Excess contributionAmount above your annual limit6% excise tax per year if left inEmployer money counts
Last-month ruleTreats you as eligible all year if eligible December 1Allows the full limitTriggers a testing period
Testing periodPeriod after using the last-month ruleLoss of eligibility adds income plus 10%Different from a calendar year
Qualified medical expensesUnreimbursed medical costs incurred after HSA openingMake a distribution tax-freeCannot also be on Schedule A
RolloverMove from one HSA to anotherReported on line 14bNot a contribution on line 2

Frequently asked questions

What is HSA form 8889 reconciliation?

It is the process of matching the numbers on your W-2, Form 5498-SA and Form 1099-SA to the lines on Form 8889 before you file. Part I reconciles contributions: your own deposits go on line 2, employer money from W-2 box 12 code W goes on line 9, and the combined total must stay within your annual limit. Part II reconciles distributions: Form 1099-SA box 1 goes on line 14a, and unreimbursed qualified medical expenses go on line 15. Any difference becomes taxable, and an unexplained excess can cost a 6% excise tax. Doing the match first prevents most of the notices people receive.

Where do employer contributions go on Form 8889?

Employer contributions go on line 9, using the amount in box 12 of your W-2 with code W. The Form 8889 instructions say line 2 excludes employer contributions, and that payroll contributions made through a cafeteria plan count as employer contributions. That means money you chose to have deducted from your paycheck is still treated as employer money for this form. If some of the W-2 amount relates to a different year, the instructions provide a worksheet to adjust line 9. Do not list the same dollars on both lines, because that would overstate your contributions and could produce a phantom excess.

How do I know if I over-contributed to my HSA?

Add your own contributions, employer contributions (code W), and any qualified HSA funding distribution from an IRA, then compare the total to your limit. For 2025 the limits are $4,300 for self-only and $8,550 for family coverage, plus $1,000 if you are 55 or older; for 2026 they are $4,400 and $8,750. Adjust for months of eligibility, a spouse’s coverage, and Medicare enrollment. If your total exceeds the limit, the excess is not deductible and is subject to a 6% excise tax each year it stays in the account. Form 5329 reports that tax if you do not withdraw it in time.

How do I remove an excess HSA contribution?

Ask your HSA trustee for its excess-removal process. You withdraw the excess plus the earnings on it by the due date of your return, including extensions, and you report the earnings as income. The excess and earnings appear on Form 1099-SA with code 2 and go on lines 14a and 14b of Form 8889. If you filed on time without withdrawing it, the Form 5329 instructions allow withdrawal up to six months after the due date, excluding extensions, using an amended return that has the statement “Filed pursuant to section 301.9100-2” at the top. Trustees differ in forms and cutoffs, so start early.

Why is my Form 5498-SA total different from what I deposited?

Box 2 of Form 5498-SA reports total contributions made during the calendar year. That includes your deposits, employer contributions, contributions for the prior year made in the calendar year, and qualified HSA funding distributions from an IRA. Box 3 reports contributions made in the following year for the calendar year. Rollovers appear in box 4 and are not counted in box 2. Because of these rules, the trustee’s total can be higher than your own deposits or can include amounts that belong to a different tax year. Reconcile it with your W-2 and bank statements.

What is the 20% additional tax on HSA withdrawals?

A 20% additional tax applies to the taxable part of a distribution, meaning the amount not used for unreimbursed qualified medical expenses, unless an exception applies. The exceptions in the IRS instructions are death, disability and reaching age 65. Even when an exception applies, the taxable amount is still included in ordinary income. For example, a $500 nonqualified withdrawal at age 40 would add $100 of additional tax plus ordinary income tax. At age 66, the $100 would not apply, but the $500 would still be taxable. Form 8889 line 17a and 17b report this.

Can I deduct HSA contributions made through my employer?

Employer contributions, including payroll deductions under a cafeteria plan, are excluded from your wages, so you do not deduct them on Form 8889. They count toward your annual limit and appear on line 9. The deductible amount on line 13 covers your own contributions made outside payroll, up to the smaller of line 2 or line 12. If you contributed both through payroll and directly, the combination must stay within your limit. A common pattern is someone who maxes out payroll deferrals and then makes an extra direct deposit, which creates an excess.

How does the last-month rule affect my return?

If you are an eligible individual on December 1, you are treated as eligible for the whole year, which can raise your limit beyond what the months you were covered would allow. The cost is the testing period, which runs from December 1 through December 31 of the following year in Pub. 969. If you lose eligibility during it, other than through death or disability, the extra contributions are added to your income and a 10% additional tax applies. That is reported in Part III. If you are not sure you will stay in an HDHP next year, contribute prorated amounts instead.

What happens to my HSA if I enroll in Medicare?

Your contribution limit drops to zero starting with the first month you are enrolled in Medicare. You can still spend the HSA on qualified medical expenses. If Medicare coverage is backdated, contributions you made for the retroactive months are treated as excess. If you are working past 65, ask your HR team how your enrollment date will be set, and prorate your contributions for the months before it. The account itself remains yours, and distributions for qualified medical expenses stay tax-free.

Do I need to keep receipts if I never file them?

Yes. Form 8889 line 15 is based on your own claim that distributions covered qualified, unreimbursed medical expenses incurred after the HSA was established. You do not send receipts with your return, but you need records that support the claim if the IRS asks. Keep explanation of benefits statements, provider bills, proof of payment, and notes showing you did not claim the same expense on Schedule A. Also keep the Form 1099-SA, Form 5498-SA, W-2 and the reconciliation table you built. The IRS pages cited here do not set a single retention period, so ask your tax preparer how long to keep them.

Your next step: list three numbers before you open your tax software: the W-2 code W amount, your own deposits for the tax year, and Form 1099-SA box 1. Compare the first two to your limit and the third to your documented unreimbursed medical expenses. Then request an excess-removal form from your trustee now if the contributions are over.

Bottom Line

HSA form 8889 reconciliation comes down to two tests. In Part I, your own deposits and your employer’s contributions together must stay within your annual limit, and the employer’s share comes from W-2 box 12, code W, on line 9. In Part II, the gross distribution on Form 1099-SA must be matched against unreimbursed qualified medical expenses, and whatever is left over is taxable and often carries a 20% additional tax.

Most mismatches trace to payroll deferrals counted as personal deposits, a deposit made after year-end, or a returned excess that sits inside box 1. Build the reconciliation table first, then fix any excess before the return due date, including extensions. Keep your receipts and your trustee forms with your return. If your facts include Medicare, a spouse’s coverage or an IRA transfer, have a tax professional review the limit before you file.

Sources

Facts checked November 12, 2026

About this article

By the Banktimer Editorial Team · Published

Banktimer is an independent U.S. consumer-finance publication. Our editors draw on primary and official sources first, such as the CFPB, FDIC, Federal Reserve, and FTC, along with statutes, regulations, and providers’ own agreements and fee schedules. Then we add worked examples and decision tools. Our goal is the most useful, best-supported explanation the sources available to us at the time of writing allow.

This article is general information, not legal, tax, investment, insurance, or financial advice, and reading it does not create a professional relationship with Banktimer. Rates, fees, limits, and rules change, and they vary by state, provider, and contract, so confirm current terms with your bank, lender, insurer, or the agency named in the article before you act. Examples are illustrative unless labeled otherwise. Banktimer is not a bank, lender, insurer, or financial advisor, and we are not responsible for decisions or losses that result from relying on this content. For advice about your own situation, talk to a licensed professional.

Related: Medicare Enrollment While Still Working: HSA and Employer Coverage Questions