Qualified vs Non-Qualified Medical Expenses
Quick answer
A medical expense qualifies if it pays for the diagnosis, cure, mitigation, treatment or prevention of disease, or for treatment affecting a structure or function of the body (IRC Section 213(d)(1), IRS Publication 502). Prescribed drugs, doctors, hospitals, dental care and glasses qualify. Cosmetic surgery, general health items and over-the-counter drugs other than insulin do not.
Last updated
Cite or share this
Key figures for 2025
- Test for qualified medical care
- Diagnosis, cure, mitigation, treatment or prevention of disease, or affecting a body structure or function
- IRC Section 213(d)(1)
- Over-the-counter drugs
- Not deductible, except insulin
- IRS Publication 502
- Prescribed drugs
- Deductible
- IRS Publication 502
- Cosmetic surgery
- Not deductible unless it corrects a congenital deformity, injury or disfiguring disease
- IRC Section 213(d)(9)
- Home improvements for medical care
- Cost minus the increase in the home's value
- IRS Publication 502
- Special food
- Only the cost above a normal diet, with a physician's statement
- IRS Publication 502
- Gross income limit for a dependent, 2025
- Not applied to medical expenses (the general limit is $5,200)
- IRS Publication 502
What makes a medical expense qualified?
An expense qualifies when its purpose is medical care. IRC Section 213(d)(1) defines that as amounts paid for the diagnosis, cure, mitigation, treatment or prevention of disease, or for treatment affecting any structure or function of the body. Transportation for that care and qualified long-term care services and insurance also count.
The test is the purpose of the payment. A cost that improves general health or appearance does not qualify, even if a doctor encourages it. A cost that treats a diagnosed condition can qualify even when the item is also used in daily life.
Which expenses are deductible and which are not?
Pay attention to the line between treating a condition and promoting general wellness. Publication 502 lists both sides, and the exam draws its answer choices from those lists.
Deductible items include fees to doctors, dentists, surgeons, chiropractors, psychiatrists, psychologists and nurses, hospital and nursing home care, prescribed medicine and insulin, eyeglasses, contact lenses, hearing aids, dentures, crutches, wheelchairs and guide dogs. Laser eye surgery qualifies. Inpatient treatment for alcohol or drug dependence and stop-smoking programs also qualify.
- Not deductible: cosmetic surgery, teeth whitening, health club dues, funeral costs, maternity clothes, household help and childcare for a healthy baby.
- Not deductible: toothpaste, toiletries and other personal-use items, and nonprescription drugs other than insulin.
- Not deductible: nutritional supplements and vitamins, unless a physician recommends them to treat a specific diagnosed condition.
- Not deductible: controlled substances that are illegal under federal law, even where a state allows them.
Are cosmetic procedures ever deductible?
Cosmetic surgery is deductible only when it corrects a deformity from a congenital abnormality, a personal injury or a disfiguring disease (IRC Section 213(d)(9)). Cosmetic surgery means a procedure that directly improves appearance and does not meaningfully promote proper body function or treat illness.
Reconstructive surgery after a mastectomy or after an accident qualifies. A nose reshaping for appearance does not. Teeth whitening does not qualify. Orthodontia and dental fillings do qualify.
Does a capital expense for medical care qualify?
Yes, in whole or in part. A capital expense is a permanent improvement to the home, such as a ramp or a stair lift, that is made mainly for medical care of the taxpayer, a spouse or a dependent. The deduction equals the cost minus any increase in the home's fair market value (IRS Publication 502).
An improvement that adds no value is deductible in full. Entrance ramps, widened doorways, grab bars, handrails and lowered cabinets are examples that Publication 502 treats as adding no value. A swimming pool installed for therapy can qualify only up to the cost above the value it adds, and only if a physician prescribes the exercise for a condition.
Operating and upkeep costs of a qualifying capital item, such as electricity for a medically required elevator, are deductible with no value offset.
What about special food, weight loss and medical conferences?
Special food counts only for the amount above the cost of normal food, and only when it relieves a diagnosed illness and the taxpayer's physician substantiates it. A gluten-free diet for diagnosed celiac disease is the standard example (IRS Publication 502).
A weight-loss program counts when it treats a specific disease diagnosed by a physician, such as obesity, hypertension or heart disease. Fees for a program that only improves appearance or general health do not count. Gym dues and diet food that replaces normal meals do not count.
A medical conference counts when it concerns a chronic illness of the taxpayer, a spouse or a dependent, and the trip is mostly spent in medical sessions. Admission and transportation count. Meals and lodging do not.
Do insurance premiums and long-term care costs qualify?
Premiums for insurance covering medical care qualify, including Medicare Part B and Part D premiums. Premiums for life insurance, income replacement or disability policies, and premiums paid with the premium tax credit, do not (IRS Publication 502).
Qualified long-term care services for a chronically ill person qualify. Meals and lodging at a nursing home count when the main reason for being there is the medical care. Premium limits for long-term care insurance have their own age table covered in a separate topic.
Worked example: sorting a list of payments
Dana is single with AGI of $70,000. In 2025 she paid $1,200 for a dental implant, $380 for prescription eyeglasses and $450 for a gym membership her doctor recommended for general fitness.
She also paid $900 for teeth whitening, $240 for vitamins and $150 for cold medicine bought without a prescription. A wheelchair ramp for her husband cost $2,600 and added $600 to the home's value.
- Dental implant: qualifies, $1,200.
- Eyeglasses: qualify, $380.
- Gym membership: general fitness, no diagnosed condition, excluded.
- Teeth whitening: cosmetic, excluded.
- Vitamins: no physician recommendation for a diagnosed condition, excluded.
- Wheelchair ramp: $2,600 minus the $600 increase in value, so $2,000 qualifies.
- Cold medicine: nonprescription, excluded.
Qualified medical expenses total $1,200 plus $380 plus $2,000, which is $3,580. The 7.5% floor on $70,000 of AGI is $5,250, so Dana's deduction is zero even though most items qualified.
Where do qualified expense questions trip candidates?
- A doctor recommends a gym membership or a vitamin and the candidate treats it as deductible.
- A recommendation for general health does not qualify. The cost must treat a diagnosed condition.
- A home improvement is claimed at its full cost.
- Subtract any increase in the home's value. Only improvements that add no value are fully deductible.
- A nonprescription drug is included because it treated a real illness.
- Nonprescription drugs are excluded. Insulin is the exception.
- Cosmetic surgery is excluded even though it repaired an accident injury.
- Surgery that corrects a deformity from injury, disease or a congenital abnormality qualifies.
- Special food is deducted at its full price.
- Only the cost above a normal diet counts, and only with a physician's statement.
How does the EA exam ask about qualified medical expenses?
- A list of five or six payments, and a question on which one is deductible.
- A home improvement with a stated increase in value, and a question on the amount that qualifies.
- A cosmetic or weight-loss expense with facts about a diagnosis, and a question on whether it qualifies.
- A total of qualified expenses is the first step of a floor calculation.
Sample questions
Question 1
James is legally blind and relies on a trained guide dog named Scout to navigate daily life. During 2025, James spent $1,200 on veterinary care and food for Scout. How should these expenses be classified for tax purposes?
- A. They are personal pet expenses and are never deductible
- B. They are qualified medical expenses because guide dogs for blind individuals are deductible
- C. They are deductible only if James itemizes and has no other medical expenses
- D. They are deductible as a miscellaneous itemized deduction subject to a separate floor
Show the answer and explanation
Answer: B. They are qualified medical expenses because guide dogs for blind individuals are deductible
Publication 502 specifically states that the cost of buying, training, and maintaining a guide dog or other service animal for a person who is blind, deaf, or has other physical disabilities is a qualified medical expense. This includes food, grooming, and veterinary care for the animal. Option A is wrong because guide dogs are not ordinary pets. They serve a medical function. Option C is wrong because the deductibility does not depend on having other medical expenses (though James must itemize and exceed the AGI floor to benefit). Option D is wrong because medical expenses are a specific itemized deduction category, not a miscellaneous deduction.
Source: IRC section 213(d), Publication 502
Question 2
Rachel has a prescription from her doctor for a blood pressure medication that costs $80 per month. She also regularly buys over-the-counter ibuprofen ($15 per bottle) for occasional headaches without a prescription. Which of the following correctly describes how these purchases are treated for medical expense deduction purposes?
- A. Both are deductible because they are both medications used for health purposes
- B. The prescription medication is deductible, but the over-the-counter ibuprofen is not
- C. Neither is deductible because medications are excluded from medical expenses
- D. The over-the-counter ibuprofen is deductible only if Rachel obtains a prescription for it
Show the answer and explanation
Answer: B. The prescription medication is deductible, but the over-the-counter ibuprofen is not
Under IRC section 213(b), only prescription medications and insulin qualify as deductible medical expenses. Over-the-counter medicines purchased without a prescription (other than insulin) do not qualify, regardless of their health benefit. Rachel's blood pressure prescription qualifies, but her OTC ibuprofen does not. Option A is wrong because OTC medicines are specifically excluded. Option C is wrong because prescription drugs are explicitly included. Option D is wrong because obtaining a prescription for an OTC medication is not the standard: the statute distinguishes prescription drugs from OTC medicines, and ibuprofen purchased OTC without a prescription is not deductible.
Source: IRC section 213(b), Publication 502
Frequently asked questions
Is a doctor's note enough to make a general health item deductible?
No. Special food and supplements need a physician's statement tied to a diagnosed condition. Gym dues and general wellness costs do not qualify even with a note.
Are hearing aids and batteries deductible?
Yes. Hearing aids and the batteries to operate them qualify (IRS Publication 502).
Can a taxpayer deduct medical care paid for a parent?
Yes, if the parent qualifies as a dependent apart from the gross income test and the taxpayer paid over half of the parent's support.
Sources
Continue studying
More Deductions & Credits topics from Part 1
Above-Line Deductions: Above-Line Deductions (HSA, IRA, Student Loan)
Deductions & Credits
Charitable Contributions: Charitable Contributions
Deductions & Credits
Medical & Dental Expenses: 7.5% AGI Floor Calculation
Deductions & Credits
Medical & Dental Expenses: Long-Term Care Insurance Premium Limits
Deductions & Credits
Medical & Dental Expenses: Payment Timing Rules
Deductions & Credits
Medical & Dental Expenses: Insurance Reimbursement Rules
Deductions & Credits
Practice this topic.
Start free.
Try the EA exam free: practice questions, no login
PSI-style questions with instant scoring and IRS-referenced explanations. Free to use, with no credit card or account.