If you are wondering why your 529 earnings are taxed, the short answer is that part of your withdrawal did not line up with an IRS-qualified education expense. Only the earnings portion of a 529 distribution is ever at risk, and the tax hits when the money went toward something outside the qualified categories, when the withdrawal and the expense fell in different calendar years, when a scholarship or tax credit shrank the pool of expenses available to shelter the distribution, or when a category cap was exceeded. Your original contributions always come back tax-free. The earnings are what the IRS looks at, and in most cases a 10% additional federal tax lands on top of ordinary income tax on those earnings.
How the Taxable Portion Gets Calculated
Every 529 withdrawal contains two parts: your contributions (the basis) and the investment growth (the earnings). The plan reports both on Form 1099-Q, with the total in Box 1, earnings in Box 2, and basis in Box 3. Receiving a 1099-Q does not by itself mean you owe tax. The form reports the raw numbers; you work out the tax on your return.
The IRS uses a proration formula. Take the total earnings for the year and multiply by a fraction: adjusted qualified education expenses (AQEE) on top, total distributions on the bottom. The result is the tax-free slice of your earnings. Whatever earnings are left over are taxable.
A quick example. You withdraw $10,000, and the 1099-Q shows $3,000 of that is earnings. You paid $7,500 in qualified expenses. Tax-free earnings are $3,000 × ($7,500 ÷ $10,000) = $2,250. The remaining $750 of earnings is taxable, and the 10% additional tax usually applies to that same $750.
The variable that trips people up is AQEE. It is not the sum of every tuition bill and dorm charge. You have to subtract tax-free educational assistance the student received: scholarships, Pell grants, veterans’ educational assistance, employer tuition benefits, and any expenses used to claim an education tax credit. Miss one of those adjustments and the AQEE you thought covered your withdrawal was never really that high.
The Most Common Reasons Earnings Become Taxable
You Claimed an Education Tax Credit on the Same Expenses
This is the single most common reason a withdrawal that looked qualified turns out to be partially taxed. The IRS will not let the same dollar of expense justify both a tax-free 529 distribution and the American Opportunity Tax Credit or the Lifetime Learning Credit. Expenses used for the credit are stripped out of your AQEE.
The AOTC is worth up to $2,500 per eligible student, calculated as 100% of the first $2,000 in qualified expenses plus 25% of the next $2,000. To claim the full credit, you need $4,000 of expenses that were not paid with tax-free 529 earnings. If 529 money covered everything, those expenses are already spoken for. Either you lose the credit or the credit claim pushes part of the 529 distribution into non-qualified territory.
The usual workaround is to pay the first $4,000 of qualifying costs out of pocket (or from a source other than the 529), claim the AOTC on that $4,000, and use 529 money for the rest. The $2,500 credit normally beats the tax savings from sheltering $4,000 through the 529. Education credits are claimed on Form 8863.
A Scholarship Reduced Your Available Expenses
Scholarships, Pell grants, veterans’ benefits, and employer tuition aid all come out of your AQEE before you do the proration. If your student had $12,000 in tuition and received a $5,000 scholarship, your AQEE for the 529 calculation is $7,000, not $12,000. A withdrawal planned around the $12,000 figure will now be partially taxable.
If a scholarship arrives mid-year after you have already withdrawn for the full bill, there is a penalty exception (described below) that softens the blow, but it does not erase the income tax on the earnings.
The Distribution and the Expense Fell in Different Tax Years
The calendar year of the withdrawal must match the calendar year of the payment. Pay tuition in December and withdraw from the 529 in January, and the IRS can treat the distribution as non-qualified because the matching expense sits in a different tax year. Spring-semester bills that arrive in December for January payment are the usual culprit. The fix is to keep both sides of the transaction inside the same calendar year, which includes reimbursing yourself from the 529 later in the year for expenses you paid out of pocket earlier.
The Money Went to Something Outside the Qualified Categories
Qualified postsecondary expenses include tuition and mandatory enrollment fees; books, supplies, and equipment required for coursework; and computer equipment, software, and internet access used primarily by the student during enrollment. Software designed mainly for games, sports, or hobbies does not count unless it is predominantly educational. Transportation, health insurance, and most personal expenses are not qualified.
Room and board qualify only if the student is enrolled at least half-time, and the amount is capped at the greater of the school’s published room and board allowance for federal financial aid purposes or the actual amount charged for on-campus housing owned or operated by the school. That cap applies to on-campus and off-campus students alike. If your student rents a private apartment that costs more than the school’s allowance, the excess is not a qualified expense and any 529 money that covered it generates taxable earnings.
You Exceeded a Category Cap
K-12 tuition and related costs are qualified, but the annual limit per beneficiary was recently raised to $20,000. Anything above that cap in a single year creates a non-qualified distribution for the excess.
Student loan repayments are qualified up to a lifetime cap of $10,000 per beneficiary, with each of the beneficiary’s siblings getting their own separate $10,000 lifetime limit. Pay more than $10,000 of a given beneficiary’s loans from the 529 and the overage is non-qualified. Also, any student loan interest paid with 529 funds cannot also be claimed as a student loan interest deduction.
The 10% Additional Tax and the Exceptions That Waive It
Taxable earnings from a non-qualified 529 distribution carry a 10% additional federal tax on top of ordinary income tax. You report it on Form 5329. In the $750 example above, you would owe your marginal rate on $750 plus an extra $75.
Several situations waive the 10% penalty while leaving the earnings subject to ordinary income tax:
- Tax-free scholarships, fellowships, veterans’ educational assistance, and employer-provided educational assistance. You can withdraw an amount equal to the aid received without triggering the penalty.
- Death or permanent disability of the beneficiary.
- Attendance at a U.S. military academy, up to the cost of attendance covered by the academy.
These exceptions help most when an unexpected scholarship arrives after you have already withdrawn for the full tuition bill. The overlap would normally be a non-qualified distribution, but the scholarship exception lets you avoid the 10% penalty on an equal amount, even though the earnings are still ordinary income.
If a School Refund Caused the Problem
When a student drops a class, withdraws, or gets a housing refund after you have already pulled 529 money for those costs, the refund turns part of the distribution into a non-qualified withdrawal. You can undo the tax hit by recontributing the refunded amount to a 529 plan for the same beneficiary within 60 days of the refund. The money does not have to go back to the same plan, but it has to be for the same beneficiary. The 60 days run from the date of the refund, not the date of the original distribution. Procedures vary by plan, so ask the plan what paperwork they require and keep thorough records.
Who Actually Owes the Tax
The person who reports the taxable earnings is not necessarily the account owner. If the distribution was paid to the beneficiary or sent directly to the school for the beneficiary’s benefit, the beneficiary is the taxpayer. If the check went to the account owner, the owner reports it. That distinction can shift which marginal rate applies and change how painful the final bill is.
Don’t Forget the State Side
Federal tax is only part of the picture. If you took 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 impose their own penalty on the earnings; California, for example, applies a 2.5% state penalty in place of the federal 10%. Rules vary widely by state, so check yours before taking any distribution you are not fully confident qualifies.