Filing your taxes with a Health Savings Account means you'll encounter Form 8889—the IRS form that reports your HSA contributions and distributions. Whether you contributed through payroll deductions, made personal contributions, or withdrew money for medical expenses, Form 8889 is mandatory. Most tax guides skim over the details, but this form contains three distinct parts that work together to calculate your HSA deduction, report distributions, and determine any additional taxes owed. Understanding each line, especially the often-overlooked Part III, ensures you claim every dollar you're entitled to while staying fully compliant.
2025 Tax Year HSA Numbers
- Self-only coverage limit: $4,300; Family coverage limit: $8,550
- Catch-up contribution (age 55+): additional $1,000
- Excess contribution penalty: 6% excise tax per year (Form 5329)
- Non-qualified distribution penalty (under 65): 20% additional tax
- Filing deadline: April 15, 2026 for 2025 tax year contributions
What Is Form 8889 and Who Must File It
Form 8889, Health Savings Accounts (HSAs), is the IRS form used to report HSA contributions (including employer contributions), figure your HSA deduction, report distributions from HSAs, and calculate amounts you must include in income and additional tax you may owe if you fail to be an eligible individual.
You must file Form 8889 if any of the following applies: you, your employer, or someone else made contributions to your HSA; your HSA made a distribution; you failed to be an "eligible individual" during a "testing period" and must recognize income; or you acquired an interest in an HSA because of the death of the account beneficiary.
Important
Critical filing requirement: If you (or your spouse, if filing jointly) received HSA distributions in 2025, you must file Form 8889 with Form 1040, Form 1040-SR, or Form 1040-NR, even if you have no taxable income or any other reason for filing.
Form 8889 must be attached to Form 1040, 1040-SR, or 1040-NR. The form consists of three parts: Part I (HSA Contributions and Deduction), Part II (HSA Distributions), and Part III (Income and Additional Tax for Failure To Maintain HDHP Coverage).
Documents You Need Before You Start
Before you begin filling out Form 8889, gather these essential tax documents:
Form W-2 from your employer: Box 12 with code "W" shows your employer HSA contributions made through payroll. These pre-tax contributions are already excluded from your gross income.
Form 1099-SA: Reports distributions from an HSA. Your HSA custodian sends this if you had any distributions during 2025. If you had distributions, you'll receive Form 1099-SA showing the amounts in Box 1, which you'll enter on Form 8889.
Form 5498-SA: Reports contributions to an HSA and the fair market value of an HSA at the end of the tax year; this form is for informational purposes only. You must receive this statement by May 31 of the subsequent year because contributions can be made until the tax filing deadline.
Pro Tip
Form 5498-SA arrives late: Form 5498-SA is typically delivered the month after the tax filing deadline, allowing any contributions made in the current year for the prior year to be included. If you make additional HSA contributions for the prior year after the 5498-SA is issued, you'll get an updated 5498-SA.
Your HSA account statements: Keep records of all contributions you made directly (not through payroll) and all distributions you took for qualified medical expenses.
Receipts for qualified medical expenses: While not submitted with your return, you must keep track of your expenses and maintain records to verify that funds were used for qualified medical expenses.
Part I: HSA Contributions — Line-by-Line Walkthrough
Part I calculates your allowable HSA deduction based on your coverage type, contribution amounts, and eligibility months. Let's walk through each line with a real example.
Example scenario: Sarah, age 40, had self-only HDHP coverage for all 12 months of 2025. She contributed $2,000 through payroll deductions (shown on her W-2 box 12, code W as $2,000). She also made a $1,500 personal contribution directly to her HSA in March 2025. Her employer contributed $800.
Line 1: Coverage Type
Check the box to indicate your coverage under a high-deductible health plan (HDHP) during 2025.
If you were covered by a self-only HDHP and a family HDHP at different times during the year, check the box for the plan that was in effect for a longer period. If you were covered by both at the same time, you are treated as having family coverage during that period. If, on the first day of the last month of your tax year (December 1 for most taxpayers), you had family coverage, check the "family" box.
Sarah's entry: Checks "Self-only"
Line 2: HSA Contributions
Include on line 2 only those amounts you, or others on your behalf, contributed to your HSA for 2025. Include contributions made by:
- You (including payroll deductions)
- Your employer (from W-2 box 12, code W)
- Family members or anyone else on your behalf
Sarah's entry: $2,000 (payroll) + $1,500 (direct) + $800 (employer) = $4,300
Lines 3-8: Contribution Limit Calculation
Line 3 calculates your HSA contribution limit. The maximum amount that can be contributed to your HSA depends on the type of HDHP coverage you have. If you have self-only coverage, your maximum contribution is $4,300. If you have family coverage, your maximum contribution is $8,550.
If you weren't eligible for all 12 months, you'll use the Line 3 Limitation Chart and Worksheet in the IRS instructions to calculate a prorated amount.
Sarah's calculation:
- Line 3: $4,300 (self-only, 12 months eligible)
- Line 4: -0- (no Archer MSA contributions)
- Line 5: $4,300
- Line 6: $4,300
- Line 7: -0- (under age 55, no catch-up)
- Line 8: $4,300 (her contribution limit)
Good to Know
Age 55+ catch-up contribution: If you are age 55 or older at the end of your tax year, you can make an additional contribution of $1,000. This increases your limit to $5,300 for self-only or $9,550 for family coverage.
Lines 9-13: Deduction Calculation
Line 9: Include any contributions your employer made for the tax year. These contributions should be indicated on your Form W-2, Box 12, with Code 'W'.
Sarah's calculation:
- Line 9: $800 (employer contributions from W-2)
- Line 10: -0- (no qualified HSA funding distribution from IRA)
- Line 11: $800
- Line 12: $4,300 - $800 = $3,500 (amount she can still deduct)
- Line 13: $3,500 (HSA deduction)
Line 13 shows the smaller of line 2 or line 12 and enters on Schedule 1 (Form 1040), line 13. This is Sarah's HSA deduction - it reduces her adjusted gross income.
Important
Excess contributions trigger penalties: If the amount on line 2 is more than the amount on line 13, you, your employer, or someone else contributed more to your HSA than is allowable and you may have to pay an additional tax on the excess contributions. See Form 5329 to figure the additional tax.
Calculate your exact contribution limit
Married Couples Filing Jointly
If married filing jointly and both you and your spouse have HSAs, complete a separate Form 8889 for each of you. Combine the amounts on line 13 of both Forms 8889 and enter this amount on Schedule 1 (Form 1040), line 13. Be sure to attach both Forms 8889 to your paper tax return.
Part II: HSA Distributions — Reporting What You Took Out
Part II reports all money that came out of your HSA during 2025 and determines whether any portion is taxable. This is where many filers make mistakes—assuming all medical expenses automatically qualify.
Let's continue with our example and add distribution activity:
Example continued: Sarah took $1,800 in distributions during 2025: $1,200 for prescription medications, $400 for dental work, and $200 for gym membership fees (not qualified).
Line 14a: Total Distributions
Enter the total distributions your HSAs made in 2025. These amounts should be shown on Form 1099-SA, box 1.
Sarah's entry: $1,800 (from Form 1099-SA, Box 1)
Line 14b: Rollovers and Returns of Excess
Include on line 14b any distributions your HSA made in 2025 that qualified as a rollover contribution to another HSA. Also include any excess contributions (and the earnings on those excess contributions) included on line 14a that were withdrawn by the due date, including extensions, of your return.
Sarah's entry: -0-
Line 14c: Subtract line 14b from 14a
Sarah's entry: $1,800 - $0 = $1,800
Line 15: Qualified Medical Expenses
Only include on line 15 distributions from your HSA that were used to pay for qualified medical expenses not reimbursed by insurance or other coverage and that you incurred after the HSA was established.
This is critical: the IRS doesn't automatically know whether your distributions were for qualified expenses. You determine this amount based on your receipts and records.
Sarah's qualified expenses: $1,200 (prescriptions) + $400 (dental) = $1,600 The $200 for gym membership is not a qualified medical expense.
Sarah's entry on line 15: $1,600
Check if your expense qualifies for tax-free HSA withdrawal
Line 16: Taxable HSA Distributions
Subtract line 15 from line 14c. If zero or less, enter -0-. Also, include this amount in the total on Schedule 1 (Form 1040), Part I, line 8f.
Sarah's calculation: $1,800 - $1,600 = $200
This $200 will be included in her gross income and reported on Schedule 1, line 8f.
Lines 17a-17b: Additional 20% Tax
If any of the distributions included on line 16 meet any of the Exceptions to the Additional 20% Tax, check here. Additional 20% tax: Enter 20% (0.20) of the distributions included on line 16 that are subject to the additional 20% tax.
There is no additional tax on distributions made after the date you are disabled, reach age 65, or die.
Sarah's calculation: Since Sarah is 40 (under 65), not disabled, and alive, no exception applies. Line 17b: $200 × 0.20 = $40 (reported on Schedule 2, Form 1040)
Important
The 20% penalty hurts: If you're younger than 65, you'll pay an additional 20% tax penalty to the IRS on top of regular income tax. Sarah will pay $40 in penalty plus regular income tax on the $200, potentially costing her another $44 (at 22% tax bracket) for a total tax hit of $84 on a $200 gym membership.
Part III: Income and Additional Tax for Failure to Maintain HDHP Coverage
Part III is used to figure any additional income and adjustments to income that must be reported on Schedule 1 (Form 1040) and additional taxes that must be reported on Schedule 2 (Form 1040) for failure to be an eligible individual during the testing period for: last-month rule or a qualified HSA funding distribution.
Most filers can skip Part III entirely. You only complete this section if:
- You used the last-month rule to make a full-year contribution but didn't remain eligible for the entire testing period, or
- You made a qualified HSA funding distribution from an IRA to your HSA but didn't remain eligible during the testing period.
Understanding the Last-Month Rule
You may consider yourself an "eligible individual" for the entire year if you are an eligible individual on the 1st day of the last month of the tax year (December 1, for most individuals). This allows you to contribute the full annual limit even if you weren't eligible for all 12 months.
The testing period begins with the last month of your tax year and ends on the last day of the 12th month following that month (for example, December 1, 2025 - December 31, 2026). If you fail to remain an eligible individual during this period, other than because of death or becoming disabled, you will have to include in income the total contributions made that would not have been made except for the last-month rule.
Part III Example
Example: David, age 50, became HSA-eligible on December 1, 2025, when he enrolled in an HDHP (self-only coverage). Using the last-month rule, he contributed the full $4,300 limit in December 2025. However, in June 2026, he switched to a non-HDHP plan.
Because David didn't remain eligible through December 31, 2026 (the end of his testing period), he must complete Part III on his 2026 tax return (filed in 2027).
David's 2026 Form 8889, Part III:
- Line 18: Calculate the amount that would have been allowed without the last-month rule (1 month ÷ 12 = $358). The excess is $4,300 - $358 = $3,942
- Line 19: -0- (no qualified HSA funding distribution)
- Line 20: $3,942 (included in income on Schedule 1, line 8f)
- Line 21: $3,942 × 0.10 = $394 (10% additional tax on Schedule 2)
Important
Testing period failures are costly: If you fail the testing period, the ineligible amount is included in your gross income, and a 10% additional tax applies to this amount.
How Form 8889 Connects to Schedule 1 and Form 1040
Understanding how Form 8889 flows into your main tax return helps you see the complete picture.
Schedule 1 (Form 1040) Connection
Form 8889 connects to Schedule 1 in multiple places:
Part II, Line 13 (Adjustments to Income): Your HSA deduction from Form 8889, line 13, goes here. This is an "above-the-line" deduction that reduces your adjusted gross income - you get this benefit even if you take the standard deduction.
Part I, Line 8f (Additional Income): Taxable HSA distributions from Form 8889, line 16 and income from Part III, line 20, both get reported here as additional income.
Schedule 2 (Form 1040) Connection
Additional taxes from Form 8889 go to Schedule 2, Part II, line 17d. This includes:
- The 20% penalty on non-qualified distributions (line 17b)
- The 10% penalty for testing period failures (line 21)
Form 5329 for Excess Contributions
Code section 4973 imposes a 6% tax on excess contributions to an HSA. See Code section 4973 and Form 5329.
If you contributed more than your limit and didn't withdraw the excess by your tax filing deadline, you'll also file Form 5329, Part VII, to calculate the 6% excise tax.
Good to Know
The complete filing package: A typical HSA owner filing their 2025 taxes will submit: Form 1040, Schedule 1 (with HSA deduction), Form 8889, and possibly Schedule 2 (if penalties apply) and Form 5329 (if excess contributions remain).
For more on understanding your W-2 HSA reporting, see our guide on W-2 Box 12 Code W Explained.
Common Filing Scenarios With Worked Examples
Scenario 1: Mid-Year Job Change With Two Employers
Facts: Jason had family HDHP coverage all year. Employer A contributed $2,000 (January–June). Employer B contributed $2,500 (July–December). Jason contributed $1,000 directly. He's 48 years old.
Form 8889 calculation:
- Line 1: Family ✓
- Line 2: $2,000 + $2,500 + $1,000 = $5,500
- Line 8: $8,550 (family limit)
- Line 9: $4,500 (total employer contributions from both W-2s)
- Line 13: $1,000 (his deduction—employer contributions already excluded from income)
Result: Jason gets a $1,000 HSA deduction on Schedule 1. No excess contributions.
Scenario 2: Over-Contribution Corrected Before Filing
Facts: Maria, 30, self-only coverage, contributed $5,000 but the limit was $4,300. On March 1, 2026, she withdrew the $700 excess plus $15 in earnings before filing her return on April 10, 2026.
Form 8889 calculation:
- Line 2: $5,000 (total contributions made)
- Line 14a: $715 (excess + earnings withdrawn)
- Line 14b: $715 (returned excess contributions)
- Line 13: $4,300 (full deduction allowed)
Result: No penalty because she corrected before filing. The $15 in earnings is taxable income (reported on Schedule 1, line 8f) but no 20% penalty applies to properly withdrawn excess contributions.
Pro Tip
Correcting excess contributions: You can withdraw some or all of your excess contributions for 2025 and they will be treated as if they had not been contributed if you make the withdrawal by the due date, including extensions. If you timely filed your return without withdrawing the excess contributions, you can still make the withdrawal no later than 6 months after the due date of your tax return, excluding extensions, by filing an amended return with "Filed pursuant to section 301.9100-2" written at the top.
Scenario 3: Medicare Enrollment Mid-Year
Facts: Patricia turned 65 in July 2025 and enrolled in Medicare effective August 1, 2025. She had self-only HDHP coverage through July. She contributed $4,300 in January (before knowing the rules).
Prorated contribution limit: She was eligible for 7 months (January-July). Her contribution limit is $2,650 ($5,300 x 7 / 12) (including the $1,000 catch-up for age 55+).
Form 8889 calculation:
- Line 2: $4,300
- Line 8: $2,650 (prorated limit)
- Line 13: $2,650 (allowable deduction)
- Excess contribution: $4,300 - $2,650 = $1,650
Result: Patricia needs to file Form 5329 to report the $1,650 excess and pay a 6% excise tax ($99) unless she withdraws it. You cannot deduct any contributions for any month in which you were enrolled in Medicare.
Scenario 4: Taking Distributions Without Receipts
Facts: Kevin took $3,200 in HSA distributions in 2025. He has receipts for $2,800 in qualified expenses but lost the documentation for $400.
Risk: Without documentation, Kevin cannot prove the $400 was for qualified expenses. If audited, the IRS will treat it as taxable.
Conservative filing approach:
- Line 15: $2,800 (only documented qualified expenses)
- Line 16: $400 (treated as taxable distribution)
- Line 17b: $80 (20% penalty on $400)
Tax cost: $400 taxable income + $80 penalty = potentially $168 total tax hit (assuming 22% tax bracket).
Important
Documentation is everything: It's up to you to keep track of your expenses and report any funds you use for nonqualified medical expenses. It's up to you to maintain records to verify that funds were used for qualified medical expenses. The IRS can audit your HSA distributions for up to three years after filing.
For a complete pre-filing checklist, see our HSA Tax Filing Checklist.
Frequently Asked Questions
Q: Do I need to file Form 8889 if I only contributed through my employer and never took any distributions?
Yes, if contributions were made. You must file Form 8889 if you, your employer, or someone else made contributions to your HSA. Even though payroll contributions are already excluded from your taxable income on your W-2, you still need to file Form 8889 to document your HSA activity properly.
Q: What happens if I accidentally used my HSA card for a non-qualified expense?
Funds used for nonqualified expenses will be taxed as income and subject to a 20% penalty. If you mistakenly use your HSA for a nonqualified expense, you can return the funds to your HSA to avoid the penalty. Your HSA custodian must receive the correction by the tax filing deadline.
Q: Can I file Form 8889 electronically?
Yes. Form 8889 is included in all major tax software packages (TurboTax, H&R Block, FreeTaxUSA, etc.) and is filed electronically with your Form 1040. If filing by paper, attach Form 8889 behind Schedule 1.
Q: How long does the 6% excise tax on excess contributions continue?
The excise tax applies to each tax year the excess contribution remains in the account. This means the 6% excise tax applies annually until the excess contributions are withdrawn from the account. You'll pay 6% every year until you either withdraw the excess or have a year where you under-contribute enough to absorb it.
Q: What if my spouse and I both have HSAs and family coverage?
If you and your spouse are both eligible individuals and either of you has an HDHP with family coverage, you both are treated as having only the family coverage plan. Disregard any plans with self-only coverage. Complete a separate Form 8889 for each spouse. Combine the amounts on line 13 of both Forms 8889 and enter this amount on Schedule 1 (Form 1040), line 13. Be sure to attach both Forms 8889 to your paper tax return. You can split the family contribution limit ($8,550) between you in any way you both agree to.
Next Steps: Action Checklist
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.