Health Insurance reference

Qualified Medical Expenses: What Your HSA Can and Cannot Pay For

HSA debit card alongside prescription bottles and medical receipts on a white surface
Governing IRS Publication Publication 502 (Medical and Dental Expenses) (IRS.gov, updated annually)
Penalty for non-qualified withdrawal (under 65) 20% penalty + ordinary income tax (IRS Publication 969)
Penalty for non-qualified withdrawal (65+) Ordinary income tax only — no penalty (IRS Publication 969)
OTC drugs without prescription Eligible since January 1, 2020 (CARES Act, 2020)
Menstrual care products Eligible since January 1, 2020 (CARES Act, 2020)
Health insurance premiums Generally NOT eligible (3 narrow exceptions apply) (IRS Publication 969)
Long-term care insurance premiums Eligible up to age-based IRS limits (IRS Publication 502, updated annually)
Record retention recommendation Minimum 7 years (matches extended audit window) (General tax planning guidance)

How the IRS Defines a Qualified Medical Expense

The IRS governs what your Health Savings Account can and cannot pay for through Publication 502, which defines a qualified medical expense as any cost incurred for the diagnosis, cure, mitigation, treatment, or prevention of disease — or for treatments affecting any structure or function of the body. That definition sounds broad, but the IRS applies it with meaningful precision, and the line between reimbursable and non-reimbursable spending is not always intuitive.

One foundational point worth anchoring here: your HSA can only pay for qualified medical expenses free of tax and penalty if you were enrolled in an IRS-eligible high-deductible health plan (HDHP) when you made the HSA contribution. The spending rules themselves, however, stay with the account indefinitely — meaning funds already saved can continue to be used for qualified expenses even after you leave HDHP coverage. See what happens to your HSA when you leave an HDHP for a complete breakdown of that distinction.

There are three tax outcomes you need to keep straight:

  • Qualified expense, properly documented: Withdrawal is tax-free and penalty-free.
  • Non-qualified expense before age 65: The amount is added to your gross income and subject to a 20% penalty.
  • Non-qualified expense after age 65: The amount is added to your gross income, but the 20% penalty no longer applies — effectively making it function like a traditional IRA distribution.

Understanding which category a given expense falls into is not merely academic. Over a decade of HDHP enrollment, an HSA that routinely pays for ineligible items will compound the tax cost of those errors significantly.

Governing IRS Publication Publication 502 (Medical and Dental Expenses) (IRS.gov, updated annually)
Penalty for non-qualified withdrawal (under 65) 20% penalty + ordinary income tax (IRS Publication 969)
Penalty for non-qualified withdrawal (65+) Ordinary income tax only — no penalty (IRS Publication 969)
OTC drugs without prescription Eligible since January 1, 2020 (CARES Act, 2020)
Menstrual care products Eligible since January 1, 2020 (CARES Act, 2020)
Health insurance premiums Generally NOT eligible (3 narrow exceptions apply) (IRS Publication 969)
Long-term care insurance premiums Eligible up to age-based IRS limits (IRS Publication 502, updated annually)
Record retention recommendation Minimum 7 years (matches extended audit window) (General tax planning guidance)

What Your HSA Can Legitimately Pay For

The list of IRS-approved expenses is genuinely expansive. Below is a structured reference covering the most common categories consumers encounter. This is not exhaustive — Publication 502 contains dozens of additional items — but it reflects the spending patterns most relevant to everyday healthcare planning.

Prescription bottles, dental X-rays, eyeglass frames, and a hearing aid arranged on a gray surface
HSA funds can cover prescription drugs, vision care, hearing aids, and dental treatment — a broader range than most account holders realize.

Prescription Medications and Medical Devices

  • Prescription drugs (any drug requiring a prescription under federal law)
  • Insulin — notably, over-the-counter insulin became HSA-eligible without a prescription after the CARES Act of 2020
  • Durable medical equipment: wheelchairs, crutches, blood sugar monitors, CPAP machines
  • Hearing aids and batteries
  • Eyeglasses, contact lenses, and contact lens solution
  • Prosthetics and orthotic devices

Dental and Vision Care

HSA funds can cover a wide range of dental costs that are often only partially reimbursed by insurance — or not at all. This includes preventive cleanings, X-rays, fillings, extractions, root canals, crowns, dentures, and orthodontic treatment. Cosmetic procedures like teeth whitening, however, are excluded. For a detailed view of how HSA funds interact with dental plan structures, see using a dental FSA or HSA alongside your insurance plan.

Vision expenses that qualify include eye exams, prescription eyeglasses, prescription sunglasses, contact lenses, and LASIK surgery. Non-prescription sunglasses and purely cosmetic vision corrections are not covered.

Mental and Behavioral Health

  • Psychotherapy and psychiatric treatment
  • Inpatient mental health treatment
  • Substance abuse treatment (including residential programs)
  • Smoking cessation programs and prescription cessation aids

Long-Term and Chronic Care Costs

For those managing chronic conditions or aging into higher healthcare utilization, HSA funds can cover nursing home fees (when medical care is the primary reason), in-home nursing care, physical therapy, occupational therapy, and medically necessary home modifications such as wheelchair ramps or grab bars. Costs that are primarily for personal comfort rather than medical necessity — even in a skilled nursing context — are generally excluded.

Maternity, Fertility, and Reproductive Care

  • Prenatal care and labor and delivery costs
  • Fertility treatments including IVF and egg retrieval
  • Breast pumps and lactation supplies (CARES Act expansion)
  • Vasectomies and tubal ligations

COBRA and Certain Insurance Premiums

This is an area that surprises many account holders: HSAs generally cannot pay for health insurance premiums. There are three narrow exceptions:

  1. COBRA continuation premiums
  2. Qualified long-term care insurance premiums (subject to age-based IRS limits)
  3. Health insurance premiums paid while receiving unemployment compensation
  4. Medicare premiums (Parts A, B, C, and D) — but only after the account holder reaches age 65

Premiums for dental or vision coverage purchased as standalone policies are not among the exceptions, regardless of age.

Medicare Premiums Become Eligible at 65

Once you reach age 65, your HSA can pay Medicare Part A, Part B, Part C (Medicare Advantage), and Part D premiums — all tax-free. This is one of the most valuable late-stage benefits of maintaining an HSA balance into retirement. Note that Medicare supplement (Medigap) premiums remain ineligible regardless of age, so this exception does not extend to all coverage types.

State Tax Treatment May Differ

While HSA contributions and qualified withdrawals are exempt from federal income tax, a small number of states — including California and New Jersey — do not conform to federal HSA tax treatment and tax HSA earnings or contributions at the state level. If you live in a non-conforming state, your state tax liability on HSA activity should factor into your overall cost-benefit analysis. Consult a tax professional familiar with your state's rules.

The Prescription Requirement for OTC Drugs Was Eliminated Permanently

Prior to January 1, 2020, using HSA funds on over-the-counter medications like ibuprofen or antihistamines required a physician's prescription. The CARES Act permanently removed that requirement. You no longer need a prescription to use HSA funds on OTC drugs — though retaining itemized receipts identifying the product is still advisable for documentation purposes.

What Your HSA Cannot Pay For

Knowing the exclusions matters just as much as knowing the inclusions — particularly because some disqualified items look medically adjacent at first glance.

Split image contrasting an eligible prescription pickup with a non-eligible gym membership
Not all health-related spending qualifies. Prescriptions are eligible; gym memberships, even if physician-recommended, generally are not.

Items Expressly Excluded

  • Cosmetic procedures: Elective cosmetic surgery, teeth whitening, hair transplants, and similar treatments whose primary purpose is improving appearance rather than treating a disease or defect
  • Health club memberships: General fitness memberships are not deductible, even if a physician recommends exercise. The IRS requires that the expense treat a specific diagnosed condition — not general health maintenance.
  • Nonprescription drugs (with one major exception): Before 2020, over-the-counter medications required a prescription to qualify. The CARES Act permanently changed this, making OTC drugs — including pain relievers, allergy medication, and antacids — HSA-eligible without a prescription.
  • Nutritional supplements and vitamins: Unless prescribed by a physician to treat a specific diagnosed condition, vitamins and dietary supplements are not qualified expenses.
  • Childcare and dependent care: These costs belong under a Dependent Care FSA, not an HSA. Even if childcare enables a parent to work or receive medical treatment, it does not qualify.
  • Household help: Even if you need assistance at home due to a medical condition, general household services do not qualify. Only the portion of in-home help attributable to nursing or medical care is eligible.
  • Health insurance premiums (with narrow exceptions noted above)
  • Funeral and burial expenses
  • Maternity clothing

The Gray Zone: Medically Necessary vs. General Wellness

Several expense categories sit in a genuinely ambiguous space. Massage therapy, for instance, is deductible if prescribed by a physician to treat a specific condition like muscle spasms or injury rehabilitation — but not as a general wellness measure. Weight-loss programs follow a similar rule: the cost is deductible if treatment is recommended for a specific disease (obesity, hypertension, cardiovascular disease), but not for general fitness improvement.

Special schools and education for children with disabilities represent another nuanced area. The IRS permits deductions for tuition at schools that specialize in treating learning disabilities or physical conditions — but the qualifying criteria are strict and documentation-dependent.

When in doubt, a written recommendation from a licensed physician describing the specific medical necessity is your primary line of defense in any audit. Without it, a claim that seems medically intuitive may not survive IRS scrutiny.

Qualified Medical Expense

An expense defined by IRS Publication 502 as costs for the diagnosis, cure, mitigation, treatment, or prevention of disease, or for treatments affecting any structure or function of the body. Only expenses in this category can be paid from an HSA without triggering taxes or penalties.

Health Savings Account (HSA)

A tax-advantaged savings account available exclusively to individuals enrolled in an IRS-qualifying high-deductible health plan. Contributions, earnings, and qualified withdrawals are all federal-tax-free.

High-Deductible Health Plan (HDHP)

A health plan meeting IRS minimum deductible and maximum out-of-pocket thresholds that makes the enrollee eligible to contribute to an HSA. Not every high-deductible plan qualifies — the plan must meet specific annual IRS benchmarks.

IRS Publication 502

The primary IRS reference document listing qualifying medical and dental expenses for purposes of itemized deductions and HSA reimbursements. Updated annually and available at IRS.gov.

Non-Qualified Withdrawal

An HSA distribution used for an expense that does not meet IRS qualification standards. Before age 65, it is subject to ordinary income tax plus a 20% penalty. After 65, only ordinary income tax applies.

CARES Act (2020)

The Coronavirus Aid, Relief, and Economic Security Act, which permanently expanded HSA-eligible expenses to include over-the-counter medications without a prescription and menstrual care products, effective January 1, 2020.

Deferred Reimbursement

The strategy of paying qualified medical expenses out of pocket and allowing HSA funds to grow, then withdrawing HSA funds years later to reimburse those documented past expenses. There is no IRS deadline for this reimbursement.

Durable Medical Equipment (DME)

Medical equipment prescribed by a physician for long-term use in managing a health condition, such as wheelchairs, CPAP machines, or blood glucose monitors. DME is typically HSA-eligible.

CARES Act Expansions That Changed the Rules

The Coronavirus Aid, Relief, and Economic Security (CARES) Act of 2020 made two permanent changes to HSA-eligible expenses that significantly expanded everyday utility:

  1. Over-the-counter medications: HSA funds can now pay for OTC drugs — including pain relievers, cold medicine, allergy medication, sleep aids, and antacids — without a physician's prescription. This reversed a 2011 restriction that had required prescriptions for OTC items.
  2. Menstrual care products: Tampons, pads, menstrual cups, and similar products are now permanently classified as qualified medical expenses.

Telehealth services also received temporary HSA-related relief under CARES and subsequent legislation, allowing HDHPs to cover pre-deductible telehealth without jeopardizing HSA eligibility — though the permanence of that provision has been subject to ongoing legislative renewal rather than a permanent fix. Check current IRS guidance or consult your plan administrator for the latest status on telehealth-before-deductible rules.

These expansions are not retroactive, but they do apply going forward regardless of when your account was opened. If you have been holding HSA funds from prior years, you can now use them for OTC purchases made after January 1, 2020.

$129.8B

Total HSA assets held in the U.S.

According to Devenir's 2023 HSA Research Report, total HSA assets reached a record $129.8 billion across approximately 36 million accounts.

36M+

Active HSA accounts in the U.S.

Devenir's 2023 midyear HSA survey estimated more than 36 million open HSA accounts, reflecting steady growth driven by HDHP enrollment.

2020

Year OTC drugs became permanently HSA-eligible

The CARES Act made over-the-counter medications permanently qualified HSA expenses without requiring a prescription, effective January 1, 2020.

20%

Penalty rate for non-qualified HSA withdrawals before age 65

Per IRS Publication 969, non-qualified withdrawals before age 65 are subject to both ordinary income tax and a 20% additional tax.

$0

Federal tax on qualified HSA withdrawals

Distributions used for IRS-qualified medical expenses are completely exempt from federal income tax, making the HSA one of the only triple-tax-advantaged accounts available.

Documentation, Record-Keeping, and Audit Risk

Your HSA administrator does not pre-screen expenses for eligibility. When you swipe your HSA debit card at a pharmacy or pay a provider, no one is verifying in real time that the purchase qualifies. That compliance responsibility falls entirely on you.

The IRS does not require you to submit receipts with your tax return, but you must be prepared to produce documentation if audited. Best practice is to retain:

  • Itemized receipts (not just credit card statements) for every HSA expenditure
  • An Explanation of Benefits (EOB) from your insurer where applicable
  • Physician letters or prescriptions for borderline expenses (special schools, therapeutic treatments, OTC items prescribed for a condition)
  • Records of the date, amount, and medical purpose of each expense

The statute of limitations for HSA audit exposure generally mirrors income tax rules — three years from the date you file, or six years if the IRS suspects substantial underreporting. Given that HSA balances can accumulate for decades, particularly for account holders using the account as a long-term investment vehicle as described in Using Your HSA as a Long-Term Investment Vehicle, keeping records organized from the start is not optional — it is foundational.

One structurally useful approach: maintain a dedicated digital folder (or use your HSA administrator's document storage if offered) logging each transaction with its receipt and expense category. If you are deferring reimbursement — paying out of pocket now and intending to withdraw HSA funds years later — that requires even more careful documentation, because you will need to connect a future withdrawal to a past expense that may be years old.

Person organizing medical receipts into labeled folders at a home office desk with a laptop open
Thorough record-keeping is the cornerstone of HSA compliance — especially if you plan to defer reimbursements for future years.

Reimbursing Yourself for Past Expenses

The IRS allows you to reimburse yourself from your HSA for a qualified expense paid out of pocket at any prior time — as long as the expense occurred after the HSA was established and you have not previously claimed it as a deduction elsewhere. There is no deadline by which reimbursement must occur. This makes it possible to build HSA balances over many years while paying current medical costs from other funds, then withdraw HSA money in retirement as a tax-free supplement. The HSA Investing 101 guide covers that strategy in detail. The prerequisite is airtight documentation linking every future withdrawal to a specific historical expense.

For broader planning context — including whether an HDHP and HSA pairing makes sense for your situation — HSA-Eligible Plans and Open Enrollment covers the enrollment-level decisions that set the foundation for everything else.

guide

IRS Publication 502: Medical and Dental Expenses

The authoritative IRS reference listing all qualifying medical and dental expenses. Updated annually and available free at IRS.gov — the primary document governing what your HSA can legally reimburse.

guide

IRS Publication 969: HSAs and Other Tax-Favored Health Plans

Covers HSA eligibility, contribution limits, distribution rules, and qualified expense standards in comprehensive detail. Essential reading for anyone managing an HSA with complex circumstances.

guide

HSA Contribution Limits and IRS Rules Explained

A structured reference covering annual contribution caps, family versus individual limits, and catch-up contribution rules. See <a href="/health-insurance/plan-types/hdhps-and-hsas/hsa-contribution-limits-deadlines-and-irs-rules-explained">HSA Contribution Limits, Deadlines, and IRS Rules Explained</a> for the full breakdown.

guide

What the IRS Considers an Eligible HDHP

Before your HSA spending rules matter, your plan must qualify. This reference explains the specific IRS deductible and out-of-pocket thresholds that make an HDHP HSA-eligible. See <a href="/health-insurance/plan-types/hdhps-and-hsas/what-the-irs-considers-an-eligible-hdhp">What the IRS Considers an Eligible HDHP</a>.

template

HSA Receipt Tracker Template

A structured spreadsheet template for logging HSA transactions by date, expense category, amount, and documentation status. Supports both current-year reimbursements and deferred reimbursement strategies.

guide

Premiums & Deductibles Coverage Hub

Understanding how deductibles interact with HSA spending is foundational to HDHP planning. See <a href="/health-insurance/costs-and-coverage/premiums-and-deductibles">Premiums &amp; Deductibles</a> for a full breakdown of cost-sharing mechanics.

Simone Treadwell

Author

Simone Treadwell

M.S. in Financial Planning, Kansas State University, Certified Financial Planner (CFP)

Simone Treadwell is a certified financial planner who specializes in insurance-integrated financial planning, with particular depth in disability income, long-term care, and health coverage structures like HDHPs and HSAs. She helps clients at key life transitions — marriage, parenthood, career change, and retirement — map their insurance choices to long-term financial goals. Her writing translates complex policy mechanics into decisions readers can actually act on.

long-term disabilitylong-term careHDHPs & HSAslife-stage planningdisability income
View all articles by Simone Treadwell →

All claims in this article are backed by peer-reviewed research. We follow strict editorial guidelines to ensure accuracy and reliability. Sources available on request from our editorial team.

Disclaimer: The content on Insure Ninja is for informational purposes only and is not a substitute for professional advice. Always consult a qualified professional for guidance specific to your situation.

Related articles