529 Plan Investing: How Education Savings Accounts Work
Direct answer: A 529 plan is a state-sponsored investment account for education expenses where contributions grow tax-free and withdrawals are tax-free when used for qualified expenses. Contributions are made with after-tax dollars (no federal deduction), but 35+ states offer a deduction or credit on state income taxes. There are no annual federal contribution limits, but contributions above the annual gift tax exclusion ($19,000 per donor per beneficiary in 2026) require filing a gift tax return. Under SECURE 2.0, unused 529 funds can be rolled into the beneficiary's Roth IRA starting in 2024, subject to conditions. Non-qualified withdrawals face income tax plus a 10% penalty on the earnings portion.
What Counts as a Qualified 529 Expense?
The federal tax benefit of a 529 plan applies only to withdrawals used for qualified education expenses. Understanding what qualifies, and what does not, is essential before taking any distribution.
Higher education (colleges, universities, trade schools): Tuition, mandatory fees, books, required supplies and equipment, room and board (if enrolled at least half-time), and computers or peripheral equipment primarily used for school are all qualified expenses.
K-12 tuition: Under federal rules, up to $10,000 per year per beneficiary can be withdrawn tax-free for K-12 tuition. Some states do not conform to this federal provision and may treat K-12 withdrawals as non-qualified for state tax purposes.
Student loan repayment: The SECURE Act of 2019 added a $10,000 lifetime per-beneficiary limit on student loan repayment as a qualified expense. A sibling of the designated beneficiary can use up to $10,000 of the same account for their own student loans.
Apprenticeship programs: Contributions to registered apprenticeship programs approved by the Department of Labor are qualified expenses.
Not qualified: Transportation to and from school, health insurance, sports and club fees unrelated to course requirements, and personal living expenses beyond the institution's official cost-of-attendance figures are not qualified. Non-qualified withdrawals trigger ordinary income tax on the earnings portion plus a 10% penalty on that same earnings portion.
Contribution Limits and Gift Tax Rules
There is no annual federal contribution limit for 529 plans. You can contribute as much as you want in any given year from a federal tax perspective. However, the gift tax rules interact with 529 contributions in important ways.
Annual gift tax exclusion: Each donor can give up to $19,000 per beneficiary per year (2026 figure) without triggering a gift tax filing requirement. Contributions to a 529 plan count as completed gifts to the beneficiary for gift tax purposes.
Superfunding (5-year gift tax election): A special rule allows a donor to contribute up to 5 years' worth of annual exclusion gifts in a single year, $95,000 per donor per beneficiary in 2026 ($190,000 for married couples using gift-splitting), and elect to spread that contribution over 5 years for gift tax reporting purposes. This front-loads tax-free growth without using up the donor's lifetime exemption. The donor cannot make additional gifts to that beneficiary during the 5-year period without gift tax implications.
State lifetime contribution limits: Each state sets a maximum aggregate balance per beneficiary for its 529 plan. These caps generally range from about $300,000 to over $550,000 depending on the state. Once the account reaches the state's limit, no further contributions are accepted (though earnings can continue to grow).
No income limits: There is no income ceiling on who can open or contribute to a 529 plan. Unlike Roth IRA contributions, 529 contributions are available at any income level.
State Tax Deductions: Why Your State Matters
More than 35 states and the District of Columbia offer a state income tax deduction or credit for 529 plan contributions. The details vary significantly by state, and choosing the right plan can be as important as choosing the right investments.
Own-state plans only: Many states restrict the deduction to contributions made to that state's own 529 plan. New York, for example, offers a deduction only for contributions to NY529 plans. If you live in one of these states and invest in an out-of-state plan for better investment options, you forgo the state deduction.
Any-state plans: Some states offer a deduction regardless of which state's 529 plan receives the contribution. Residents of these states can pick any plan nationwide based on investment quality and fees without sacrificing the state deduction.
No-deduction states: States with no income tax (such as Florida, Texas, and Washington) offer no 529 deduction because there is no state income tax to deduct from. States with an income tax but no 529 deduction also fall into this category. Residents of these states have no tax-based reason to prefer their home state's plan and should compare all plans purely on investment options, expense ratios, and account features.
Recapture rules: Some states that offer deductions on contributions also have recapture provisions: if you switch from the home state's plan to an out-of-state plan, the state may recapture previously deducted contributions as taxable income. Check your state's rules before rolling over from a state plan to another.
Investment Options Inside a 529
Investment choices inside a 529 plan are limited to the fund lineup offered by that plan, similar to how a 401(k) participant can only invest in the funds their employer's plan makes available. The quality and cost of that lineup varies considerably from state to state.
Age-based portfolios: Most plans offer age-based (or enrollment-based) portfolios that automatically shift from higher-equity allocations toward more conservative fixed-income and stable-value allocations as the beneficiary approaches college age. These are the most common choice for investors who want a set-it-and-forget-it approach.
Static portfolios: Some investors prefer to set their own allocation using the plan's static options, which maintain a fixed asset mix rather than automatically de-risking over time. This requires periodic manual rebalancing.
Individual fund options: Many plans offer individual index funds or actively managed funds as building blocks for custom allocations. Expense ratios on these funds matter considerably when compounded over 18 years.
Investment change limits: Federal law allows only two investment changes per year within a 529 account (or when you change the account's beneficiary). This is more restrictive than a standard brokerage account but rarely a practical constraint for long-term education savings.
Comparing plans: Savingsforcollege.com and state treasury websites publish plan ratings and expense ratio comparisons. The difference between a plan charging 0.10% annually and one charging 0.80% annually compounds to meaningful dollars over 15 or more years.
The SECURE 2.0 Roth Rollover Rule
Before the SECURE 2.0 Act of 2022 (effective for rollovers starting in 2024), unused 529 funds faced a difficult choice: change the beneficiary to another family member, or take a non-qualified withdrawal and pay taxes plus the 10% penalty on the earnings. SECURE 2.0 added a third option that changes the planning calculus for 529 accounts significantly.
The rule: Starting in 2024, unused 529 funds can be rolled over to a Roth IRA in the beneficiary's name, not the account owner's name.
Conditions that must be met:
- The 529 account must have been open for at least 15 years at the time of the rollover.
- Contributions made to the 529 within the last 5 years (and any earnings on those contributions) are not eligible for rollover.
- The rollover amount in any year cannot exceed the annual Roth IRA contribution limit ($7,500 in 2026). This is subject to the Roth IRA's earned-income requirement: the beneficiary must have earned income at least equal to the rollover amount in that year.
- The lifetime rollover cap is $35,000 per beneficiary.
- The beneficiary must be below the Roth IRA income phase-out threshold to contribute (though the IRS may clarify whether the phase-out applies to these rollovers as it does to regular Roth contributions).
What this changes: The 15-year minimum account age and $35,000 lifetime cap mean this is not a mechanism for quickly liquidating a 529 into a Roth. But it does eliminate the longstanding risk of having significantly overfunded a 529 plan. For families who funded a 529 when a child was young and that child ends up not needing all the funds (scholarship, chose a lower-cost school, did not attend college), the SECURE 2.0 provision allows excess funds to begin building Roth IRA savings for that beneficiary over several years.
Failure Mode: Non-Qualified Withdrawals
Taking a non-qualified withdrawal from a 529 plan triggers a two-part tax cost: the earnings portion of the withdrawal is subject to ordinary income tax, and an additional 10% penalty applies to that same earnings portion. Only the earnings are penalized, not the original contributions (which were made with after-tax dollars and already taxed).
The earnings fraction: If your 529 account has a total balance of $100,000 and $30,000 of that is earnings (30%), then 30% of any withdrawal is treated as earnings. A $10,000 non-qualified withdrawal would have $3,000 subject to income tax plus the 10% penalty ($300).
Exceptions to the 10% penalty (income tax still applies to earnings):
- The beneficiary dies or becomes disabled.
- The beneficiary receives a tax-free scholarship (the withdrawal can be taken up to the scholarship amount without the penalty, but earnings are still taxable).
- The beneficiary attends a U.S. Military Academy.
- A rollover to an ABLE account for a disabled beneficiary.
Practical implication: The tax and penalty on earnings create a real cost for over-funding a 529. Before SECURE 2.0's Roth rollover provision, this was a larger concern. With the rollover option now available (subject to its conditions), aggressive 529 funding is less risky than it once was for families with long time horizons.
See also: Investment Accounts & Brokerage Accounts hub for context on how 529 plans fit within the broader spectrum of investment account choices.
Frequently Asked Questions
What are the qualified expenses for a 529 plan?
Qualified 529 plan expenses include tuition, fees, books, and required supplies at eligible higher education institutions (most accredited colleges, universities, and trade schools), along with room and board if the student is enrolled at least half-time. K-12 tuition expenses up to $10,000 per year per beneficiary are also qualified under federal rules, though some states do not conform to this provision. Student loan repayment up to $10,000 lifetime per beneficiary and contributions to registered apprenticeship programs were added as qualified expenses by the SECURE Act of 2019. Transportation, sports fees, and health insurance are not qualified expenses. Non-qualified withdrawals are subject to income tax plus a 10% penalty on the earnings portion.
Can unused 529 funds be rolled into a Roth IRA?
Yes, starting in 2024 under the SECURE 2.0 Act. Unused 529 funds can be rolled over to the beneficiary's Roth IRA subject to several conditions: the 529 account must be at least 15 years old; contributions made within the last 5 years (and their earnings) are not eligible; the rollover amount cannot exceed the annual Roth IRA contribution limit ($7,500 in 2026); and the lifetime rollover cap is $35,000. This rule changes the calculus for over-funding a 529, since unused funds can now build Roth IRA savings for the beneficiary rather than being trapped or penalized.
Do 529 contributions get a federal tax deduction?
No. 529 plan contributions are made with after-tax dollars and receive no federal income tax deduction. However, more than 35 states offer a state income tax deduction or credit for contributions to a 529 plan. Some states restrict the deduction to contributions made to that state's own plan; others allow a deduction for contributions to any state's plan. Residents of states with no income tax or no 529 deduction should compare investment options and fees across plans from any state, since they have no tax incentive to use their home state's plan.