An HSA can pay for what the IRS calls qualified medical expenses: the costs of the “diagnosis, cure, mitigation, treatment, or prevention of disease” and of “affecting any part or function of the body” (IRS Publication 502). Things that are merely good for your general health don't count.
Most qualified expenses are listed in IRS Publication 502. It's written for the medical expense deduction, though, so it leaves out two things that do count for HSAs: over-the-counter medicine and menstrual products.
The three conditions
Whatever you bought, the expense also has to meet three conditions. First, it must come after your HSA was established. Bills from before that date don't qualify (IRS Notice 2004-2, Q&A 26).
Second, it must be for you, your spouse, or your dependents. Third, it must be a cost you paid out of pocket: anything insurance or an FSA covered doesn't count, and neither does anything you already deducted (IRS Publication 969).
Sales tax on a qualifying item counts too. The law defines qualified medical expenses as amounts paid for medical care, and the tax is part of what you paid (26 U.S.C. § 223(d)(2)(A)). Tax on items that don't qualify doesn't count.
What usually counts
- Doctor, specialist, hospital, urgent care, telehealth, and lab bills, including copays, deductibles, and coinsurance
- Prescription drugs and insulin
- Over-the-counter medicine, with the date rules below
- Menstrual products, with the date rule below
- Dental care, such as cleanings, fillings, braces, and dentures
- Vision care, such as eye exams, prescription glasses, contact lenses, and contact solution
- Mental health care from psychologists, psychiatrists, and therapists
- Physical therapy, chiropractic care, and acupuncture
- Medical equipment and supplies, such as crutches, blood sugar test kits, and hearing aids
- Birth control, including prescribed pills, emergency contraception, condoms, tubal ligation, and vasectomy
- Pregnancy test kits, fertility treatment, and stop-smoking programs
- Travel mainly for medical care, such as mileage to appointments
Over-the-counter medicine and menstrual products both count today, but for older receipts the date matters. From 2011 through 2019, over-the-counter medicine counted only with a prescription (IRS Notice 2010-59). Before 2011 it counted without one, and insulin always counted.
Since 2020, over-the-counter medicine counts without a prescription again, and menstrual products count too (CARES Act § 3702). Menstrual products bought before 2020 don't.
Emergency contraception sold without a prescription is an over-the-counter medicine, so the same dates apply. Condoms count as medical care (IRS Notice 2024-71).
Sunscreen is regulated by the FDA as an over-the-counter drug, and broad-spectrum sunscreen with SPF 15 or higher can be sold without a warning that it doesn't help prevent skin cancer (FDA sunscreen guidance). That kind of sunscreen, SPF lip balm included, is generally treated like other over-the-counter medicine, with the same dates.
Products that are mainly cosmetic, like makeup or tinted moisturizer with SPF, are less clear. The IRS excludes cosmetics “used for ordinary cosmetic purposes” from medicine (Treas. Reg. § 1.213-1(e)(2)). Its guidance doesn't name sunscreen, so if you're unsure about a product, ask your HSA provider.
What usually doesn't count
- Cosmetic procedures and teeth whitening
- Gym and health club memberships
- Vitamins and supplements taken for general health
- Everyday personal items, like a toothbrush and toothpaste
- Maternity clothes, diapers, and household help
- Most insurance premiums, with the exceptions below
A doctor's recommendation doesn't change most of these. Household help, teeth whitening, and maternity clothes never count, and cosmetic surgery counts only when it corrects a deformity from a birth defect, an injury, or a disfiguring disease. Gym memberships, supplements, and diapers can count in narrow cases, covered next. IRS Publication 502 lists these and more under “What Expenses Aren't Includible?”
Items that need a Letter of Medical Necessity
Some items count only when they treat a specific condition. For these, keep a Letter of Medical Necessity (LMN) from your doctor with the receipt, saying what condition the item treats (IRS Publication 502).
Nutritional supplements count if a practitioner recommends them for a condition a physician diagnosed. A weight-loss program counts if it treats a diagnosed disease, such as obesity or heart disease. Special food counts only if it doesn't meet normal nutritional needs, it treats an illness, and a physician says you need it, and even then only the cost above a normal diet counts. Diapers count when they're needed to relieve the effects of a particular disease.
Gym memberships and fitness devices follow the same rule (IRS FAQ on wellness expenses). A gym membership counts only if its sole purpose is to treat a disease a physician diagnosed, such as obesity or heart disease, or to follow a prescribed physical therapy plan. A wearable, such as a fitness watch, band, or ring, counts if you bought and use it mainly to help diagnose or treat a specific disease. A doctor's recommendation, your diagnosis or risk factors, and how you use the data all help show that; wanting to track or improve your health in general isn't enough. The IRS hasn't directly addressed home exercise equipment, like a bike trainer, but the same test likely applies.
Be wary of companies that sell a letter so you can buy wellness products with HSA money. In 2024 the IRS warned that a letter based only on what you report about your health doesn't turn food, exercise, or wellness spending into a medical expense (IRS news release IR-2024-65). The expense has to be part of treating a specific diagnosed condition. If it doesn't qualify, the withdrawal is taxed as income, plus a 20% additional tax before age 65.
Insurance premiums
You generally can't pay insurance premiums from an HSA, with four long-standing exceptions (IRS Publication 969):
- Long-term care insurance, up to an age-based limit
- Health care continuation coverage, such as COBRA
- Health coverage while you're receiving unemployment compensation
- Medicare and other health coverage from age 65, but not a Medicare supplement (Medigap) policy
From 2026, an HSA can also pay for a direct primary care arrangement, where you pay a doctor's practice a fixed periodic fee for primary care (26 U.S.C. § 223(d)(2)(C)(v)). For 2026, the fees for all such arrangements can total up to $150 a month, or $300 if an arrangement covers more than one person, adjusted for inflation after that.
Finding receipts you've missed
The costs people forget are usually small ones: drugstore medicine, copays, contact solution, and mileage to appointments, which is counted at the IRS medical mileage rate. Costs for your spouse and dependents count too, not just your own.
Older expenses count as long as they came after your HSA was established. To find them, go through your pharmacy's prescription history, your insurer's claims and EOBs, and old card statements, skipping anything you paid with your HSA card or an FSA, or already deducted. A card statement isn't an itemized receipt, but it tells you whom to ask, and most providers and pharmacies can send you an itemized copy.
Save receipts even when you're unsure
Saving a receipt costs nothing, and whether an expense counts matters only when you claim it, which could be years from now. So keep the receipt for anything that might qualify.
When you do claim it, have the itemized receipt and any Letter of Medical Necessity ready. If you're still unsure whether something counts, check IRS Publication 502 or ask your HSA provider first.
RetroHSA keeps every receipt you upload. When it reads one, it marks any item it isn't sure about, and those items don't count toward your total until you decide.