Can You Write Off Prescriptions on Taxes? Limits, HSAs, and Records

You can write off prescriptions on your taxes, but only through the itemized medical expense deduction on Schedule A, and only for the portion of your total medical spending that exceeds 7.5% of your adjusted gross income.1Office of the Law Revision Counsel. 26 U.S. Code 213 – Medical, Dental, Etc., Expenses Those two conditions rule out most taxpayers. If you have access to a Health Savings Account or Flexible Spending Account, that route almost always saves you more money with less effort.

The Two Hurdles You Have to Clear

Prescription drugs fall under the medical expense deduction, which is only available if you itemize instead of taking the standard deduction.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Itemizing only pays off when your combined deductible expenses beat the standard deduction for your filing status. For 2026, that is $16,100 for single filers, $32,200 for married couples filing jointly, and $24,150 for head of household.3Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Prescription costs get bundled together with state and local taxes, mortgage interest, charitable contributions, and the rest of Schedule A to see if the total crosses that line.

Even if you do itemize, only the medical spending above 7.5% of your AGI counts.1Office of the Law Revision Counsel. 26 U.S. Code 213 – Medical, Dental, Etc., Expenses Your AGI is the figure on Form 1040, line 11.4Internal Revenue Service. Adjusted Gross Income The math is unforgiving. On a $70,000 AGI, the floor is $5,250. If you had $8,000 in qualifying medical costs, you deduct $2,750. The first $5,250 does nothing for you.

The higher your income, the higher the floor. Prescription spending alone rarely clears it. The deduction tends to work only in years when you have a big medical event stacked on top of ongoing drug costs.

Which Prescription Costs Count

The IRS lets you include the out-of-pocket cost of any drug that requires a doctor’s prescription and is used to treat or prevent a physical or mental condition. Insulin is the one drug that qualifies whether or not you have a prescription for it.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses

Several things do not qualify:

  • Over-the-counter drugs, even when your doctor recommends them. An OTC product only qualifies if your doctor writes an actual prescription for it.
  • Vitamins and supplements, unless a doctor prescribes them to treat a specific diagnosed condition.
  • Cosmetic products and procedures.
  • Medical marijuana, because it remains a controlled substance under federal law even where states have legalized it.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
  • Drugs bought from another country, unless the FDA has approved that drug for individual importation.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses

Only the amount you paid out of pocket counts. Anything reimbursed by insurance, an HSA, or an FSA has to come out of the total.

Stacking Other Medical Costs to Clear the Floor

Because prescriptions rarely push anyone past 7.5% of AGI on their own, the deduction usually works only when you total up every qualifying medical expense from the same year. Doctor and dentist bills, hospital charges, lab and diagnostic fees, mental health services, medical equipment like wheelchairs and hearing aids, long-term care insurance premiums, and Medicare premiums all count.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses

Travel to and from medical appointments counts too. The 2026 IRS standard mileage rate for medical travel is 20.5 cents per mile, and you can add parking and tolls on top of that.5Internal Revenue Service. IRS Sets 2026 Business Standard Mileage Rate at 72.5 Cents Per Mile, Up 2.5 Cents A year with surgery, specialist visits, and ongoing prescriptions is the kind of year where the numbers can actually work.

The Easier Way: HSAs and FSAs

For most people, a Health Savings Account or Flexible Spending Account is a better tool than the itemized deduction. Both let you pay for prescriptions with pre-tax dollars. Neither requires you to itemize, and neither has a floor to clear.

An HSA is available if you are enrolled in a qualifying high-deductible health plan. Contributions go in pre-tax, and withdrawals for qualified medical expenses, including prescription drugs and insulin, come out tax-free.6Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts For 2026, the contribution limits are $4,400 for self-only coverage and $8,750 for family coverage.7Internal Revenue Service. Notice 26-05 – HSA Inflation Adjustments for 2026 Unused balances roll over indefinitely.

A health care FSA works on the same pre-tax principle but with tighter rules. Your employer has to offer one, the 2026 contribution cap is $3,400, and most plans are use-it-or-lose-it. In return, you do not need a high-deductible plan, and the full annual election is available to spend from day one.

The savings are immediate. In the 22% federal bracket, every $100 of prescriptions run through an HSA or FSA saves roughly $22 in federal income tax, plus state income tax where it applies and 7.65% in payroll taxes. No Schedule A, no AGI floor.

One rule to keep straight: a prescription paid from an HSA or FSA cannot also be claimed as an itemized medical expense. The tax benefit only applies once.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses

A Note for the Self-Employed

If you are self-employed with a net profit, you can deduct your health insurance premiums as an adjustment to income on Schedule 1, above the line and without itemizing.8Internal Revenue Service. Instructions for Form 7206 (2025) That deduction covers premiums only. Prescription costs are not eligible for above-the-line treatment and still have to go through Schedule A with the 7.5% floor.9Internal Revenue Service. Topic No. 502, Medical and Dental Expenses

Records You Need If You Claim It

If you claim prescriptions on Schedule A, keep the pharmacy receipt or annual statement for each drug, showing the medication name, purchase date, and the amount you paid. Match those against your insurer’s Explanation of Benefits so you can show the unreimbursed portion. Subtract anything paid by insurance, an HSA, or an FSA before you add the number to your medical total.

Hold onto these records for at least three years after you file, which is the standard IRS audit window.10Internal Revenue Service. How Long Should I Keep Records? Medical deductions are relatively easy for the IRS to check against insurance data, so the numbers you claim need to match what you actually paid out of pocket.

A practical test before you go any further: add up your out-of-pocket medical spending for the year, including prescriptions. If the total is nowhere near 7.5% of your AGI, the itemized deduction is not going to help you, and funneling next year’s prescriptions through an HSA or FSA is where the real tax savings live.