The tax treatment depends on how you use the money
A 529 plan itself is not automatically tax-free. The account grows tax-free, and withdrawals are tax-free only when you use them for may have access to education expenses. If you withdraw money for something else, you pay income tax on the earnings plus a 10 percent penalty in most cases.
The key distinction: the money you put in (your contributions) comes out tax-free no matter what. The growth — the interest and investment gains — is what carries the tax consequence. If you use those earnings on may have access to expenses, no tax. If you use them on anything else, you owe tax on the earnings and the penalty.
This matters because over time, especially in accounts that have been open for years, the earnings can be a significant portion of the total balance.
Key Takeaways
- Money you contribute to a 529 comes out tax-free regardless of how you use it; only the earnings portion faces tax consequences.
- Withdrawals for may have access to education expenses — tuition, fees, room and board, books, computers — are completely tax-free at federal level.
- Withdrawals for non-may have access to expenses trigger income tax on the earnings plus a 10 percent penalty, though some exceptions exist.
- Many states also offer a state income tax deduction for contributions, which is separate from the federal tax-free growth.
- Recent rule changes allow up to $35,000 to roll over to a Roth IRA, with some restrictions, instead of sitting unused.
What counts as a may have access to education expense
The IRS defines may have access to expenses narrowly. Tuition and mandatory fees at any accredited college, university, or vocational school count. Room and board counts if the student is enrolled at least half-time. Books, supplies, equipment, and a computer or internet access for school count.
K-12 tuition at public, private, or religious schools counts up to $35,000 per student over a lifetime. Student loan repayment counts up to $35,000 per borrower, lifetime. Apprenticeship program fees and costs count the same way as college tuition.
What does not count: transportation, insurance, health fees unrelated to enrollment, room and board if the student is not enrolled at least half-time, or anything the school does not require. If you are unsure whether a specific expense qualifies, the school's financial aid office can tell you whether they consider it a cost of attendance.
State tax deductions for contributions
Separate from the federal tax-free growth, many states let you deduct your 529 contributions from your state income tax. This is an immediate tax benefit in the year you contribute, not something that happens when you withdraw.
The deduction amount and rules vary by state. Some states deduct contributions dollar-for-dollar up to a limit (often $235 to $550 per year per beneficiary, though some states have higher limits). Some states limit the deduction to residents who use an in-state plan. A few states offer no deduction at all. Your state tax return instructions or your state's 529 plan website will show what your state allows.
This deduction is separate from federal tax treatment. You can get a state deduction and still have federal tax-free growth on may have access to withdrawals.
What happens if you withdraw for non-may have access to expenses
If you take money out and use it for something other than a may have access to expense, you owe federal income tax on the earnings portion at your ordinary tax rate. You also owe a 10 percent penalty on those earnings. Some states add their own penalty or tax.
The calculation works like this: if your account has $15,000 in contributions and $5,000 in earnings, and you withdraw $10,000 for a non-may have access to expense, the IRS treats the withdrawal as proportionally earnings and contributions. You would owe tax and penalty on roughly $3,333 of the earnings.
A few situations avoid the penalty: if the beneficiary receives a scholarship, you can withdraw that amount penalty-free (though you still owe tax on earnings). If the beneficiary attends a U.S. military academy, you can withdraw penalty-free. If the beneficiary dies or becomes disabled, the penalty does not apply.
The 2024 rollover rule for unused accounts
Starting in 2024, you can roll up to $35,000 from a 529 plan to a Roth IRA in the beneficiary's name, provided the 529 account has been open for at least 15 years. This lets you move money that would otherwise sit unused and eventually face tax consequences.
The rollover counts toward the beneficiary's annual Roth IRA contribution limit, so you cannot roll over $35,000 in a single year if the limit is lower. The money rolls over tax-free and grows tax-free in the Roth. This option does not apply to accounts opened less than 15 years ago or to money contributed in the last five years.
This rule changed the math for families with leftover 529 balances, especially when a child does not attend college or receives a scholarship. Before this rule, unused money faced tax and penalty. Now there is an exit route.
How investment earnings are taxed while the account grows
While money sits in the 529 account, any interest, dividends, or capital gains do not trigger federal tax. This is true whether you eventually use the money for education or not. The tax bill only comes when you withdraw.
This tax deferral is one of the main reasons families use 529 plans. Over 18 years, especially in accounts invested in stock funds, the tax-free compounding can add up. A $10,000 contribution that grows to $25,000 means $15,000 in earnings that never faced annual tax.
Some states also do not tax the growth while it sits in the account, though a few states tax earnings even if you use them for may have access to expenses. Check your state's rules before opening an account.
Frequently Asked Questions
Do I have to pay taxes on 529 contributions?
No. The money you contribute is never taxed, whether you withdraw it for education or anything else. Some states also let you deduct contributions from state income tax in the year you make them. Only the earnings portion of a withdrawal faces tax, and only if the withdrawal is non-may have access to.
What if my child gets a scholarship?
You can withdraw up to the scholarship amount from the 529 penalty-free. You still owe income tax on the earnings portion of that withdrawal, but not the 10 percent penalty. The contribution portion comes out tax-free as always.
Can I change the beneficiary to avoid taxes?
Yes. If you change the beneficiary to another family member (sibling, cousin, parent, grandparent), the money stays in the account and keeps growing tax-free. No tax or penalty applies to the transfer itself. This is one way to move money between family members without triggering the non-may have access to withdrawal penalty.
Do I owe taxes if I withdraw money and the beneficiary does not go to college?
You owe income tax and a 10 percent penalty on the earnings portion. The contribution portion comes out tax-free. However, you can now roll up to $35,000 to a Roth IRA (if the account is at least 15 years old), which avoids the penalty and lets the money grow tax-free for retirement instead.
Are 529 withdrawals reported to the IRS?
Yes. The plan administrator sends Form 1099-Q to you and the IRS for any withdrawal over $5. You report this on your tax return. If the withdrawal is may have access to, you do not owe additional tax. If it is non-may have access to, you calculate the taxable earnings portion and report it as income.