Can You Avoid the 529 Withdrawal Penalty? (w/Examples) + FAQs

This article reflects federal rules and general state rules as of June 2026 and covers tax year 2025 (with 2026 figures noted where they apply). Tax law changes — confirm current figures with IRS.gov before you file.

Quick Answer

Yes — you can avoid the 529 withdrawal penalty in most cases. For tax year 2025, the 10% federal penalty hits only the earnings portion of a non-qualified withdrawal. You sidestep it entirely by spending on qualified costs, using a penalty exception (scholarship, death, disability), or rolling funds to a Roth IRA.

If your child got a scholarship, skipped college, or simply finished with money left over, you are facing a real choice: pull the cash out and possibly owe a 10% penalty plus income tax on the growth, or use one of several legal escape hatches that the IRS clearly allows. The penalty never touches the money you put in — only the gains — which is why the true cost is often far smaller than people fear.

This matters because over $525 billion sat in 529 plans across roughly 17 million accounts as of 2025, according to ISS Market Intelligence data. A lot of that money will eventually need a home other than tuition, and the difference between a smart move and a careless one can be thousands of dollars.

Here is what you will learn:

  • 💸 Exactly how the 10% penalty is calculated — and why it usually costs far less than you think
  • 🎓 The five federal exceptions that waive the penalty completely
  • 🔄 How the new 529-to-Roth IRA rollover turns leftover funds into tax-free retirement money
  • 🧮 Three fully worked dollar examples you can copy for your own numbers
  • ⚠️ The seven costly mistakes that trigger penalties, state clawbacks, and surprise tax bills

What the 529 Withdrawal Penalty Actually Is

A 529 plan is a state-sponsored savings account that grows tax-free when used for education. The catch is simple: spend the money on something the IRS does not consider a qualified education expense, and the withdrawal becomes “non-qualified.” When that happens, the earnings portion is taxed as ordinary income and hit with a 10% federal penalty.

The single most important fact most people miss is this: the penalty applies only to earnings, never to your contributions. You funded the account with after-tax dollars, so the IRS lets you take that principal back at any time with zero tax and zero penalty. Only the growth — the part that was never taxed — gets the 10% charge.

The consequence of ignoring this rule is paying tax and penalty you did not owe. Many parents withdraw a lump sum, assume the whole thing is penalized, and overpay. The reality is that the penalty often works out to just 1% to 3% of the total distribution once you separate earnings from principal.

A common misconception is that leaving money in the account triggers a penalty. It does not. A 529 plan has no expiration date, so doing nothing is a valid, penalty-free choice while you decide.

What you should do: before withdrawing anything, ask your plan administrator for the earnings-to-basis ratio of your account. That single number tells you how much of any withdrawal is even exposed to tax and penalty.

How the Penalty Is Calculated (With Real Math)

The IRS requires you to prorate earnings across qualified and non-qualified spending. You cannot simply assign all your contributions to the taxable part. The taxable earnings equal the total earnings multiplied by the share of the distribution that was non-qualified, a method detailed in IRS Publication 970.

Here is the formula in plain terms. First, find the earnings percentage of your account. Then apply that percentage to the non-qualified dollars you withdrew. The result is the earnings subject to income tax and the 10% penalty.

The consequence of skipping this math is overpaying or, worse, underpaying and facing an IRS notice. The plan sends you and the IRS a Form 1099-Q each year reporting the distribution, so the numbers must match what you report.

Worked Example: Partial Non-Qualified Withdrawal

Suppose you withdraw $8,000 in 2025. Your qualified expenses that year are $7,000, and the account’s total earnings inside that $8,000 withdrawal are $1,000. The non-qualified part is $1,000 of the $8,000, or 12.5%.

Apply the ratio: $1,000 in earnings × 12.5% = $125 in taxable earnings. The 10% penalty on that $125 is just $12.50, plus ordinary income tax on the $125. The other $875 of earnings — and all your contributions — escape both tax and penalty. This proration math, shown in savingforcollege.com examples, is exactly why the effective penalty is so small.

What you should do: keep every receipt for qualified expenses in the same calendar year as the withdrawal. The IRS matches withdrawals to expenses by year, not lifetime.

Which Situation Applies to You?

The right move depends entirely on why you have leftover money. Use this to jump to the path that fits you.

  • Your child earned a scholarship → Use the scholarship exception (penalty waived, read below).
  • The beneficiary died or became disabled → Use the death/disability exception (penalty waived).
  • Your child entered a U.S. military academy → Use the service academy exception (penalty waived).
  • You have leftover funds and no immediate use → Consider a Roth IRA rollover or a beneficiary change (penalty and tax avoided).
  • You just want the cash for non-education needs → You will likely owe tax and the 10% penalty on earnings only; calculate first.
  • You are claiming an education tax credit → The penalty is waived on the matching amount (tax on earnings still applies).

The Five Federal Exceptions That Waive the Penalty

The IRS waives the 10% penalty in specific situations. In every case below, the income tax on earnings still applies — only the penalty disappears. This distinction trips up almost everyone, so read it twice.

Scholarship Exception

If the beneficiary receives a tax-free scholarship, fellowship, or grant, you can withdraw an amount up to that scholarship without the 10% penalty. The logic is fair: the scholarship replaced the tuition the 529 was meant to cover.

The consequence of missing this is paying a penalty you never owed. A $10,000 scholarship means up to $10,000 can come out penalty-free that year.

A common misconception is that the scholarship money is fully tax-free coming out. It is not — you still owe ordinary income tax on the earnings portion. What you should do: take the penalty-free withdrawal in the same tax year the scholarship applies, and keep the scholarship award letter as proof.

Death of the Beneficiary

If the beneficiary dies, the account owner can withdraw the funds without the 10% penalty. This is one of the few times the penalty is fully waived, though earnings remain taxable to the recipient. What you should do: gather the death certificate and contact the plan administrator, who will document the exception for the 1099-Q.

Disability of the Beneficiary

A withdrawal is penalty-free if the beneficiary becomes totally and permanently disabled. The IRS standard requires a physician’s certification that the condition is expected to be long-lasting or result in death. What you should do: keep the physician’s statement on file in case the IRS asks for it.

U.S. Service Academy Attendance

If the beneficiary attends a U.S. military academy — West Point, the Naval Academy, the Air Force Academy, the Coast Guard Academy, or the Merchant Marine Academy — you can withdraw up to the cost of attendance penalty-free. Because these schools are free to attendees, this rule prevents trapping the savings. What you should do: confirm the academy’s published cost of attendance and limit the penalty-free withdrawal to that figure.

Education Tax Credit Coordination

If you claim the American Opportunity Tax Credit or the Lifetime Learning Credit, the 10% penalty is waived on the amount of expenses used for the credit. You cannot use the same dollars for both a tax-free 529 withdrawal and the credit — that “double-dipping” is barred. What you should do: claim the credit on Form 8863 and reserve the matching expenses for the credit, not the 529 withdrawal.

The 529-to-Roth IRA Rollover: The Biggest Escape Hatch

Since January 1, 2024, Section 126 of the SECURE 2.0 Act lets you move unused 529 funds into a Roth IRA tax-free and penalty-free. This is the most powerful tool for leftover money because it avoids both the penalty and the income tax that the other exceptions still charge.

The rollover is not unlimited, and the rules are strict. The consequence of breaking even one is turning a tax-free move into a taxed-and-penalized withdrawal.

Here are the conditions, each of which must be met:

  • The 529 account must have been open for at least 15 years, per the rollover rules.
  • Only contributions made more than 5 years ago are eligible to move.
  • The lifetime cap is $35,000 per beneficiary.
  • The annual cap equals the Roth contribution limit — $7,500 for 2026 (or $8,600 if the beneficiary is 50 or older).
  • The Roth IRA must be owned by the 529 beneficiary, not the account owner.
  • The beneficiary must have earned income at least equal to the amount rolled that year.
  • The transfer must be a direct trustee-to-trustee move.

A major advantage: these rollovers bypass the normal Roth income limits, so even a high-earning beneficiary who could not otherwise fund a Roth can build one this way.

A common misconception is that you can withdraw the cash and then deposit it into the Roth. You cannot. A withdraw-then-deposit move is treated as a non-qualified withdrawal subject to tax and the 10% penalty. What you should do: have the beneficiary open the Roth first, then ask your 529 plan for its trustee-to-trustee rollover form.

Worked Example: Rolling Leftover Funds to a Roth IRA

Sarah finishes college in 2025 with $35,000 left in a 529 her mother opened in 2008 — well past the 15-year mark. Sarah earns $50,000 a year, so she has plenty of earned income.

In 2026, her mother rolls $7,500 into Sarah’s Roth IRA. She repeats this each year as limits rise, finishing the full $35,000 lifetime transfer in about five years, following the pattern shown by savingforcollege.com. Every dollar moves tax-free and penalty-free, and the rollover is reported in Box 10 of Form 5498. Sarah’s penalty avoided: $0 owed, plus a head start on retirement.

Three Common Scenarios and What They Cost

These three situations cover most readers facing leftover 529 money. Each shows the move and the real consequence.

Your Situation What It Costs You
Child gets a $12,000 scholarship; you withdraw $12,000 in the same year 10% penalty waived; you owe only ordinary income tax on the earnings portion
You roll $7,500/year to the beneficiary’s Roth IRA (15-year-old account) $0 tax and $0 penalty if all SECURE 2.0 rules are met
You cash out $10,000 (with $4,000 earnings) for a new car 10% penalty on $4,000 = $400, plus income tax on $4,000; principal is free

Scenario Detail: The Beneficiary Change

Move Result
Switch beneficiary to a sibling, cousin, or yourself for future school No tax, no penalty; funds stay invested and tax-deferred
Switch beneficiary then immediately roll to a Roth 15-year clock likely restarts, making the rollover non-qualified

Scenario Detail: Student Loan Payoff

Move Result
Use up to $10,000 (lifetime) to repay the beneficiary’s student loans Qualified expense; no tax, no penalty
Use another $10,000 (lifetime) for each sibling’s student loans Qualified for each sibling under the SECURE Act loan rule

Named Examples: How It Plays Out

Maria, scholarship parent. Maria’s son James wins a $15,000 merit scholarship for 2025. Maria withdraws $15,000 from his 529 that same year. Because of the scholarship exception, she pays no 10% penalty. She still owes income tax on the earnings slice — say $3,000 of earnings taxed at her rate — but the penalty of roughly $300 is erased. Her goal of recovering the unneeded savings is met cleanly.

David, leftover-funds saver. David’s daughter Mia graduated debt-free with $20,000 still in a 529 opened in 2007. Mia earns $45,000 a year. David rolls $7,500 into Mia’s Roth IRA in 2026 and plans two more transfers. His goal — converting school money into tax-free retirement money — costs him nothing in tax or penalty.

Lena, non-qualified cash-out. Lena needs $10,000 from a 529 for a home repair, not education. The account holds $4,000 of earnings. She owes a 10% penalty of $400 plus ordinary income tax on the $4,000. Her $6,000 of contributions come out free. Knowing the math up front, Lena accepts the small cost rather than overestimating it.

Federal vs. State: Two Separate Bills

Federal rules are only half the story. Most states recapture (claw back) the state tax deduction or credit you claimed on contributions when you make a non-qualified withdrawal, as explained by savingforcollege.com. You essentially repay the state benefit you received.

Federal Treatment State Treatment
10% penalty on earnings for non-qualified withdrawals Many states recapture prior contribution deductions or credits
No extra state penalty federally California adds a 2.5% state penalty on earnings, for 12.5% total
529-to-Roth rollover is tax-free Some states do not treat the rollover as qualified and may recapture deductions

For New York residents, the state offers a deduction of up to $5,000 ($10,000 for joint filers) on contributions to the NY 529 Direct Plan. A non-qualified withdrawal can trigger recapture of those deductions, so the state cost is separate from the federal penalty. The consequence of forgetting this is a surprise state tax bill months after the federal one. What you should do: check your specific state’s rules before you withdraw, because conformity varies widely and no state is guaranteed to follow the federal Roth-rollover rule.

Mistakes to Avoid

  • Withdrawing more than your qualified expenses in a year. The excess becomes non-qualified, triggering penalty and tax on its earnings.
  • Mismatching the withdrawal year and the expense year. The IRS matches them by calendar year; a December withdrawal for January tuition can be ruled non-qualified.
  • Assuming the whole withdrawal is penalized. Only the prorated earnings are — overpaying wastes money.
  • Doing a withdraw-then-deposit Roth move. This voids the tax-free rollover and creates a penalized non-qualified distribution.
  • Changing the beneficiary right before a Roth rollover. It likely restarts the 15-year clock and disqualifies the transfer.
  • Double-dipping on education credits. Using the same expenses for both a 529 withdrawal and the AOTC triggers tax on the duplicated earnings.
  • Ignoring state recapture. You can avoid the federal penalty and still owe your state for clawed-back deductions.

Do’s and Don’ts

Do’s:

  • Do match each withdrawal to qualified expenses in the same year — it keeps the distribution fully tax-free.
  • Do request your earnings-to-basis ratio first, so you know your true exposure before acting.
  • Do use the scholarship exception in the same year the scholarship applies, because timing controls eligibility.
  • Do keep receipts, award letters, and 1099-Q forms, since the IRS may ask you to prove qualified use.
  • Do consider a Roth rollover for leftover funds, because it avoids penalty and income tax.

Don’ts:

  • Don’t cash out for non-education needs without running the proration math, or you may overpay.
  • Don’t forget your state may recapture deductions, which creates a second bill.
  • Don’t assume your state follows the federal Roth-rollover rule, because many do not.
  • Don’t withdraw the funds yourself for a Roth — only trustee-to-trustee transfers qualify.
  • Don’t leave large balances unexamined; a beneficiary change or rollover often beats a penalized cash-out.

Pros and Cons of Taking a Non-Qualified Withdrawal

Pros:

  • Immediate access to cash — useful when you truly need the money now.
  • Only earnings are penalized, so the real cost is often small.
  • Contributions come out free, giving you flexible principal anytime.
  • No need to find a new beneficiary, which simplifies your decision.
  • Predictable math via the 1099-Q proration, so there are no hidden surprises.

Cons:

  • The 10% penalty on earnings is money you never recover.
  • Earnings are taxed as ordinary income, possibly pushing you into a higher bracket.
  • State recapture can add a separate, later tax bill.
  • Lost tax-free growth — money pulled out stops compounding tax-free.
  • A better option may exist, since rollovers and beneficiary changes often cost nothing.

What to Do Next

  1. Pull your account’s earnings-to-basis ratio from your plan administrator so you know your true taxable exposure.
  2. Identify which exception or strategy fits using the “Which situation applies to you?” section above.
  3. Match withdrawals to the correct tax year and gather receipts, scholarship letters, or physician statements as proof.
  4. For leftover funds, open the beneficiary’s Roth IRA and request a trustee-to-trustee rollover form if you qualify.
  5. Check your state’s recapture and conformity rules before withdrawing, since the state bill is separate.
  6. Watch for your Form 1099-Q in January and reconcile it against your qualified expenses when you file.
  7. Call a CPA or tax advisor if the amounts are large, the beneficiary died, or your state’s treatment is unclear — this is the point where professional help, often a few hundred dollars, prevents a costly mistake.

This article is educational and not a substitute for advice from a licensed tax professional for your specific situation.

Frequently Asked Questions

What happens if I withdraw 529 funds for non-qualified expenses?

The earnings portion is taxed as ordinary income plus a 10% federal penalty. Your contributions are never taxed or penalized. For 2025, your state may also recapture deductions or credits you claimed on those contributions.

Can I avoid the penalty if my child gets a scholarship?

Yes. You can withdraw an amount equal to the tax-free scholarship without the 10% penalty in that same year. You still owe ordinary income tax on the earnings portion, but the penalty is fully waived.

Is there a time limit for using 529 funds?

No. 529 plans never expire. You can leave funds invested indefinitely, change beneficiaries, or save for graduate school later. There is no penalty for simply keeping money in the account.

Do I pay the penalty on my entire withdrawal?

No. The 10% penalty applies only to the prorated earnings tied to non-qualified expenses. Your original contributions are always penalty-free because you funded them with after-tax dollars.

How much can I roll from a 529 to a Roth IRA?

$35,000 over the beneficiary’s lifetime, capped at the annual Roth limit each year — $7,500 in 2026, or $8,600 if the beneficiary is 50 or older. The account must be 15+ years old.

Can I roll 529 funds into my own Roth IRA?

No. The Roth IRA must be owned by the 529 beneficiary, not the account owner. Only the beneficiary can receive the rollover, and they must have earned income at least equal to the amount moved.

Does my state charge its own 529 penalty?

It depends. Most states have no extra penalty but recapture prior deductions on non-qualified withdrawals. California adds a 2.5% state penalty on earnings, raising the total penalty to 12.5% for 2025.

Can I use 529 funds and claim an education tax credit?

No double-dipping. You cannot use the same expenses for both a tax-free 529 withdrawal and the AOTC or Lifetime Learning Credit. If you claim the credit, the 10% penalty is waived on the matching amount, but earnings tax still applies.

What if I withdraw more than my qualified expenses by mistake?

You prorate the earnings. The portion tied to the excess is subject to income tax and the 10% penalty. Plan withdrawals to match qualified expenses in the same year to avoid this entirely.

Can I use 529 money to repay student loans?

Yes, up to $10,000 lifetime per borrower. You can repay the beneficiary’s loans and a separate $10,000 for each sibling, all penalty-free and tax-free as a qualified expense.

Will changing the beneficiary cost me anything?

No, if you pick a qualifying family member. A beneficiary change to a sibling, cousin, parent, or yourself is tax-free and penalty-free. But it likely restarts the 15-year clock for any future Roth rollover.

Are 529-to-Roth rollovers subject to Roth income limits?

No. Unlike regular Roth contributions, these rollovers ignore income limits. Even high earners who cannot normally fund a Roth IRA can build one through this transfer if all other rules are met.

Word count: approximately 2,950 words.