You can use a 529 plan to pay student loans, but only under specific conditions and with tax consequences that depend on when the account was opened
A 529 plan is a tax-advantaged savings account designed to pay education costs. For decades, the only way to use one for student loans was to withdraw the money, pay income tax and a 10% penalty on the earnings portion, and then use your own after-tax dollars to pay the loan. That changed in 2024.
Starting January 1, 2024, you can roll over up to $35,000 from a 529 plan directly into a Roth IRA without triggering taxes or penalties — but only if the 529 account has been open for at least 18 years. The money counts toward your annual Roth IRA contribution limit. You cannot use this rollover to pay student loans directly; instead, you move the money into retirement savings, which frees up your other income to pay loans.
If your 529 account is less than 18 years old, or if you want to use the money now rather than save for retirement, you can still withdraw it to pay loans — you will just owe income tax and the 10% penalty on the earnings portion of the withdrawal.
Key Takeaways
- A 529 account opened at least 18 years ago can roll up to $35,000 into a Roth IRA without taxes or penalties, freeing up cash flow to pay student loans.
- The $35,000 rollover counts toward your annual Roth IRA contribution limit, which is $7,000 for 2024 (or $8,000 if you are 50 or older).
- If your 529 account is younger than 18 years, withdrawing money to pay loans triggers income tax plus a 10% penalty on the earnings you withdraw.
- The 529 account must be in the student's name or the parent's name; accounts owned by grandparents or other relatives do not may have access to for the rollover.
- Only the account owner can roll money into a Roth IRA — the person whose name appears on the 529 account paperwork.
How the 18-year rule works and who qualifies
The rollover rule applies only to 529 accounts that have been open for at least 18 years. This means if you opened a 529 in 2006, you can roll money over starting in 2024. If you opened one in 2010, you can start rolling over in 2028.
The account must be registered in the name of the person who will receive the Roth IRA — typically the student or young adult with the loans. If a parent opened the 529 in their own name and later changed the beneficiary to their child, the 18-year clock starts from when the account was first opened, not when the beneficiary changed.
Accounts owned by grandparents, aunts, uncles, or other relatives do not may have access to. The IRS limits the rollover to accounts where the account owner and the Roth IRA recipient are the same person.
The $35,000 lifetime cap and how it interacts with Roth IRA limits
You can roll a total of $35,000 from 529 accounts into Roth IRAs over your lifetime. This is a one-time, per-person limit — not an annual amount. If you have multiple 529 accounts, the $35,000 cap applies across all of them combined.
The rollover counts toward your annual Roth IRA contribution limit. For 2024, the annual limit is $7,000 (or $8,000 if you are 50 or older). This means if you roll $7,000 from a 529 into a Roth IRA in 2024, you cannot contribute any additional money to a Roth IRA that year. If you roll $35,000, you will be spreading that across five years of contribution room.
The rollover does not count toward your income limits for Roth IRA may be able to access. Even if your income is too high to contribute directly to a Roth IRA, you can still roll over 529 money.
What happens if your 529 account is less than 18 years old
If you need to use 529 money for student loans before the 18-year mark, you can withdraw it — but the tax bill will be significant. You owe ordinary income tax on the earnings portion of the withdrawal, plus a 10% penalty on those earnings.
The principal (the money you or others contributed) comes out tax-free. Only the growth is taxed and penalized. For example, if you contributed $20,000 to a 529 and it grew to $25,000, you can withdraw the $20,000 principal with no tax. If you withdraw the full $25,000, you owe income tax plus 10% penalty on the $5,000 in earnings.
Some states also offer a state income tax deduction for 529 contributions. If you withdraw the money for a non-education purpose, you may have to recapture that deduction on your state tax return, which means paying back the state tax benefit you received.
Comparing the rollover option to a direct withdrawal
The rollover is almost always better than a direct withdrawal if you meet the 18-year requirement, because you avoid the 10% penalty entirely. The money goes into a Roth IRA, where it grows tax-free and can be withdrawn tax-free in retirement.
A direct withdrawal for student loans means paying tax and penalty on the earnings when ready, and the money does not grow for retirement. The only reason to do a direct withdrawal instead of a rollover is if you need the money right now and cannot wait to move it through a Roth IRA first.
If your 529 account is less than 18 years old and you have student loans, you face a choice: withdraw and pay the penalty now, or wait until the account reaches 18 years old and then roll it over. The longer you can wait, the better — both because the 529 money has more time to grow, and because you avoid the penalty.
How to execute a 529-to-Roth rollover
Contact the financial institution that holds your 529 account and tell them you want to roll money into a Roth IRA. They will ask for the Roth IRA account details (the bank or brokerage where you hold or plan to open the Roth IRA). The 529 custodian will transfer the money directly to the Roth IRA custodian — this is called a trustee-to-trustee transfer.
You will need to open a Roth IRA if you do not have one. You can open one at any bank, brokerage, or investment firm. There is no special Roth IRA for 529 rollovers; it is a standard Roth IRA.
The 529 custodian will report the rollover to the IRS on Form 5498-SA. The Roth IRA custodian will report it on Form 5498. You do not need to do anything special on your tax return — the custodians handle the reporting. The rollover is not taxable income.
The entire process typically takes one to two weeks. Once the money lands in your Roth IRA, you can invest it in stocks, bonds, mutual funds, or keep it in cash, depending on the Roth IRA provider's options.
What counts as a may have access to 529 education expense if you do not roll over
If you withdraw 529 money directly (not through a rollover), you can use it for student loans without penalty only if the loan is a may have access to education loan. The IRS defines this narrowly: federal student loans and private student loans taken out solely to pay may have access to education expenses (tuition, fees, books, room and board, and required equipment).
Parent PLUS loans and private loans taken out for living expenses beyond room and board do not count. If you withdraw 529 money to pay a loan that does not may have access to, the earnings portion is taxed and penalized.
The annual limit on using 529 money for student loan repayment (without the rollover) is $35,000 lifetime per beneficiary. This is separate from the rollover limit — it is an older rule that predates the 2024 rollover option.
Frequently Asked Questions
Can I roll over 529 money if my account was opened by my grandparent?
No. The 529 account must be in your name or your parent's name for you to roll it into a Roth IRA. Accounts owned by grandparents, aunts, uncles, or other relatives do not may have access to, even if you are the beneficiary. You would have to withdraw the money directly and pay tax and penalty on the earnings.
What if I have $50,000 in a 529 that is 18 years old — can I roll all of it?
No, the lifetime rollover limit is $35,000 per person. You can roll $35,000 and must withdraw the remaining $15,000 separately. If you withdraw it for non-education purposes, you owe tax and penalty on the earnings portion of that $15,000.
Do I have to roll over the full amount, or can I roll over just part of it?
You can roll over any amount up to $35,000 lifetime. You do not have to move it all at once. You could roll $7,000 in 2024, $7,000 in 2025, and so on, spreading it across multiple years to stay within annual Roth IRA contribution limits.
If I roll 529 money into a Roth IRA, can I withdraw it when ready to pay student loans?
Yes, but you lose the tax advantage. Roth IRA contributions can be withdrawn anytime tax-free. However, if you withdraw earnings before age 59½, you owe tax and penalty on the earnings. The point of the rollover is to let the money grow in the Roth IRA for retirement, not to use it now.
Does rolling over 529 money into a Roth IRA affect my student loan forgiveness programs?
No. The rollover moves money into retirement savings, which does not count as income for income-driven repayment plan calculations or Public Service Loan Forgiveness. A direct withdrawal to pay loans also does not affect forgiveness, because the money is no longer in the 529 account.