How to Withdraw Only Your Contributions From a 529 Plan
You can withdraw your contributions tax-free anytime, but the earnings come out last
A contribution withdrawal from a 529 plan means taking out only the money you put in, not the investment growth. The IRS treats contributions and earnings separately. When you withdraw money, the plan pays out earnings first — even if you ask for contributions only. This matters because earnings withdrawn for non-education expenses face income tax plus a 10 percent penalty, while contributions never do.
The mechanics depend on your plan's rules and whether the money goes to a beneficiary who is still in school. Some plans let you request a contribution-only withdrawal directly. Others require you to withdraw a total amount and then calculate which portion was contributions based on your cost basis. A few state plans do not track contributions separately at all, which makes contribution-only withdrawals impossible.
Before you withdraw, check your plan's withdrawal rules in the account documents or call the plan administrator. They can tell you whether contribution-only withdrawals are an option and what paperwork you need.
Key Takeaways
- Contributions to a 529 plan can be withdrawn tax-free at any time, regardless of whether the money was used for education.
- When you withdraw money, earnings come out first in most plans, even if you request contributions only — this is an IRS rule, not a plan choice.
- Some state plans allow you to request a contribution-only withdrawal directly; others require you to calculate your cost basis yourself after a total withdrawal.
- Withdrawing earnings for non-education expenses triggers income tax on the earnings plus a 10 percent federal penalty, but contributions are never taxed or penalized.
- Your plan administrator can tell you the exact process and whether your specific plan supports contribution-only withdrawals.
How the IRS treats contributions versus earnings in withdrawals
The IRS uses a pro-rata rule for 529 withdrawals. This means when you take money out, a portion of every dollar withdrawn is treated as a contribution and a portion as earnings, based on the ratio of contributions to total account value. If your account is 60 percent contributions and 40 percent earnings, then every dollar you withdraw is treated as 60 cents contribution and 40 cents earnings.
This rule applies even if you tell the plan you want contributions only. The plan cannot legally set aside earnings and leave them untouched. You withdraw a blended mix of both, and the earnings portion is subject to tax and penalty if not used for education.
Some plans have workarounds. A few allow you to withdraw a specific dollar amount and then file a form with the IRS to recharacterize the withdrawal — essentially telling the IRS you meant to withdraw contributions only. This requires keeping detailed records and filing Form 5498-SA (the 529 reporting form) correctly. The process is complex and not all plans support it.
Plans that allow direct contribution-only withdrawal requests
Several state plans, including New York's Direct Plan and some others, let you request a contribution-only withdrawal without calculating pro-rata amounts yourself. You submit a form stating the contribution amount you want to withdraw, and the plan processes it as contributions only.
To learn about your plan offers this, contact the plan administrator directly. Ask: "Does your plan allow contribution-only withdrawal requests, or do I have to calculate pro-rata amounts myself?" The answer will be yes or no — there is no middle ground.
If your plan does allow it, you will need to provide the contribution amount you want to withdraw. This should match your records of deposits. The plan will send you the money and report it to the IRS as a contribution withdrawal on your 1099-Q form.
Calculating your cost basis for contribution-only withdrawals
If your plan does not offer direct contribution-only requests, you can still withdraw contributions only by calculating your cost basis — the total amount you deposited, plus any rollovers from other 529 plans, minus any prior withdrawals you have already taken.
Start by gathering your account statements from the plan's inception. Add up every deposit you made. If you rolled money in from another 529 plan, include that amount. If you have taken withdrawals before, subtract them from your total contributions (the IRS assumes prior withdrawals came out pro-rata, so you need to account for the contribution portion of those withdrawals).
Once you have your cost basis, you can withdraw that amount. The plan will report the total withdrawal on Form 1099-Q. You will then need to track which portion was contributions and which was earnings when you file your tax return. This is where many people make mistakes — the plan's 1099-Q does not separate the two, so you have to do it yourself or work with a tax professional.
What happens to earnings when you withdraw contributions
When you withdraw money from a 529 plan, the earnings portion is always included in the withdrawal, even if you only wanted contributions. If those earnings are not used for the beneficiary's education, they are subject to income tax at your ordinary tax rate plus a 10 percent federal penalty.
Some states also add their own penalty or tax on non-education earnings withdrawals. Check your state's rules before you withdraw.
If the beneficiary is in school or about to start school, you can use the earnings withdrawal for education expenses and avoid the penalty. may have access to education expenses include tuition, fees, books, supplies, equipment, and room and board (if the student is at least half-time). If you withdraw earnings and do not use them for education, you will owe tax and penalty on that portion when you file your return.
Withdrawals when the beneficiary changes schools or graduates
If the beneficiary graduates or leaves school, the tax treatment of earnings changes. Earnings withdrawn after the beneficiary is no longer in school are treated as non-education withdrawals and are subject to tax and penalty, even if you use the money for education-related expenses like paying off student loans.
Some exceptions exist. If the beneficiary receives a scholarship, you can withdraw earnings equal to the scholarship amount without penalty (though you still owe income tax on the earnings). If the beneficiary attends a U.S. military academy, earnings used for that education are not penalized.
The timing of when the beneficiary leaves school matters. If they graduate in May but you do not withdraw until July, the withdrawal is treated as non-education. Plan your withdrawals to align with the school year if you want to avoid penalties on earnings.
Rolling contributions to another 529 plan instead of withdrawing
If you want to move money out of your current 529 plan without triggering taxes on earnings, consider a rollover to another 529 plan instead of a withdrawal. A rollover transfers the full account value (contributions and earnings) to a new plan without any tax consequences.
You can roll over to a plan in a different state or to a plan for a different beneficiary (such as a sibling). The rollover must happen within 60 days of the withdrawal, or the IRS treats it as a taxable distribution. Some plans allow direct rollovers, where the money moves from one plan to another without passing through your hands.
Rollovers are useful if you want to change plans but do not need the money right now. They let you preserve the earnings growth without paying tax on it.
Frequently Asked Questions
Can I withdraw contributions without withdrawing earnings?
Not directly — the IRS pro-rata rule means earnings come out with every withdrawal. However, some plans let you request a contribution-only withdrawal, which they process as contributions only. If your plan does not offer this, you can calculate your cost basis and withdraw that amount, then track the earnings portion yourself for tax purposes. Contact your plan to see which option applies to you.
Do I owe taxes on contribution withdrawals?
No. Contributions are never taxed, no matter when you withdraw them or what you use the money for. Only the earnings portion of a withdrawal is taxed (if not used for education). This is why tracking contributions separately matters.
What if I withdraw contributions and the account value drops?
Your cost basis does not change based on market performance. If you deposited $10,000 and the account is now worth $8,000, your contributions are still $10,000. You can withdraw the full $10,000 as contributions, but the withdrawal will include earnings (or in this case, losses). The plan will report the withdrawal on Form 1099-Q, and you will need to calculate the earnings portion for your tax return.
Can I withdraw contributions from a 529 plan for a beneficiary who is not in school yet?
Yes. Contributions can be withdrawn anytime without tax or penalty. However, the earnings portion of the withdrawal will be taxed and penalized if the beneficiary is not in school. If you plan to withdraw before the beneficiary starts school, ask your plan whether you can request contributions only, or calculate your cost basis to minimize the earnings portion.
What if I made a mistake and withdrew too much?
You cannot undo a withdrawal, but you can roll the money back into a 529 plan within 60 days. This is called a rollover. The rollover must go into a 529 plan (yours or someone else's), and it must happen within 60 days of the withdrawal. After 60 days, the withdrawal is final and any taxes owed are due.