An S corporation can fund a Health Savings Account for a more-than-2% shareholder, but the tax treatment is not the pre-tax exclusion regular employees enjoy. The contribution is added to the shareholder’s Box 1 wages on Form W-2, reported with Code W in Box 12, and (when paid under a plan covering a class of employees) kept out of Social Security and Medicare wages in Boxes 3 and 5. The shareholder then takes an above-the-line deduction on Form 8889 and Schedule 1. For 2026, the annual HSA cap is $4,400 for self-only HDHP coverage and $8,750 for family coverage, with an extra $1,000 catch-up at age 55 or older.1Internal Revenue Service. Rev. Proc. 2025-19
Who Counts as a 2% Shareholder
A 2% shareholder is anyone who owns more than 2% of the S corporation’s outstanding stock or more than 2% of its voting power on any day of the tax year. For fringe benefit purposes, the IRS treats these shareholders like partners in a partnership rather than employees.2Internal Revenue Service. S Corporation Compensation and Medical Insurance Issues
You can cross the threshold without holding a single share yourself. Family attribution rules under IRC Section 318 treat you as owning stock held by your spouse (unless legally separated under a divorce or separation decree), your children, grandchildren, and parents.3Office of the Law Revision Counsel. 26 USC 318 Constructive Ownership of Stock If your spouse owns 51% and you own nothing, you are still a more-than-2% shareholder for HSA purposes. This catches people off guard when one spouse works in the business and the other holds the equity.
How the Contribution Is Taxed and Reported
When the S corporation contributes to a regular employee’s HSA, that money is excluded from income entirely. A 2% shareholder does not get that exclusion. The contribution has to be added to the shareholder’s wages for income tax purposes and placed in Box 1 of the W-2.
The FICA treatment is different from the income tax treatment. If the S corporation makes the contribution under a plan or system covering a class of employees, the amount is not subject to Social Security or Medicare tax, so it should be left out of Box 3 and Box 5. The company also reports the amount with Code W in Box 12.2Internal Revenue Service. S Corporation Compensation and Medical Insurance Issues4Internal Revenue Service. 2026 General Instructions for Forms W-2 and W-3
Miscoding this in payroll is the most common S-corp HSA mistake. Systems that treat the amount as ordinary wages will push it into Boxes 3 and 5 and withhold FICA from both the shareholder and the company. Set the payroll code correctly from the start.
The S corporation can pay the HSA trustee directly or reimburse the shareholder for a personal contribution. The tax treatment is the same either way: the amount lands in Box 1 wages.5Internal Revenue Service. IRS Notice 2008-1 If the S corporation fails to include the contribution on the W-2 in the year it is made, the shareholder loses the ability to deduct it on the personal return.
No Cafeteria Plan Contributions
A 2% shareholder cannot participate in the company’s Section 125 cafeteria plan for health benefits. Because the tax code treats these shareholders as self-employed for fringe benefit purposes, they are excluded from cafeteria plans. There is no pre-tax payroll deferral option. The W-2 inclusion followed by a personal deduction is the only route to the tax benefit.
Claiming the Deduction on Your Personal Return
After the amount hits your W-2 wages, you recover the tax on your Form 1040. Report the contribution on Form 8889 to compute the allowable deduction.6Internal Revenue Service. Instructions for Form 8889 (2025) The deduction flows to Line 13 of Schedule 1, reducing adjusted gross income.7Internal Revenue Service. 2025 Schedule 1 (Form 1040) – Additional Income and Adjustments to Income
This is an above-the-line deduction, so it applies whether or not you itemize. The net result mirrors how a self-employed person handles an HSA: the contribution is included in income on one line and deducted on another. It is a wash for income tax, and because the amount was properly kept out of FICA wages, you avoid payroll tax on it as well.
HSA Eligibility You Have to Meet First
None of the S-corp mechanics matter unless you are HSA-eligible in the first place. You have to be covered by a High Deductible Health Plan meeting the 2026 thresholds: an annual deductible of at least $1,700 for self-only or $3,400 for family coverage, with an out-of-pocket maximum no higher than $8,500 self-only or $17,000 family.1Internal Revenue Service. Rev. Proc. 2025-19
Beyond the HDHP, three things will disqualify you:
- Other disqualifying health coverage, including a general-purpose FSA or HRA that pays medical expenses below the HDHP deductible. Limited-purpose FSAs (dental and vision only) and post-deductible HRAs are exceptions that preserve eligibility.
- Medicare enrollment. Your contribution limit drops to zero starting the first month of enrollment, including any retroactive months.
- Being claimed as a dependent on someone else’s return, or being eligible to be claimed even if they don’t.8Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
Contribution Deadlines and the Last-Month Rule
The S corporation can make HSA contributions for the prior tax year up to the tax filing deadline. Contributions between January 1 and April 15, 2026, can be allocated to 2025 if the corporation notifies both the shareholder and the HSA trustee that the contribution is for the prior year.8Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
If you weren’t HSA-eligible for the whole year, your limit is normally prorated by month. The last-month rule offers an exception: if you are eligible on December 1, you can contribute the full annual amount as if you had been eligible all year. The catch is a 13-month testing period. You have to stay HSA-eligible from December 1 of the contribution year through December 31 of the following year. Drop HDHP coverage or enroll in Medicare inside that window, and the excess is added back to income and hit with an additional 10% tax.8Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
Excess Contributions
The annual limit is a cumulative cap across every source. If the S corporation contributes $4,400 to your self-only HSA and you also make a personal contribution, you have exceeded the limit. Excess contributions carry a 6% excise tax for every year they remain in the account, calculated on Form 5329. To avoid the tax, withdraw the excess plus any attributable earnings by your tax filing deadline including extensions. Once pulled out in time, the excess is treated as if it had never been contributed.8Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
The tracking risk is real for S-corp owners. Payroll and the shareholder need to coordinate so combined contributions don’t cross the annual limit.
State Income Tax
Most states with an income tax follow the federal treatment and allow a deduction for HSA contributions. California and New Jersey are the exceptions. Neither allows a state-level deduction, and both tax the investment earnings inside the account. If you live or work in either state, your S-corp HSA contribution reduces your federal tax bill but not your state one, and you have to report HSA interest and dividends as state taxable income each year.