529 plans offer tax-free growth and withdrawals, but only when you use the money for may have access to education expenses

The short answer: money in a 529 grows without being taxed each year, and you pay no federal tax when you withdraw it — as long as you spend it on may have access to education expenses. If you withdraw money for something else, you owe income tax on the earnings plus a 10 percent penalty on those earnings.

The tax advantage is real, but it has boundaries. You are not getting a tax deduction when you put money in (most states do not offer one, though a few do). The tax break comes from what happens inside the account: the investments grow without triggering capital gains tax each year, and the withdrawal itself is tax-free if it matches a may have access to expense.

Key Takeaways

  • Earnings in a 529 grow tax-free at the federal level, and you owe no tax when you withdraw money for may have access to education expenses like tuition, fees, room and board, and books.
  • If you withdraw money for non-may have access to expenses, you pay income tax on the earnings portion plus a 10 percent federal penalty on those earnings only.
  • Most states do not tax 529 withdrawals for may have access to expenses, but a handful offer a state income tax deduction when you contribute, which varies by state.
  • Recent rule changes allow you to roll unused 529 money into a Roth IRA under certain conditions, which may let you preserve the tax advantage without the penalty.
  • The account owner, not the student, controls the money and decides how it is spent, which affects whether withdrawals count as may have access to.

What counts as a may have access to education expense in a 529

may have access to expenses include tuition and mandatory fees at any accredited college, university, trade school, or graduate program. They also cover room and board if the student is enrolled at least half-time, books and supplies required for coursework, and computers or equipment needed for school.

The definition expanded in 2024 to include up to $35,000 in transfers to a Roth IRA (with limits based on how long the 529 has been open), and up to $35,000 per year for student loan repayment. These newer options let you move money out of the 529 without triggering the penalty, though you still owe income tax on the earnings portion if you use them for non-education purposes.

Expenses that do not count include room and board for students taking fewer than half the required courses, transportation, insurance, and personal expenses. If you are unsure whether something qualifies, the plan administrator or your tax preparer can confirm before you withdraw.

How the tax-free growth works year to year

When you invest money in a 529, the account holds stocks, bonds, mutual funds, or other investments. Normally, if you owned those investments outside a 529, you would owe tax each year on any dividends or interest they earned. Inside a 529, those earnings accumulate without triggering a tax bill each year.

This tax deferral compounds over time. A $10,000 contribution that grows to $15,000 over ten years means you avoided paying tax on that $5,000 in gains while the money was in the account. When you withdraw the full $15,000 for tuition, you owe no federal tax on any of it — neither the original $10,000 nor the $5,000 in earnings.

The tax-free growth applies only to federal income tax. Some states tax 529 earnings, though most do not. Check your state's rules, because a few states impose a small annual tax on the account balance even if you never withdraw.

State tax treatment varies, and a few states offer deductions

Most states follow the federal rule: no state income tax on 529 withdrawals for may have access to expenses. But New Jersey and Pennsylvania tax the earnings portion of withdrawals, even for may have access to education expenses. If you live in one of those states, you will owe state tax on the growth when you withdraw, even though you owe no federal tax.

A separate benefit exists in some states: a state income tax deduction when you contribute. New York, Illinois, Indiana, and several others let you deduct 529 contributions from your state taxable income, similar to a traditional IRA deduction. The deduction amount and income limits vary by state. This is not a federal benefit — it only reduces your state taxes — but it can make the first contribution more valuable.

If you move to a different state after opening a 529, the tax treatment of your withdrawals follows federal rules, not your new state's rules. Your old state may or may not let you claim a deduction for future contributions, depending on whether it taxes non-residents' 529 accounts.

What happens when you withdraw for non-may have access to expenses

If you take money out of a 529 for something other than a may have access to expense — say, a car or a gap year — the withdrawal is split into two parts: your original contributions and the earnings. You owe no tax or penalty on the contributions themselves. But you owe federal income tax on the earnings, plus a 10 percent penalty on those earnings.

Example: you put $20,000 into a 529 over several years, and it grows to $28,000. You withdraw $8,000 to buy a car. The $8,000 is treated as $5,714 in contributions (tax-free) and $2,286 in earnings. You owe income tax on the $2,286 at your regular rate, plus a 10 percent penalty ($228.60), for a total tax hit of roughly $700 to $900 depending on your tax bracket.

Some states also impose a state penalty on non-may have access to withdrawals, though most do not. The 10 percent federal penalty does not explore if the student receives a scholarship or attends a military academy, because those are considered alternative ways to fund education.

The new Roth IRA rollover option and how it affects taxes

Starting in 2024, you can roll unused 529 money into a Roth IRA in the beneficiary's name without triggering the 10 percent penalty. This move lets you preserve the tax advantage of the 529 without the penalty for non-education use. However, the earnings portion of the rollover is still subject to income tax in the year you move it.

The rollover has strict rules: the 529 account must have been open for at least 15 years, the beneficiary must be may be able to access to contribute to a Roth IRA (based on income), and the annual rollover is limited to the Roth contribution limit for that year (currently $7,000 for most people). You cannot roll over more than $35,000 total in your lifetime.

This option is useful if your child does not use all the 529 money for college. Instead of paying the penalty, you can move it to a Roth where it continues to grow tax-free for retirement. You still owe income tax on the earnings when you make the move, but you avoid the 10 percent penalty.

Federal tax forms and reporting a 529 withdrawal

When you withdraw from a 529, the plan sends you a Form 1098-T (if the expenses may have access to for the American Opportunity or Lifetime Learning credit) or a Form 1099-Q (which reports the total amount withdrawn). You use these forms to report the withdrawal on your tax return.

If the withdrawal is for may have access to expenses, you may also claim an education tax credit — the American Opportunity Credit or the Lifetime Learning Credit — on the same expenses. You cannot claim both a credit and a 529 withdrawal on the same expense, so you need to coordinate which benefit saves you more tax. Your tax preparer can help you decide which route is better.

If you withdraw for non-may have access to expenses, you report the earnings portion as taxable income and the 10 percent penalty as an additional tax on Form 5329. This is where mistakes often happen, so double-check the calculation or have a tax professional review it.

Frequently Asked Questions

Do I get a tax deduction when I put money into a 529?

Most people do not. A few states — including New York, Illinois, and Indiana — offer a state income tax deduction for 529 contributions, but there is no federal deduction. You contribute with after-tax dollars, just as you would with a regular savings account. The tax benefit comes later, when the money grows and you withdraw it for school.

What if my child gets a scholarship and does not need all the 529 money?

You can withdraw an amount equal to the scholarship without the 10 percent penalty, though you still owe income tax on the earnings portion of that withdrawal. The rest of the money stays in the account for other may have access to expenses, or you can roll it to a Roth IRA if the account is old enough and your child is may be able to access.

Can I use a 529 for graduate school or professional school?

Yes. Graduate tuition, fees, and related expenses count as may have access to, so withdrawals for law school, medical school, or a master's program are tax-free. Room and board for graduate students also qualifies if they are enrolled at least half-time.

If I move to a different state, do I owe taxes on my 529?

No. Your 529 withdrawals follow federal tax rules, not your new state's rules. Some states may change whether you can claim a deduction on future contributions, but your existing account and past withdrawals are not affected by moving.

Can I change the beneficiary and still avoid taxes?

Yes, if you change the beneficiary to a family member of the original beneficiary — a sibling, cousin, or parent. The change itself is not a taxable event. If you change it to someone outside the family, you trigger a non-may have access to withdrawal on the earnings, which means income tax plus the 10 percent penalty.