A Health Savings Account gives you three separate federal tax breaks that stack on each other: your contributions are deductible, the money grows tax-free, and withdrawals for medical costs come out tax-free. Route those contributions through your employer’s payroll system and you pick up a fourth savings that direct contributors never see — a 7.65% break on Social Security and Medicare taxes. Understanding how the HSA tax benefits and payroll rules work together is what separates people who capture the full advantage from those who leave a few hundred dollars on the table every year.
The Three Federal Tax Breaks
Start with the deduction. Every dollar you put into an HSA reduces your taxable income, and this deduction is available whether you itemize or take the standard deduction, because it’s calculated before you reach that choice on your return.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans At a 22% federal bracket, a full $4,400 self-only contribution knocks $968 off what you owe.2Internal Revenue Service. Revenue Procedure 2025-19
Next, the money inside the account grows without triggering any annual tax. Interest, dividends, and capital gains are all shielded while they stay in the HSA.3Office of the Law Revision Counsel. 26 U.S.C. 223 – Health Savings Accounts You can rebalance investments freely inside the account without creating a taxable event the way you would in a regular brokerage.
Finally, withdrawals spent on qualified medical expenses are entirely tax-free.3Office of the Law Revision Counsel. 26 U.S.C. 223 – Health Savings Accounts Pull money out for something other than a medical cost before age 65 and you’ll owe income tax on the amount plus a 20% penalty. After 65, the penalty disappears; you pay ordinary income tax on non-medical withdrawals, much like a traditional IRA.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans The same penalty waiver applies at any age if you become disabled.
Why Payroll Contributions Beat Writing a Check
This is where most of the overlooked money sits. When your employer offers HSA contributions through a Section 125 cafeteria plan, you redirect part of your salary into the account before any taxes are calculated.4Office of the Law Revision Counsel. 26 U.S.C. 125 – Cafeteria Plans Because that money never counts as wages, it escapes federal income tax and both halves of FICA: Social Security at 6.2% and Medicare at 1.45%, for a combined 7.65%.5Internal Revenue Service. Topic No. 751 – Social Security and Medicare Withholding Rates
The FICA piece is the difference-maker. Contribute $4,400 on your own and you’ll still get the income tax deduction when you file, but you already paid $336.60 in FICA on that money and you don’t get it back. Send the same $4,400 through payroll and that $336.60 stays with you. Your employer saves its own matching 7.65%, which is part of why companies are willing to set these plans up.6Internal Revenue Service. FAQs for Government Entities Regarding Cafeteria Plans
No cafeteria plan at work? You can still contribute directly and take the income tax deduction on your return. You just miss the FICA savings. Self-employed contributors face the same limitation: the contribution is deductible for income tax but not exempt from self-employment tax.
2026 Contribution Limits
For 2026, the IRS caps HSA contributions at:
- $4,400 for self-only HDHP coverage
- $8,750 for family HDHP coverage
- An additional $1,000 catch-up if you’re 55 or older
Those limits apply to the combined total from every source — your payroll deferrals, any direct deposits you make, and anything your employer contributes on your behalf.2Internal Revenue Service. Revenue Procedure 2025-19
Who Can Actually Contribute
The tax breaks are only available if you’re enrolled in a qualifying high-deductible health plan. For 2026, that means a plan with a deductible of at least $1,700 for self-only coverage or $3,400 for family coverage, and out-of-pocket costs capped at $8,500 self-only or $17,000 family (deductibles and copays count toward that cap; premiums do not).2Internal Revenue Service. Revenue Procedure 2025-19
Three other things will disqualify you: having other health coverage that pays before you hit your deductible (a traditional secondary plan or a general-purpose FSA both count), being enrolled in any part of Medicare, or being claimed as a dependent on someone else’s return.3Office of the Law Revision Counsel. 26 U.S.C. 223 – Health Savings Accounts
The Medicare rule catches people. Once you enroll in Medicare Part A — which happens automatically for many people at 65 if they’re already drawing Social Security — you can’t contribute anymore. You can still spend existing HSA money tax-free on qualified expenses, including Medicare premiums for Parts A, B, C, and D, but not Medigap.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans If you want to keep contributing past 65, delaying Medicare is a conversation to have before your birthday, not after.
What You Can Spend It On Tax-Free
Qualified medical expenses follow the same broad definition used for the medical expense tax deduction: costs to diagnose, treat, or prevent disease, plus prescription drugs and certain medical equipment.3Office of the Law Revision Counsel. 26 U.S.C. 223 – Health Savings Accounts Doctor visits, hospital stays, lab work, dental, vision, mental health, and prescriptions all qualify. Since the CARES Act, over-the-counter medications and menstrual products qualify too, no prescription needed.7Internal Revenue Service. IRS Outlines Changes to Health Care Spending Available Under CARES Act
Health insurance premiums generally do not qualify. The statute carves out four exceptions: COBRA continuation coverage, premiums paid while you’re collecting unemployment, tax-qualified long-term care insurance, and Medicare premiums once you turn 65 (again, Medigap excluded).3Office of the Law Revision Counsel. 26 U.S.C. 223 – Health Savings Accounts
One habit worth building: you don’t have to spend HSA money in the same year you incur the expense. Pay out of pocket now, save the receipt, and reimburse yourself years later. The balance keeps growing tax-free in the meantime, and there’s no deadline for reimbursement as long as the expense was incurred after you opened the HSA.
The Traps: Excess Contributions and the Last-Month Rule
Contribute more than the annual limit and you’ll owe a 6% excise tax on the excess for every year it sits in the account.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans This happens more often than you’d expect: a mid-year job change where both employers contribute, a miscalculated last-month rule, or simply losing track of direct contributions alongside payroll deferrals. To avoid the tax, withdraw the excess plus any earnings on it before your filing deadline, including extensions. The earnings come out as taxable income in the year you withdraw them, but that beats paying 6% annually.
The last-month rule is the other place people get burned. Normally, if you become HSA-eligible partway through the year, your limit is prorated by month. The last-month rule lets you contribute the full annual amount if you’re eligible on December 1 — but only if you stay eligible through December 31 of the following year. Fail that testing period by switching to a non-HDHP or enrolling in Medicare, and the excess above the prorated amount is added back to your income and hit with a 10% additional tax.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans Death and disability are the only outs. Useful if your coverage is stable, risky if a job change might be coming.
A State Tax Caveat
Everything above is federal. Most states follow the federal rules and let you deduct HSA contributions from state income too. A handful do not. In those states, contributions are added back to your state taxable income, investment growth inside the account is taxed each year at the state level, and there’s no state deduction. If your state has no income tax, this doesn’t affect you. Otherwise, check your state’s conformity before assuming the full triple advantage carries over.
Tax Reporting and Records
When contributions go through payroll, your combined salary deferrals and employer contributions show up on your W-2 in Box 12 under Code W.8Internal Revenue Service. Form W-2 Reporting of Employer-Sponsored Health Coverage You carry that figure to Form 8889, which is required any year you contribute, take distributions, or fail the last-month rule testing period.9Internal Revenue Service. About Form 8889 – Health Savings Accounts Form 8889 is also where you claim the deduction for any contributions you made directly, outside of payroll. Withdrawals get reported to you on Form 1099-SA from your HSA custodian, and you match them against your qualified expenses on Form 8889.10Internal Revenue Service. Form 1099-SA – Distributions From an HSA, Archer MSA, or Medicare Advantage MSA Anything above your qualified expenses is taxable, and the 20% penalty applies if you’re under 65.
Records deserve a longer horizon than typical tax paperwork. The IRS generally asks for three years of records from the filing date, or two years from when you paid the tax, whichever is later.11Internal Revenue Service. How Long Should I Keep Records But because you can reimburse yourself from an HSA decades after the expense, you need to be able to prove the expense was legitimate whenever you eventually pull the money out. Keep medical receipts at least until you’ve withdrawn the corresponding amount. If the IRS questions a distribution, the burden is on you.1Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans