Can 529 Funds Pay for Graduate School Expenses?

Yes, you can use a 529 plan for graduate school. Withdrawals used for qualified education expenses at an eligible graduate program come out free of federal income tax and free of the 10% additional tax, exactly as they do for undergraduate study.1Internal Revenue Service. 529 Plans: Questions and Answers That covers law school, medical school, MBA programs, doctoral work, and any other graduate degree at a qualifying institution. The details worth knowing are which expenses count, how to coordinate with tax credits and fellowships, and what to do with money left over when you finish.

Which Graduate Programs Qualify

A school is eligible if it participates in the federal student aid program run by the U.S. Department of Education. The statute ties eligibility to section 481 of the Higher Education Act, which in practice means any accredited college, university, or vocational school that accepts federal financial aid.2Office of the Law Revision Counsel. 26 U.S. Code 529 – Qualified Tuition Programs Nearly every accredited public and private nonprofit graduate program qualifies, along with many for-profit ones.

The quickest way to verify a program is to look up its Federal School Code, the six-character identifier the Department of Education assigns to every participating school.3Data.gov. Federal School Code List for Free Application for Federal Student Aid (FAFSA) If the school has one, it qualifies. If it doesn’t, any distribution you take for that program is treated as non-qualified, which triggers income tax and a 10% additional tax on the earnings portion.

Some foreign universities also participate. The Department of Education publishes a list of eligible foreign schools, and a graduate program abroad must appear on that list with eligible status for tax-free treatment.4U.S. Department of Education. International Schools Participating in the Federal Student Loan Programs Check before you enroll.

What Counts as a Qualified Expense

The categories are the same at the graduate level as at the undergraduate level. What changes is the size of the bill.2Office of the Law Revision Counsel. 26 U.S. Code 529 – Qualified Tuition Programs

  • Tuition and required fees, including lab fees, technology fees, and activity fees the school bakes into the bill.
  • Books, supplies, and equipment the curriculum requires, from textbooks to medical instruments to specialized software.
  • Computer hardware, software, and internet access, so long as the beneficiary uses them primarily while enrolled. Games and hobby software don’t count unless they’re predominantly educational.
  • Room and board, but only if you’re enrolled at least half-time.
  • Special needs services connected to enrollment.

Room and board is the rule that trips people up most often. The tax-free amount is capped at the greater of the room-and-board allowance the school includes in its official cost of attendance for financial aid purposes, or the actual amount the school charges students living in its own housing.5Internal Revenue Service. Publication 970 (2025), Tax Benefits for Education If you live off campus, your withdrawal for housing and food can’t exceed the school’s published off-campus allowance. Anything above that is a non-qualified distribution. The financial aid office can give you the exact number for your enrollment period.

What Doesn’t Count

Plenty of graduate-school costs feel academic but don’t meet the IRS definition. Transportation is personal, no matter how long the commute or how expensive the parking pass. Student health insurance, medical expenses, activity fees that aren’t required for enrollment, and club dues are all non-qualified.5Internal Revenue Service. Publication 970 (2025), Tax Benefits for Education Living costs during study abroad that go beyond tuition, required fees, and the room-and-board allowance don’t qualify either. International health insurance and airfare for a semester abroad aren’t covered, even when the program itself is.

If you use 529 funds for a non-qualified expense by mistake, only the earnings portion of that withdrawal is taxed and penalized. Contributions come back tax-free because they went in with after-tax dollars. But on an account that’s been growing for years, the earnings share can be substantial, so the cost of a slip adds up quickly.

Coordinating With the Lifetime Learning Credit

Graduate students are often eligible for the Lifetime Learning Credit, which provides up to $2,000 per tax return for qualified tuition and fee expenses. In 2026, the credit phases out for single filers with modified adjusted gross income between $80,000 and $90,000, and for joint filers between $160,000 and $180,000. You cannot use the same dollars of tuition for both a tax-free 529 withdrawal and the credit.6Internal Revenue Service. Instructions for Form 8863 – Education Credits

In practice, split the expenses. If your qualified expenses for the year total $25,000, you might pay $10,000 out of pocket to maximize the credit and use 529 funds for the remaining $15,000. The IRS requires you to reduce your qualified 529 expenses by whatever amount you claimed for the credit before checking whether your distribution is fully tax-free.5Internal Revenue Service. Publication 970 (2025), Tax Benefits for Education Skip that step and part of your 529 withdrawal can become taxable even when you thought you were covered.

The math usually favors claiming the credit on a slice of tuition and running the rest through the 529. The credit is a dollar-for-dollar reduction in your tax bill up to its cap; the 529 only saves the tax you would have owed on the earnings.

How Fellowships and Scholarships Change the Picture

Graduate students often receive fellowships, assistantships, or scholarships that reduce out-of-pocket cost. Tax-free aid shrinks your pool of expenses eligible for tax-free 529 distributions by the same amount. If qualified expenses total $30,000 and you get a $12,000 fellowship, you can take up to $18,000 from your 529 tax-free.

You can still pull the fellowship-sized slice out of the 529 if you want to. The IRS waives the 10% additional tax on 529 withdrawals up to the amount of tax-free scholarship or fellowship aid the student receives.5Internal Revenue Service. Publication 970 (2025), Tax Benefits for Education You’ll owe ordinary income tax on the earnings portion of that extra withdrawal, but not the penalty. Keep the award letter and any documentation of the scholarship amount in case the IRS questions the withdrawal.

Timing and How to Take the Money

Match the withdrawal to the tax year in which you pay the expense. IRS guidance implies that 529 distributions should occur in the same tax year as the qualified expense, and no prepayment exception exists for 529 plans the way it does for the American Opportunity Tax Credit. Pulling money in December for a bill you won’t pay until January can create a mismatch that makes the withdrawal look non-qualified.

Pay the expense first, request the distribution in the same calendar year, and keep the billing statements. Most plans offer three payout paths:

  • Direct payment to the school, which simplifies recordkeeping.
  • Payment to the beneficiary, with the 1099-Q issued in the beneficiary’s name.7Internal Revenue Service. Instructions for Form 1099-Q
  • Payment to the account owner, with the 1099-Q issued in the owner’s name.

Having the 1099-Q in the beneficiary’s name is usually simpler at tax time, since the beneficiary’s expenses determine whether the withdrawal is qualified. If you’re a graduate student who opened your own 529 and named yourself as beneficiary, which the rules allow, the distinction collapses.1Internal Revenue Service. 529 Plans: Questions and Answers

Using Leftover 529 Money After Graduate School

Fellowships, a shortened program, or a career pivot can leave a balance in the account. You have several options.

Pay Down Student Loans

Since 2019, you can use up to $10,000 from a 529 to repay qualified student loans without owing tax or the 10% penalty.2Office of the Law Revision Counsel. 26 U.S. Code 529 – Qualified Tuition Programs That $10,000 is a lifetime cap per borrower across all 529 plans. The same $10,000 lifetime limit applies separately to each sibling of the beneficiary, so a parent with multiple children can potentially deploy $10,000 per child.

Roll Funds Into a Roth IRA

Starting in 2024, the SECURE 2.0 Act allows leftover 529 money to roll into a Roth IRA for the beneficiary.8Internal Revenue Service. Publication 590-A (2025) The rules are strict:

  • The 529 must have been open at least 15 years for the current beneficiary.
  • Only contributions made more than five years before the rollover, plus their earnings, can move.
  • Each year’s rollover is capped at the Roth IRA contribution limit for that year, which is $7,500 in 2026, minus any other IRA contributions the beneficiary makes.9Internal Revenue Service. 401(k) Limit Increases to $24,500 for 2026, IRA Limit Increases to $7,500
  • Lifetime rollovers can’t exceed $35,000 per beneficiary.
  • The beneficiary must have earned income in the year of the rollover.
  • The transfer must go trustee-to-trustee into a Roth IRA in the beneficiary’s name.

At best, moving the full $35,000 takes about five years of maximum annual rollovers. For a family that funded a 529 early, this is a far better outcome than a non-qualified withdrawal.

Change the Beneficiary

You can change the beneficiary to another qualifying family member with no tax consequence.1Internal Revenue Service. 529 Plans: Questions and Answers Siblings, children, nieces, nephews, and first cousins all count. You can also roll the funds into a different 529 plan for the same beneficiary or a family member. There’s no deadline forcing you to spend the balance, so it can wait for a future student.

What a Non-Qualified Withdrawal Costs

Any withdrawal that doesn’t go toward a qualified expense, student loan repayment (up to $10,000), or a Roth IRA rollover is non-qualified. Contributions still come out tax-free, but the earnings portion is subject to both ordinary income tax and a 10% additional federal tax.2Office of the Law Revision Counsel. 26 U.S. Code 529 – Qualified Tuition Programs The 10% is also waived, beyond the scholarship situation above, if the beneficiary dies, becomes disabled, or attends a U.S. military academy; earnings are still taxed in those cases.

Whether the penalty stings depends on how much of the balance is earnings. An account funded recently loses relatively little. An account that’s compounded for two decades can be half earnings, and the tax hit is often big enough to justify leaving the money in place for another beneficiary instead.