You can use an HSA for elective surgery when the procedure treats a medical condition, prevents disease, or restores a body function the IRS recognizes as impaired. Cosmetic surgery performed only to improve your appearance does not qualify, and using HSA funds for it triggers income tax on the withdrawal plus a 20% penalty. The word “elective” itself is not the problem: most scheduled surgeries pass the test easily, and even some procedures that sound cosmetic qualify when they correct a deformity from injury, birth, or disease.
What “Elective” Actually Means for HSA Purposes
The confusion starts with the word. In a hospital, “elective” just means the surgery is scheduled rather than performed in an emergency. The IRS doesn’t care about scheduling. It cares whether the expense meets the definition of medical care under Internal Revenue Code Section 213(d), which covers costs for diagnosing, treating, or preventing disease, along with procedures that affect any structure or function of the body.1Office of the Law Revision Counsel. 26 USC 213 – Medical, Dental, Etc., Expenses
That second category is broader than most people assume. A surgery doesn’t have to fight a named disease. It just has to address a real physical condition or restore normal function. A knee replacement is elective in the clinical sense because you pick a date, but it clearly treats a physical ailment and qualifies for tax-free HSA spending. The scheduling is irrelevant; the medical purpose is what counts.
Elective Procedures That Qualify
A wide range of scheduled surgeries pass the IRS test because they treat a specific condition or restore function. Common examples include:
- LASIK and other laser eye surgery to correct defective vision.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
- Sterilization procedures such as vasectomies and tubal ligations.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
- Dental surgery, including extractions and implants that restore chewing function.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
- Diagnostic procedures like colonoscopies and annual physicals, which qualify even when you aren’t currently sick.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses
- Orthopedic operations such as joint replacements and rotator cuff repairs.
The IRS also states broadly that you can include amounts paid for legal operations that aren’t cosmetic surgery.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses The common thread across the list is that each procedure addresses a diagnosed condition, restores lost function, or prevents disease. None require an emergency to justify the expense.
Weight-Loss and Bariatric Surgery
Weight-loss surgery sits in a gray area that catches many HSA holders off guard. The IRS allows expenses for a weight-loss program only when a physician has diagnosed a specific disease that the weight loss treats, such as obesity, hypertension, or heart disease.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Bariatric surgery prescribed to treat diagnosed obesity meets that standard. Surgery performed to improve appearance, general health, or a sense of well-being without a specific diagnosed condition does not qualify.
Get the diagnosis documented before the procedure. Surgeon’s notes confirming morbid obesity, sleep apnea, or cardiovascular disease tied to weight are what separate a tax-free withdrawal from a taxable one.
Reconstructive Surgery After Injury, Birth Defect, or Disease
This is the rule most people miss. A procedure the IRS would normally classify as cosmetic becomes a qualified medical expense when it corrects a deformity arising from a congenital abnormality, a personal injury resulting from an accident or trauma, or a disfiguring disease.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses The IRS gives breast reconstruction after a mastectomy as its own example: the surgery corrects a deformity directly related to the disease and qualifies.
The exception reaches further than people expect. Rhinoplasty after a broken nose, scar revision after a burn, or corrective surgery for a birth defect can all qualify. The question is whether the procedure addresses a deformity caused by one of the three categories. If it does, HSA funds pay for it tax-free even though the identical procedure done for purely aesthetic reasons on someone without that history would not qualify.
Procedures That Don’t Qualify
Procedures performed only to improve appearance, with no disease or deformity to correct, are excluded. The IRS specifically names facelifts, hair transplants, electrolysis, and liposuction as examples of non-qualifying cosmetic surgery.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses The test is straightforward: if the procedure doesn’t meaningfully promote proper function of the body or treat illness or disease, it’s cosmetic and your HSA can’t cover it.
Other common non-qualifying costs include teeth whitening, cosmetic orthodontics done purely for appearance, and any wellness procedure lacking a formal medical diagnosis behind it. When the motivation is “I’d like to look better” rather than “my doctor says I need this,” the expense falls outside what the IRS treats as medical care.
What It Costs to Get It Wrong
Paying for a cosmetic procedure from an HSA triggers two layers of tax. The withdrawal is added to your taxable income for the year, so you owe federal income tax on it at your marginal rate. On top of that, the IRS imposes an additional 20% tax on the non-qualified amount.3Office of the Law Revision Counsel. 26 USC 223 – Health Savings Accounts On a $10,000 cosmetic procedure, someone in the 22% federal bracket would owe $2,200 in income tax plus a $2,000 penalty, or $4,200 in total tax on money that was supposed to be tax-free.
The 20% penalty disappears once you turn 65, become disabled, or upon death.4Internal Revenue Service. Publication 969 (2025), Health Savings Accounts and Other Tax-Favored Health Plans After 65, non-qualified withdrawals are still taxed as ordinary income, but the extra penalty is gone. Qualified medical expenses remain fully tax-free at any age.
Documenting Medical Necessity
The IRS doesn’t audit every HSA withdrawal, but when it does, the burden is on you to show the expense was medically necessary. Building documentation before the procedure is much easier than reconstructing it after.
A Letter of Medical Necessity from your treating physician is the single most useful document. The IRS doesn’t require one for every procedure, but many HSA administrators ask for them on expenses that could be classified either way. The letter should state your diagnosis and explain why the surgery is medically necessary rather than elective in the cosmetic sense. For gray-zone procedures like rhinoplasty after a facial injury or bariatric surgery, that letter is often the difference between a clean reimbursement and a rejected claim.
Also keep itemized receipts showing the provider’s name, date of service, and a description of the procedure. Explanation of Benefits statements from your insurer are worth saving because they confirm what the insurer treated as medically necessary. Store these records indefinitely. There is no IRS deadline for reimbursing yourself from an HSA, so the agency could theoretically question a withdrawal years later, as long as the expense was incurred after the HSA was opened.5U.S. Office of Personnel Management. Health Savings Accounts Any medical bill from before the account existed can never be reimbursed from it.
Related Costs You Can Cover
HSA eligibility runs beyond the surgeon’s bill. When the underlying procedure qualifies, several related costs qualify too.
Transportation to and from the medical facility is eligible, including bus, taxi, train, and plane fares.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses If you drive, you can use either actual gas and oil costs or the IRS standard medical mileage rate, set at 20.5 cents per mile for 2026.6Internal Revenue Service. IRS Sets 2026 Business Standard Mileage Rate Parking fees and tolls qualify either way. Travel costs for a companion also qualify when a parent must travel with a child or a nurse must accompany a patient who cannot travel alone.
Lodging while away from home for medical care is eligible up to $50 per night per person. When a parent accompanies a sick child, the combined limit is $100 per night.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Meals during the stay are not included unless you’re admitted as an inpatient.
Recovery items after the procedure also qualify. Crutches, wheelchairs and their operating costs, bandages, and surgical dressings are all eligible.2Internal Revenue Service. Publication 502 (2025), Medical and Dental Expenses Since the CARES Act took effect in 2020, over-the-counter medications no longer need a prescription to be reimbursable, so post-surgery ibuprofen or acetaminophen can come out of the HSA.7Internal Revenue Service. IRS Outlines Changes to Health Care Spending Available Under CARES Act