Research · 8 min read

What the Tax Code Treats as a Medical Expense

The statutory definition is broad, the drug rule inside it is narrow, and a floor set as a percentage of income sits under all of it. Reading the three together explains most of what confuses people about a health purchase at tax time.

Key takeaways

  • The statutory test is expenses paid during the year, not compensated for by insurance or otherwise, for medical care, to the extent they exceed 7.5 percent of adjusted gross income.
  • Medical care is defined broadly enough to include affecting any structure or function of the body, but the regulation confines deductions strictly to expenses primarily for preventing or alleviating a defect or illness.
  • Weight-loss costs are addressed in the publication as includible where the weight loss treats a specific disease diagnosed by a physician; supplements are addressed as excluded unless recommended for a specific diagnosed condition.
  • Medicine and drugs are taken into account only where the item is a prescribed drug — one requiring a physician's prescription for individual use — or is insulin.
  • Lodging away from home counts only under narrow conditions and is capped by the statute at fifty dollars per night per individual; meals and lodging while away receiving treatment are otherwise outside the transportation allowance.
  • Some dollar amounts in the statute are indexed annually by a medical care cost adjustment; no current-year indexed figure is asserted in this article because no annual adjustment notice was consulted.

Answer first: paid during the year, for medical care, and not compensated for

The statute allows as a deduction the expenses paid during the taxable year, not compensated for by insurance or otherwise, for medical care of the taxpayer, the taxpayer's spouse or a dependent, to the extent that such expenses exceed 7.5 percent of adjusted gross income.

Four conditions are stacked in that sentence, and each one disposes of a common misunderstanding.

Paid during the taxable year. The regulation is emphatic about this. A deduction is allowable only with respect to medical expenses actually paid during the taxable year, regardless of when the incident or event that occasioned the expenses occurred and regardless of the taxpayer's method of accounting. If the expenses are incurred but not paid during the year, no deduction for them is allowed for that year. The publication states the same rule and adds that generally payments for care to be received in a future year are not included.

For medical care, as the statute defines that term rather than as ordinary usage defines it.

Not compensated for by insurance or otherwise. The publication states that expenses paid by insurance companies or other sources are not included.

And to the extent the expenses exceed 7.5 percent of adjusted gross income. The publication states the same percentage, saying that generally only the amount of medical and dental expenses that is more than 7.5 percent of adjusted gross income may be deducted on the relevant schedule.

The definition of medical care, and the sentence that carries most of the weight

The statute defines medical care as amounts paid for the diagnosis, cure, mitigation, treatment or prevention of disease, or for the purpose of affecting any structure or function of the body; for transportation primarily for and essential to that care; for qualified long-term care services; and for insurance covering that care or for a qualified long-term care insurance contract.

The phrase affecting any structure or function of the body is the broadest language in the definition, and it is the reason the category reaches beyond treating a named illness.

The regulation then narrows it with a sentence that sits in tension with the breadth above. Deductions for expenditures for medical care will be confined strictly to expenses incurred primarily for the prevention or alleviation of a physical or mental defect or illness. It gives examples of payments that qualify — hospital services, nursing services, medical, laboratory, surgical, dental and other diagnostic and healing services, X-rays, medicine and drugs, artificial teeth or limbs, and ambulance hire. And it gives the counterexample: an expenditure which is merely beneficial to the general health of an individual, such as an expenditure for a vacation, is not an expenditure for medical care.

The publication applies that distinction to weight loss directly. It states that amounts paid to lose weight may be included in medical expenses if the weight loss is a treatment for a specific disease diagnosed by a physician, and names obesity, hypertension and heart disease as examples of such a disease.

It applies the same distinction to supplements, from the other side. It states that the cost of nutritional supplements, vitamins, herbal supplements and so-called natural medicines cannot be included unless they are recommended by a medical practitioner as treatment for a specific medical condition diagnosed by a physician.

The organizing idea is consistent across all three sources. What matters is whether the expense is primarily for the prevention or alleviation of a defect or illness, and whether a diagnosis anchors it — not what the product is or how it is marketed.

The drug rule is narrower than the definition around it

The statute contains a separate limitation for medicine and drugs, and it does not follow the general definition.

An amount paid during the taxable year for medicine or a drug shall be taken into account only if such medicine or drug is a prescribed drug or is insulin. The statute then defines prescribed drug as a drug or biological which requires a prescription of a physician for its use by an individual.

That definition turns on the legal status of the product, not on the transaction. A drug that requires a prescription is a prescribed drug for this purpose. A product that does not require one is not, and insulin is named separately.

It is worth noticing that the regulation's own definition of medicine and drugs is broader — it includes only items legally procured and generally accepted as falling within the category of medicine and drugs, whether or not requiring a prescription, and excludes toiletries, cosmetics and sundry items. The statutory limitation governs what may be taken into account, and it is the narrower of the two.

The statute also excludes cosmetic surgery. The term medical care does not include cosmetic surgery or other similar procedures, unless the surgery or procedure is necessary to ameliorate a deformity arising from or directly related to a congenital abnormality, a personal injury resulting from an accident or trauma, or a disfiguring disease. Cosmetic surgery is defined as any procedure directed at improving the patient's appearance that does not meaningfully promote the proper function of the body or prevent or treat illness or disease.

Travel, lodging and the rules that surprise people

Transportation primarily for and essential to medical care is within the statutory definition. Lodging is treated separately and more restrictively.

The statute treats amounts paid for lodging while away from home primarily for and essential to medical care as amounts paid for medical care only where two conditions are met: the medical care is provided by a physician in a licensed hospital, or in a medical care facility related to or the equivalent of a licensed hospital, and there is no significant element of personal pleasure, recreation or vacation in the travel away from home. The lodging must also not be lavish or extravagant under the circumstances. The statute caps the amount taken into account under that sentence at fifty dollars for each night for each individual.

The regulation states the general position from the other direction. An amount allowable as a deduction for transportation primarily for and essential to medical care shall not include the cost of meals and lodging while away from home receiving medical treatment. It gives the example of a physician recommending a warm climate for a chronic ailment, where the cost of meals and lodging there would not be deductible. And it addresses the resort case: where a taxpayer chooses for purely personal considerations to travel to another locality for care, neither transportation nor meals and lodging is deductible, except where lodging is paid as part of a hospital bill.

The regulation also handles capital expenditures, which is where a durable item bought for a medical reason lands. Capital expenditures are generally not deductible, but an expenditure that otherwise qualifies as a medical expense is not disqualified merely because it is a capital expenditure, if its primary purpose is the medical care of the taxpayer, spouse or dependent. Where an item is related only to the sick person and does not permanently improve property, it may qualify. Where it does improve property, it may qualify only to the extent the expenditure exceeds the increase in the value of the related property — the regulation works a worked example of an elevator installed on a physician's advice.

Operation and maintenance costs of a qualifying capital asset are treated the same way, and the regulation notes that the entire amount of those costs qualifies even where none or only part of the asset's original cost did.

Whose expenses, what a later reimbursement does, and how to read the sources together

The statute allows expenses for medical care of the taxpayer, the taxpayer's spouse, or a dependent as defined in a named section with three of its subsections disregarded. The regulation adds that expenses for a dependent's medical care are deductible even where the dependent has gross income at or above the threshold in a cross-referenced regulation, and that where expenses are paid by two or more persons under a multiple support agreement, they are deductible only by the person designated in that agreement and only to the extent that person paid them.

There is a timing rule about status. The deduction is allowable if the person's status as spouse or dependent existed either at the time the medical services were rendered or at the time the expenses were paid. The regulation illustrates it both ways — a payment for a spouse's earlier care after a divorce, and a payment for care rendered before a marriage.

The reimbursement rule matters for anyone whose costs move through more than one channel. Where reimbursement, from insurance or otherwise, for medical expenses is received in a year after a year in which a deduction was claimed for those expenses, the reimbursement must be included in gross income in that later year, to the extent attributable to and not in excess of deductions allowed in a prior year.

The regulation supplies the symmetry. If no medical expense deduction was taken in the earlier year — its example is a taxpayer who took the standard deduction — the reimbursement received later is not includible in gross income. And it gives ordering rules where the reimbursement is larger or smaller than the amount deducted.

One coordination provision closes the statute: any expense allowed as a credit under the dependent care section shall not be treated as an expense paid for medical care. The same dollar cannot be both.

Three cautions come out of putting the statute, the regulation and the publication side by side.

The regulation is old in places. Its worked examples compute deductions under earlier versions of the statute and use percentages and dollar limits from those versions. The statutory text controls the current floor, and the statutory text fetched here states 7.5 percent of adjusted gross income.

Some dollar amounts in the statute are not fixed. The eligible long-term care premium limits are set out as base amounts by attained age, and the statute directs that in taxable years beginning in a calendar year after 1997 each of those amounts be increased by a medical care cost adjustment, rounded to the nearest multiple of ten dollars. Any current figure comes from an annual adjustment that was not fetched, and none is asserted here.

And the publication is edition-dated. The edition served states on its face that it is for use in preparing returns for 2025. Its statements are quoted here as that edition's statements.

None of this decides what any particular person may deduct. The statute sets a definition and a floor, the regulation supplies substantiation and timing rules, and the publication states the agency's position on specific categories. Applying them to an actual return is a question for the person filing it and their own adviser.

Sources

  1. 26 U.S.C. 213, “Medical, dental, etc., expenses”Office of the Law Revision Counsel, United States House of Representatives · Text stated on the page as containing those laws in effect in September 2026 · Retrieved September 2026The allowance of a deduction for expenses paid during the taxable year, not compensated for by insurance or otherwise, for medical care of the taxpayer, spouse or dependent, to the extent exceeding 7.5 percent of adjusted gross income; the limitation of medicine and drugs to a prescribed drug or insulin and the definition of prescribed drug; the four-part definition of medical care; the lodging provision with its two conditions and the fifty-dollar-per-night-per-individual cap; the cosmetic surgery exclusion and its definition; the treatment of a child of divorced parents; the insurance charge separation rules; the eligible long-term care premium structure by attained age and the medical care cost adjustment indexing directive; and the exclusion of amounts allowed as a dependent care credit from medical care.
  2. 26 CFR 1.213-1, “Medical, dental, etc., expenses”Internal Revenue Service, via the Electronic Code of Federal Regulations · Current as of the September 2026 eCFR edition retrieved; the section as printed contains examples computed under earlier versions of the statute · Retrieved September 2026The rule that only expenses actually paid during the taxable year are allowable regardless of when the event occurred or the accounting method used; the requirement that expenses be for the taxpayer, spouse or dependent and not compensated for by insurance or otherwise, with the dependent gross income and multiple support agreement rules; the definition of medical care and the instruction that deductions are confined strictly to expenses primarily for the prevention or alleviation of a physical or mental defect or illness, with the qualifying examples and the vacation counterexample; the definition of medicine and drugs and the exclusion of toiletries and cosmetics; the capital expenditure treatment including the property-value offset and the operation and maintenance rule; the transportation, meals and lodging treatment including the warm climate and resort examples; the spouse or dependent status timing rule; and the treatment of reimbursements received in a later year including the no-prior-deduction case and the ordering rules.
  3. Publication 502, “Medical and Dental Expenses”, edition stated for use in preparing 2025 returnsInternal Revenue Service · Edition served states on its face that it is for use in preparing 2025 returns · Retrieved September 2026The publication's definition of medical expenses as the costs of diagnosis, cure, mitigation, treatment or prevention of disease and for the purpose of affecting any part or function of the body; its statement of the 7.5 percent threshold; its statement that only expenses paid during the year are included and generally not payments for care to be received in a future year; its statement that expenses paid by insurance companies or other sources are not included; its weight-loss entry conditioning inclusion on treatment of a specific disease diagnosed by a physician, naming obesity, hypertension and heart disease; and its nutritional supplements entry excluding supplements, vitamins, herbal supplements and natural medicines unless recommended by a medical practitioner as treatment for a specific diagnosed condition.

Frequently asked questions

What is the income floor?

The statute allows the deduction to the extent that qualifying expenses exceed 7.5 percent of adjusted gross income. The Publication 502 edition served for use in preparing 2025 returns states the same figure, saying that generally only the amount of medical and dental expenses that is more than 7.5 percent of adjusted gross income may be deducted.

How does the code define medical care?

As amounts paid for the diagnosis, cure, mitigation, treatment or prevention of disease, or for the purpose of affecting any structure or function of the body; for transportation primarily for and essential to that care; for qualified long-term care services; and for insurance covering that care or a qualified long-term care insurance contract.

Are weight-loss costs in that category?

The publication states that amounts paid to lose weight may be included in medical expenses if the weight loss is a treatment for a specific disease diagnosed by a physician, naming obesity, hypertension and heart disease as examples. The regulation's general standard is the same one: expenditures are confined strictly to those incurred primarily for the prevention or alleviation of a physical or mental defect or illness, and an expenditure merely beneficial to general health is not medical care.

Does the same rule cover supplements?

The publication states the cost of nutritional supplements, vitamins, herbal supplements and so-called natural medicines cannot be included unless they are recommended by a medical practitioner as treatment for a specific medical condition diagnosed by a physician.

Which medicines count?

The statute provides that an amount paid for medicine or a drug is taken into account only if the medicine or drug is a prescribed drug or is insulin, and defines a prescribed drug as a drug or biological that requires a prescription of a physician for its use by an individual.

What happens if an expense is reimbursed a year later?

The regulation states that where reimbursement, from insurance or otherwise, is received in a year after a year in which a deduction was claimed for those expenses, the reimbursement must be included in gross income in that later year to the extent attributable to and not in excess of deductions allowed in a prior year. Where no medical expense deduction was taken in the earlier year, the reimbursement is not includible.