Why Are My 529 Earnings Taxed? Causes, 10% Penalty, and Fixes

If the IRS is taxing the earnings on your 529 withdrawal, it’s almost always because the money didn’t line up with qualified education expenses in the same tax year. The most common culprits are a scholarship or tax-free aid you didn’t subtract from your expense total, an education tax credit that quietly claimed the same dollars your 529 was trying to cover, a distribution taken in a different calendar year than the bill it paid, or a withdrawal spent on something the tax code doesn’t recognize as qualified. Only the earnings portion of the distribution is at risk, but on top of ordinary income tax you usually owe an extra 10% federal tax on that piece.

How the Taxable Piece Gets Calculated

Every 529 withdrawal contains two parts: your original contributions (basis) and investment growth (earnings). Your contributions come back tax-free no matter what you spend them on, because you already paid tax on that money. Only the earnings can ever be taxed.

Your plan reports both figures on Form 1099-Q: Box 1 is the total, Box 2 is the earnings, Box 3 is the basis. Receiving the form isn’t itself a tax bill. You work out the consequences on your return.

The IRS formula: multiply total earnings by your adjusted qualified education expenses (AQEE) divided by the total distribution. That gives you the tax-free earnings. Whatever’s left is taxable.

A quick example. You withdraw $10,000 and the 1099-Q shows $3,000 of earnings. You paid $7,500 in qualified expenses. Tax-free earnings are $3,000 × ($7,500 ÷ $10,000) = $2,250. The remaining $750 in earnings is taxable income.

The number that trips people up is AQEE. It isn’t your total qualified expenses. You have to reduce those expenses by any tax-free educational assistance the student received: scholarships, Pell grants, veterans’ educational assistance, and employer-provided tuition benefits all count. If your student had $12,000 in tuition and a $5,000 scholarship, your AQEE is $7,000, not $12,000. This single adjustment is behind a large share of surprise tax bills.

The Reasons Earnings Turn Taxable

A Scholarship or Other Aid Shrank Your Expenses

Any tax-free educational assistance the student receives comes off the top before you compare expenses to your distribution. If the aid arrived after you’d already taken the 529 money for the full tuition bill, part of that distribution is now non-qualified. There’s a break here: the 10% penalty is waived up to the amount of the scholarship or other aid, though ordinary income tax on the earnings still applies.

You Claimed an Education Credit on the Same Dollars

The IRS won’t let you use the same dollar of expense to justify both a tax-free 529 distribution and an education credit. Expenses used to claim the American Opportunity Tax Credit or the Lifetime Learning Credit get subtracted from AQEE.

The AOTC is worth up to $2,500 per eligible student: 100% of the first $2,000 of qualifying expenses plus 25% of the next $2,000. To claim the full credit you need $4,000 of expenses not paid with tax-free 529 earnings. If your 529 covered everything, those expenses are already spoken for, and either the credit disappears or part of your 529 distribution becomes non-qualified.

The standard fix going forward is to pay the first $4,000 of qualifying expenses out of pocket, claim the AOTC on that $4,000, and use 529 money for the rest. The credit itself is claimed on Form 8863.

The Distribution and the Bill Fell in Different Tax Years

The calendar year of your distribution has to match the calendar year the qualified expense is paid. Pay tuition in December but pull the 529 money in January, and the IRS can treat the withdrawal as non-qualified. Spring-semester bills that arrive in December for January payment are a frequent source of this mismatch. So are mid-year refunds that shift the timing after the fact.

Keep both the expense and the withdrawal within the same tax year. If you paid the bill out of pocket earlier in the year, a later same-year 529 distribution to reimburse yourself still works.

The School Issued a Refund

If the student drops a class, withdraws, or gets a housing refund after you’ve already taken a 529 distribution for those costs, the refund effectively converts part of the withdrawal into a non-qualified one. You can avoid the tax by recontributing the refunded amount to a 529 plan for the same beneficiary within 60 days of the refund. The 60-day clock starts on the date the school issues the refund. Plans differ on paperwork, so call yours to confirm what they need, and keep detailed records.

The Money Was Spent on Something That Doesn’t Qualify

Qualified expenses at eligible postsecondary schools cover tuition and mandatory fees, required books, supplies, and equipment, and computer equipment, software, and internet access used primarily by the student while enrolled. Software mainly for games, sports, or hobbies is out unless it’s predominantly educational.

Room and board qualify only if the student is enrolled at least half-time, and the qualifying amount is capped at the greater of the school’s published room and board allowance for federal financial aid purposes or the actual charge for on-campus housing owned or operated by the school. Off-campus rent above that cap isn’t qualified. Transportation, health insurance, and general personal expenses aren’t qualified regardless of what the school bills.

You Went Over the K-12 Cap

529 funds can pay K-12 costs, but the annual limit is $20,000 per beneficiary. Anything above that ceiling makes the earnings on the excess taxable. K-12 qualified costs go beyond tuition to include curriculum materials, books, online educational materials, tutoring, standardized and AP testing fees, dual enrollment fees, and educational therapy for students with disabilities.

You Exceeded the Student Loan Cap

Using 529 money to pay down student loans is allowed up to a lifetime cap of $10,000 per beneficiary, with a separate $10,000 lifetime limit for each of the beneficiary’s siblings. Anything paid above the cap is non-qualified. Also worth knowing: student loan interest paid with 529 funds can’t also be claimed as a student loan interest deduction.

The 10% Additional Tax and When It Doesn’t Apply

On top of ordinary income tax on the taxable earnings, the IRS adds a 10% federal tax on that same amount. In the $750 example above, you’d owe your marginal rate on $750 plus an extra $75 penalty. The additional tax is reported on Form 5329.

The penalty is waived (income tax still applies) in these situations:

  • The beneficiary received a tax-free scholarship, fellowship, veterans’ educational assistance, or employer-provided educational assistance. You can withdraw an amount equal to that aid penalty-free.
  • The beneficiary died or became permanently disabled.
  • The beneficiary attends a U.S. military academy, up to the cost of attendance the academy covers.

Who Actually Reports the Income

The taxpayer on the hook depends on who received the money, not who owns the account. If the distribution went to the beneficiary or directly to the school for the beneficiary’s benefit, the beneficiary reports the taxable earnings. If it went to the account owner, the owner reports it. That distinction can push the income into a different bracket depending on the situation.

Fixes If You Catch It in Time

Some tax hits are avoidable if you act before year-end or within the applicable window.

Refunds recontributed within 60 days of the refund date won’t count as a non-qualified distribution. Distributions and expenses can be realigned inside the same calendar year by taking a same-year reimbursement withdrawal for expenses you paid out of pocket. If a scholarship created the problem, the scholarship exception protects you from the 10% add-on even though the earnings remain taxable.

For unused funds, changing the beneficiary to a qualifying family member is tax-free. The IRS definition is wide: children, stepchildren, siblings (including half-siblings), parents, grandparents, aunts, uncles, nieces, nephews, in-laws, spouses of any of those, first cousins, and legally adopted children. A change to someone outside that group is treated as a non-qualified distribution to the original beneficiary.

Leftover balances can also be moved to a Roth IRA in the beneficiary’s name, subject to strict conditions: the 529 must have been open at least 15 years, contributions from the last five years and their earnings can’t be rolled, the lifetime cap per beneficiary is $35,000, and each year’s rollover is limited to the Roth IRA annual contribution limit ($7,500 for 2026, combined with any regular Roth contribution the beneficiary makes that year). The beneficiary also needs earned income at least equal to the amount rolled.

State Taxes Can Add Their Own Bill

Federal tax isn’t the end of it. If you claimed a state income tax deduction or credit for your 529 contributions, a non-qualified distribution can trigger recapture of that benefit in the year of the withdrawal. Some states also apply their own penalty; California, for instance, imposes a 2.5% state penalty in place of the federal 10% figure. Rules vary widely by state, so check yours before taking any distribution you aren’t confident is qualified.