Yes, you can use your HSA card for someone else’s prescription, but only if that person is your spouse, your tax dependent, or someone who would have been your dependent except for a narrow set of technicalities. The IRS ties HSA eligibility to the relationship definitions in the tax code, not to who is on your insurance. Pay for anyone outside that circle and the distribution becomes taxable income plus a 20% penalty.1Internal Revenue Service. Instructions for Form 8889 (2025) – Distributions From an HSA
Who Counts as an Eligible Family Member
HSA distributions can pay qualified medical expenses for three groups: you, your spouse, and your dependents.2Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans Your spouse qualifies whether or not they share your health plan or have High Deductible Health Plan coverage of their own. Legal marriage under federal law is enough.
Dependents fall into two categories under Internal Revenue Code Section 152. A qualifying child must live with you more than half the year, not provide more than half of their own support, and be under 19 at year’s end, or under 24 if a full-time student.3Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses – Whose Medical Expenses Can You Include? A child who is permanently and totally disabled qualifies at any age. Qualifying relatives include parents, siblings, aunts, uncles, grandparents, and other family members who earn below the IRS gross income threshold and receive more than half of their financial support from you.
The person picking up the prescription does not need their own HSA or their own HDHP. What matters is their relationship to you and their tax status when the expense is incurred.
The Almost-Dependent Rule
The IRS opens the door a little wider than most people expect. You can also use HSA funds for someone who would have been your dependent except for one of three technicalities: they filed a joint return, their gross income exceeded the annual exemption amount, or you (or your spouse) could be claimed as a dependent on someone else’s return.4Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans – Distributions From an HSA
This is the rule that covers the aging parent living with you whose Social Security income puts them over the gross income threshold. You cannot claim that parent on your tax return, but you can still pay for their prescriptions with your HSA.
Prescriptions for a Child After Divorce or Separation
A special rule applies when parents are divorced, legally separated, or have lived apart for the last six months of the year. Either parent can use their HSA to pay for the child’s medical expenses, including prescriptions, as long as the child was in the custody of one or both parents for more than half the year and received over half of their total support from the parents combined.3Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses – Whose Medical Expenses Can You Include? It does not matter which parent claims the child as a dependent. Both parents independently qualify.
Who Does Not Qualify
Domestic partners who are not legally married generally cannot have their prescriptions paid from the other partner’s HSA. The only way in is the qualifying relative test, which requires the partner to earn below the gross income threshold and receive more than half their support from you. That combination is rare for two working adults.
Children who have aged out of dependent status are also off-limits. Once a child turns 19 (or 24 for full-time students) and no longer meets the qualifying child test, or starts providing more than half their own support, you cannot use your HSA for their prescriptions.3Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses – Whose Medical Expenses Can You Include? Friends, roommates, cousins you don’t support, and non-dependent parents fall outside the circle too. Living with someone and helping with their medical bills does not by itself create HSA eligibility.
What the Prescription Itself Has to Be
A prescription paid with HSA funds must qualify as “medical care” under Internal Revenue Code Section 213(d), which covers amounts paid to diagnose, treat, or prevent disease.5Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses Insulin qualifies whether or not it was obtained by prescription. Most other medications need a doctor’s prescription.
The CARES Act broadened the list. Over-the-counter medications like pain relievers, allergy medicine, and cold remedies now qualify without a prescription, and menstrual care products such as tampons, pads, and cups are treated as qualified medical expenses.6Internal Revenue Service. IRS Outlines Changes to Health Care Spending Available Under CARES Act Both changes apply to amounts paid after December 31, 2019. Products bought for cosmetic purposes or general wellness rather than a specific medical condition still do not qualify.
Paying Out of Pocket and Reimbursing Yourself Later
If you forget your HSA card at the pharmacy, you have not lost the benefit. The IRS lets you take a distribution “to pay or be reimbursed for” qualified medical expenses incurred after the HSA was established, and it does not set a deadline.4Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans – Distributions From an HSA You can pay cash today and reimburse yourself months or years from now, as long as you keep the receipt showing the expense was incurred after you opened the account. Some account holders use this to let HSA investments grow before pulling money out.
What Happens If You Pay for Someone Who Doesn’t Qualify
Using your HSA card for an ineligible person turns the distribution into taxable income. The amount is added to your gross income for the year, taxed at your regular rate, and hit with an additional 20% penalty.1Internal Revenue Service. Instructions for Form 8889 (2025) – Distributions From an HSA On a $200 prescription for an ineligible person, that is $40 in penalty plus income tax on the $200. Combined, the hit can approach 40% to 50% of the purchase depending on your bracket.
The 20% penalty disappears at age 65. After that, non-qualified distributions are still taxed as ordinary income, but the extra penalty no longer applies. The penalty also does not apply if the account holder becomes disabled or dies. For everyone else under 65, the penalty is automatic and reported on Form 8889.
Fixing a Mistaken Distribution
If you used HSA funds on the wrong person because of a genuine mistake, you may be able to return the money and avoid the tax hit. The IRS allows repayment of a mistaken distribution as long as it is returned to the HSA no later than the tax filing deadline (not including extensions) for the first year you knew or should have known it was a mistake.7Internal Revenue Service. Instructions for Forms 1099-SA and 5498-SA Returned on time, the distribution stays out of your gross income and no penalty applies.
Your HSA custodian is not required to accept the return. Call them before assuming you can put the money back. If the custodian already issued a Form 1099-SA for the distribution, they will need to file a corrected form with the IRS.
Keep Receipts That Name the Patient
The IRS requires records showing that each HSA distribution paid for a qualified medical expense, that the expense was not reimbursed by insurance, and that you did not also claim it as an itemized deduction.2Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans You do not send these with your return, but you need to produce them if asked.
For a family member’s prescription, the pharmacy receipt should identify the patient by name, the date, the medication, and the amount paid. If the receipt only shows your name because you swiped the card, ask the pharmacy for an itemized printout naming the actual patient. The burden of proving eligibility is on you, and a receipt that ties the expense to a specific qualifying person is the simplest way to carry it.