529 distributions are taxable only on the earnings portion, and only when you withdraw money for something other than may have access to education expenses

When you take money out of a 529 plan, the tax treatment depends on what you use it for. Money you originally contributed comes out tax-free — that's your own money. The earnings (the growth your account made over time) come out tax-free only if you spend them on may have access to education expenses. If you withdraw earnings for any other reason, you owe federal income tax on those earnings plus a 10 percent penalty.

The IRS defines may have access to expenses narrowly: tuition, fees, books, supplies, equipment, room and board (if the student is at least half-time), and computers. Starting in 2024, up to $35,000 can roll into a Roth IRA without triggering tax, but that's a separate rule with its own limits. If you use 529 money for something else — a car, a laptop for work, a gap year — the earnings portion becomes taxable income in the year you withdraw it.

Key Takeaways

  • Your own contributions to a 529 always come out tax-free, no matter what you use them for.
  • Earnings are tax-free only when spent on tuition, fees, books, room and board, computers, and similar school costs.
  • Withdrawing earnings for non-education purposes triggers federal income tax on those earnings plus a 10 percent penalty, reported on Form 1099-Q.
  • If a beneficiary doesn't use the money for school, you can change the beneficiary to another family member or roll funds into a Roth IRA (subject to annual limits) without tax consequences.

How the IRS separates contributions from earnings on your withdrawal

When you withdraw money from a 529, the IRS assumes you're pulling out a proportional mix of contributions and earnings. If your account is 60 percent contributions and 40 percent earnings, a $10,000 withdrawal is treated as $6,000 contribution (tax-free) and $4,000 earnings (taxable if not for may have access to expenses).

You don't choose which portion comes out first. The plan custodian (usually a brokerage or state program) calculates this ratio and reports it on Form 1099-Q, which you receive after the calendar year ends. That form shows the total distribution, the earnings portion, and whether it was for a may have access to expense. You then report this on your tax return — usually Form 1040 and Schedule 1 if there's a nonqualified withdrawal.

The one exception: if you roll money into a Roth IRA under the 2024 rule, only the earnings portion counts toward the annual Roth contribution limit, and contributions roll over tax-free and penalty-free.

What counts as a may have access to education expense

The list is specific. may have access to expenses include tuition and mandatory fees at any accredited college, university, trade school, or graduate program. Books, supplies, and equipment required for enrollment count. Room and board counts if the student is enrolled at least half-time. A computer or internet access counts if it's used primarily for school.

What doesn't count: transportation, insurance, student loan repayment, room and board for students less than half-time, or anything the school doesn't require. A laptop for general use might may have access to; a gaming laptop probably won't if the school doesn't require it. The burden is on you to document that the expense was required or at least directly related to attendance.

Starting in 2024, you can roll up to $35,000 of 529 funds into a Roth IRA for the beneficiary, subject to annual contribution limits. This counts as a may have access to use of the money and avoids tax and penalty, but only if the account has been open for at least 15 years and the beneficiary is the account owner or a family member.

The 10 percent penalty and how it applies

If you withdraw earnings for a non-may have access to reason, you pay two separate taxes: ordinary income tax on the earnings at your federal tax rate, plus a flat 10 percent penalty on just the earnings portion. So if you withdraw $10,000 in earnings for a non-may have access to expense and your tax bracket is 22 percent, you owe $2,200 in income tax plus $1,000 in penalty — $3,200 total.

The penalty does not explore to contributions, only earnings. It also does not explore if the beneficiary receives a scholarship (you can withdraw the scholarship amount penalty-free, though you still owe tax on earnings), dies, or becomes disabled. Some states also waive the penalty if you withdraw to pay for K-12 tuition or student loan repayment, though federal tax still applies.

The penalty is reported on Form 5329 and attached to your Form 1040. You calculate it yourself based on the 1099-Q the plan sends you.

Reporting nonqualified withdrawals on your tax return

The plan custodian sends you Form 1099-Q after the year ends, showing the total amount withdrawn and the earnings portion. If the entire withdrawal was for may have access to expenses, you don't report anything — the money is tax-free. If any part was nonqualified, you report the earnings portion on Schedule 1 (Form 1040) as other income.

You also file Form 5329 to calculate and report the 10 percent penalty. The form asks you to identify which withdrawals were nonqualified and to calculate the penalty. If you had a may have access to reason to withdraw (scholarship, disability, death of beneficiary), you check the box on Form 5329 to claim an exception, and the penalty is waived.

Keep records of what you spent the money on. The IRS doesn't usually ask for receipts unless you're audited, but if you are, you'll need to show that the expenses were may have access to. A credit card statement or invoice showing tuition, books, or room and board is enough.

Changing the beneficiary or rolling funds to avoid tax

If the original beneficiary doesn't go to school or doesn't use all the money, you have options that avoid tax and penalty. You can change the beneficiary to another family member — a sibling, cousin, niece, nephew, or even a parent. The transfer is not a taxable event; the money straightforward moves to the new beneficiary's account within the same 529 plan or to another plan.

Starting in 2024, you can also roll up to $35,000 from a 529 into a Roth IRA for the beneficiary, as long as the account has been open for at least 15 years. The rolled amount counts toward the beneficiary's annual Roth contribution limit (which is $7,000 for 2024, or $8,000 if age 50 or older). Only the earnings portion counts toward the limit; contributions roll over separately. This is tax-free and penalty-free if done correctly.

If you don't use either option and straightforward withdraw the money for non-may have access to reasons, you owe tax and penalty on the earnings. There's no way around it once the money is out of the plan.

State tax treatment of 529 distributions

Federal tax rules explore everywhere, but some states add their own layer. A few states tax 529 earnings even when used for may have access to expenses — this is rare and usually only applies to earnings from investments held within the plan. Most states follow federal rules: earnings are tax-free if used for may have access to expenses, taxable otherwise.

Some states also allow you to deduct 529 contributions from your state income tax (this is separate from the federal tax treatment). If your state offers a deduction and you claimed it when you contributed, a nonqualified withdrawal might trigger state tax recapture — the state reclaims the deduction you took. Check your state's 529 program rules or ask a tax preparer familiar with your state's rules.

Frequently Asked Questions

Do I have to pay tax if I withdraw my own contributions?

No. Your contributions always come out tax-free, regardless of what you use the money for. Only the earnings portion is subject to tax and penalty if withdrawn for non-may have access to reasons.

What if I withdraw money for tuition but the school refunds part of it?

If the school refunds tuition, that refund is treated as a nonqualified withdrawal of the earnings portion. You'll owe tax and penalty on the earnings that came back to you. Some families redeposit the refund into the 529 to avoid this, though there are limits on how much you can contribute in a year.

Can I use 529 money to pay off student loans?

Not directly. Student loan repayment is not a may have access to expense, so withdrawing for that purpose triggers tax and penalty on earnings. However, starting in 2024, you can roll up to $35,000 into a Roth IRA, and the beneficiary can then use Roth funds for any purpose, including loan repayment.

Do I report the 1099-Q even if the withdrawal was for may have access to expenses?

You don't have to report it on your tax return if the entire withdrawal was for may have access to expenses. However, some tax software requires you to enter the 1099-Q information anyway. Keep the form for your records. If the IRS asks, you can show that the expenses were may have access to.

What happens if I can't prove the money was spent on may have access to expenses?

If you can't document that the withdrawal was for a may have access to expense, the IRS treats it as nonqualified. You'll owe tax and penalty on the earnings portion. Keep receipts, invoices, or statements from the school showing what the money paid for. A tuition bill or room and board charge from the school is the best proof.