Yes, you can use your HSA for prescriptions. Any medication a licensed provider prescribes to treat a physical or mental condition counts as a qualified medical expense, so the withdrawal comes out of your account free of income tax and free of penalty.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans Since the CARES Act took effect in 2020, most over-the-counter medications qualify too, no prescription required.2Internal Revenue Service. IRS Outlines Changes to Health Care Spending Available Under CARES Act
What Counts as a Qualifying Prescription
Any drug that requires a prescription from a doctor, dentist, or other authorized provider is a qualified medical expense. The rule comes from Internal Revenue Code Section 213(d), which defines medical care broadly as amounts paid to diagnose, treat, or prevent disease.3Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses
Your HSA can pay:
- The full price of a prescription filled before you meet your deductible
- The copay or coinsurance you owe after insurance pays its share
- Prescriptions filled through a mail-order pharmacy
Insulin is the one drug that qualifies without a prescription. Federal law specifically lists insulin as an eligible expense whether you buy it over the counter or through a prescription.3Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses
You can also use HSA funds for prescriptions filled for your spouse or tax dependents, even if they aren’t on your high-deductible health plan. The IRS defines qualified medical expenses as amounts paid for the account holder, the spouse, and any dependent.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans Keep the receipt and, ideally, a copy of the prescription in your records.
Over-the-Counter Medications
Before 2020, buying allergy pills or cold medicine with HSA funds meant asking a doctor for a prescription for something anyone could grab off a shelf. The CARES Act ended that. Over-the-counter medications now qualify for tax-free HSA spending without any prescription.2Internal Revenue Service. IRS Outlines Changes to Health Care Spending Available Under CARES Act
The list is broad: pain relievers, antihistamines, cold and flu treatments, digestive aids, sleep aids, acid controllers, anti-itch creams, and acne medications all qualify. Menstrual care products — tampons, pads, liners, and cups — fall under the same law.2Internal Revenue Service. IRS Outlines Changes to Health Care Spending Available Under CARES Act The IRS instructions for Form 8889 confirm the split directly: nonprescription medicines cannot be deducted on Schedule A, but they are eligible for HSA reimbursement.4Internal Revenue Service. Instructions for Form 8889
Vitamins and Supplements
Vitamins and dietary supplements are the gray area. The general rule is that they don’t qualify, because the IRS treats them as general health maintenance rather than treatment for a specific condition. Buy a bottle of multivitamins with your HSA card and you’ve made a non-qualified purchase.
A doctor can change that. If your provider determines you need a particular supplement to treat a diagnosed condition, a Letter of Medical Necessity — a written statement from the provider explaining the medical reason — makes the purchase eligible. A few supplements are widely treated as eligible without extra paperwork, including prenatal vitamins and glucosamine. For anything else, get the letter before you spend HSA dollars. Without it, an auditor will treat the purchase as non-qualified and you’ll owe taxes plus the 20% penalty.
What Doesn’t Qualify
Not everything at a pharmacy is HSA-eligible. The IRS separates items that treat or prevent illness from items meant for general well-being or appearance. Cosmetic procedures and products fail the test unless they correct a deformity from a congenital abnormality, accident, or disfiguring disease.3Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses Teeth whitening, hair growth treatments, and face lifts are common examples.
Other pharmacy purchases that fall outside HSA eligibility:
- Toiletries and hygiene items like toothpaste, deodorant, facial tissues, and electric toothbrush heads
- Gym memberships, exercise equipment, and fitness programs bought without a medical diagnosis
- Pillows, cushions, and reclining chairs unless prescribed for a specific condition
- Medications imported from another country unless the FDA has approved their legal importation5Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
If you swipe your HSA card for something that turns out not to qualify, you can return the money to your account before you file that year’s tax return and correct the mistake. Otherwise the amount becomes taxable income and gets hit with the 20% additional tax.
How to Pay at the Pharmacy
The fastest way is your HSA debit card. Swipe it at the counter or enter the number during online checkout, and the funds come straight out of your balance. Most pharmacies, including mail-order services, accept the cards. Check your balance before you go; a declined transaction won’t hurt the account, but it’s an avoidable hassle.
If you don’t have the card or prefer to pay some other way, the reimbursement route works just as well. Pay with your personal card or cash, then submit a claim through your HSA provider’s website or app. You’ll upload the itemized receipt and request a transfer to your bank account. Most providers process reimbursements within a few business days.
One detail catches people off guard: there is no federal deadline for HSA reimbursements. You can pay for a prescription today, keep the receipt, and reimburse yourself months or years later. Some people deliberately pay out of pocket, let the HSA balance grow tax-free, and then reimburse themselves in retirement. The only requirement is that the expense occurred after you opened the HSA. This strategy relies on airtight records.
Records to Keep
The IRS doesn’t ask you to submit receipts when you take an HSA distribution. But if you’re audited, the burden is on you to prove every distribution paid for a qualified expense. Record-keeping is non-negotiable.
For each prescription purchase, save a document that shows:
- Date of purchase
- Pharmacy or provider name
- Name of the medication or product
- Amount paid
A credit card statement line reading “CVS Pharmacy — $47.82” isn’t enough. The IRS wants to see what you bought, not just where.6Internal Revenue Service. What Kind of Records Should I Keep If insurance covered part of the cost, the Explanation of Benefits from your insurer works as supporting documentation. For prescription drugs, keep the prescription or a pharmacy printout confirming it was prescribed.
Digital records carry the same weight as paper. The IRS treats electronic copies identically to physical ones as long as they’re legible and complete.6Internal Revenue Service. What Kind of Records Should I Keep A scanned receipt or a screenshot from the pharmacy app is fine. The standard retention period is at least three years from the date you file the return.7Internal Revenue Service. IRS Audits If you plan to reimburse yourself later for expenses you paid out of pocket, keep those receipts indefinitely, or at least until you take the reimbursement and file the return that reports it.
The 20% Penalty on Non-Qualified Spending
Withdraw HSA funds for something that isn’t a qualified medical expense and two things happen. The amount gets added to your taxable income for the year, and you owe an additional 20% tax on top.8Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts On a $500 non-qualified purchase, that’s $100 in penalty before regular income tax touches it.
Three situations eliminate the 20% penalty:
- You are 65 or older. Non-qualified withdrawals are still taxed as ordinary income, but the extra 20% disappears. The HSA effectively behaves like a traditional retirement account.
- You become disabled as defined under federal tax law.
- Distributions go to your beneficiary or estate after your death.8Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts
The exceptions only waive the 20% surcharge. The withdrawn amount is still taxable income unless it went to a qualified medical expense.
Prescriptions After You Enroll in Medicare
Once you enroll in Medicare you can no longer contribute to an HSA, but any balance already in the account is still yours to spend tax-free on qualified medical expenses for the rest of your life. That includes Medicare Part D costs — copays, coinsurance, deductibles, and Part D premiums themselves.1Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans Dental, vision, and hearing expenses remain eligible as well. For anyone who built up a balance during working years, prescriptions in retirement are one of the more tax-efficient uses left for the account.