Yes, HSA contributions come out of your paycheck before taxes
Money you put into a Health Savings Account is deducted from your gross pay before federal income tax, Social Security tax, and Medicare tax are calculated. This means you pay less in taxes overall. If you contribute $3,000 to your HSA in a year, your taxable income drops by $3,000, which lowers the total tax you owe.
This pre-tax treatment applies whether you contribute through payroll deduction (the most common route) or deposit money yourself and claim the deduction on your tax return. The IRS treats HSA contributions the same way it treats traditional 401(k) contributions — the money goes in untaxed, and you only pay tax when you withdraw it for medical expenses.
The pre-tax feature is one of the main reasons HSAs are considered tax-advantaged accounts. Combined with tax-free growth and tax-free withdrawals for medical costs, the account can reduce your lifetime tax burden significantly if you use it strategically.
Key Takeaways
- HSA contributions reduce your taxable income in the year you make them, lowering your federal income tax, Social Security tax, and Medicare tax.
- Payroll deduction is the simplest way to contribute pre-tax; your employer deducts the money before calculating your taxes.
- You can also contribute after-tax dollars and deduct them on your tax return, though payroll deduction is more straightforward.
- The pre-tax contribution is only available if you are enrolled in a high-deductible health plan; other health plans do not allow HSA contributions.
How payroll deduction works
When you enroll in an HSA through your employer, you tell payroll how much to deduct from each paycheck. That amount comes out before taxes are withheld. Your employer then deposits it into your HSA account, usually held at a bank or investment company.
Payroll deduction is the easiest route because you do not have to file any paperwork with the IRS or keep receipts to prove the contribution. Your employer handles the tax treatment automatically. You will see the HSA contribution listed separately on your pay stub, and it will not appear in the "gross income" box on your W-2 form at the end of the year.
The downside is that you can only contribute during your employer's open enrollment period, usually once a year. If you miss that window, you cannot start contributing until the next enrollment period — unless you have a may have access to life event like losing other health coverage or getting married.
Contributing after you receive your paycheck
If your employer does not offer an HSA or you want to contribute more than your payroll deduction allows, you can deposit money into your HSA after taxes have already been taken out. You then deduct that contribution on your federal tax return (Form 1040, Schedule 1) when you file.
This method requires you to keep records of your contribution and file the deduction yourself. You will need to report the contribution on your tax return, and the IRS will reduce your taxable income by that amount. The tax savings are the same as with payroll deduction — you pay less tax overall — but you have to do the paperwork yourself.
You can make after-tax contributions at any time during the year, up to the annual limit set by the IRS. This gives you more flexibility than payroll deduction if you want to add money mid-year or if you change jobs.
Annual contribution limits and who can contribute
The IRS sets a maximum amount you can contribute to an HSA each year. For 2024, the limit is $4,150 for individual coverage and $8,300 for family coverage. These limits change each year, and your HSA provider will notify you of the new limits when they take effect.
You can only contribute to an HSA if you are enrolled in a high-deductible health plan (HDHP) and have no other health coverage that would disqualify you. Medicare enrollment, Medicaid, TRICARE, or Veterans Affairs coverage generally prevents you from contributing. If you lose HDHP coverage partway through the year, you can only contribute a pro-rated amount for the months you were covered.
If you contribute more than the annual limit, the IRS charges a 6 percent excise tax on the overage each year it remains in the account. You can withdraw the excess and avoid the tax, but you need to act quickly — the deadline is usually your tax filing deadline for that year.
Tax-free growth and withdrawals
The pre-tax contribution is just the first tax advantage. Money in your HSA can be invested in stocks, bonds, or mutual funds, and any growth is not taxed. If you contribute $3,000 and it grows to $5,000, you do not owe tax on that $2,000 gain.
When you withdraw money to pay for a may have access to medical expense — such as copays, deductibles, prescriptions, dental work, or vision care — that withdrawal is also tax-free. This triple tax advantage (pre-tax in, tax-free growth, tax-free out) makes HSAs more powerful than regular savings accounts or taxable investment accounts.
If you withdraw money for something other than a may have access to medical expense before age 65, you owe income tax on the withdrawal plus a 20 percent penalty. After age 65, the penalty goes away, but you still owe income tax on non-medical withdrawals — the account functions like a traditional IRA at that point.
How pre-tax HSA contributions affect your taxes
Lowering your taxable income through HSA contributions can move you into a lower tax bracket, reduce the tax you owe, or increase a tax refund. The exact savings depend on your tax bracket. If you are in the 22 percent federal tax bracket and contribute $3,000, you save roughly $660 in federal tax alone. Add state income tax (if your state has it) and payroll taxes, and the savings grow.
HSA contributions also reduce the income used to calculate certain tax credits and deductions. For example, if your income is just above the threshold for a credit you want to claim, an HSA contribution might lower your income enough to make you may be able to access. This can create additional tax savings beyond the direct reduction in taxable income.
Your HSA provider will send you a Form 5498-SA at the end of the year showing how much you contributed. If you contributed through payroll, this form is for your records only — the contribution is already reflected on your W-2. If you made after-tax contributions, you will need this form to support the deduction you claim on your tax return.
Frequently Asked Questions
Can I contribute to an HSA if I am on Medicare?
No. Once you enroll in Medicare, you are no longer may be able to access to contribute to an HSA, even if you also have an HDHP. You can continue to withdraw money from an existing HSA for medical expenses without penalty, but new contributions are not allowed. If you have not yet enrolled in Medicare and are still working, you may be able to delay enrollment and keep contributing, but this requires careful planning.
What happens if my employer does not offer an HSA?
You can open an HSA on your own through a bank or investment company, as long as you are enrolled in an HDHP. You will contribute after-tax dollars and deduct the contribution on your tax return. The tax savings are the same, but you handle the paperwork yourself and cannot use payroll deduction.
Do HSA contributions reduce my Social Security benefits?
No. HSA contributions reduce your income for federal income tax purposes, but they do not affect the income used to calculate Social Security benefits. However, they do reduce the wages subject to Social Security tax in the year you contribute, which slightly lowers your future Social Security benefit — the reduction is usually minimal.
Can I deduct HSA contributions twice — once through payroll and once on my tax return?
No. If you contribute through payroll deduction, you cannot also deduct the same contribution on your tax return. The IRS will penalize you for the duplicate deduction. Keep track of your payroll contributions and only deduct after-tax contributions you made outside of payroll.
What if I change jobs mid-year?
Your HSA stays with you and belongs to you, not your employer. If you contributed through your old employer's payroll, that money is already in your account. You can continue contributing through your new employer's payroll if they offer an HSA, or you can make after-tax contributions on your own. The annual limit applies across all contributions in a single year, regardless of how many employers you had.