IRS Authority · 10 Edge Cases

HSA Edge Cases: 10 IRS Rules Most Articles Get Wrong

A reference page for the ten frequently-misunderstood HSA rules. Each section gives the question, the short answer, the verbatim IRS authority, the detailed explanation, and the common misconception. Cite this page when you need the precise rule, not the paraphrase.

By Will MatherReviewed 14 min read

Short answer

This page is the verbatim-IRS-citation reference for ten HSA edge cases where competitor articles get the answer slightly wrong: retroactive reimbursement has no time limit, a spouse's general-purpose FSA disqualifies BOTH spouses, the last-month rule commits you to a 12-month testing period, mistaken distributions can be recovered before April 15, medical tourism is fully eligible, COBRA premiums are HSA-payable under IRC 223(d)(2), ACA bronze plans require verification, audit documentation needs four specific data points, GLP-1 weight-loss meds do not always need an LMN, and excess contributions trigger a 6% annual excise tax until corrected. Every rule below cites the underlying IRS section or publication.

The 10 edge cases

  1. 1Is there a time limit on reimbursing yourself from your HSA?
  2. 2Does my spouse's FSA disqualify me from contributing to an HSA?
  3. 3Can I contribute the full annual HSA cap if I only had HDHP coverage for part of the year?
  4. 4I accidentally used my HSA for a non-medical expense. What now?
  5. 5Can I use my HSA for medical care outside the United States?
  6. 6Can I pay COBRA premiums from my HSA?
  7. 7Is my ACA bronze plan automatically HSA-eligible?
  8. 8What documentation do I need to prove HSA expenses if audited?
  9. 9Do I need a Letter of Medical Necessity to use HSA funds for GLP-1 weight loss medications?
  10. 10I over-contributed to my HSA. How do I fix it?

Edge case 1 of 10

Is there a time limit on reimbursing yourself from your HSA?

Short answer

No. IRS Publication 969 imposes no statute of limitations on retroactive reimbursement as long as the expense was incurred AFTER you established the HSA and you have documentation to prove it.

IRS authority

Qualified medical expenses are those incurred after the HSA is established.
Source: IRS Publication 969 (qualified medical expense timing rule)

Detailed explanation

This is the load-bearing rule for the shoebox strategy and the single most frequently misunderstood HSA rule. Most blog posts and forum threads claim there is some implicit time limit on retroactive reimbursement - three years, seven years, ten years. There is not. The only timing requirement is that the medical expense was incurred AFTER the HSA was established. A receipt from 25 years ago can be reimbursed today, tax-free, as long as the HSA existed when the expense happened and the documentation survives. Documentation requirement: receipt or Explanation of Benefits showing the date of service, dollar amount, provider name, and medical nature of the expense.

Common misconception

Wrong: "I have 3 years to claim HSA reimbursement." Right: there is no time limit. The IRS does not impose a statute of limitations on when you can match a qualified medical receipt to an HSA withdrawal.

Edge case 2 of 10

Does my spouse's FSA disqualify me from contributing to an HSA?

Short answer

Yes, if it's a general-purpose FSA. A limited-purpose FSA (dental and vision only) and a dependent-care FSA do NOT disqualify HSA contributions. The fix is to switch to a limited-purpose FSA at open enrollment or drop the FSA entirely.

IRS authority

An eligible individual cannot be covered by any health plan that is not a high deductible health plan, with limited exceptions. A general-purpose health FSA is considered other health coverage and disqualifies HSA contributions, including a spouse's FSA where the employee can be reimbursed for the spouse's medical expenses.
Source: IRC 223(c)(1)(A)(ii), Rev. Rul. 2004-45, IRS Notice 2008-59 Q&A-32

Detailed explanation

A general-purpose FSA pays first-dollar medical expenses for the household. The IRS treats this as disqualifying coverage for BOTH spouses, even if only one is enrolled in the FSA, because the FSA can be used to reimburse the non-enrolled spouse's medical expenses. This catches a lot of dual-income households at open enrollment, especially when one spouse's employer auto-enrolls in an FSA by default. The two compatible alternatives are a limited-purpose FSA (restricted to dental and vision only - explicitly compatible per IRS rules) and a dependent-care FSA (restricted to childcare - explicitly compatible because it does not reimburse medical expenses).

Common misconception

Wrong: "Only the FSA enrollee is disqualified, my HSA is fine." Right: a general-purpose FSA disqualifies BOTH spouses from HSA contributions for the entire plan year, even if only one is on the FSA.

Edge case 3 of 10

Can I contribute the full annual HSA cap if I only had HDHP coverage for part of the year?

Short answer

Yes if you have HDHP coverage on December 1 (the last-month rule), but you must remain HSA-eligible through all 12 months of the FOLLOWING calendar year (the testing period). Fail the testing period and the excess is taxable income plus a 10% additional tax.

IRS authority

An individual who is an eligible individual during the last month of the taxable year is treated as having been an eligible individual during every month during such taxable year, subject to a testing period requirement.
Source: IRC 223(b)(8) (last-month rule and testing period)

Detailed explanation

Two options when HDHP coverage starts mid-year: (a) prorate the contribution by the number of months you were HSA-eligible (safe, no testing-period obligation), or (b) use the last-month rule to contribute the full annual cap, accepting the obligation to stay HSA-eligible all of the next calendar year. Worked example: HDHP coverage starts October 1, 2026. Last-month rule lets you contribute the full $4,400 self-only cap for 2026 IF you stay HSA-eligible through December 31, 2027. If you switch to a non-HDHP plan in June 2027, the excess (10 months worth) gets recaptured as ordinary income plus a 10% additional tax. The safer alternative is proration: 3 months of eligibility times one-twelfth of the annual cap equals $1,100 contribution, no testing-period obligation.

Common misconception

Wrong: "The last-month rule just gives me extra time to contribute." Right: it commits you to a 12-month testing period obligation in the FOLLOWING calendar year, and failure triggers ordinary income tax plus a 10% additional tax on the excess.

Edge case 4 of 10

I accidentally used my HSA for a non-medical expense. What now?

Short answer

If you discover the mistake by April 15 of the following year, you can return the funds to the HSA as a mistaken distribution with no tax and no penalty under IRS Notice 2004-50. If not corrected by that deadline, the withdrawal becomes a non-qualified distribution: ordinary income tax plus a 20% additional tax if you are under 65.

IRS authority

If there is clear and convincing evidence that amounts were distributed from an HSA because of a mistake of fact due to reasonable cause, the account beneficiary may repay the mistaken distribution no later than April 15 following the first year the account beneficiary knew or should have known the distribution was a mistake.
Source: IRS Notice 2004-50, Q&A-37 (mistaken distribution procedure)

Detailed explanation

Common scenarios that qualify as mistaken distributions: HSA debit card swiped at the wrong merchant, bookkeeping error reimbursing an expense that was already reimbursed, automatic withdrawal coded against the wrong account. Most HSA custodians (Fidelity, Lively, HSA Bank) have a written mistaken-distribution recovery process - call the custodian, document the error in writing, and return the funds before April 15. The custodian typically updates Form 1099-SA to reflect the corrected withdrawal. Form 8889 does not require special reporting for properly-corrected mistaken distributions. Keep a paper trail showing the original error and the timely repayment.

Common misconception

Wrong: "There's no fix for non-medical HSA use, I'm stuck with the penalty." Right: IRS Notice 2004-50 provides a clean recovery path if you act before April 15 of the following year with clear documentation.

Edge case 5 of 10

Can I use my HSA for medical care outside the United States?

Short answer

Yes. IRS Publication 502 defines qualified medical expenses without any geographic restriction. The care must qualify as medical under IRC 213(d), but it can be received anywhere in the world.

IRS authority

Medical expenses are the costs of diagnosis, cure, mitigation, treatment, or prevention of disease, and the costs for treatments affecting any part or function of the body.
Source: IRS Publication 502 (qualified medical expense definition)

Detailed explanation

The eligibility test under IRC 213(d) is the nature of the care, not the geographic location of the provider. Common cross-border scenarios that qualify: dental tourism in Mexico or Costa Rica, bariatric surgery abroad, IVF in countries with lower costs, cancer treatment at international centers, prescription medications filled at a foreign pharmacy with a valid prescription. The documentation requirements are identical to domestic care: receipt or Explanation of Benefits showing date, amount, provider, and medical nature. Currency conversion documentation (exchange rate on date of payment) is helpful for audit defense but not strictly required - the dollar amount paid is what matters. Two narrow exclusions remain: cosmetic procedures (same exclusion as domestic), and illegal-in-the-US treatments (also excluded domestically).

Common misconception

Wrong: "HSA only covers US-licensed providers." Right: there is no geographic restriction. The IRS eligibility test is the nature of care under IRC 213(d), not the provider's location or licensing jurisdiction.

Edge case 6 of 10

Can I pay COBRA premiums from my HSA?

Short answer

Yes. COBRA continuation coverage is one of four named exceptions to the general rule that insurance premiums are NOT HSA-eligible. The exceptions are codified in IRC 223(d)(2).

IRS authority

Distributions from an HSA used to pay for health coverage are not qualified medical expenses, except in the case of: (i) coverage under a health plan during a period in which the individual is receiving unemployment compensation, (ii) qualified long-term care insurance, (iii) COBRA continuation coverage or any health plan during any period of continuation coverage required under any federal law, and (iv) for individuals over age 65, Medicare Part B, Part D, and Medicare Advantage premiums (but not Medigap).
Source: IRC 223(d)(2)(B) and (C) (named exceptions to the premium-ineligible rule)

Detailed explanation

The four exceptions to the no-premiums rule: (1) COBRA or any federal continuation coverage, (2) qualified long-term care insurance (subject to age-based annual caps), (3) Medicare Part B, Part D, and Medicare Advantage premiums after age 65 (Medigap supplemental policies are NOT included), (4) health insurance while receiving unemployment compensation. A common pattern: job change with a 1-3 month gap, elect COBRA HDHP coverage for the bridge, pay the COBRA premium tax-free from the HSA. Bonus: COBRA HDHP coverage also keeps you HSA-eligible to make NEW contributions during the COBRA window. The premium itself is HSA-reimbursable AND the underlying HDHP keeps the HSA eligibility intact.

Common misconception

Wrong: "Insurance premiums are never HSA-eligible." Right: the four named exceptions in IRC 223(d)(2) explicitly allow COBRA, long-term care insurance, post-65 Medicare premiums (not Medigap), and health insurance during unemployment.

Edge case 7 of 10

Is my ACA bronze plan automatically HSA-eligible?

Short answer

Not automatic. The plan must meet IRS HDHP minimums: a minimum $1,650 self-only or $3,300 family deductible for 2026, with maximum out-of-pocket caps of $8,300 self-only or $16,600 family. Healthcare.gov flags HSA-eligible plans, but verify against plan documents.

IRS authority

A high deductible health plan means a health plan with an annual deductible not less than the statutory minimum and with annual out-of-pocket expenses not exceeding the statutory maximum.
Source: IRC 223(c)(2) (HDHP definition), Rev. Proc. 2025-19 (2026 limits)

Detailed explanation

Many ACA bronze plans qualify as HDHPs, but not all. Some bronze plans have deductibles too low to meet the IRS minimum. Others have copay structures (small-dollar copays for primary care visits before the deductible) that disqualify them because the IRS rule requires the deductible to apply to ALL medical care other than preventive services. Always pull the Summary of Benefits and Coverage (SBC) document from your plan and verify the two numbers explicitly: deductible meets the IRS minimum for your coverage tier, and the out-of-pocket cap stays at or below the IRS maximum. r/Fire PSA threads on this topic regularly hit the front page because the marketplace's HSA-eligible flag is reliable but not infallible.

Common misconception

Wrong: "All bronze plans qualify for HSA." Right: verify the deductible meets the IRS minimum AND the plan has no pre-deductible copays for non-preventive services. The HSA-eligible flag on Healthcare.gov is a starting point, not the final word.

Edge case 8 of 10

What documentation do I need to prove HSA expenses if audited?

Short answer

Receipt or Explanation of Benefits showing date of service, dollar amount paid, provider name, and medical nature of the expense. IRS Publication 969 does not specify a required format - digital scans, paper receipts, and EOBs all work. The HSA custodian does not verify expenses; the burden of proof is on you.

IRS authority

You must keep records sufficient to show that the distributions were exclusively to pay or reimburse qualified medical expenses, that the qualified medical expenses had not been previously paid or reimbursed from another source, and that the medical expenses had not been taken as an itemized deduction in any year.
Source: IRS Publication 969 (recordkeeping for distributions)

Detailed explanation

The four data points that must appear on any documentation that survives an audit: (1) date of service - establishes the expense was incurred AFTER the HSA was opened, (2) dollar amount paid - establishes the reimbursement did not exceed the expense, (3) provider name - establishes the source was a qualified medical provider, (4) medical nature of the expense - establishes the expense qualifies under IRC 213(d). Credit card statements alone are insufficient because they show the date and amount but not the medical nature. Best practice: keep both the itemized receipt and the EOB. Digital scans are fine. Annotate the medical nature directly on the receipt image if it is not already obvious. Audit reality: low rate (HSAs are audited less frequently than other tax positions), but bad outcomes when audited badly (the reimbursement gets reclassified as a non-qualified distribution with ordinary income tax plus a 20% additional tax for under-65 holders).

Common misconception

Wrong: "The HSA custodian verifies my expenses before approving the withdrawal." Right: the custodian processes the withdrawal but does NOT verify that the underlying expense was qualified. The IRS holds the account holder responsible for documentation during any audit.

Edge case 9 of 10

Do I need a Letter of Medical Necessity to use HSA funds for GLP-1 weight loss medications?

Short answer

Not strictly required if the prescription documents a qualifying condition (obesity at BMI 30 or higher, overweight at BMI 27 or higher with a comorbidity, or type 2 diabetes). The prescription plus the clinician's chart note documenting the diagnosis serve as primary documentation. A Letter of Medical Necessity (LMN) strengthens audit defense but is not always required.

IRS authority

You can include in medical expenses amounts you pay to lose weight if it is a treatment for a specific disease diagnosed by a physician (such as obesity, hypertension, or heart disease). You cannot include the cost of a weight-loss program if the purpose is to improve general health or appearance.
Source: IRS Publication 502 (weight-loss-program rule), IRC 213(d) (prescription-medicines rule)

Detailed explanation

Two IRS rules combine for GLP-1 HSA coverage. The prescription-medicines rule under IRC 213(d) covers the GLP-1 medication itself when prescribed by a physician. The weight-loss-program rule under IRS Publication 502 covers the weight-loss program when prescribed for a specific diagnosed disease. If both rules are satisfied via the prescription plus diagnosis chart note, no separate LMN is required. An LMN strengthens documentation in three specific scenarios: (a) gray-area conditions where the diagnosis is borderline (BMI 26 with mild comorbidities), (b) HSA debit card declines at checkout (some retailers' IRS-approved expense lists flag GLP-1s for additional documentation), (c) audit defense in jurisdictions or cases where the IRS examiner scrutinizes the medical-nature requirement closely. The LMN typically includes the diagnosis code, the medical necessity for the prescription, and the prescribing clinician's signature.

Common misconception

Wrong: "I always need an LMN to use HSA funds for GLP-1s." Right: a prescription plus a clinician chart note documenting a qualifying diagnosis is sufficient under IRS rules. The LMN is a documentation upgrade for gray-area cases, not a universal requirement.

Edge case 10 of 10

I over-contributed to my HSA. How do I fix it?

Short answer

Withdraw the excess plus any earnings on the excess by your tax-filing deadline (April 15 plus extensions). File Form 5329 to report the excess. If not corrected by the deadline, a 6% excise tax applies every year the excess remains in the account.

IRS authority

In the case of a health savings account, a tax equal to 6 percent of the amount of the excess contributions to such account is imposed for each taxable year the excess contributions remain in the account.
Source: IRC 4973 (excess contribution excise tax), IRC 223(f)(3) (corrective distribution mechanics)

Detailed explanation

Common scenarios that produce excess HSA contributions: (a) employer contributed plus employee contributed, the combined total exceeded the cap, (b) spouse's FSA was discovered mid-year and retroactively disqualified prior contributions, (c) family-to-self-only HDHP change mid-year with the wrong proration calculation, (d) miscalculated catch-up contribution (the $1,000 catch-up requires age 55+ AND HSA eligibility for the contribution year). Form 5329 has dedicated lines for excess HSA contributions. The withdrawal of the excess includes the earnings on the excess - both the principal excess and the attributable earnings are taxable in the year of correction. Timing matters: the deadline is the tax-filing deadline including extensions, so a timely-filed extension to October 15 extends the correction window. After the deadline, the 6% excise tax compounds annually until the excess is withdrawn or absorbed by under-contributing in a future year (rare but possible).

See edge case 2 (spouse FSA disqualification) for the upstream rule that triggers scenario (b) above.

Common misconception

Wrong: "Excess contributions just roll over to next year." Right: the 6% excise tax compounds annually until corrected. There is no automatic rollover - the IRS treats the excess as a recurring problem each year it remains in the account.

Providers that make documentation easiest

The edge cases above all share one operational requirement: documentation. Two HSA providers handle the receipt-keeping and distribution-recovery infrastructure better than the rest. Both are covered by our editorial firewall at how we make money.

Fidelity HSA

Zero account minimums, no fees, and Fidelity's full investing universe.

  • No account fees or minimums
  • Same investment menu as a Fidelity brokerage account
  • Integrated with Fidelity 401(k) and IRA accounts
  • Free debit card and bill pay
Open a Fidelity HSA

Lively

Modern HSA built for self-directed investors. No-fee individual plan and Schwab brokerage integration.

  • No-fee individual plan
  • Investment options via Schwab brokerage
  • FDIC-insured cash balance
  • Mobile receipt capture and reimbursement
Open a Lively HSA

See the full provider comparison at best HSA providers.

Related reading

Underlying rules at IRS Publication 969 . Qualified medical expense definition at IRS Publication 502 . Mistaken distribution recovery procedure at IRS Notice 2004-50 .

Frequently asked questions

Is there a time limit on reimbursing yourself from your HSA?

No. IRS Publication 969 imposes no statute of limitations on retroactive reimbursement as long as the expense was incurred AFTER you established the HSA and you have documentation to prove it.

Does my spouse's FSA disqualify me from contributing to an HSA?

Yes, if it's a general-purpose FSA. A limited-purpose FSA (dental and vision only) and a dependent-care FSA do NOT disqualify HSA contributions. The fix is to switch to a limited-purpose FSA at open enrollment or drop the FSA entirely.

Can I contribute the full annual HSA cap if I only had HDHP coverage for part of the year?

Yes if you have HDHP coverage on December 1 (the last-month rule), but you must remain HSA-eligible through all 12 months of the FOLLOWING calendar year (the testing period). Fail the testing period and the excess is taxable income plus a 10% additional tax.

I accidentally used my HSA for a non-medical expense. What now?

If you discover the mistake by April 15 of the following year, you can return the funds to the HSA as a mistaken distribution with no tax and no penalty under IRS Notice 2004-50. If not corrected by that deadline, the withdrawal becomes a non-qualified distribution: ordinary income tax plus a 20% additional tax if you are under 65.

Can I use my HSA for medical care outside the United States?

Yes. IRS Publication 502 defines qualified medical expenses without any geographic restriction. The care must qualify as medical under IRC 213(d), but it can be received anywhere in the world.

Can I pay COBRA premiums from my HSA?

Yes. COBRA continuation coverage is one of four named exceptions to the general rule that insurance premiums are NOT HSA-eligible. The exceptions are codified in IRC 223(d)(2).

Is my ACA bronze plan automatically HSA-eligible?

Not automatic. The plan must meet IRS HDHP minimums: a minimum $1,650 self-only or $3,300 family deductible for 2026, with maximum out-of-pocket caps of $8,300 self-only or $16,600 family. Healthcare.gov flags HSA-eligible plans, but verify against plan documents.

What documentation do I need to prove HSA expenses if audited?

Receipt or Explanation of Benefits showing date of service, dollar amount paid, provider name, and medical nature of the expense. IRS Publication 969 does not specify a required format - digital scans, paper receipts, and EOBs all work. The HSA custodian does not verify expenses; the burden of proof is on you.

Do I need a Letter of Medical Necessity to use HSA funds for GLP-1 weight loss medications?

Not strictly required if the prescription documents a qualifying condition (obesity at BMI 30 or higher, overweight at BMI 27 or higher with a comorbidity, or type 2 diabetes). The prescription plus the clinician's chart note documenting the diagnosis serve as primary documentation. A Letter of Medical Necessity (LMN) strengthens audit defense but is not always required.

I over-contributed to my HSA. How do I fix it?

Withdraw the excess plus any earnings on the excess by your tax-filing deadline (April 15 plus extensions). File Form 5329 to report the excess. If not corrected by the deadline, a 6% excise tax applies every year the excess remains in the account.

More HSA Resources

What Is an HSA?

Complete guide to Health Savings Accounts and how they work

How to Get an HSA

Eligibility rules plus four enrollment paths for 2026

HSA as Stealth IRA

Triple tax advantage + retroactive reimbursement = the highest-leverage retirement account

HSA Shoebox Strategy

Receipt-hoarding protocol with no time limit on retroactive reimbursement

HSA Cash Flow Method

Monthly mechanics for funding the HSA while paying medical expenses out of pocket

HSA Drawdown at 65

Post-65 retirement strategy, Medicare premium eligibility, beneficiary planning

HSA for Self-Employed

Setup, tax savings, and the SE-tax trap for freelancers

Open an HSA Without an Employer

Individual HSA setup with provider picks and Form 8889 mechanics

HSA Through Your Employer

W-2 payroll setup with Section 125 FICA savings and employer match

HSA During a Job Change

Trustee-to-trustee transfers, COBRA + HDHP, and contribution proration

HSA Dental Guide

Every dental expense - what qualifies, what does not

HSA Mental Health Guide

Therapy, psychiatry, medications, and treatment programs

HSA GLP-1 & Weight Loss Guide

Ozempic, Wegovy, Mounjaro - cost savings and eligibility

Is Hims HSA-Eligible?

Service-by-service IRS Pub 502 rules for Hims telehealth

Hims for ED HSA Guide

Sildenafil and tadalafil eligibility, costs, and tracking

Hims Weight Loss HSA Guide

Compounded GLP-1 eligibility with FDA shortage caveats

Is Gala HSA-Eligible? GLP-1 Guide

Gala compounded GLP-1 eligibility, pricing, and FDA shortage caveats

Hims Mental Health HSA Guide

Therapy and prescription mental health eligibility

HSA Gym Membership Guide

How to use HSA for gym memberships with Truemed or Flex

FSA vs HSA

Side-by-side comparison of tax-advantaged health accounts

2026 Contribution Limits

How much you can contribute this year

HSA-Eligible Expenses

Browse the full list of qualified medical expenses