Skip to main content
Not medical advice · Terms & Privacy

Using an HSA or FSA for Prescription Costs

By BetterBuyRx Editorial Team

Written for cost and savings education only — not medical advice, and not medically reviewed. Always confirm details with your doctor or pharmacist. See our methodology.

Last updated

You can generally use HSA or FSA funds for prescribed medications, since the IRS treats amounts paid for prescribed medicines and drugs as qualified medical expenses. Insulin qualifies even without a prescription (IRS Publication 502). Many over-the-counter medicines now qualify too, following a 2020 law change. Comparing prescription prices before you spend HSA or FSA dollars helps you stretch a limited account balance further.

What HSA and FSA funds can cover

A health savings account (HSA) and a flexible spending account (FSA) both let you set aside money, often pre-tax, to pay for qualified medical expenses. For prescriptions specifically, IRS guidance is direct: "You can include in medical expenses amounts you pay for prescribed medicines and drugs... You can also include amounts you pay for insulin" (IRS Publication 502). A prescribed drug is one that requires a doctor's prescription for that specific individual to use.

This means typical prescription costs, copays, coinsurance, and even cash prices paid at the pharmacy counter, generally qualify for HSA or FSA reimbursement, as long as you were not already reimbursed by insurance or another source for that same expense.

HSA vs. FSA: quick comparison

FeatureHSAFSA
Who's eligibleMust have a qualifying high-deductible health planOffered through many employer health plans, no HDHP requirement
Funds roll over?Yes, indefinitelyOften limited rollover or "use it or lose it" by plan year
Owned by you or employer?You own the account, portable if you change jobsEmployer-owned; may not be portable
Contribution changes mid-yearGenerally flexibleUsually locked in except for qualifying life events
Prescription drug eligibilitySame IRS rules applySame IRS rules apply

Both accounts follow the same IRS definition of qualified medical expenses for prescription drug purposes, so eligibility for a specific medication does not usually differ between HSA and FSA. The difference is mostly about who owns the account and how flexible it is.

What you can't use these funds for

Not everything at the pharmacy qualifies. According to IRS guidance, general health items like vitamins or supplements for general wellness usually do not qualify unless a medical provider recommends them for a diagnosed condition. Cosmetic products, and imported drugs that were not legally imported, also generally do not qualify (IRS Publication 502). If you are unsure whether a specific purchase qualifies, check with your plan administrator or refer to the IRS list of medical and dental expenses.

How to actually use HSA or FSA funds at the pharmacy

Most pharmacies accept HSA or FSA debit cards directly at checkout, the same way you'd use any other card. If you pay another way, such as cash, a credit card, or a discount card price, you can typically submit a claim for reimbursement afterward, as long as you keep your receipt and it clearly shows the medication and amount paid. A few tips:

  • Keep every receipt. Your HSA or FSA administrator, or the IRS, may ask for documentation showing the purchase was a qualified medical expense.
  • Check your plan's specific list of eligible items. While IRS rules set the baseline, some plan administrators maintain their own eligible-item lists for over-the-counter products.
  • Don't double-dip. You cannot use HSA or FSA funds for an expense that insurance already covered or reimbursed.

Combining HSA/FSA with price comparison

Because HSA and FSA balances are limited, especially FSAs with "use it or lose it" rules, it makes sense to pay the lowest available price for a given prescription rather than assuming your account balance is unlimited. BetterBuyRx's pharmacy price comparison tool can help you find a lower cash price or discount card price for a medication, then use your HSA or FSA funds to cover that lower amount, stretching your account balance across more purchases during the year.

Search your medication on BetterBuyRx before your next fill to see how prices compare, then apply your HSA or FSA funds to the best option.

A note on deductibles and HSA-linked plans

If you have a high-deductible health plan paired with an HSA, remember that using HSA funds to pay does not change whether that expense counts toward your deductible. Whether you pay with HSA dollars, a regular debit card, or cash, the insurance side of the transaction is tracked the same way. For more on how the deductible phase affects prescription costs, see our guide on why prescriptions cost more before you meet your deductible.

Weighing cash price vs. insurance when using these accounts

Sometimes the cash price for a medication, especially a common generic, is lower than what your insurance would charge you as a copay, particularly if you have not met your deductible yet. In that case, you can generally pay the lower cash price and still use HSA or FSA funds to cover it, as long as it is a qualified medical expense and you have documentation. See our guide comparing cash price vs. insurance copay for a deeper look at when each option tends to make more sense.

Compare prescription prices on BetterBuyRx to make the most of your HSA or FSA balance this year.

Frequently asked questions

Can I use my HSA or FSA to pay for prescription drugs?

Yes. According to IRS Publication 502, amounts paid for prescribed medicines and drugs generally qualify as medical expenses, and insulin qualifies even without a prescription. You can use HSA or FSA funds for these costs if you have not already been reimbursed elsewhere.

Can I use HSA or FSA funds for over-the-counter medicine?

Since a 2020 law change, many over-the-counter medications no longer require a prescription to qualify for HSA or FSA reimbursement, reversing an earlier requirement. Check your plan administrator's current list, since eligible items can vary.

What happens if I use HSA or FSA money for something that doesn't qualify?

Non-qualified withdrawals from an HSA are generally subject to income tax plus a 20 percent penalty if you're under 65. FSA funds used incorrectly may need to be repaid to your plan. Keep receipts in case your plan or the IRS asks for documentation.

Can I use HSA or FSA funds for a prescription discount card purchase?

Generally yes, if the underlying purchase is a qualified medical expense like a prescribed medication, regardless of whether you paid the discount card cash price or ran it through insurance. Keep your receipt showing the medication and amount paid.

Does paying with HSA or FSA funds count toward my deductible?

No. Using HSA or FSA funds is just a payment method, it does not change whether an expense counts toward your insurance deductible or out-of-pocket maximum. Those two things are tracked separately by your plan.

Sources

  1. Publication 502 (2025), Medical and Dental Expenses | IRS
  2. About Publication 502, Medical and Dental Expenses | IRS
  3. Topic no. 502, Medical and dental expenses | IRS

Compare prices & find savings

This guide is for cost and savings education only. It is not medical advice. Talk to your doctor or pharmacist before making any changes to your medications. Prices vary by pharmacy, location, quantity, and eligibility, and they change over time.

Related guides

Find lower-cost options for your medication

Enter a brand or generic name to compare current pharmacy and discount prices.

Prices vary by pharmacy, location, quantity, and eligibility, and they change over time.