Can You Use HSA for Elective Surgery? Eligibility and Exclusions

You can use HSA funds for an elective surgery as long as the procedure treats, diagnoses, or prevents a medical condition. “Elective” in medical billing usually just means the surgery is scheduled rather than emergency, and most scheduled procedures still serve a genuine medical purpose. Procedures that are purely cosmetic are the main exception, and paying for one with HSA money triggers income tax plus a 20% penalty.

What Makes a Surgery HSA-Eligible

The IRS defines qualified medical expenses for HSAs by pointing to the definition of “medical care” in Section 213(d) of the Internal Revenue Code.1Legal Information Institute (LII) / Cornell Law School. 26 USC 223 – Health Savings Accounts – Definition: Qualified Medical Expenses Medical care covers amounts paid for treating, diagnosing, or preventing disease, along with anything that affects the structure or function of the body.2Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses

Whether a surgery was scheduled in advance is not the test. A knee replacement booked six months out qualifies for the same reason an emergency appendectomy does: it treats a diagnosed condition. What the rule excludes is spending aimed at general wellness or appearance rather than a specific health issue.

Elective Procedures That Typically Qualify

Common non-emergency surgeries that meet the medical-care test include:

  • LASIK and other laser eye surgery to correct defective vision. The IRS specifically lists eye surgery to treat defective vision as an eligible expense.3Internal Revenue Service. Publication 502 – Medical and Dental Expenses
  • Vasectomy, which the IRS explicitly identifies as an eligible medical expense.3Internal Revenue Service. Publication 502 – Medical and Dental Expenses
  • Dental work including fillings, extractions, braces, dental implants, and dentures, all of which affect the function of your teeth and jaw. Veneers placed for appearance alone would not qualify.
  • Diagnostic procedures such as a laparoscopy for chronic pain or a biopsy to check for disease.
  • Scheduled joint replacements and other orthopedic surgery that treats functional impairments.

Each of these treats, diagnoses, or prevents a health condition. That is what puts them inside the definition of medical care.

The Cosmetic Surgery Exclusion

Federal law draws a hard line against cosmetic procedures. Any surgery directed at improving your appearance that does not meaningfully promote the proper function of your body or treat illness is excluded from the definition of medical care.2Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses Facelifts, hair transplants, liposuction, and teeth whitening are the examples the IRS calls out.3Internal Revenue Service. Publication 502 – Medical and Dental Expenses

Three exceptions bring cosmetic surgery back inside eligibility. It qualifies if it corrects a deformity caused by a congenital abnormality (a condition you were born with), a personal injury from an accident or trauma, or a disfiguring disease.2Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses Breast reconstruction after a mastectomy for cancer is the standard example: the surgery corrects a deformity caused by the disease, so the full cost is an eligible medical expense.3Internal Revenue Service. Publication 502 – Medical and Dental Expenses

Procedures With Both Medical and Cosmetic Purposes

Some surgeries do medical work and cosmetic work at the same time. Rhinoplasty is the standard case. If a surgeon repairs a deviated septum that causes breathing problems and reshapes the nose in the process, the procedure has both components. The question is whether you would have needed the surgery to treat the medical condition regardless of the appearance change.

If the primary purpose is to treat a diagnosed condition, the procedure generally qualifies even with an incidental cosmetic effect. If the primary purpose is to change your appearance, it does not qualify even when there is a minor medical benefit. When the work is genuinely split, you may need to separate the costs, paying the medically necessary portion from your HSA and covering the cosmetic portion another way. Ask your surgeon to document the diagnosis and the medical necessity in writing before the procedure.

Weight Loss and Bariatric Surgery

Bariatric surgery and weight-loss programs can qualify, but only when they treat a specific disease diagnosed by a physician. The IRS requires the treatment to address a condition such as obesity, diabetes, hypertension, or heart disease. A weight-loss program taken on for general health or appearance, without a physician’s diagnosis of a specific disease, does not qualify. The same distinction governs nutritional counseling: prescribed as part of treatment for a diagnosed condition, it is eligible; hired on your own, it is not.4Internal Revenue Service. Frequently Asked Questions About Medical Expenses Related to Nutrition, Wellness and General Health

What Happens If You Use HSA Funds on an Ineligible Surgery

Spending HSA money on a procedure that does not qualify creates a non-qualified distribution. You owe income tax on the amount plus an additional 20% tax penalty.5Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans On a $10,000 cosmetic procedure, the penalty alone is $2,000 before any income tax at your regular rate.

The 20% penalty goes away at age 65. After that, non-qualified distributions are still included in your taxable income, but the additional tax no longer applies.5Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans From that point, the account behaves like a traditional retirement account for anything you spend that is not a medical expense.

How to Pay and What to Keep

Once you have confirmed a procedure qualifies, you can pay the surgical facility directly with your HSA debit card, or pay with other funds and reimburse yourself from the HSA later. Federal law does not set a deadline for that reimbursement. You can pay for a qualified procedure today and pull HSA money to cover it years from now, as long as the expense was incurred after you established the account. Some account holders deliberately pay medical costs out of pocket, leave the HSA invested, and reimburse themselves in retirement.

Documentation is what protects the tax treatment if the IRS ever looks. The IRS does not require a particular form, but many HSA administrators ask for a Letter of Medical Necessity before approving reimbursement for procedures that could look cosmetic. Signed by your physician, the letter should state your diagnosis and explain how the surgery treats it. Keep it on file even if your administrator does not ask for it.

Keep itemized invoices too, showing the surgeon’s fee, the facility fee, and anesthesia charges separately. Hold onto everything for at least three years after filing the tax return for the year of the expense.6Internal Revenue Service. 5Internal Revenue Service. Publication 969 – Health Savings Accounts and Other Tax-Favored Health Plans The dependent does not have to be covered under your high-deductible health plan. As long as the person meets the tax-dependency rules and the procedure itself qualifies, you can pay for it from your HSA.