Qualified medical expenses under IRS Section 213(d) are amounts paid to diagnose, cure, mitigate, treat, or prevent disease, or to affect any structure or function of the body, plus related transportation, qualified long-term care services, and insurance premiums covering medical care.1Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses You can deduct these costs on Schedule A, but only the portion that exceeds 7.5% of your adjusted gross income for the year, and only to the extent you paid them out of pocket.2Internal Revenue Service. Topic No. 502, Medical and Dental Expenses The categories are broader than most people expect, but the threshold and the itemizing requirement mean the deduction usually matters in years with a major medical event.
The 7.5% AGI Threshold and Itemizing
The deduction only reaches expenses above 7.5% of your AGI. If your AGI is $80,000 and you paid $9,000 in qualifying costs, subtract $6,000 (7.5% of $80,000) and deduct the remaining $3,000. Anything at or below the threshold gives you nothing.
You also have to itemize on Schedule A instead of taking the standard deduction. For 2026, the standard deduction is $16,100 for single filers, $32,200 for married couples filing jointly, and $24,150 for heads of household.3Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Your medical deduction only helps if it, combined with your other itemized deductions (state and local taxes, mortgage interest, charitable gifts), beats that standard amount. Run the numbers both ways before committing.
Only unreimbursed, after-tax dollars count. Anything covered by insurance, paid from a health savings account, reimbursed through a flexible spending arrangement, or paid by a health reimbursement arrangement cannot also go on Schedule A.4Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans If your HSA paid a $2,000 bill, that $2,000 does not appear on Schedule A. You can deduct expenses paid for yourself, your spouse, and your dependents.5Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
The Primary Purpose Test
Section 213(d)’s definition covers treating disease and also affecting the structure or function of the body, which is why things like orthodontia and fertility treatments qualify even though they aren’t treating an illness in the traditional sense.1Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses The controlling question is primary purpose. An expense qualifies when its main reason is medical care, not when it merely happens to benefit your health. A gym membership fails because its primary purpose is general fitness. A weight-loss program prescribed to treat diagnosed obesity passes because it targets a specific condition.
Medical, Dental, and Related Care
Payments to doctors, surgeons, dentists, psychiatrists, psychologists, chiropractors, and other licensed practitioners qualify when made for treatment.5Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Office visits, consultations, procedures, and diagnostic tests all count. Hospital stays are fully deductible when the principal reason for the stay is medical care, including meals and lodging provided by the facility.
Prescription drugs and insulin are explicitly included. A drug is “prescribed” when a physician requires it for your individual use. Routine over-the-counter medications, vitamins, and supplements bought for general health do not qualify, though the IRS allows an exception for OTC items a practitioner recommends to treat a specific diagnosed condition.
Dental cleanings, fillings, extractions, and orthodontia qualify. So do eye exams, prescription eyeglasses, contact lenses, and corrective procedures like LASIK. Hearing aids and the batteries, repairs, and maintenance needed to keep them working are deductible, as are artificial limbs and other prosthetic devices.
Mental Health, Fertility, and Special Education
Psychiatric care, psychoanalysis, and payments to a psychologist qualify on the same footing as physical treatment, including the cost of supporting a mentally ill dependent at a specialized medical center. Costs to overcome an inability to have children are deductible, including in vitro fertilization, temporary storage of eggs or sperm, and surgery reversing a prior sterilization. Surrogacy expenses are not deductible.
Tuition, meals, and lodging at a school that provides special education to help a child overcome learning disabilities can qualify when overcoming the disability is the primary reason for attending and ordinary education is incidental to the specialized instruction. This includes teaching Braille, lip reading, or remedial language training to correct a condition caused by a birth defect. Tutoring fees can qualify when a doctor recommends a specially trained teacher for a child with learning disabilities caused by a mental or physical impairment. A school attended primarily for behavioral or disciplinary reasons does not qualify, even if the environment helps.
Health Insurance Premiums
Premiums you pay for health insurance covering medical care count as deductible medical expenses.5Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Policies covering hospitalization, surgical services, prescription drugs, and dental care all qualify. Medicare Part B and Part D premiums are deductible, and voluntary Medicare Part A premiums count if you aren’t otherwise covered through Social Security.
Premiums your employer pays, or premiums you pay with pre-tax dollars through a cafeteria plan, are not deductible. Only the portion paid with after-tax money counts. If a policy bundles medical and non-medical benefits, only the portion allocated to medical coverage is deductible, and that allocation must be separately stated in the contract or a statement from the insurer.
Transportation, Mileage, and Lodging
Transportation is deductible when the primary purpose of the trip is medical care. You can deduct actual out-of-pocket costs (gas, parking, tolls, bus fare, ambulance charges) or use the IRS standard mileage rate. For 2026, the medical mileage rate is 20.5 cents per mile.6Internal Revenue Service. 2026 Standard Mileage Rates Parking fees and tolls are deductible on top of mileage if you choose that method.
For travel to receive medical care provided by a physician at a licensed hospital or equivalent facility, lodging is deductible up to $50 per night. A companion who needs to travel with you gets the same $50 allowance, for a potential deduction of $100 per night total. The lodging cannot be lavish, and the trip cannot include a significant element of personal recreation. Meals during travel are not deductible unless they’re provided as part of inpatient care.
Service Animals
The cost of buying, training, and maintaining a guide dog or other service animal is deductible for a person who is visually impaired, hearing disabled, or has another physical disability. Ongoing food, grooming, and veterinary care qualify because those expenses maintain the animal’s ability to do its job. Regular pet expenses for animals that aren’t service animals don’t qualify.
Home Modifications for Medical Care
Capital improvements to your home installed primarily for medical care can be deductible, but you have to net out any increase in the home’s fair market value. If a $20,000 elevator adds $12,000 to the home’s value, only $8,000 is a medical expense, and you generally need an appraisal to establish the before-and-after values.
Certain accessibility modifications are treated as adding no value to the home, meaning their full cost is deductible. These include entrance and exit ramps, widened doorways at entrances and exits, handrails and grab bars, and modified electrical outlets and fixtures. Publication 502 has the full list.5Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses The common thread is modifications that accommodate a disability rather than improve the home for general purposes.
Long-Term Care and Nursing Homes
Qualified long-term care services are included in the definition of medical care, and premiums for qualified long-term care insurance contracts are deductible up to annual age-based limits.1Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses For 2025, those limits run from $480 for people age 40 or younger up to $6,020 for those over 70.7Internal Revenue Service. Eligible Long-Term Care Premium Limits The IRS adjusts these limits for inflation each year. Any premium above the limit for your age bracket doesn’t count.
Nursing home costs turn on the same primary-purpose test. If someone is in a nursing home mainly for medical care, the entire cost, including meals and lodging, is deductible. If the primary reason is personal care that doesn’t rise to the level of medical care, only the portion attributable to actual medical treatment qualifies.8Internal Revenue Service. Medical, Nursing Home, Special Care Expenses The distinction can mean tens of thousands of dollars, and it turns on the resident’s condition and the facility’s documentation.
Weight Loss and Smoking Cessation
Weight-loss programs are deductible only when they treat a specific disease diagnosed by a physician, such as obesity, diabetes, or hypertension. Program fees and meeting costs qualify. Gym memberships and health club dues do not, even if you use the facility for a medically prescribed program. Weight loss for general health or appearance is a personal expense regardless of any coexisting medical condition.
Smoking cessation is treated differently. The IRS recognizes tobacco use disorder as a disease, so a stop-smoking program qualifies without a separate physician diagnosis.9Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health Prescription drugs to alleviate nicotine withdrawal are deductible. Over-the-counter nicotine gum and patches that don’t require a prescription are not.
What Doesn’t Qualify
Cosmetic surgery is excluded unless it corrects a deformity from a congenital abnormality, an injury from an accident, or a disfiguring disease. Reconstructive surgery after a car accident passes. A facelift for aesthetic reasons does not.
Other common non-deductible items include general health club memberships, non-prescription drugs (except insulin), vitamins and supplements taken for general wellness, and toiletries. The rule is consistent: if the primary purpose is general health maintenance rather than treating or preventing a diagnosed condition, the expense fails the Section 213(d) test. Any expense already reimbursed or paid tax-free through an HSA, FSA, or HRA is also off the table for Schedule A.4Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans
Records to Keep
You don’t send documentation with your return, but the IRS expects you to keep it. Hold onto receipts, explanation-of-benefits statements from your insurer, pharmacy printouts, and mileage logs for medical travel. For home modifications, keep records of both the cost and the property’s before-and-after value. A running spreadsheet through the year works better than reconstructing everything at filing time, because the 7.5% threshold means you often won’t know whether the deduction is worth claiming until you see the full picture.