Advertiser disclosure: VistaRates has no affiliate or partner agreements today, and no provider pays for placement. Product links go to the provider's own page. How we make money

529 plan withdrawal rules: which costs keep it tax-free

Which education costs keep a 529 plan withdrawal tax-free, how a withdrawal larger than those costs is taxed, and how to read Form 1099-Q.

By Martin Marinov 7 min read Published Updated Verified
College graduate hugging proud parents outdoors on campus

Key takeaways

  • A 529 plan withdrawal is not taxable when it pays for the beneficiary's qualified higher education expenses.
  • If a withdrawal is larger than the beneficiary's qualified expenses, a portion of the earnings is taxable.
  • The IRS says K-12 expenses paid from all of a beneficiary's 529 plans are limited to $20,000 per year, with a $10,000 limit before Dec. 31, 2025.
  • Student loan repayments from a 529 plan are limited to $10,000 lifetime per individual.
  • You cannot use the same expenses to claim an education credit and to make a 529 withdrawal tax-free.
On this page 9 sections

A 529 plan is what the IRS calls a qualified tuition program (QTP). The IRS lists its benefits: earnings accumulate tax free while in the account, and distributions aren’t taxable when used to pay for qualified higher education expenses. The catch is the phrase “qualified education expenses.” Several education tax benefits use a version of it, and IRS Publication 970 shows that the costs that qualify are not the same for each one. A cost that counts for one benefit may not count for another.

This guide looks only at the 529 version of that list: what keeps a withdrawal tax-free, what happens when it does not, and some common points of confusion.

What this means

The IRS describes a 529 plan as a program set up and run by a state, or an agency or instrumentality of a state, that lets a contributor either prepay a beneficiary’s qualified higher education expenses at an eligible educational institution or contribute to an account for paying those expenses. Eligible educational institutions can also set up these programs, but only for prepaying expenses.

The IRS lists these tax features:

  • Contributions are not deductible.
  • Earnings accumulate tax free while in the account.
  • The beneficiary generally does not have to include the earnings as income.
  • Distributions are not taxable when used to pay for qualified higher education expenses.
  • If a distribution is greater than the beneficiary’s qualified higher education expenses, a portion of the earnings is taxable.

A key question for each withdrawal is how much came out compared with the beneficiary’s qualified expenses.

Who it applies to

These rules matter to anyone who receives a 529 plan distribution, whether it pays for college, K-12 school, an apprenticeship or student loans. If you received a distribution, you should get Form 1099-Q from each program that paid one. The IRS says box 1 shows the gross distribution, split between earnings (box 2) and basis, or return of investment (box 3). As of December 1, 2026, the IRS page still says Form 1099-Q should be made available by Feb. 2, 2026. That date applied to forms for 2025 distributions, so check the IRS page for the date that applies to forms for 2026 distributions.

Which education costs keep a 529 withdrawal tax-free

College and other postsecondary schools

The IRS says qualified higher education expenses generally include expenses required for the beneficiary’s enrollment or attendance at any college, university, vocational school or other postsecondary institution eligible to take part in a Department of Education student aid program. Publication 970 adds that room and board is a qualified expense for a 529 plan, which is not true for every education benefit. To count, room and board must be for a student enrolled at least half-time, and the amount that qualifies is limited.

Kindergarten through grade 12

For a beneficiary at a public, private or religious elementary or secondary school, the IRS lists these qualified expenses:

  • Tuition
  • Curriculum and curricular materials
  • Books or other instructional materials
  • Tuition for tutoring or educational classes outside the home, including at a tutoring facility
  • Fees for a nationally standardized norm-referenced achievement test, an advanced placement exam, or exams related to college or university admissions
  • Fees for dual enrollment in an institution of higher education
  • Educational therapies for students with disabilities from a licensed or accredited provider, including occupational, behavioral, physical and speech-language therapies

The IRS says these K-12 expenses are limited to a total of $20,000 per year ($10,000 limit before Dec. 31, 2025) from all of the beneficiary’s 529 plans. That is how the IRS page read when we checked it on December 1, 2026. Because the limit changed recently, check the current IRS wording before you plan a withdrawal.

Apprenticeships, credentials and loans

The IRS also counts:

  • Fees, books, supplies and equipment required for an apprenticeship program registered and certified with the Secretary of Labor
  • Certain qualified postsecondary credentialing expenses
  • Qualified education loan repayments, in limited amounts

For loans, withdrawals can pay principal or interest on a student loan of the beneficiary or the beneficiary’s sibling. The limit is $10,000 lifetime per individual. Interest paid this way does not qualify for the student loan interest deduction. If you are weighing loan payoff against other debt, our debt guides and loan guides explain the basics.

Quick comparison: same word, different lists

Expense529 plan (QTP)Education credits
Tuition and required feesQualifiesQualifies
Room and boardQualifies for at least half-time students, per Publication 970Does not qualify
K-12 tuitionQualifies, within the annual limitNot on the IRS list for the credits

How other withdrawals are taxed

If the withdrawal is more than the qualified expenses, the IRS says a portion of the earnings is taxable. The part of each distribution that is your own basis (box 3 on Form 1099-Q) is a return of investment. Publication 970 has sections on figuring the taxable portion and on an additional tax on taxable distributions, including exceptions. Read those before you take money out for non-education costs.

Example with made up numbers: A beneficiary withdraws $10,000. Form 1099-Q splits it into $7,000 of basis and $3,000 of earnings. The beneficiary’s qualified expenses for the year are $8,000. Because the withdrawal is $2,000 more than those expenses, a portion of the $3,000 of earnings becomes taxable. Publication 970 shows how to figure that portion.

The Roth IRA rollover

For distributions made after Dec. 31, 2023, the IRS permits a special rollover from the beneficiary’s 529 plan to the beneficiary’s Roth IRA. To be tax-free, the rollover must:

  • Be paid through a direct trustee-to-trustee transfer
  • Fit within the Roth IRA annual contribution limit and a $35,000 lifetime limit
  • Come from a 529 account open for at least 15 years as of the distribution date
  • Not exceed the amount contributed (and attributable earnings) before the 5 year period ending on the distribution date

Common mistakes

  • Double counting expenses. The IRS says you cannot use the same expenses to claim the American opportunity credit or lifetime learning credit and also to figure the tax-free portion of a 529 distribution.
  • Assuming credit rules apply to the 529. The IRS list for the credits excludes room and board. The 529 list includes it. Use the right list for the right benefit.
  • Ignoring the K-12 cap. The annual limit applies across all of the beneficiary’s 529 plans, not per account.
  • Forgetting the loan limit is lifetime. The $10,000 student loan limit applies per individual for life.
  • Deducting interest paid with 529 money. Interest paid from a 529 plan does not qualify for the student loan interest deduction.

Example with made up numbers: A family pays $6,000 of tuition. It uses $4,000 of that tuition to claim an education credit. Only the remaining $2,000 of tuition, plus any other qualified costs such as room and board, can support a tax-free 529 withdrawal.

What to do next

  1. Gather receipts for every expense you plan to cover, sorted by category.
  2. Compare the total to what you withdrew during the year.
  3. Decide which expenses go toward an education credit and which go toward the 529, so none are counted twice.
  4. Check Form 1099-Q for the earnings and basis split.
  5. Read IRS Publication 970, or ask a tax professional if your numbers don’t line up.

If the beneficiary has a disability, you can also compare a 529 plan with an ABLE account, whose tax-free withdrawals can cover qualified disability expenses, which may include education.

How we make money

VistaRates currently has no affiliate or partner agreements and is not paid for any link on this page. Links go to the provider’s own page. See our advertiser disclosure.

FAQ

Is room and board a qualified expense for a 529 plan?

IRS Publication 970 says room and board is a qualified expense for a qualified tuition program when the student is enrolled at least half-time, within limits, but not for the education savings bond program. The IRS list of qualified expenses for the education credits also leaves out room and board, so the answer depends on which benefit you are claiming.

What happens if I withdraw more than the qualified expenses?

The IRS says that if a distribution is greater than the beneficiary's qualified higher education expenses, a portion of the earnings is taxable. Publication 970 explains how to figure the taxable part and when an additional tax may apply.

Can a 529 plan pay off student loans?

Yes, within limits. The IRS says withdrawals can pay principal or interest on a student loan of the beneficiary or the beneficiary's sibling, up to $10,000 lifetime per individual, and interest paid with those funds does not qualify for the student loan interest deduction.

Can leftover 529 money go into a Roth IRA?

For distributions made after Dec. 31, 2023, the IRS allows a special rollover from the beneficiary's 529 plan to the beneficiary's Roth IRA. To be tax-free, it must be a direct trustee-to-trustee transfer from a 529 account open at least 15 years, it is subject to the Roth IRA annual contribution limit and a $35,000 lifetime limit, and it may not exceed amounts contributed (and attributable earnings) before the 5 year period ending on the distribution date.

Does this page give personal tax advice?

No. It is general educational information based on IRS guidance. For your own situation, read IRS Publication 970 or talk with a tax professional.

Not advice. This guide is general education, not personalized financial, tax, or legal advice. Confirm numbers on primary sources before you act.