legal-processes-and-procedures
How to Deduct Medical Expenses on Your Tax Return Legally
Table of Contents
Understanding Medical Expense Deductions
Claiming medical expenses on your federal tax return is one of the few ways to directly reduce your taxable income based on actual health-care costs. However, the rules are strict, and many taxpayers either miss qualifying expenses or incorrectly assume they cannot deduct anything. To claim these deductions legally, you must itemize your deductions using Schedule A (Form 1040), maintain thorough documentation, and understand the 7.5% adjusted gross income (AGI) threshold. This guide breaks down exactly what counts, what does not, and how to maximize your deduction while staying fully compliant with IRS regulations.
Medical expense deductions are not available to everyone. Since the standard deduction has increased significantly in recent years, you may only benefit if your total itemized deductions exceed the standard deduction for your filing status. For 2024, the standard deduction is $14,600 for single filers, $29,200 for married couples filing jointly, and $21,900 for heads of household. Evaluate whether itemizing makes financial sense before diving into eligibility.
What Qualifies as a Deductible Medical Expense?
The IRS defines deductible medical expenses as costs incurred primarily for the prevention, diagnosis, treatment, or alleviation of a physical or mental defect or illness. These expenses can be for you, your spouse, or any dependents you claim on your tax return. The full list is detailed in IRS Publication 502, but the most common qualifying expenses include:
- Payments to doctors, dentists, surgeons, chiropractors, psychiatrists, psychologists, and other licensed medical practitioners.
- Hospital care, including inpatient stays, outpatient surgery, and emergency room visits.
- Prescription medications and insulin. Note that over-the-counter drugs without a prescription generally do not qualify unless they are insulin.
- Medical equipment such as wheelchairs, crutches, hearing aids, eyeglasses, and contact lenses.
- Long-term care services, including nursing home care and home health aide fees, when medically necessary.
- Transportation costs directly related to medical care — mileage (at the IRS standard medical mileage rate), taxi fares, bus fares, parking fees, and tolls.
- Premiums for health insurance, including employer-sponsored plans (if paid with after-tax dollars) and Medicare Part B and D premiums.
- Dental treatments, including cleanings, fillings, crowns, braces, and dentures.
- Vision care, such as eye exams, prescription glasses, and contact lenses.
- Substance abuse treatment programs and smoking cessation programs (including prescription nicotine patches, but not over-the-counter gum).
Expenses qualify even if they are not reimbursed by insurance or any other source. However, any amount reimbursed by your health insurance, employer, or a health savings account (HSA) cannot be deducted a second time.
Expenses That Do NOT Qualify
Equally important is knowing what the IRS explicitly excludes. The following are non-deductible:
- Over-the-counter medicines (except insulin) — even with a doctor’s recommendation.
- Cosmetic surgery performed solely for appearance, unless it corrects a deformity or injury.
- Funeral or burial expenses.
- Most personal hygiene products, such as toothpaste, soap, or shaving cream.
- Weight-loss programs unless prescribed as part of a medical condition (e.g., obesity, hypertension, or heart disease).
- Health club dues, vitamins, and supplements (unless specifically prescribed by a doctor to treat a diagnosed condition).
- Maternity clothes and baby formula (these are considered personal expenses).
A common misconception is that all dental and vision costs are fully deductible. While many are, expenses like teeth whitening purely for aesthetics or non-prescription reading glasses do not qualify.
The 7.5% AGI Threshold: How It Works
You can only deduct the portion of your total qualifying medical expenses that exceeds 7.5% of your adjusted gross income (AGI). For example, if your AGI is $60,000, the threshold is $4,500. If you incurred $6,000 in eligible medical expenses, you can deduct $1,500 (the amount over $4,500). If your total expenses are below 7.5% of AGI, you get zero deduction from medical costs.
This threshold is permanent for tax years 2023 and later, thanks to the SECURE 2.0 Act. For previous years (2019–2022), the threshold was 7.5% as well (temporarily lowered from 10%). Always check current law, but for now the floor remains 7.5%.
Because the threshold applies to AGI, minimizing your AGI through other deductions (such as retirement contributions) can indirectly lower the floor and make more medical expenses deductible. However, do not take actions solely to reduce AGI without consulting a tax professional, as it can affect other credits and deductions.
Itemizing vs. Taking the Standard Deduction
Claiming medical expenses requires you to itemize deductions on Schedule A. This means you forgo the standard deduction. You should compare the total of all your itemizable deductions — including mortgage interest, state and local taxes (capped at $10,000), charitable contributions, and casualty losses — against the standard deduction. If itemized deductions are higher, you benefit; if they are lower, take the standard deduction.
The medical expense deduction alone rarely exceeds the standard deduction unless you have unusually high health-care costs. But when combined with other itemized deductions, it can push you over the threshold. Taxpayers with large unreimbursed medical bills — such as those with chronic illnesses, major surgery, or nursing home stays — are most likely to benefit.
Remember: you cannot itemize if your filing status is married filing separately and you lived apart from your spouse at all times during the year? Actually, married couples can choose to itemize jointly or both take the standard deduction, but they cannot mix methods. If one spouse itemizes, both must itemize.
Record-Keeping: Your Best Defense
In the event of an IRS audit, your deduction will rely entirely on your records. Keep detailed receipts, bills, cancelled checks, and bank statements for every medical expense you claim. For transportation, maintain a log of trips, including dates, mileage, purpose, and parking fees. The IRS recommends using a contemporaneous log, meaning recorded at or near the time of the expense.
You do not need to submit these documents with your tax return, but you must retain them in case of audit. Generally, keep records for at least three years from the filing date, though some experts recommend six years for complex returns.
Digital copies are acceptable. Use a cloud-based service or a dedicated folder on your computer, organized by year and expense type. For mileage, many taxpayers use smartphone apps that automatically track trips and classify them as medical.
Special Situations: Self-Employed and Health Savings Accounts (HSAs)
If you are self-employed, you may be able to deduct health insurance premiums as an adjustment to income on Schedule 1, which reduces your AGI before the 7.5% threshold is applied. This is different from the medical expense deduction. Premiums paid for yourself, your spouse, and your dependents can be deducted as a self-employed health insurance deduction, provided you meet certain conditions. Any remaining out-of-pocket costs can still be claimed as itemized medical expenses subject to the threshold.
Health Savings Accounts (HSAs) offer a triple tax advantage: contributions are pre-tax, growth is tax-deferred, and withdrawals for qualified medical expenses are tax-free. If you have an HSA, you cannot deduct the same expenses both through the HSA and as an itemized deduction. However, HSA contributions themselves can be deducted above the line (as an adjustment to income) even if you do not itemize — a better strategy for many.
Strategies to Maximize Your Medical Expense Deduction
Even with the high threshold, there are legitimate ways to increase your deduction:
- Bunching expenses: If your medical costs vary from year to year, you can accelerate discretionary expenses into one year to exceed the threshold. For example, schedule non-urgent surgeries, dental crowns, or eye surgeries in the same year. Combine with other itemized deductions like charitable donations for maximum effect.
- Include dependents: If you pay medical bills for a dependent child, parent (if they qualify as your dependent), or even a non-dependent relative if they meet the criteria for a qualifying relative, those expenses count toward your deduction. Be careful with adult children — they must be your dependent for tax purposes, which means meeting support and income tests.
- Track transportation and lodging: Travel for medical care can add up. The IRS standard medical mileage rate for 2024 is 21 cents per mile. Also, if you travel out of town for treatment, you can deduct lodging expenses up to $50 per night per person (but not meals). Keep receipts for hotel stays and note the distance.
- Use IRS Publication 502 as a checklist: This publication lists hundreds of specific expenses, from acupuncture to vasectomy. Reviewing it thoroughly might reveal expenses you overlooked, such as special education costs for a child with learning disabilities (if recommended by a doctor) or certain home modifications for a disabled person (e.g., installing ramps, widening doorways).
Common Mistakes to Avoid
- Claiming expenses that were reimbursed by insurance or an HSA. This is a red flag for auditors.
- Including cosmetic procedures that are not medically necessary.
- Forgetting to subtract the 7.5% floor — many taxpayers list total expenses but do not calculate the allowable deduction.
- Failing to include premiums that were paid with pre-tax dollars, such as through a cafeteria plan or Section 125 plan. Those have already reduced your taxable income and cannot be deducted again.
- Not bringing records to a tax preparer. Even if you use software, you need the raw numbers. Software can handle calculations if you enter correctly.
Step-by-Step: How to Claim the Deduction
- Determine your adjusted gross income (AGI) from Form 1040.
- Calculate your total qualifying medical expenses for the year (use a spreadsheet or worksheet from IRS Pub 502).
- Subtract 7.5% of your AGI from the total expenses. The result is your deductible amount.
- Gather all other itemized deductions (mortgage interest, state and local taxes, charitable gifts, etc.).
- Add the medical expense deduction to your other itemized deductions.
- Compare the total to the standard deduction for your filing status. If itemized total is higher, file Schedule A.
- Enter the medical expense deduction on Schedule A, Line 4.
- Complete Schedule A and attach to Form 1040.
- Keep all supporting records with your tax files for at least three years.
If you use tax preparation software, it will typically ask whether you want to itemize and guide you through the input. However, the software cannot flag expenses you forgot to enter; it only works with the data you provide.
Special Considerations for Seniors
Older adults often have higher medical costs, making them prime candidates for the deduction. Medicare Part B and Part D premiums qualify, as do premiums for Medicare Advantage plans. Long-term care insurance premiums also qualify, but with age-based limits. For example, in 2024, a taxpayer age 71 or older can deduct up to $5,880 per year in long-term care premiums (premiums above that amount still qualify if they are part of a qualified policy and not reimbursed). Nursing home costs, including room and board, are fully deductible if the primary reason for admission is medical care and the resident is chronically ill.
Additionally, if you are still working but have employer-sponsored insurance, you may choose to pay Medicare premiums out-of-pocket to avoid a penalty, and those premiums are deductible if you itemize. Keep a record of your Medicare card and premium receipts.
When to Consult a Tax Professional
The rules around medical deductions are detailed and subject to change. While many taxpayers can handle the deduction themselves using tax software, certain situations warrant professional advice:
- You have complex medical expenses for multiple family members, including elderly parents.
- You are self-employed and also have an HSA.
- You incurred costs for home modifications for a disability — these require a doctor’s note and careful calculation of what part adds value to the house.
- You had a large medical reimbursement in a year that you also paid high premiums — the timing of reimbursements matters.
- You are audited. A tax pro can represent you before the IRS.
Even if you use a professional, keep your own records organized. The more complete your documentation, the smoother the process.
External Resources and Official Guidance
For in-depth reading, start with the official source: IRS Publication 502. It contains a full list of qualifying expenses, examples, and specific rules for each category. Also refer to Schedule A (Form 1040) instructions, which walk through each line. For general tax advice and calculators, see reputable sites like NerdWallet’s medical expense deduction guide and the Tax Policy Center for analysis of current thresholds. Always cross-check information against current tax law, as thresholds and limits can change annually and with legislative updates.
Final Thoughts on Legally Reducing Your Tax Bill
Medical expense deductions are one of the few ways to offset the high cost of health care. While the 7.5% AGI floor makes it harder to qualify than in past decades, taxpayers with significant unreimbursed expenses can still reap meaningful savings. The key is meticulous record-keeping, understanding exactly what counts, and planning your expenses strategically. Avoid shortcuts: never claim unqualified expenses or inflate amounts. The risk of an audit outweighs the potential deduction.
By following the guidelines in this article and consulting official IRS resources, you can confidently claim eligible medical expenses and keep more of your hard-earned money. For personalized advice, especially if your situation is complex, invest in a consultation with a licensed tax professional. A few hundred dollars spent on a tax preparer can often result in thousands in legitimate savings — and, more importantly, peace of mind that your return is correct.