How Do 529 Plans Work for Tax-Free Education Savings?
How Do 529 Plans Work for Tax-Free Education Savings?
A 529 plan is a tax-advantaged investment account designed to pay for education expenses—from K–12 tuition to graduate school. The account grows tax-free, and withdrawals for qualified education costs escape federal income tax entirely. Many states also allow you to deduct your contributions from state income tax, creating an immediate savings on top of future growth. Understanding how the tax rules work helps families choose between prepaid tuition plans and savings plans, and clarify what counts as a "qualified expense."
Quick definition: A 529 plan lets you save money in an investment account that grows tax-free and allows tax-free withdrawals for qualified education expenses, plus potential state tax deductions on contributions.
Key takeaways
- 529 contributions grow tax-free; withdrawals for qualified education expenses are tax-free at federal and (usually) state level
- Most states offer an income-tax deduction on contributions, ranging from 100% of contributions (some states) to partial deductions capped by age or amount
- Two main types: savings plans (invest in mutual funds) and prepaid tuition plans (lock in today's tuition rates)
- Earnings withdrawn for non-qualified expenses are taxed as ordinary income plus a 10% federal penalty
- Unused funds can now be rolled tax-free to a Roth IRA for the beneficiary (SECURE Act 2.0 rules)
What makes 529s tax-advantaged
The tax benefit of a 529 plan centers on three elements: tax-free growth, tax-free withdrawals, and state deductions. When you contribute money to a 529, the account grows through dividends, interest, and capital gains without triggering any annual tax bill. Compare this to a taxable brokerage account, where you'd owe taxes on distributions and long-term capital gains every year.
The most valuable feature is tax-free withdrawals. Once you withdraw money from a 529 to pay qualified education expenses, the earnings portion escapes federal income tax. If your account grew from $50,000 in contributions to $80,000 total, and you withdraw $30,000 for tuition, approximately $6,000 of that withdrawal is earnings. In a taxable account, you'd owe federal income tax (plus state tax in many states) on those gains. In a 529, you owe zero.
Many state income-tax systems sweeten the deal by allowing deductions for 529 contributions. New York, Illinois, and several others offer a full deduction for in-state 529 plans. A family in a 35% combined federal-and-state tax bracket who contributes $10,000 to a 529 saves $3,500 in taxes immediately. Over 18 years of growth, that compounds into a meaningful advantage.
Qualified education expenses and the rules
The IRS defines "qualified education expenses" narrowly but broadly enough for most families. Tuition and mandatory fees at any accredited post-secondary school (college, graduate school, vocational school) are qualified. So are room and board if the student attends at least half-time. Books, supplies, computers, and internet access are included. As of 2024, K–12 tuition and some apprenticeship programs also qualify.
What doesn't count? Room and board for students attending less than half-time, student health insurance, loan repayments, and extracurricular activities. If you withdraw $25,000 for a mix of qualified expenses (tuition, room, books) and non-qualified expenses (a car, fraternity fees), the IRS treats a pro-rata portion of earnings as non-qualified.
The tax on non-qualified withdrawals is straightforward but steep. Contributions can always be withdrawn tax-free. Earnings, though, are taxed as ordinary income at your marginal rate, plus a 10% federal penalty. A family in the 24% federal bracket who withdraws $10,000 in earnings for non-qualified use pays $2,400 in federal tax plus $1,000 in penalty—a 34% haircut. State income tax may apply too.
State deductions and limits
Where 529s get especially tax-efficient is the state income-tax deduction. A parent in California can contribute to an out-of-state 529 and get no state deduction. But contribute to a California plan, and you deduct your contributions. Some states have no limit; others cap the deduction per year ($235 per year in New York for 2024, though the limit adjusts). A few states—like Indiana—allow a tax credit instead of a deduction, which is worth even more.
The optimal strategy varies by family. If your home state offers a full deduction with no annual cap, and your 529 offers reasonable fund choices, stay in-state. If your home state has a low cap or no deduction but offers poor fund selection, consider moving to a higher-quality out-of-state 529 if you can afford to forgo the state deduction.
Some high-income families use 529s as a secondary estate-planning tool. Annual contributions to a 529 for another person (like a grandchild) are treated as gifts. Federal gift tax is not owed until you exceed $18,000 per person per year (2024 limit), and you can use your lifetime gift tax exemption beyond that. 529 balances don't count toward your taxable estate when you withdraw funds for the beneficiary's education.
Savings plans versus prepaid tuition plans
Most families use 529 savings plans, which are essentially custodial investment accounts. You choose among mutual funds, age-based portfolios, or stable-value options. You bear the investment risk, but you also control allocations and can move money between funds. The tax treatment is the same as described above.
Prepaid tuition plans (state-operated 529s) let you buy future tuition at today's rates. If you lock in tuition at $25,000 per year and inflation pushes it to $35,000, you've hedged inflation. However, prepaid plans don't work well if your child attends an out-of-state school, and they offer limited growth potential. Few families use them relative to savings plans. The tax benefits are largely the same.
Real-world examples
Consider a family with one child, ages 10 and 8. Each parent opens a 529 savings plan in an age-based portfolio for each child. Combined, they contribute $15,000 per year to each account ($60,000 total annually—which is legal, as they're using each child's own account and each parent has separate gifting capacity). Over eight years, they contribute $120,000 total.
Assuming a 6% annual return, the accounts grow to roughly $180,000 by the time the older child turns 18. They withdraw $45,000 per year for four years to cover tuition, room, and board at a $45,000/year college. Total withdrawals: $180,000 (contributions + growth). The earnings ($60,000) escape federal income tax. If the family's marginal federal rate is 24%, they save $14,400 in federal tax alone. If their state also taxes the earnings and offers a deduction on contributions, the total savings could exceed $30,000.
In contrast, a family that saves the same amount in a taxable brokerage account would owe tax on dividends and capital gains annually, plus tax on the $60,000 in earnings when withdrawn. Using the same rates, they'd pay roughly $20,000 in federal and state tax on the growth versus zero in the 529.
Common mistakes
Overfunding a 529. There's an annual gift-tax limit and a lifetime "aggregate limit" per beneficiary (varies by state, often $235,000 to $550,000). Exceeding the aggregate limit has serious tax consequences, including potential income tax on growth if you withdraw the excess. Families should track contributions and consult a tax professional if accounts run large.
Assuming all education expenses qualify. Parents sometimes assume room and board, computers, and even campus living center deposits are qualified. They are, but only if the student attends at least half-time. A student taking one online class and living at home may not meet the threshold. Also, loan repayments and private student-loan interest (separate from education expenses) do not qualify.
Not using state deductions. Some states have generous deduction limits but few families claim them because they don't know they exist. A $15,000 deduction at a 35% marginal rate is $5,250 in tax savings. If you're in a state offering a deduction and your income supports it, using that deduction is often the first lever to pull.
Ignoring the 10-year rollover rule. SECURE Act 2.0 created a path to move up to $35,000 of unused 529 balances to the beneficiary's Roth IRA over a 10-year window. This is valuable if your child doesn't go to college or uses only part of the account. But the rules are complex: the 529 must have been open for 15 years, and the rollover is limited to annual Roth contribution limits minus other contributions that year.
Changing beneficiaries improperly. If the beneficiary doesn't go to college, you can change to a sibling or other family member tax-free. But if you make a non-qualified withdrawal or fail to change beneficiaries correctly, the earnings portion faces the 10% penalty. Plan ahead if multiple children may use the account.
FAQ
Can I roll my 529 into a Roth IRA?
Yes, under SECURE Act 2.0, you can roll up to $35,000 of unused 529 balances into the beneficiary's Roth IRA, provided the 529 has been open for 15 years and the rollover doesn't exceed annual Roth contribution limits. This is particularly helpful if your child receives a scholarship or doesn't attend college.
What happens if my child gets a scholarship?
If your child receives a scholarship equal to tuition, you can withdraw that same amount from the 529 penalty-free (though the earnings portion is still taxable as ordinary income). The contributions always come out tax-free. This softens the blow if your savings weren't needed.
Can I use a 529 for graduate school?
Yes. Tuition and mandatory fees for graduate programs are qualified education expenses. Room and board is also qualified if the student attends at least half-time. Graduate school can be expensive, so a 529 is valuable here too.
Do I have to use my state's 529 plan?
No. You can open a 529 in any state's plan, even if you don't live there. However, only your home state typically offers an income-tax deduction on contributions. If your home state offers a weak deduction or poor fund options, choosing a higher-quality out-of-state plan may still make sense.
What is the gift-tax limit for 529 contributions?
Annual gifts to a 529 are treated as present gifts for federal gift-tax purposes. In 2024, you can give $18,000 per person per year without filing a gift-tax return. Married couples can double this to $36,000. You can also use your lifetime gift-tax exemption for amounts above the annual limit, or elect to use a special 529 election that lets you contribute five years' worth of annual gifts at once ($90,000 per person).
Can I withdraw for non-qualified expenses if I pay the penalty?
Technically, yes—you can withdraw for anything. But earnings withdrawn for non-qualified expenses are taxed as ordinary income plus a 10% federal penalty. A $10,000 withdrawal of earnings in a 24% bracket costs $3,400 in federal tax and penalty alone, before state tax. Only do this if your alternative (e.g., taking loans) costs more.
Related concepts
- How capital gains tax works for short- and long-term investments
- Tax-loss harvesting and strategic selling
- Understanding tax-deferred and tax-free growth
- How traditional and Roth accounts differ in taxation
- Estate-and-gift-tax fundamentals
Planning flowchart
Summary
A 529 plan offers powerful tax advantages for education savings: tax-free growth, tax-free withdrawals for qualified expenses, and often state income-tax deductions that provide immediate savings. Contributions are limited by gift-tax rules, and you must track what counts as a qualified expense to avoid the 10% penalty on non-qualified earnings withdrawals. The two main structures—savings plans and prepaid tuition plans—serve different families; most choose savings plans for flexibility. SECURE Act 2.0 expanded options by allowing unused balances to roll into a Roth IRA. As of the mid-2020s, rules change periodically, so confirm current contribution limits and qualified expenses with the IRS or a tax professional before implementing any strategy.