A 529 plan's core tax benefit is that your investments grow completely tax-free as long as the money is used for qualified education expenses, and many states add an upfront deduction or credit for contributions. In a worked example below, saving $300 a month for 18 years in a 529 leaves you with about $13,700 more than the same money in a taxable brokerage account, purely from skipping taxes on the growth. The fastest way to project your own tax-free balance is the college savings calculator; this guide explains exactly where the tax savings come from.
A 529 is a state-sponsored education savings account designed to make college cheaper through the tax code. The deal is straightforward: you contribute after-tax dollars, the money grows free of federal tax, and qualified withdrawals come out tax-free. Several states sweeten it with a deduction or credit on your state return. Because college money often sits invested for a decade or more, sheltering the growth from taxes is worth real money. This guide breaks down each benefit, runs the numbers against a taxable account, and flags the rules that decide whether your withdrawals stay tax-free.
The three tax benefits of a 529 plan
A 529 delivers its advantage in three distinct layers, and it helps to see them separately.
- Tax-free growth. Inside a 529, dividends, interest, and capital gains are never taxed year to year. In a taxable account, the IRS takes a cut of dividends and realized gains along the way, which quietly drags down your compounding.
- Tax-free qualified withdrawals. When you pull money out to pay for qualified education expenses, neither the contributions nor the growth is taxed at the federal level. This is the headline benefit: years of gains come out entirely tax-free.
- State tax deductions or credits. Many states let you deduct 529 contributions from state taxable income, or offer a credit, up to annual limits. A few states with no income tax offer nothing here, and rules vary widely, so this benefit depends entirely on where you live.
Contributions are made with after-tax dollars, so a 529 is not a federal deduction the way a traditional 401(k) is. The payoff is on the back end and in the compounding, not the front-end federal deduction.
What tax-free growth is actually worth
Here is the direct comparison. Take $300 a month for 18 years at a 6% return, and compare a tax-free 529 against a taxable brokerage account holding the same investments. The taxable account suffers two leaks: an annual drag from taxes on dividends (modeled here as reducing the effective return to about 5.4%) and a 15% long-term capital gains tax on the accumulated gain when the money is withdrawn.
| Item | 529 plan | Taxable brokerage |
|---|---|---|
| Total contributed | $64,800 | $64,800 |
| Balance before any withdrawal tax | $116,206 | $109,165 |
| Investment gain | $51,406 | $44,365 |
| Tax owed on the gain | $0 | $6,655 |
| Money available for college | $116,206 | $102,510 |
The 529 wins by about $13,696 on identical contributions and identical investments. Most of that edge is the annual tax drag the taxable account pays every year on dividends, which compounds against it over 18 years; the rest is the capital gains tax avoided at the end. For a saver in a higher tax bracket facing a steeper dividend drag and a 23.8% capital gains rate, the 529 advantage on the same plan widens to roughly $21,000. You can reproduce the tax-free side of this in the college savings calculator and compare it to a plain taxable projection in the investment calculator.
State tax deductions: a separate, upfront win
On top of tax-free growth, the state deduction is an immediate cash benefit in the year you contribute, and it is easy to overlook. If your state lets you deduct 529 contributions and your state income tax rate is 5%, then every $5,000 you contribute trims your state tax bill by about $250 that year.
| Annual contribution | State tax saved at 5% (per year) | Saved over 18 years |
|---|---|---|
| $5,000 | $250 | $4,500 |
| $10,000 | $500 | $9,000 |
These savings are on top of the roughly $13,700 from tax-free growth, so the two benefits stack. Important caveats: deduction caps, whether the benefit is a deduction or a credit, and whether you must use your own state's plan to qualify all vary by state. Some states require you to use the in-state plan to get the deduction; others give the benefit on any state's plan. Always confirm your own state's rules before assuming a deduction.
What counts as a qualified expense
The tax-free treatment hinges on spending the money on qualified education expenses, so this is the rule that protects your whole benefit. Qualified expenses generally include:
- Tuition and mandatory fees at eligible colleges, universities, and many trade schools.
- Room and board for students enrolled at least half-time, up to the school's published cost-of-attendance allowance.
- Books, supplies, and required equipment, including a computer and internet access used primarily by the student.
- Up to $10,000 per year toward K-12 tuition, and a lifetime limit toward qualified student loan repayment, under current federal rules.
Spend within these lines and the growth is tax-free. Spend outside them and you trigger taxes plus a penalty on the earnings portion, which is covered next.
The cost of a non-qualified withdrawal
If you withdraw 529 money for something that is not a qualified expense, the earnings portion gets taxed as ordinary income plus a 10% federal penalty, while your original contributions always come out tax- and penalty-free. The penalty applies only to the gains, not the whole balance. Suppose an account holds $20,000, of which $14,000 is contributions and $6,000 is growth. A fully non-qualified withdrawal would expose that $6,000 to income tax plus a $600 penalty, but the $14,000 you put in is untouched.
There are sensible escape hatches that avoid the penalty entirely: change the beneficiary to another family member, hold the money for a younger sibling or a future grandchild, or use it if the original student earns a scholarship (a scholarship lets you withdraw up to the scholarship amount penalty-free, though earnings are still taxed). Under current rules, leftover 529 funds can also be rolled into a Roth IRA for the beneficiary, subject to limits and conditions. Because a 529 is flexible across beneficiaries, overfunding is rarely a disaster.
How to capture every 529 tax benefit
Getting the full tax advantage is mostly about doing a few things in the right order.
- Check your state's deduction first. Find out whether your state offers a deduction or credit and whether it requires the in-state plan, since that may decide which plan you open.
- Contribute up to the state cap each year. If your state caps the deductible amount, aim to contribute at least that much annually to capture the full upfront benefit.
- Invest for growth early. The tax-free benefit is largest when there is the most growth to shelter, so a stock-tilted age-based portfolio early on maximizes the tax that gets avoided.
- Keep receipts and withdraw to match expenses. Withdraw in the same tax year as the qualified expense and document it, so every dollar of growth stays tax-free.
For the bigger picture of how tax-free compounding builds wealth, compare a 529 with other tax-advantaged accounts using the Roth IRA calculator and the compound interest calculator, and explore the full savings calculators hub for related planning tools. For official, neutral details on plan rules, the IRS overview of qualified tuition programs is at IRS 529 plans: questions and answers.
Try it yourself
Run your own numbers in the free College Savings Calculator — instant, private, no sign-up.
Open the College Savings Calculator →Frequently asked questions
- What are the tax benefits of a 529 plan?
- A 529 plan offers three tax benefits: investments grow free of federal tax, qualified withdrawals for education are entirely tax-free, and many states give a deduction or credit for contributions. Because contributions are after-tax dollars, the advantage is on the back end and in the compounding. Over 18 years of $300 monthly saving at 6%, the tax-free growth can be worth roughly $13,700 versus a taxable account.
- Is a 529 plan tax deductible?
- Not at the federal level, but often at the state level. Contributions are made with after-tax dollars, so there is no federal deduction. Many states, however, let you deduct contributions from state taxable income or offer a credit, up to annual limits. At a 5% state rate, a $5,000 contribution saves about $250 in state tax that year. Rules and caps vary by state, and some states offer no benefit at all.
- How much do 529 tax benefits save compared to a taxable account?
- On identical contributions and investments, a 529 typically comes out well ahead. Saving $300 a month for 18 years at 6%, a 529 reaches about $116,206 with no tax on the gain, while a taxable brokerage account nets about $102,510 after a yearly dividend drag and 15% capital gains tax, a difference of roughly $13,700. In a higher tax bracket, the 529 advantage on the same plan can exceed $20,000.
- What happens if I don't use 529 money for college?
- A non-qualified withdrawal taxes the earnings as ordinary income plus a 10% federal penalty, but your original contributions always come out tax- and penalty-free. The penalty applies only to the gains. You can usually avoid it by changing the beneficiary to another family member, saving the money for a younger child, or withdrawing up to a scholarship amount penalty-free. Leftover funds may also be rolled to a Roth IRA under current rules and limits.
- What expenses are qualified for a 529 plan?
- Qualified expenses include tuition and mandatory fees, room and board for at least half-time students up to the school's allowance, and books, supplies, and required equipment such as a computer. Current federal rules also allow up to $10,000 per year toward K-12 tuition and a lifetime amount toward student loan repayment. Spending within these lines keeps the growth tax-free; spending outside them triggers tax and a penalty on earnings.
- Do I have to use my own state's 529 plan?
- Not necessarily, but it can affect your tax benefit. You can invest in almost any state's 529 plan regardless of where you live. However, some states only grant the state tax deduction or credit if you use the in-state plan, while others give the benefit on any plan. Check your state's specific rule first, since it may decide which plan is best for you.
- Is a 529 better than a taxable brokerage account for college?
- For money earmarked for qualified education expenses, a 529 is usually better because of tax-free growth, tax-free qualified withdrawals, and possible state deductions. The main trade-off is flexibility: 529 money used for non-education purposes faces tax plus a 10% penalty on earnings. If there is real doubt the money will go toward education, a taxable account keeps full flexibility at the cost of those tax breaks.
Related guides
What Is Compound Interest? A Simple Explanation · How much to save per month to reach your goal: formula, examples, and shortcut · How to build a 6-month emergency fund: the complete step-by-step plan · How to calculate CD interest: APY, the formula, and what banks rarely tell you