Skip to main content

How a 529 Plan Works: Tax-Advantaged Savings for Education

A 529 plan is an investment account that grows tax-free when you use the money for education costs

A 529 plan is a savings account sponsored by a state or educational institution where you invest money, watch it grow, and withdraw it without paying federal income tax on the earnings — but only if you spend it on education. You open an account, choose investments from a menu the plan offers, and contribute whatever amount you want whenever you want. The account grows tax-free. When your child or grandchild goes to college, you withdraw the money to pay tuition, room and board, books, or other school expenses. The earnings portion of that withdrawal is never taxed.

The catch is that the money must go toward education. If you withdraw it for something else, you pay income tax on the earnings plus a 10 percent penalty. That penalty is steep enough that most people treat 529 money as education-only. The tax-free growth is the entire point — it lets you save more without the IRS taking a cut along the way.

Every state runs at least one 529 plan, and some run two. You do not have to use your own state's plan. You can open an account in any state's plan, though some states offer a state income tax deduction if you contribute to their plan. The plans themselves vary in investment choices, fees, and minimum contributions, so comparing a few is worth your time.

Key Takeaways

  • Money in a 529 plan grows tax-free and is never taxed when withdrawn for education expenses like tuition, room and board, and books.
  • You can open a 529 plan in any state, not just your own, and you can contribute as much as you want each year within federal gift tax limits.
  • If you withdraw money for non-education expenses, you pay income tax on the earnings plus a 10 percent penalty, which makes the account unsuitable for other goals.
  • Some states offer a state income tax deduction for contributions to their 529 plan, which can save you hundreds of dollars per year depending on your tax bracket and state.
  • You choose the investments within the plan — typically age-based portfolios or individual funds — and can change them once per year or when the beneficiary changes.

How the tax-free growth actually saves you money

The value of a 529 is the tax-free compounding. Suppose you invest $10,000 in a regular brokerage account and $10,000 in a 529 plan, both earning 6 percent per year for 18 years. In the regular account, you owe federal income tax on the earnings each year, which shrinks your growth. In the 529, the full 6 percent compounds without any tax drag. After 18 years, the 529 account will have roughly $28,600, while the taxable account will have roughly $24,000 — a difference of $4,600 that you keep instead of sending to the IRS.

The longer the money sits, the bigger the advantage. A 529 opened when a child is born has 18 years to compound tax-free. A 529 opened when a child is 10 has only 8 years. The tax savings also depend on your tax bracket — if you are in the 24 percent federal bracket, the tax drag on a regular account is steeper than if you are in the 12 percent bracket.

State income tax deductions make the advantage even larger in some cases. If your state offers a deduction for 529 contributions and your state income tax rate is 5 percent, you save 5 percent on top of the federal savings. A $10,000 contribution might save you $1,200 in combined federal and state taxes in the year you contribute, plus the tax-free growth for years to come.

The two main types of 529 plans and how they differ

Most states offer a savings plan, which works like a regular investment account. You choose from a menu of investment options — usually age-based portfolios that automatically shift from stocks to bonds as the child gets closer to college, or individual mutual funds. You control the investments. You can change them once per calendar year or when the beneficiary changes. The account grows based on how the investments perform.

Some states also offer a prepaid tuition plan, which lets you lock in today's tuition rates at in-state public colleges. You pay a lump sum or make installment payments, and the plan credits your account with tuition credits. When your child attends an in-state public college, those credits pay the tuition bill. If your child goes to a private college or out of state, the plan pays the equivalent dollar amount. Prepaid plans protect you against tuition inflation but tie you to in-state schools and offer no flexibility if your child does not go to college.

Savings plans are far more common and more flexible. They work with any college, any state, and any education level. Prepaid plans are useful only if you are confident your child will attend an in-state public college and you want to lock in today's price. Most families choose a savings plan.

Contribution limits and how much you can put in each year

There is no annual limit on how much you can contribute to a 529 plan. You can put in $1,000 one year and $50,000 the next. The only ceiling is the aggregate limit, which is the total amount you can have across all 529 accounts for one beneficiary. This limit varies by state but is typically $235,000 to $550,000 per beneficiary. It is high enough that most families never hit it.

Federal gift tax rules do apply, though they rarely cause problems. If you contribute more than $18,000 per person per year (in 2024), you must file a gift tax return. However, 529 contributions have a special rule: you can contribute up to five years' worth of the annual exclusion in one year ($90,000 in 2024) without filing a gift tax return, as long as you do not make other large gifts to that person that year. This rule lets grandparents make a large contribution without tax paperwork.

Some states offer a state income tax deduction for contributions. The deduction amount and phase-out limits vary by state. A few states offer unlimited deductions; others cap it at $235 per year or phase it out at higher incomes. Check your state's plan to see whether a deduction applies to you.

What counts as a may have access to education expense

may have access to expenses include tuition and fees at any accredited college, university, trade school, or graduate school in the United States or abroad. Room and board counts if the student is at least a half-time student. Books, supplies, and equipment required by the school count. A computer or internet access counts if the school requires it. Up to $35,000 per beneficiary can be rolled into a Roth IRA if the account has been open for at least 15 years and the money is not needed for education — this is a newer rule that lets you salvage unused 529 money.

K-12 tuition counts as a may have access to expense, up to $35,000 per year per beneficiary. This rule changed in 2017 and opened 529 plans to private school families. Homeschool tuition counts if the state recognizes it as a school.

Student loan repayment counts, up to $35,000 lifetime per beneficiary. This rule also changed recently and lets you use 529 money to pay down federal or private student loans if the beneficiary has already graduated and is repaying loans.

Room and board, computers, and supplies must be reasonable and required by the school. The school's financial aid office can tell you what counts in their case.

What happens if you do not use the money for education

If you withdraw money from a 529 for a non-may have access to expense, you owe federal income tax on the earnings portion of the withdrawal, plus a 10 percent penalty on those earnings. The principal you contributed comes out tax-free. Suppose you contributed $20,000 and the account grew to $28,000. If you withdraw $28,000 for a non-may have access to expense, you pay income tax plus a 10 percent penalty on the $8,000 in earnings. The $20,000 principal is not penalized.

The penalty is steep enough that most people avoid non-may have access to withdrawals. However, there are two escape routes. First, if the beneficiary receives a scholarship, you can withdraw the scholarship amount penalty-free (though you still owe tax on the earnings). Second, if the beneficiary dies or becomes disabled, you can withdraw the money penalty-free.

A newer option is the Roth IRA rollover mentioned above. If a 529 account has been open for at least 15 years and the beneficiary does not need the money for education, you can roll up to $35,000 into a Roth IRA in the beneficiary's name. This move lets you salvage unused 529 money and give it a second life as retirement savings.

How to choose between different state 529 plans

You are not locked into your state's plan. You can open an account in any state's plan, so it makes sense to compare a few. The main things to look at are investment options, fees, and whether your state offers a tax deduction.

Investment options vary. Some plans offer age-based portfolios that automatically rebalance as the child ages — these are simple and require no decisions from you. Others offer individual mutual funds, which give you more control but require you to pick and rebalance. A few offer both. If you want a hands-off approach, look for a plan with a good age-based option. If you want to pick your own investments, make sure the plan offers funds you recognize and trust.

Fees matter because they reduce your returns. Some plans charge an annual account maintenance fee of $25 to $50. Most charge an annual investment fee (called an expense ratio) that ranges from 0.15 percent to 1 percent depending on the fund. A few plans have no account fee and low investment fees. Vanguard and Fidelity plans tend to have lower fees than some state-run plans, though not all states offer them. Compare the total annual cost of a few plans before you decide.

If your state offers a tax deduction for contributions to its plan, that deduction often outweighs higher fees. A $10,000 contribution that saves you $500 in state taxes is worth a higher fee. If your state offers no deduction, look for a plan with low fees and good investment options, regardless of which state runs it.

Frequently Asked Questions

Can I change the beneficiary of a 529 plan?

Yes. You can change the beneficiary to another family member — a sibling, cousin, niece, nephew, or even yourself — without penalty or tax. The new beneficiary must be a family member as defined by the IRS. If you change the beneficiary, the account keeps growing tax-free under the new person's name. This flexibility makes 529 plans useful for families with multiple children.

What happens to a 529 if my child gets a full scholarship?

You can withdraw the amount of the scholarship penalty-free, though you still owe income tax on the earnings portion. If the scholarship covers $20,000 and your account has $8,000 in earnings, you withdraw $20,000 and pay tax on $8,000. The remaining balance stays in the account and can be used for room and board or other may have access to expenses not covered by the scholarship.

Can I use a 529 for graduate school?

Yes. Tuition and fees for graduate school, law school, and medical school all count as may have access to expenses. Room and board for graduate students counts if they are at least half-time students. The same tax-free growth and withdrawal rules apply.

Do I lose control of the money once I open a 529?

No. You own the account and control the money. You decide when to withdraw it and for what education expense. The beneficiary has no legal claim to the money. If you change your mind, you can withdraw the money and pay tax and penalty on the earnings, though that defeats the purpose of opening the account.

Can I open a 529 for a grandchild or niece?

Yes. You can open a 529 for anyone — a grandchild, niece, nephew, or even an unrelated child. You own the account and control the withdrawals. The beneficiary is whoever you name when you open it. This flexibility makes 529 plans popular with grandparents who want to save for education without giving money directly to the parents.