Yes, a 529 plan can be used for medical school. Federal law treats an accredited medical school the same way it treats an undergraduate college, so withdrawals for tuition, mandatory fees, required books and equipment, and capped room and board come out tax-free.1Office of the Law Revision Counsel. 26 USC 529 – Qualified Tuition Programs With medical school tuition routinely exceeding $50,000 a year, the harder question is not whether you can use the account but which specific costs qualify.
What Counts as a Qualified Medical School Expense
The tax code lists several categories of spending that qualify for tax-free 529 withdrawals, and each must connect to enrollment at the medical school.1Office of the Law Revision Counsel. 26 USC 529 – Qualified Tuition Programs
- Tuition and mandatory enrollment fees, including lab fees bundled into the school’s fee structure during preclinical and clinical years.
- Required textbooks, diagnostic kits, anatomy lab materials, and other supplies the curriculum requires.
- A personal computer, peripheral equipment, software, and internet service, if the student uses them primarily during the years of enrollment. Software designed for games or hobbies does not qualify unless it is predominantly educational.
- Special needs services for a student with a disability who requires accommodations to complete the program.
The connecting thread is that each purchase must tie back to the medical program’s official requirements. Keep receipts and any syllabus or program document showing that an item was required. That is what the IRS looks for if it reviews the return.
Credentialing and Board Exam Fees
A 2025 change to the tax code added “qualified postsecondary credentialing expenses” to the list of costs 529 funds can cover, including testing fees required to obtain a recognized professional credential.1Office of the Law Revision Counsel. 26 USC 529 – Qualified Tuition Programs For medical students, this could potentially reach fees for licensing exams like the USMLE or COMLEX, though the IRS has not yet issued detailed guidance on how broadly the provision applies. If you plan to use 529 funds for board exam fees, confirm eligibility with a tax professional before withdrawing.
What 529 Funds Cannot Cover
Several costs that feel education-related do not qualify. Student health insurance premiums are excluded even when the medical school requires coverage as a condition of enrollment. Transportation is out, including gas, parking passes, and travel to clinical rotation sites. So are scrubs, white coats, and other clothing not tied to official curriculum requirements, along with personal living expenses beyond the room and board allowance.
Room and Board Rules for Medical Students
Room and board qualify for tax-free withdrawals, but two conditions apply that do not touch tuition or fees.1Office of the Law Revision Counsel. 26 USC 529 – Qualified Tuition Programs
First, the student must be enrolled at least half-time, with the medical school defining what counts as half-time under its own academic standards.2Internal Revenue Service. Publication 970 – Tax Benefits for Education Most students in a standard four-year program easily meet this threshold, but anyone on a leave of absence or reduced course load should confirm status with the registrar.
Second, the amount you can withdraw is capped at the greater of two figures:
- The room and board allowance your school includes in its official cost of attendance for federal financial aid purposes.
- The actual amount the school charges if the student lives in housing owned or operated by the institution.
For students living off-campus, which is common during clinical rotation years, the cost of attendance allowance is the cap.2Internal Revenue Service. Publication 970 – Tax Benefits for Education Rent, utilities, and groceries all count toward this limit; spending above it is a non-qualified expense. The financial aid office publishes the exact allowance each academic year.
Which Medical Schools Qualify
To use 529 funds tax-free, the medical school must be an “eligible educational institution,” meaning it participates in federal student aid programs under Title IV of the Higher Education Act.3Cornell Law Institute. Definition – Eligible Educational Institution From 26 USC 25A(f)(2) Nearly all accredited public and private medical schools in the United States meet this requirement.
Some international medical schools qualify as well, particularly those in the Caribbean and Europe that participate in the federal student loan system. Verify any school by searching for its Federal School Code on the U.S. Department of Education’s website. A school without a Federal School Code is not eligible, and any 529 withdrawal for that institution becomes a non-qualified distribution, meaning income tax and a penalty on the earnings portion.
Scholarships and the Penalty Waiver
When a withdrawal is not for a qualified expense, only the earnings portion is taxed. Contributions come back tax-free because they were made with after-tax dollars. The earnings, though, are added to taxable income for the year and hit with an additional 10% federal penalty.2Internal Revenue Service. Publication 970 – Tax Benefits for Education
A few situations waive the 10% penalty while still requiring income tax on the earnings:
- The beneficiary receives a tax-free scholarship. You can withdraw up to the scholarship amount without the 10% penalty, though income tax still applies to the earnings portion.2Internal Revenue Service. Publication 970 – Tax Benefits for Education
- The beneficiary dies or becomes permanently disabled.
- The beneficiary attends a U.S. military academy, to the extent of that attendance.
The scholarship exception matters for medical students who receive merit or need-based awards that reduce tuition. A $15,000 scholarship lets you pull up to $15,000 from the 529 without the 10% penalty, but plan the timing so you are not over-distributing beyond the remaining qualified expenses.
Using Leftover 529 Funds After Graduation
Medical school does not always drain the account. Two options exist for what remains.
Student Loan Repayment
Federal law allows tax-free 529 withdrawals for student loan repayment up to a lifetime limit of $10,000 per borrower.4Internal Revenue Service. Topic No. 313 – Qualified Tuition Programs (QTPs) The cap is per person across all 529 accounts, not per account. A separate $10,000 lifetime cap is available for each of the beneficiary’s siblings, so a parent could direct one child’s leftover balance toward another child’s loans.
One catch: loan interest paid with 529 funds does not qualify for the student loan interest deduction.4Internal Revenue Service. Topic No. 313 – Qualified Tuition Programs (QTPs) For borrowers who can already claim the full interest deduction, it may be more tax-efficient to pay loans from other funds and use the 529 elsewhere.
Roth IRA Rollover
Starting in 2024, unused 529 money can be rolled into a Roth IRA in the beneficiary’s name, with a $35,000 lifetime cap and several conditions:
- The 529 account must have been open for at least 15 years.
- Funds contributed within the five years before the rollover do not qualify.
- Each year’s rollover cannot exceed the Roth IRA annual contribution limit ($7,000 for 2026), and the beneficiary must have earned income at least equal to the rollover amount.
- Total rollovers from all 529 accounts for the same beneficiary cannot exceed $35,000.
Given how long medical training runs, four years of school plus residency, opening a 529 early in a child’s life makes the Roth rollover a realistic backup if a scholarship or grant leaves a balance behind.
Withdrawing Funds and Keeping Records
Most plans let you request a withdrawal online, by phone, or by mail, with the payment directed to yourself, the student, or the school. Many families prefer sending funds straight to the school so the money lands on the tuition balance and the paper trail is clean.
Timing matters. Take the distribution in the same calendar year you pay the qualified expense. There is no statutory rule allowing a distribution in one year for an expense paid in the next, unlike the prepayment rule that applies to certain education tax credits. Withdrawing in December for a January tuition bill can create a mismatch in your tax reporting and potentially trigger penalties.
Each January, the plan administrator sends Form 1099-Q reporting the prior year’s distributions, split between contributions (basis) and earnings.5Internal Revenue Service. Instructions for Form 1099-Q The IRS does not automatically know whether the withdrawals went to qualified expenses; that burden falls on you. Keep tuition invoices, receipts for books and equipment, and housing cost documentation. A simple spreadsheet matching each withdrawal to a specific expense can save real trouble if the IRS asks for verification.