What an HSA Actually Pays For, and What Changes at 65
An HSA is the only account with a deduction going in, tax-free growth, and tax-free withdrawals. All three depend on one phrase in the tax code, and most of what people believe about that phrase is either narrower or wider than the law.
On this page
Most of the writing about health savings accounts is about getting money in: the contribution limit, the employer deposit, whether to invest the balance or leave it in cash. The harder question comes later, at the pharmacy counter or in a hospital billing portal, and it is narrower than it sounds. Can this particular charge come out of the HSA?
Getting it wrong is expensive in a way that getting a 401(k) contribution wrong is not. A withdrawal that falls outside the definition is taxed as income and then taxed again at 20%. Below is what the definition actually says, where the edges are, and the one rule that makes an HSA behave differently from every other account you own.
What the law counts as a qualified expense
There is no official IRS list of eligible products. There is a definition, and everything else follows from it. Publication 969 puts it this way: qualified medical expenses means amounts paid by the account holder for “medical care” as defined in Code section 213(d), for that person, their spouse, and any dependent, “but only to the extent the amounts are not compensated for by insurance or otherwise.”[1]
Three conditions are hiding in that sentence, and all three bind.
- It has to be medical care. Section 213(d) is the same standard that governs the medical expense deduction, which is why Publication 502 is the practical reference for what counts: diagnosis, cure, mitigation, treatment or prevention of disease, and the equipment and services that go with it.[2]
- It cannot already be paid by someone else. If insurance covered the charge, the covered portion is not a qualified expense. Your deductible, copays and coinsurance are, because you paid them.
- It has to come after the account existed.Publication 969 is blunt: “expenses incurred before you establish your HSA aren’t qualified medical expenses,” and state law decides when the account was established.[1] An account opened in March cannot reimburse a February root canal.
Who the money can be spent on is wider than most people assume. It covers you and your spouse, every dependent you claim, and anyone you could have claimed except that they filed a joint return, had too much gross income, or that you yourself are claimable on someone else’s return.[1] A child of parents who are divorced, separated, or living apart for the last six months of the year is treated as the dependent of both for this purpose, so either parent’s HSA can pay. And the person does not have to be on your high-deductible plan at all. Eligibility to contribute depends on your coverage; eligibility to spend depends only on the relationship.
- •Deductibles, copays, coinsurance
- •Prescriptions and insulin
- •Dental and vision, including glasses
- •Mental health care and therapy
- •Menstrual care products
- •Premiums: only the five listed kinds
- •Weight-loss program: for a diagnosed disease
- •Supplements and vitamins: to treat a condition
- •Anything at all: incurred after the account opened
- •Health club and gym dues
- •Cosmetic surgery
- •Ordinary groceries and wellness purchases
- •Teeth whitening, maternity clothes
- •Funeral expenses, diaper service
Two clarifications are worth knowing because they settled items people still ask about. Amounts paid for menstrual care products are treated as paid for medical care, which Publication 969 states directly.[1] And in October 2024 the IRS issued a safe harbor treating amounts paid for condoms as medical care under section 213(d), which makes them payable from an HSA.[1]
One divergence between the two publications matters at the drugstore counter. Publication 502 is written for the itemized deduction, and it says that apart from insulin you cannot include a drug that was not prescribed.[2] That restriction no longer applies to a health account. Section 3702 of the CARES Act, titled “Inclusion of certain over-the-counter medical products as qualified medical expenses,” struck the prescription-only sentence out of the HSA definition for amounts paid after December 31, 2019.[7] Publication 969 states the result plainly for the sibling accounts: over-the-counter medicine counts “whether or not prescribed.”[1] The aspirin is payable from the HSA and still not deductible on Schedule A.
What does not count
The excluded list is more specific than “things that are not medicine.” Publication 502 names health club dues, cosmetic surgery, nutritional supplements and vitamins, funeral expenses, diaper service, household help, teeth whitening and maternity clothes among expenses you cannot include.[2] Weight-loss programs are excluded for general health and allowed when the program treats a disease a physician has diagnosed, but gym dues stay excluded either way.[2]
The gray zone has become a small industry, and the IRS has said so out loud. In a March 2024 alert, it warned about companies selling the idea that food and wellness purchases can be reimbursed through an HSA, FSA, HRA or MSA: “personal expenses for general health and wellness are not considered medical expenses under the tax law.”[4] A qualifying expense has to relate to “a targeted diagnosis-specific activity or treatment,” and a doctor’s note generated from self-reported answers on a web form does not turn a personal expense into a medical one.[4]
There is one more exclusion people trip over at tax time. You cannot take the medical expense deduction on Schedule A for expenses equal to the tax-free distribution you took from the HSA.[1] The money is already untaxed; deducting it would be the second bite. If you took a distribution, the trustee reports it to you and to the IRS on Form 1099-SA, and you reconcile it on Form 8889.[1] It arrives with the rest of the January tax mail.
Premiums: the rule and its five exceptions
The default answer is no. “You may not use HSA funds to pay for insurance,” Publication 969 says, and then lists the exceptions.[1]
| Premium | Payable from an HSA? | The condition |
|---|---|---|
| Long-term care insurance | Yes | Subject to annual age-based limits |
| COBRA or other continuation coverage | Yes | Can be for a spouse or dependent |
| Coverage while on unemployment | Yes | While receiving federal or state unemployment compensation |
| Medicare premiums | Yes, at 65+ | You, the account holder, must be 65 or older |
| Medigap (Medicare supplemental) | No | Explicitly excluded |
| Direct primary care arrangement | Yes, from 2026 | Fees up to $150 a month, or $300 for a multi-person arrangement |
| Your regular employer or marketplace plan | No | Not among the exceptions |
Sources: IRS Publication 969; Public Law 119-21, section 71308; Rev. Proc. 2026-24.
The Medicare row has a trap in it. The exception is written around the account holder’s age, not the age of whoever is covered: if you are not yet 65, Medicare premiums for a spouse or dependent who is 65 are generally not qualified expenses.[1] Couples with an age gap often get this backwards.
The last row is new. Section 71308 of Public Law 119-21, enacted in July 2025, added a clause to the premium exceptions for “any direct primary care service arrangement,” effective for months beginning after December 31, 2025.[6] The arrangement has to be primary care for a fixed periodic fee, and the fee cannot exceed $150 a month, or twice that for an arrangement covering more than one person.[5] Procedures under general anesthesia, prescription drugs other than vaccines, and lab work not usually done in a primary care office are carved out of the definition.[6] The same law also settled telehealth: a plan does not stop being a high-deductible health plan because it covers remote care before the deductible.[1]
What a non-qualified withdrawal costs
Two taxes stack. First, the distribution is included in income and taxed at your ordinary rate. Then “there is an additional 20% tax on the part of your distributions not used for qualified medical expenses,” figured on Form 8889.[1]
The additional tax also reaches a case nobody plans for, because it applies to deemed distributions. Pledge any part of an HSA as security for a loan and the fair market value of the pledged assets becomes income, is not treated as paid for medical care, and carries the 20%.[1] A prohibited transaction with the account does worse: the account stops being an HSA as of January 1 of that year, and the fair market value of everything in it is income.[1]
Publication 969 names the three exceptions to the additional tax: there is none on distributions made after the date you are disabled, reach age 65, or die.[1] Income tax survives all three.
The receipt that has no expiration date
This is the rule that separates an HSA from a flexible spending account, and it is the one most people have never been told. You do not have to take the money out in the year you paid the bill. IRS Notice 2004-50 answers the question directly: a distribution in the current year can reimburse expenses incurred in any prior year, as long as they were incurred after the HSA was established. “Thus, there is no time limit on when the distribution must occur.”[3]
The notice’s own example is a $1,500 expense incurred in December 2004 and reimbursed from the HSA in June 2005, with no tax consequence.[3] Nothing in the answer caps the gap at six months, or at six years.
That turns a health account into an optional one. If you can afford to pay a medical bill from cash, you can leave the HSA invested, keep the receipt, and withdraw the same amount tax-free at any later point you choose, including in retirement. The cost of doing this is bookkeeping, not tax. It is also the mirror image of the FSA, where unspent money is forfeited on a deadline: an FSA election has to be spent inside the plan year, which is why the two accounts call for opposite habits.
What changes at 65
At 65 an HSA stops being only a health account. The additional 20% tax no longer applies, so a withdrawal for anything at all is simply income, which is how a traditional IRA has always worked.[1] Qualified medical withdrawals stay tax-free, so the account is strictly better than the IRA for the medical half of your spending and exactly the same for the rest.
Medicare premiums join the qualified list at the same age, and that is where the balance tends to get spent. Part B and Part D premiums are ordinary monthly bills for the rest of your life, and paying them from an HSA converts pre-tax dollars into a cost you were going to pay anyway. Medigap premiums remain excluded.[1]
The other half of the change is less welcome. Beginning with the first month you are enrolled in Medicare, your HSA contribution limit is zero, and the rule applies to retroactive coverage, so a backdated enrollment turns contributions you already made into excess contributions.[1] Publication 969 works the arithmetic for someone who turned 65 in July 2025 with self-only coverage and the age-55 catch-up: a $5,300 limit for the year becomes $2,650, six twelfths of it.[1] If you are planning the handover, it sits alongside the rest of the retirement timing questions, including what the Social Security statement assumes about your claiming age.
| Before 65 | 65 and after | |
|---|---|---|
| Qualified medical withdrawal | Tax-free | Tax-free |
| Other withdrawal | Income tax plus 20% | Income tax only |
| Medicare premiums | Not qualified | Qualified (not Medigap) |
| New contributions | Up to the annual limit | Zero from the month Medicare starts |
Source: IRS Publication 969. Age 65 is the statutory Medicare eligibility age the exception is written around.
One estate detail belongs here too, because it decides who gets the tax treatment. If your spouse is the designated beneficiary, the account becomes their HSA. If anyone else is, the account stops being an HSA and its fair market value is taxable to that beneficiary in the year of your death.[1] That makes the beneficiary form on an HSA unusually consequential, and it is the same form people forget on every other account: a designation overrides what your will says.
Keeping the records the rule asks for
Everything above comes down to evidence. The deferral in Notice 2004-50 is only as good as your ability to prove, years later, that a charge was medical, that you paid it, and that you never got the money back another way. A shoebox works until the first time you need to answer for a specific year.
- 1Record the HSA’s establishment date onceNothing before it can ever be reimbursed, so the date is the floor on every future claim. Keep the account-opening confirmation with it.
- 2Keep the receipt and the explanation of benefits togetherThe receipt proves you paid. The plan’s statement proves insurance did not cover that part. The second document is the one people throw away and the one the three conditions actually need.
- 3Mark whether each expense was reimbursed or deferredA charge you paid from cash and left in the HSA is a future tax-free withdrawal. A charge already paid from the HSA is not. The difference has to be visible without re-reading every bill.
- 4Keep the 1099-SA and Form 8889 for each yearThey are how the distributions you took were reported. Store them with the receipts that justify them, not separately.
That is a filing problem, and it is the one piece of this a money app can take off your hands. In LumaLedger, a receipt you upload or forward in is matched to the charge it paid for and attached to that transaction, so the cost and its proof stay in one place instead of two. Statements and tax forms go to the Documents vault, filed by account and tax year, which is where a given year’s 1099-SA belongs. The health care spending itself appears on the Income and spending page whether it was paid from the HSA or from checking, and that is the figure a deferred reimbursement is measured against.
An HSA rewards patience more than any other account, and the reward is conditional on paperwork. The tax treatment is written into the code; whether you can still claim it in 2034 is written in your own files. If the account is also part of your long-term savings, the order it sits in matters as much as what it pays for: where the HSA falls in the funding order depends on the employer match ahead of it, and a fund you can reach without a tax question attached is still the first thing to build.
LumaLedger links your banks and cards, finds every recurring charge, and keeps a true double-entry ledger of your net worth. It’s free during the private beta.
Open your ledgerFrequently asked questions
What counts as an HSA qualified medical expense?
Amounts you pay for “medical care” as defined in Internal Revenue Code section 213(d), for yourself, your spouse, or a dependent, to the extent the cost is not compensated for by insurance or otherwise. That covers doctor and dentist visits, prescriptions, deductibles and copays, eyeglasses, hearing aids, physical therapy, mental health care, and medical equipment. Menstrual care products are treated as paid for medical care. Expenses incurred before you established the HSA never qualify, whatever the balance.
What is the penalty for using an HSA for non-medical expenses?
The withdrawal is included in your income and taxed at your ordinary rate, and the tax is increased by an additional 20% of that amount. The additional 20% does not apply to distributions made after you become disabled, reach age 65, or die, per IRS Publication 969. Income tax still applies in all three cases.
Can I use my HSA to pay insurance premiums?
Usually no. Publication 969 lists four exceptions: long-term care insurance (subject to age-based limits), health care continuation coverage such as COBRA, health coverage while you are receiving federal or state unemployment compensation, and Medicare or other health coverage once you are 65 or older, excluding Medigap. A fifth was added for months beginning after December 31, 2025: the fee for a direct primary care service arrangement.
Can I reimburse myself for a medical bill I paid years ago?
Yes, if the expense was incurred after the HSA was established, has not been reimbursed from another source, and was not claimed as an itemized deduction. IRS Notice 2004-50 states plainly that there is no time limit on when the distribution must occur. The catch is evidence: you have to keep records good enough to show all three of those things later.
What happens to an HSA at age 65?
Two things. The 20% additional tax on non-qualified withdrawals goes away, so the account behaves like a traditional IRA for anything other than medical care: taxable, but not penalized. And Medicare premiums become qualified expenses. At the same time, enrolling in Medicare sets your contribution limit to zero from that month on, so money can come out but no new money goes in.
Sources
- 1.Internal Revenue Service, Publication 969, Health Savings Accounts and Other Tax-Favored Health Plans (for use in preparing 2025 returns) (2025 edition).
- 2.Internal Revenue Service, Publication 502, Medical and Dental Expenses (for use in preparing 2025 returns) (2025 edition).
- 3.Internal Revenue Service, Notice 2004-50, Health Savings Accounts, Additional Questions and Answers (Q&A-39) (August 2004).
- 4.Internal Revenue Service, IR-2024-65, IRS alert: Beware of companies misrepresenting nutrition, wellness and general health expenses as medical care (March 2024).
- 5.Internal Revenue Service, Rev. Proc. 2026-24, 2027 inflation adjusted amounts for Health Savings Accounts (2026).
- 6.U.S. Government Publishing Office, Public Law 119-21, section 71308, Treatment of direct primary care service arrangements (July 2025).
- 7.U.S. Government Publishing Office, Public Law 116-136, section 3702, Inclusion of certain over-the-counter medical products as qualified medical expenses (March 2020).
- 8.KFF, 2026 Employer Health Benefits Survey (October 2026).
This article is for general education and isn't financial, tax, or legal advice. Figures come from the sources cited above as of their publication dates; examples use illustrative numbers.
Keep reading
Taking money out of a 401(k) early, priced honestly
What a 401(k) hardship withdrawal requires, why 10% withholding is not the tax you owe, and what a $20,000 withdrawal really costs.
Sinking Funds: The Budget Category Almost Everyone Forgets
Insurance, tires, property tax and December gifts are not emergencies. How to find your irregular expenses, size a sinking fund for each, and where to keep it.
Are scholarships taxable? The part above tuition is, and it can be worth reporting
Scholarships are tax-free only up to tuition, required fees and course materials. What is taxable, what the 1098-T misses, and when reporting more pays off.
