No. Federal law under Internal Revenue Code Section 223 does not permit direct rollovers from a Health Savings Account to a 401k plan. HSA funds can only move to another HSA, while 401k funds cannot transfer into an HSA except through a specific two-step process involving an Individual Retirement Account. The IRS treats these accounts as distinct entities with separate tax purposes and rollover restrictions.
The specific problem arises from IRC Section 223(f)(5), which restricts HSA rollovers to other HSAs only. Attempting to move HSA money directly into a 401k results in a taxable distribution subject to income tax plus a 20 percent penalty if the account holder is under age 65. According to Fidelity’s HSA research, more than 30 percent of workers mistakenly believe they can freely move retirement funds between any tax-advantaged accounts, creating costly tax mistakes.
What you will learn:
💰 The exact tax penalties you face when trying to move HSA funds to a 401k and how these costs compound annually
🔄 The only legal workaround to move retirement funds from a 401k into an HSA through a two-step IRA transfer process
📋 Three common scenarios where people lose thousands in taxes by misunderstanding rollover restrictions and how to avoid them
⚖️ Federal vs. state tax treatment differences that affect your HSA strategy in California and New Jersey specifically
🎯 Alternative strategies that achieve similar goals without triggering IRS penalties or losing tax advantages
Why Federal Law Prohibits HSA to 401k Rollovers
Congress established HSAs under the Medicare Prescription Drug Improvement and Modernization Act of 2003 specifically for qualified medical expenses. The law designates HSAs as tax-exempt trusts exclusively for healthcare costs. The Internal Revenue Code treats 401k plans as qualified retirement plans under Section 401(a), which creates a legal barrier between these account types.
IRC Section 223(f)(5) explicitly states that HSA rollovers may occur only between HSAs. The statute makes no provision for transfers to other retirement vehicles. This restriction exists because HSAs offer triple tax advantages that Congress intended solely for medical expenses, while 401k plans provide different tax benefits designed for general retirement income.
The consequence of attempting a prohibited transfer is severe. Any HSA distribution not going to another HSA becomes a taxable event. The IRS considers the full amount as gross income for that tax year.
If the account holder is under 65, the distribution triggers an additional 20 percent penalty tax on top of ordinary income tax. For someone in the 24 percent federal tax bracket, this creates an effective 44 percent tax hit on the withdrawn amount.
Federal Restrictions on 401k to HSA Transfers
The reverse scenario creates equal problems. Federal law prohibits direct rollovers from 401k plans to HSAs. The IRS does not recognize 401k accounts as eligible funding sources for HSA contributions under any circumstance.
The Employee Retirement Income Security Act governs 401k plans as qualified retirement plans. ERISA mandates specific distribution rules that conflict with HSA contribution requirements. These federal statutes operate in separate legal frameworks with no overlap provisions.
Anyone who withdraws money from a 401k intending to deposit it into an HSA faces immediate taxation. The 401k distribution counts as ordinary income regardless of the intended destination. Workers under age 55 who separate from service, or under 59.5 in other circumstances, face an additional 10 percent early withdrawal penalty.
The HSA contribution happens separately from the 401k withdrawal. Even if someone deposits the money into an HSA the same day, the IRS treats these as two distinct transactions. The 401k withdrawal remains fully taxable, and the HSA contribution only provides a deduction up to the annual contribution limit.
| Action | Tax Consequence |
|---|---|
| Withdraw $10,000 from 401k at age 45 | Income tax $2,200 + penalty $1,000 = $3,200 total |
| Contribute to HSA (individual limit) | Maximum deduction $4,400 (2026 limit) |
| Net tax impact | Pay $3,200 in taxes, receive $4,400 deduction = slight benefit |
| Cash flow problem | Need additional $3,200 from other sources |
The contribution limit barrier creates another problem. For 2026, individuals can contribute $4,400 to an HSA with individual coverage or $8,750 with family coverage. Anyone trying to move larger 401k amounts into an HSA hits this ceiling immediately.
The Legal Two-Step Workaround: 401k to IRA to HSA
Federal tax law provides one legitimate pathway to move 401k money into an HSA. This process requires two separate transactions completed in specific order. The strategy uses an IRA as an intermediary account to bridge the gap between retirement plans.
Step one involves a standard 401k to IRA rollover. The account holder requests a direct rollover from the 401k administrator to an IRA custodian. This transaction occurs tax-free when completed as a trustee-to-trustee transfer.
The rollover must happen within 60 days if done indirectly. Direct rollovers face no time limit but process faster and avoid mandatory withholding. The entire 401k balance can move to the IRA without any contribution limits applying.
Step two uses the qualified HSA funding distribution rules under IRC Section 408(d)(9). This allows a one-time-per-lifetime transfer from a traditional IRA or Roth IRA directly to an HSA. The transfer amount cannot exceed the annual HSA contribution limit for the year of the transfer.
For 2026, someone with individual HDHP coverage can transfer up to $4,400 from an IRA to an HSA. Family coverage allows $8,750. Account holders age 55 or older add a $1,000 catch-up contribution to these limits.
| Step | Transaction | Tax Treatment | Time Limit |
|---|---|---|---|
| 1. 401k to IRA | Direct trustee-to-trustee rollover | No taxes or penalties | Complete before Step 2 |
| 2. IRA to HSA | Qualified HSA funding distribution | No taxes (counts toward HSA limit) | Must maintain HDHP for 12 months after |
The qualified HSA funding distribution carries strict requirements. The account holder must be HSA-eligible on the date of the transfer with coverage under a qualified high-deductible health plan. Both the IRA and HSA must belong to the same person.
This transfer must occur as a direct trustee-to-trustee movement. The account holder cannot receive the money personally. The IRA custodian sends the funds directly to the HSA custodian.
The Testing Period Requirement and Its Penalties
The qualified HSA funding distribution imposes a 12-month testing period starting the month of the transfer. The account holder must maintain HSA eligibility for this entire period. This means staying enrolled in an HSA-qualified HDHP without switching to other health coverage.
Failing the testing period creates severe tax consequences. The entire transferred amount becomes taxable income in the year eligibility ends. The IRS also assesses a 10 percent additional tax on the amount as an early IRA distribution penalty.
The testing period operates independently from the last-month rule testing period that applies to regular HSA contributions. These represent two different compliance requirements that may overlap. Account holders using both strategies face dual testing obligations.
Death or permanent disability provide the only exceptions to testing period penalties. If the account holder dies or becomes disabled during the testing period, the IRS waives the additional taxes. These exceptions recognize circumstances beyond the individual’s control.
Real-World Examples of Rollover Attempts and Outcomes
Scenario 1: Direct 401k to HSA Attempt (Wrong Method)
Marcus, age 45, has $10,000 in an old 401k from a previous employer. He withdraws the money intending to contribute it to his HSA. He falls into the 22 percent federal tax bracket.
The 401k plan administrator withholds 20 percent mandatory federal tax ($2,000) and sends Marcus a check for $8,000. At tax time, Marcus owes additional federal income tax of $200 because his actual tax rate is 22 percent. The IRS assesses a 10 percent early withdrawal penalty of $1,000 on the full $10,000 distribution.
Marcus deposits $4,400 into his HSA, the maximum for individual coverage in 2026. This provides a tax deduction of $4,400. His net tax calculation shows he paid $3,200 in taxes and penalties but received a $4,400 deduction, creating a small benefit.
However, Marcus lost access to $5,600 in retirement savings that he cannot replace. The HSA contribution limit prevents him from depositing the full amount. The tax consequences consumed $3,200 that could have stayed invested.
Scenario 2: Correct Two-Step Method
Jennifer, age 56, has $50,000 in a 401k from her previous employer. She currently maintains family HDHP coverage through her new employer. She wants to fund her HSA using retirement money.
Jennifer contacts her 401k administrator and requests a direct rollover to a traditional IRA at her chosen brokerage. The full $50,000 transfers tax-free within two weeks. She incurs no taxes or penalties on this transaction.
Six months later, Jennifer initiates a qualified HSA funding distribution from her IRA to her HSA. Because she qualifies for family coverage ($8,750 limit) and the catch-up contribution at age 55+ ($1,000), she can transfer $9,750 total. The IRA custodian completes the direct transfer to her HSA custodian.
Jennifer reports the transaction on Form 8889 with her tax return. The $9,750 counts toward her 2026 HSA contribution limit. She owes no taxes on the transfer.
She must maintain HDHP coverage for 12 months following the transfer. Her remaining $40,250 stays in the IRA for future retirement needs. Jennifer successfully moved retirement funds into tax-free HSA status for medical expenses.
Scenario 3: Failed Testing Period
Robert completed a $5,300 IRA to HSA qualified funding distribution in January 2025. In August 2025, his employer eliminated the HDHP option and Robert switched to a PPO plan. This change occurred eight months after his qualified distribution.
Robert failed the 12-month testing period. On his 2026 tax return, he must include the $5,300 as taxable income. The IRS assesses an additional 10 percent penalty ($530) for early IRA distribution.
Robert’s effective tax hit in the 24 percent bracket totals $1,802 ($1,272 income tax plus $530 penalty). He cannot reverse the qualified distribution. The money remains in his HSA and he can still use it tax-free for medical expenses.
HSA Contribution Limits and Eligibility Requirements
The IRS adjusts HSA contribution limits annually for inflation. For 2026, individuals with self-only HDHP coverage can contribute $4,400 to an HSA. Those with family coverage can contribute $8,750. These amounts represent the maximum from all sources combined.
Account holders age 55 or older who are not enrolled in Medicare can make an additional catch-up contribution of $1,000. For married couples where both spouses are 55+, each must have a separate HSA to claim individual catch-up contributions. One spouse cannot make both catch-up contributions to a single account.
Any employer contributions count toward these limits. If an employer deposits $1,500 into an employee’s HSA for 2026, an individual-coverage employee can personally contribute only $2,900 more ($4,400 minus $1,500). The combined total cannot exceed the annual limit.
High-deductible health plan requirements define HSA eligibility. For 2026, an HDHP must have a minimum deductible of $1,700 for individual coverage or $3,400 for family coverage. The plan’s out-of-pocket maximum cannot exceed $8,500 for individuals or $17,000 for families.
Disqualifying health coverage blocks HSA eligibility. Account holders cannot have a general-purpose health FSA, an HRA that covers pre-deductible expenses, or Medicare coverage. Preventive care coverage before meeting the deductible is allowed under federal law.
State Tax Treatment Complications
Federal HSA tax benefits apply uniformly across the United States, but state taxation creates complexity. Most states conform to federal HSA tax treatment and allow deductions for contributions. Two states create exceptions: California and New Jersey.
California does not recognize HSAs for state income tax purposes. California taxpayers must add back HSA contributions as taxable income on their state returns. Any interest, dividends, or capital gains earned within an HSA count as taxable income for California purposes.
New Jersey takes the same position. The state requires taxpayers to report HSA contributions as taxable income. Investment earnings within the HSA face state taxation when they occur, not when distributed.
These state rules affect rollover decisions. Someone considering a 401k to IRA to HSA strategy in California or New Jersey loses part of the federal tax benefit. The qualified HSA funding distribution remains tax-free federally but creates no state tax deduction.
Nine states impose no state income tax: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming. Residents in these states receive no state-level deduction for HSA contributions because no state income tax exists. The federal benefits still apply.
New Hampshire and Tennessee tax only interest and dividend income. HSA account holders in these states may owe state taxes on investment earnings within their HSAs even though they have no state income tax on wages.
| State Category | HSA Contribution Treatment | Investment Earnings |
|---|---|---|
| Most states | Tax-deductible (mirrors federal law) | Tax-deferred until distributed |
| California & New Jersey | Taxable income (no deduction) | Taxable annually |
| No income tax states | No benefit (no tax to deduct from) | No state tax |
Medicare Enrollment and HSA Contributions
Medicare enrollment immediately ends HSA eligibility. Anyone enrolled in any part of Medicare (Part A, Part B, or Part D) cannot contribute to an HSA. This rule applies even if the person maintains HDHP coverage through an employer or private insurance.
The problem compounds because Medicare Part A coverage can apply retroactively. When someone applies for Medicare benefits after age 65, Part A coverage automatically extends backward up to six months (but not before the month they turned 65). This retroactive coverage makes HSA contributions during those prior months ineligible.
Workers planning to enroll in Medicare should stop HSA contributions six months before their intended enrollment date. This prevents excess contributions from the retroactive coverage period. For example, someone planning to enroll in Medicare in November should make their last HSA contribution in April.
Account holders must prorate their annual contribution limit based on the number of months they maintained HSA eligibility. Someone eligible for nine months of the year can contribute 9/12 of the annual limit. Excess contributions from failing to prorate create a six percent annual penalty until corrected.
The Medicare restriction affects qualified HSA funding distributions from IRAs. Anyone planning this one-time transfer must complete it at least 12 months before Medicare enrollment. The testing period requirement means they need continuous HDHP coverage for 12 months after the transfer.
An individual who turns 65 in July 2026 and plans immediate Medicare enrollment should complete any IRA to HSA transfer no later than July 2025. This provides the required 12-month testing period before Medicare blocks further eligibility.
Alternatives to HSA and 401k Rollovers
Account holders seeking to consolidate retirement savings have options that avoid prohibited rollovers. Traditional IRA to Roth IRA conversions provide one alternative strategy. This transaction moves money between IRA types and creates a taxable event in the conversion year.
The conversion makes sense when current tax rates are lower than expected future rates. The account holder pays taxes now at today’s rates to secure tax-free growth and distributions later. Roth IRAs impose no required minimum distributions, providing more flexibility than traditional IRAs or 401k plans.
401k consolidation into a single IRA streamlines management. Workers with multiple 401k accounts from different employers can roll all balances into one IRA. This creates a single account with unified investment choices and simpler record-keeping.
HSA-eligible individuals can maximize HSA contributions directly from paycheck deductions. This method provides FICA tax savings that contribution via check or transfer cannot match. Payroll contributions avoid the 7.65 percent Social Security and Medicare taxes that apply to wages.
Some workers with both HSA and 401k access should prioritize HSA contributions first. The HSA offers superior tax benefits for medical expenses: no taxes on contributions, growth, or qualified withdrawals. After maxing HSA contributions, additional savings go to the 401k to capture any employer match.
Another strategy involves using 401k loans instead of distributions. Many plans allow participants to borrow up to 50 percent of their vested balance (maximum $50,000). Loans avoid taxes and penalties if repaid according to plan terms, though they reduce investment returns during the loan period.
Common Mistakes to Avoid
Mistake 1: Assuming all retirement accounts work the same for rollovers
Many workers believe they can freely move money between any tax-advantaged accounts. Federal law strictly limits which accounts can receive rollovers from each source. HSAs only accept transfers from other HSAs or the one-time IRA qualified distribution. Attempting other rollovers creates taxable distributions with penalties.
Mistake 2: Taking indirect rollovers instead of direct transfers
Indirect rollovers involve receiving funds personally before depositing them into the new account. The IRS requires completion within 60 days and limits indirect rollovers to once per 12-month period. Direct trustee-to-trustee transfers face no frequency limits and eliminate timing risks. The direct method always provides better protection.
Mistake 3: Contributing to an HSA without checking HDHP qualification
Not all high-deductible health plans qualify for HSAs. The plan must meet specific deductible minimums and out-of-pocket maximums. Some employer plans with high deductibles still disqualify for HSAs because they cover certain expenses before the deductible. Workers should verify qualification with their benefits administrator before making contributions.
Mistake 4: Overlooking the testing period requirements
The 12-month testing period for qualified HSA funding distributions from IRAs creates a trap for the unwary. Changing jobs, losing HDHP coverage, or enrolling in Medicare during this period triggers taxes and penalties on the entire transferred amount. Account holders must confirm they can maintain HDHP coverage for the full testing period before initiating the transfer.
Mistake 5: Exceeding contribution limits through multiple sources
Employer contributions, personal contributions, and qualified distributions all count toward the annual limit. Someone who receives $2,000 in employer contributions and makes a $4,400 qualified HSA funding distribution has already exceeded the 2026 individual limit by $2,100. The excess contribution generates a six percent annual penalty until removed.
Mistake 6: Using HSA funds for non-qualified expenses before age 65
Non-qualified withdrawals face harsh penalties. The account holder pays ordinary income tax plus a 20 percent additional penalty on the withdrawn amount. This creates an effective tax rate that can exceed 40 percent depending on the person’s tax bracket. After age 65, the 20 percent penalty disappears but income tax still applies to non-medical withdrawals.
Mistake 7: Forgetting to report HSA transactions on tax returns
Form 8889 must accompany every tax return when an individual made HSA contributions or took distributions during the year. Missing this form prevents claiming the contribution deduction and may trigger IRS notices. The form reports contributions, distributions, and any excess contributions or failed testing periods.
Pros and Cons of HSA and 401k Accounts
| Pros | Cons |
|---|---|
| HSA: Triple tax advantage – Contributions, growth, and qualified withdrawals all escape taxation, creating the most tax-efficient account available | HSA: Requires HDHP enrollment – Must maintain qualifying high-deductible health insurance, which creates higher out-of-pocket costs for those with significant medical needs |
| HSA: No required minimum distributions – Funds can remain invested indefinitely with no forced withdrawals at any age, unlike 401k and IRA accounts | HSA: Limited contribution amounts – Annual limits of $4,400 individual or $8,750 family (2026) restrict savings compared to $23,000 401k limit plus employer match |
| 401k: Higher contribution limits – Can contribute $23,000 annually ($30,500 if age 50+) allowing faster accumulation of retirement savings | 401k: Limited to eligible employers – Only available through participating employers, leaving self-employed and gig workers without access |
| 401k: Employer matching – Many employers contribute 50-100% of employee contributions up to certain limits, providing free money that HSAs typically do not offer | 401k: Required minimum distributions – Must begin withdrawals at age 73 (or 75 for those born 1960 or later), potentially forcing taxable income in retirement |
| HSA: Funds available anytime for medical expenses – Can withdraw money tax-free and penalty-free for qualified medical costs at any age, providing emergency medical coverage | HSA: Two-tiered penalty structure – Non-medical withdrawals before age 65 face 20% penalty plus income tax; even after 65 the withdrawals are taxable |
| Pros | Cons |
|---|---|
| 401k: Loan provisions – Many plans allow borrowing up to 50% of balance (max $50,000) without taxes or penalties if repaid, providing emergency access | 401k: Early withdrawal penalties – Distributions before age 59.5 face 10% penalty plus income tax except for limited hardship situations |
| HSA: Portable between jobs – Account stays with the individual regardless of employment changes, maintaining continuity unlike employer-controlled 401k accounts | HSA: Investment minimums – Some providers require minimum balances ($1,000-$2,000) before allowing investments, forcing cash holdings that earn minimal interest |
| 401k: Creditor protection – ERISA provides strong federal protection against creditors in bankruptcy and lawsuits, while HSA protection varies by state | 401k: Limited investment choices – Restricted to plan’s selected investment menu which may include high-fee options or lack desired asset classes |
| HSA: FICA tax avoidance – Payroll contributions avoid 7.65% Social Security and Medicare taxes that apply to 401k contributions, providing immediate savings | HSA: State tax complications – California and New Jersey do not recognize HSA tax benefits, requiring residents to pay state taxes on contributions and earnings |
| 401k: No health plan requirements – Participation depends only on employment eligibility with no insurance requirements affecting access | 401k: Mandatory tax on distributions – All traditional 401k withdrawals in retirement count as ordinary income taxed at full rates with no exceptions |
Do’s and Don’ts for HSA and 401k Management
DO: Verify HDHP qualification annually before contributing to an HSA. Health plan changes during open enrollment can eliminate HSA eligibility. Employers sometimes switch from HSA-qualified HDHPs to non-qualified plans without clearly communicating the change. Review plan documents each year and confirm deductible and out-of-pocket maximum amounts meet IRS requirements before funding the account.
DON’T: Attempt to roll HSA funds into a 401k or vice versa directly. These transactions are not permitted under federal tax law. The attempted rollover creates immediate taxable income plus penalties. The only legal path moves 401k money to an IRA first, then uses the one-time qualified HSA funding distribution from the IRA to the HSA.
DO: Complete all rollovers as direct trustee-to-trustee transfers when possible. This method eliminates the 60-day deadline, avoids mandatory withholding, and does not count against the once-per-year rollover limitation. Contact the receiving institution first and have them guide the process with the sending institution. Direct transfers provide maximum legal protection and minimize errors.
DON’T: Forget to track all HSA receipts and contributions throughout the year. Inadequate record-keeping causes problems during tax filing and IRS audits. Keep detailed records showing what expenses qualified as medical expenses and save receipts for all purchases. Track contributions from all sources including employer deposits, payroll deductions, and personal contributions to avoid exceeding annual limits.
DO: Plan Medicare enrollment timing carefully to avoid excess HSA contributions. Stop HSA contributions six months before applying for Medicare to account for retroactive Part A coverage. Calculate the prorated contribution limit based on months of eligibility. Someone eligible for only seven months can contribute 7/12 of the annual limit, not the full amount.
DON’T: Use HSA funds for non-qualified expenses before age 65. The 20 percent penalty plus income tax creates an effective tax rate of 40-50 percent depending on the person’s tax bracket. This penalty applies to any withdrawal for expenses that do not meet the qualified medical expense definition under IRS Publication 502. Save HSA funds exclusively for medical costs to preserve the tax-free benefit.
DO: Invest HSA funds for long-term growth rather than leaving all money in cash. HSAs function as powerful retirement accounts when invested properly. Most providers offer mutual funds similar to 401k investment options. Only 13 percent of HSA holders invest their balances, missing significant growth potential. Keep enough cash for near-term medical expenses and invest the remainder for future needs.
DON’T: Assume all states follow federal HSA tax treatment. California and New Jersey specifically do not conform to federal HSA rules. Residents in these states must add HSA contributions back as taxable income on state returns and pay state taxes on investment earnings. This reduces the overall tax benefit compared to residents in states that follow federal treatment.
DO: Complete the one-time IRA to HSA qualified funding distribution before age 64.5 if planning Medicare enrollment at 65. The 12-month testing period requirement means HDHP coverage must continue for the full year following the transfer. Medicare enrollment blocks HSA eligibility immediately. Complete the transfer early enough to satisfy the testing period before Medicare begins.
DON’T: Make HSA contributions in the year of Medicare enrollment without prorating the amount. The contribution limit must be calculated based on months of eligibility before Medicare coverage starts. Someone enrolling October 1st can contribute 9/12 of the annual limit. Excess contributions from failing to prorate generate a six percent annual penalty that compounds until corrected.
Form 8889 Reporting Requirements
The IRS requires Form 8889 attached to Form 1040 for any tax year when HSA contributions or distributions occurred. This form calculates the deductible contribution amount, reports distributions, and determines any taxable amounts or additional penalties. Failure to file this form prevents claiming the contribution deduction and triggers IRS notices.
Part I of Form 8889 reports total contributions to the HSA. Line 2 captures contributions made by the account holder including amounts contributed by family members on their behalf. Line 3 calculates the contribution limit based on coverage type and months of eligibility.
Employer contributions appear in Box 12 of Form W-2 with code W. These amounts reduce the deduction the account holder can claim. The form subtracts employer contributions from the contribution limit to determine the maximum individual deduction.
Part II reports distributions from the HSA during the tax year. Line 14a must match Box 1 of Form 1099-SA received from the HSA custodian. Any discrepancy triggers automated IRS matching systems and generates notices to the taxpayer.
Line 14b reports rollovers from one HSA to another HSA. These amounts do not count as taxable distributions. Qualified HSA funding distributions from IRAs also go on this line and count toward the annual contribution limit.
Line 15 captures qualified medical expenses paid with HSA distributions. Only expenses that meet IRS Publication 502 definitions qualify. The difference between total distributions and qualified expenses becomes taxable income subject to income tax plus a 20 percent penalty if under age 65.
Part III calculates additional taxes for excess contributions or failed testing periods. Line 18 shows the 6 percent excise tax on excess contributions remaining in the account. This penalty applies annually until the excess is removed or offset by under-contributing in a future year.
The testing period calculation appears in Part III for account holders who used the last-month rule or made a qualified HSA funding distribution from an IRA. Failing to remain HSA-eligible for the full 12-month testing period creates taxable income plus a 10 percent penalty reported on these lines.
How to Correct Excess Contributions
Excess contributions to an HSA create a six percent excise tax penalty that applies annually until the excess is removed. The penalty accumulates each year the excess remains in the account. A $500 excess contribution generates a $30 annual penalty that continues indefinitely without correction.
The safest correction method removes the excess before the tax filing deadline including extensions. Contact the HSA administrator and request a return of excess contributions. The administrator must also return any earnings attributable to the excess amount.
The distributed excess does not count toward the annual contribution limit. However, the earnings portion becomes taxable income in the year of distribution. Report the earnings as “other income” on the tax return even though the distribution occurs to correct an error.
Another option applies the excess contribution to the next year’s limit. If someone over-contributed by $500 in 2025, they can contribute $500 less in 2026. This method works when the account holder has room under the next year’s contribution limit. The six percent penalty still applies for 2025 on the excess amount.
Missing the tax deadline requires reporting the excess contribution on Form 5329. The excess remains subject to the six percent penalty annually until corrected. Each year’s tax return must include Form 5329 calculating the excise tax on any excess still remaining in the account.
Withdrawals that reduce the account balance also reduce excess contributions. If someone has a $400 excess and takes a $400 distribution for qualified medical expenses, the excess disappears. The distribution need not specifically target the excess; any distribution reduces the excess amount dollar-for-dollar.
Some excess contributions result from losing HSA eligibility mid-year. Someone who stops HDHP coverage in July but already contributed the full annual amount has an excess. The correction requires calculating the prorated limit based on months of eligibility and removing the difference.
Key Regulatory Citations and Definitions
IRC Section 223: The foundational federal statute establishing HSAs under the Internal Revenue Code. This section defines HSA eligibility requirements, contribution limits, qualified medical expenses, and distribution rules. Section 223(f)(5) specifically restricts rollovers to transfers between HSAs only.
High Deductible Health Plan: A health plan that satisfies minimum deductible and maximum out-of-pocket requirements under IRC Section 223(c)(2). For 2026, the minimum annual deductible is $1,700 for individual coverage and $3,400 for family coverage. Maximum out-of-pocket limits are $8,500 individual and $17,000 family.
Qualified HSA Funding Distribution: A once-per-lifetime tax-free transfer from a traditional IRA or Roth IRA to an HSA under IRC Section 408(d)(9). The transfer cannot exceed the annual HSA contribution limit and requires a 12-month testing period during which the individual must remain HSA-eligible.
Trustee-to-Trustee Transfer: A direct movement of funds between account custodians without the account holder taking possession. IRS guidance clarifies these transfers do not count as rollovers and face no annual frequency limits, unlike indirect rollovers where the account holder receives the money.
Testing Period: A 12-month period following either a qualified HSA funding distribution or last-month rule contribution during which the account holder must maintain HSA eligibility. Failing the testing period causes the contributed or transferred amount to become taxable income plus a 10 percent additional tax.
Qualified Medical Expenses: Expenses defined in IRS Publication 502 that qualify for tax-free HSA distributions. These include amounts paid for diagnosis, cure, mitigation, treatment, or prevention of disease and for treatments affecting any structure or function of the body. Insurance premiums generally do not qualify except for specific types.
Excess Contribution: Any amount contributed to an HSA that exceeds the annual contribution limit under IRC Section 223(b). Excess contributions generate a 6 percent excise tax annually until removed or offset by under-contributing in a later year.
FAQs
Can I roll my 401k into my HSA?
No. Federal law prohibits direct rollovers from 401k plans to HSAs. You can roll 401k to IRA, then do one lifetime IRA-to-HSA transfer.
Can I transfer money from my HSA to my 401k?
No. IRC Section 223(f)(5) restricts HSA rollovers to other HSAs only. Any distribution to a 401k becomes taxable income plus 20% penalty if under age 65.
How many times can I do an IRA to HSA rollover?
Once per lifetime. The qualified HSA funding distribution allows only one tax-free IRA to HSA transfer. One exception exists for mid-year coverage changes from individual to family.
What happens if I contribute to my HSA after enrolling in Medicare?
Excess contributions face 6% annual penalty tax. Medicare enrollment eliminates HSA eligibility immediately. Remove excess contributions plus earnings to avoid ongoing penalties.
Do all states recognize HSA tax benefits?
No. California and New Jersey require taxpayers to add HSA contributions back as taxable income. These states tax investment earnings annually unlike federal treatment.
Can I use my HSA for non-medical expenses without penalty?
Yes, after age 65. Before 65, non-qualified withdrawals face 20% penalty plus income tax. After 65, only income tax applies to non-medical withdrawals.
How do I report an HSA rollover on my taxes?
Use Form 8889 attached to Form 1040. Report HSA-to-HSA rollovers on line 14b and IRA-to-HSA qualified distributions on line 10. Trustee-to-trustee transfers need no reporting.
What is the testing period for IRA to HSA transfers?
12 months of HDHP coverage required. Starting from transfer date, maintain HSA eligibility continuously. Failure causes transferred amount to become taxable income plus 10% penalty.
Can I roll my HSA to an IRA?
No. HSAs can only roll to other HSAs. Taking HSA distributions for non-qualified expenses creates taxable income and penalties rather than preserving retirement savings.
What if I accidentally contributed too much to my HSA?
Remove excess before tax deadline to avoid penalties. Contact HSA administrator to withdraw excess plus earnings. Earnings become taxable income but excess principal is not taxed.
Do employer HSA contributions count toward my limit?
Yes. All contributions from employer and employee combined cannot exceed annual limits. Employer contributions reduce the amount you can personally contribute.
Can I have an HSA and a 401k at the same time?
Yes. These accounts serve different purposes and both can receive contributions simultaneously. HSA requires HDHP enrollment. 401k requires employer offering plan. Maximize both if possible.
When should I stop HSA contributions before Medicare enrollment?
Six months before enrollment. Medicare Part A applies retroactively up to six months. Stop contributions earlier to avoid excess contributions from retroactive coverage.
Can my spouse contribute to my HSA?
Yes. Anyone can contribute to an HSA, but all contributions count toward annual limit. The account holder claims the tax deduction regardless of who makes the contribution.
What is a trustee-to-trustee HSA transfer?
Direct movement between HSA custodians without account holder possession. No annual frequency limits apply. Differs from rollovers where account holder receives and deposits funds within 60 days.
Related reading
- Can You Roll Over an HSA? (w/Examples) + FAQs
- Can You Roll Over HSA to IRA? (w/Examples) + FAQs
- How to Roll Over an HSA to Fidelity (w/Examples) + FAQs
- How to Roll Over an HSA to Lively (w/Examples) + FAQs
- How to Roll Over an HSA to Another Broker (w/Examples) + FAQs
- How to Roll Over an HSA to HSA Bank (w/Examples) + FAQs
- Does HealthEquity HSA Roll Over? (w/Examples) + FAQs