529 plan rules: what the money can pay for, and what leftover money costs
A 529 withdrawal is tax-free only when it matches a qualified expense in the same year. Miss that, and the earnings share is taxed with a 10% penalty on top. The rules that decide which side you land on are narrower, and more forgiving, than most people assume.
On this page
A 529 plan is an education savings account sponsored by a state or a school. Contributions are not deductible on your federal return, the investments grow without annual tax, and a withdrawal is tax-free as long as it does not exceed the beneficiary’s qualified education expenses for the year.[1] Most of the questions people ask about 529s come down to the edges of that sentence: which expenses count, what happens when the withdrawal is larger, and what to do with money nobody needs for school. Each one has a precise answer, and this guide works through them with numbers.
The rules in one paragraph
Add up every 529 withdrawal for the beneficiary in a tax year. Compare it with that year’s qualified education expenses, after subtracting tax-free scholarships, grants and employer education assistance, and after subtracting any expenses you used to claim the American opportunity or lifetime learning credit. The IRS calls the result adjusted qualified education expenses. If the withdrawals are equal or smaller, nothing is taxable. If they are larger, part of the earnings is taxable, and that taxable part generally carries a 10% additional tax.[1] Your contributions always come back tax-free, because they were taxed before they went in.
Two practical consequences follow. The matching happens by tax year, so a withdrawal in December for a bill paid in January can leave one year over and the next year under. And the plan reports every withdrawal on Form 1099-Q, which splits the gross amount into earnings (box 2) and your basis (box 3).[1] The form does not know what you spent the money on, so the receipts are yours to keep, and the other forms that arrive in the same January mailbox work the same way: the payer reports the money, and you prove its use.
What counts as a qualified expense
The list is longer than tuition, and it has grown twice in two years. For college and other eligible postsecondary schools, these all qualify:[1]
- Tuition and fees, and books, supplies and equipment the school requires.
- Room and board for a student enrolled at least half-time, up to the greater of the school’s room-and-board allowance in its cost of attendance or the actual charge for school-owned housing.
- A computer, software and internet access used primarily by the beneficiary while enrolled.
- Fees, books, supplies and equipment for a registered apprenticeship program.
- Up to $10,000 per person, over a lifetime, of principal or interest on qualified student loans of the beneficiary or a sibling.
- Expenses for special needs services a special needs beneficiary needs to attend.
For elementary and secondary school, the tuition limit doubled to $20,000 per beneficiary per year for taxable years beginning after December 31, 2025, counted across all 529 accounts for that beneficiary.[2] The 2025 law also widened what K-12 money can buy for distributions made after July 4, 2025: curriculum and instructional materials, online materials, tutoring by a licensed teacher or subject expert who is not a relative, fees for standardized and admission tests and for dual enrollment, and educational therapies for students with disabilities.[2][1]
The same law added postsecondary credentials. Tuition, fees, books, testing fees and required continuing education for a recognized credential program now qualify, which reaches occupational licenses, industry certifications and registered apprenticeship certificates, not only degrees.[1] Nothing on these lists covers the trip to campus or a student health insurance premium, so plan to pay those from other money. State tax treatment of the newer categories can differ from the federal rules, so check your plan’s guidance before using one of them.
What a non-qualified withdrawal costs
The penalty is smaller than people fear, because it applies only to earnings. Take an account worth $40,000, built from $25,000 of contributions and $15,000 of growth. You withdraw $10,000 to help with a car, which is not an education expense. Suppose the plan reports the withdrawal in the same proportion as the account, so the 1099-Q shows $3,750 of earnings and $6,250 of basis. These are illustrative figures; your plan’s form is the number that counts.
- Not used for school
- Returned tax-free
- Income tax plus 10%
The $3,750 is ordinary income to whoever receives the distribution, plus the 10% additional tax.[1] Who receives it is a choice: the beneficiary is treated as the recipient when the money is paid to them or to their school, and the account owner otherwise.[1] That makes the tax rate part of the decision.
| Recipient's federal rate | Income tax on $3,750 | 10% additional tax | Total | Share of the $10,000 |
|---|---|---|---|---|
| 12% (paid to a student with a low income) | $450 | $375 | $825 | 8.3% |
| 22% (paid to the parent who owns the account) | $825 | $375 | $1,200 | 12.0% |
| 24% | $900 | $375 | $1,275 | 12.8% |
Federal tax only. A state may also tax the earnings and may claw back a deduction it gave you for the original contributions.
So a parent in the 22% bracket pays $1,200 to take $10,000 out for something other than school. That is a real cost, and it is also far from losing the account, which is how the penalty is often described. It should still be the last option, because everything in the sections below costs less.
When the 10% penalty is waived
The income tax on earnings still applies in each of these cases. Only the 10% additional tax goes away, and only to the extent the withdrawal falls under the exception:[1]
- A tax-free scholarship, veterans’ education assistance, employer education assistance or similar tax-free aid, up to the amount received.
- Attendance at a U.S. military academy, up to the costs of advanced education attributable to it.
- Death or disability of the beneficiary.
- Expenses used for an education credit, when that is the only reason the withdrawal became taxable.
Back to the $10,000 example: if the beneficiary won a $10,000 tax-free scholarship that year, the same withdrawal would cost the parent $825 instead of $1,200. The scholarship has already reduced the expenses the 529 can cover tax-free, so the earnings are taxable, but the law does not punish a family for a child who earned a scholarship. Whether the scholarship itself is taxable is a separate test: it is tax-free only up to tuition, required fees and required course materials.
A 529 and a tax credit in the same year
You can claim the American opportunity credit in the same year you take a tax-free 529 withdrawal, as long as the same dollars of expense are not used for both.[1] The credit is worth up to $2,500 per student: 100% of the first $2,000 of qualified expenses plus 25% of the next $2,000. For 2025 returns it phases out between $80,000 and $90,000 of modified adjusted gross income, or $160,000 and $180,000 on a joint return, and it can be claimed for only four tax years per student. For the credit, room and board never count.[1]
That last rule is the planning opportunity. Take a freshman year with $12,000 of tuition and fees and $14,000 of on-campus room and board, and a family under the income limit. The family pays $4,000 of tuition from checking and claims the full $2,500 credit. The 529 pays the other $22,000: $8,000 of tuition and the $14,000 of room and board. Adjusted qualified expenses are $26,000 minus the $4,000 used for the credit, or $22,000, which equals the withdrawal. Nothing is taxable.
Now suppose the 529 had paid all $26,000 and the family claimed the credit anyway. Adjusted expenses are still $22,000, so $4,000 of the withdrawal is over the line. If 37.5% of the withdrawal is earnings, that is $9,750 of earnings, and $9,750 × $22,000 ÷ $26,000 = $8,250 is tax-free. The other $1,500 is taxable income. The 10% additional tax is waived under the credit exception, but at 22% the family still owes $330 that a different payment order would have avoided.
The Roth IRA rollover, year by year
Since 2024, a 529 can send leftover money to a Roth IRA for the same beneficiary without tax or penalty. The conditions come from the statute:[2]
- The 529 has been maintained for the beneficiary for the 15-year period ending on the date of the rollover.
- The amount does not exceed contributions made more than five years earlier, plus the earnings on them. Recent contributions have to season first.
- It moves in a direct trustee-to-trustee transfer to a Roth IRA owned by the beneficiary.
- Each year’s rollover is capped at the beneficiary’s Roth IRA limit, reduced by any other IRA contributions they make that year.
- The total over the beneficiary’s lifetime cannot exceed $35,000.
The annual cap is the slow part. The IRA limit is $7,500 for 2026 and stays $7,500 for 2027, with $1,100 more for someone 50 or older.[5][6] An IRA contribution also cannot exceed the person’s taxable compensation for the year,[4] so the beneficiary needs a paycheck at least as large as the rollover. The Roth income limits, on the other hand, do not apply: the law adds back whatever reduction the income phase-out would have made.[3]
Say an account opened in March 2011 has $38,000 left after graduation, and $3,000 of it came from contributions in the last five years. The beneficiary has a full-time job and makes no other IRA contributions. Assuming the IRA limit stays at $7,500 after 2027, the rollover takes five tax years:
The rollover uses up the beneficiary’s own IRA room for the year, so in those five years they cannot also make a regular Roth or traditional IRA contribution without shrinking the transfer. The remaining $3,000 stays in the 529 for other uses. Whether a Roth dollar or a pre-tax dollar is the better buy for the beneficiary is a separate question, and the break-even math on Roth against traditional applies to them as it does to anyone.
How much you can put in
There is no annual 529 contribution limit in federal tax law and no income limit on who can contribute. The only federal cap is that contributions cannot exceed what is necessary to pay the beneficiary’s qualified expenses, and each state plan turns that into its own maximum balance.[1]
The practical limit is the gift tax. A 529 contribution is a gift to the beneficiary, and the annual exclusion is $19,000 per recipient for 2026 and $20,000 for 2027.[7][8] A donor who puts in more than that in one year can elect to spread the gift evenly over five years,[2] which means up to $95,000 per beneficiary at once in 2026 without using any lifetime exemption, and $100,000 in 2027. The election is made on a gift tax return, Form 709, and each of the five years then reports one-fifth of the contribution.[9] Two parents can each make the election for the same child. A 529 contribution does not qualify for the separate unlimited exclusion for tuition paid directly to a school.[9]
What to do with what is left
Most leftover balances never need a penalty. In order of cost, the options are:
| Option | Federal tax | Limits |
|---|---|---|
| Keep it for later study | None if used for qualified expenses | Graduate school, apprenticeships and credential programs all qualify |
| Change the beneficiary | None | Must be a member of the beneficiary's family: siblings, parents, children, first cousins, in-laws and their spouses |
| Roll into an ABLE account | None | Same beneficiary or a family member, within the ABLE annual contribution limit |
| Roll into the beneficiary's Roth IRA | None | 15-year-old account, the annual IRA limit, $35,000 lifetime |
| Withdraw it | Income tax on earnings plus 10% | Contributions come back tax-free |
Sources: IRS Publication 970, chapter 7; 26 U.S.C. § 529(c)(3).
A refund from the school is the other common leftover. If a semester’s tuition is refunded after the 529 paid it, the beneficiary can put the money back into any 529 for themselves within 60 days of the refund and avoid the tax calculation entirely.[1]
Where a 529 fits among your other accounts depends on what comes first. An emergency fund that covers a few months of essentials protects the 529 from being raided for a car repair, which is how the $1,200 example above usually happens. And because the growth in a 529 is never taxed when spent on school, it belongs in the tax-free column of the order for funding a 401(k), IRA and HSA, usually after the employer match and your own retirement accounts.
Track the account the way you track the others: balance, the contributions you have made (your basis, which comes back tax-free), and the withdrawals matched to receipts by year. In LumaLedger, a 529 sits on the Investments page, tagged as a 529 with its tax treatment, and rolls up into net worth beside the retirement accounts and everything else you own.
LumaLedger links your banks and cards, finds every recurring charge, and keeps a true double-entry ledger of your net worth. It’s free during the private beta.
Open your ledgerFrequently asked questions
What happens to a 529 if my child does not go to college?
Nothing is forced. You can keep the account for later study, including graduate school, an apprenticeship or a credential program; change the beneficiary to another family member with no income tax consequences; roll money into an ABLE account; or, once the account is more than 15 years old, roll up to $35,000 over time into a Roth IRA for the beneficiary. Withdrawing the money for other purposes is allowed too, but the earnings portion is taxed as income plus a 10% additional tax.
Can I use a 529 plan for K-12 tuition?
Yes. For taxable years beginning after December 31, 2025, 529 withdrawals can cover up to $20,000 a year of elementary or secondary school tuition per beneficiary, across all of that beneficiary's 529 accounts combined. The limit was $10,000 before 2026. Distributions made after July 4, 2025 can also pay for K-12 curriculum materials, qualified tutoring, standardized test fees, dual enrollment fees and educational therapies for students with disabilities. Your state may treat these withdrawals differently on its own return.
Can I use a 529 to pay off student loans?
Yes, up to $10,000 in principal or interest on qualified student loans per person over a lifetime. The $10,000 can apply to the beneficiary's loans or to a sibling's, and money used for a sibling counts toward the sibling's own $10,000, not the beneficiary's. Interest paid with tax-free 529 earnings cannot also be deducted as student loan interest.
Do Roth IRA income limits apply to a 529 rollover?
No. The law adds back any reduction the income phase-out would otherwise make, so a beneficiary whose income is too high for a regular Roth contribution can still receive a 529 rollover. The rollover is still capped by the annual IRA limit ($7,500 for 2026 and 2027), reduced by any other IRA contributions that year, and by the beneficiary's taxable compensation.
Sources
- 1.Internal Revenue Service, Publication 970, Tax Benefits for Education (for 2025 returns), chapter 7: Qualified Tuition Program (accessed November 2026).
- 2.Legal Information Institute, Cornell Law School, 26 U.S. Code § 529, Qualified tuition programs (accessed November 2026).
- 3.Legal Information Institute, Cornell Law School, 26 U.S. Code § 408A, Roth IRAs (accessed November 2026).
- 4.Internal Revenue Service, Retirement topics: IRA contribution limits (accessed November 2026).
- 5.Internal Revenue Service, 401(k) limit increases to $24,500 for 2026, IRA limit increases to $7,500 (IR-2025-111) (November 2025).
- 6.Internal Revenue Service, Notice 2026-66, 2027 Amounts Relating to Retirement Plans and IRAs (November 2026).
- 7.Internal Revenue Service, Rev. Proc. 2025-32, inflation adjustments for 2026 (October 2025).
- 8.Internal Revenue Service, Rev. Proc. 2026-35, inflation adjustments for 2027 (November 2026).
- 9.Internal Revenue Service, Instructions for Form 709, United States Gift (and Generation-Skipping Transfer) Tax Return (accessed November 2026).
- 10.Investment Company Institute, 529 Plan Program Statistics, June 2026 (September 2026).
This article is for general education and isn't financial, tax, or legal advice. Figures come from the sources cited above as of their publication dates; examples use illustrative numbers.
Keep reading
Taking money out of a 401(k) early, priced honestly
What a 401(k) hardship withdrawal requires, why 10% withholding is not the tax you owe, and what a $20,000 withdrawal really costs.
Sinking Funds: The Budget Category Almost Everyone Forgets
Insurance, tires, property tax and December gifts are not emergencies. How to find your irregular expenses, size a sinking fund for each, and where to keep it.
Are scholarships taxable? The part above tuition is, and it can be worth reporting
Scholarships are tax-free only up to tuition, required fees and course materials. What is taxable, what the 1098-T misses, and when reporting more pays off.
