Research Desk529 planRoth IRASECURE 2.0

Can You Withdraw Only 529 Contributions for a Roth IRA Rollover?

A regular 529 withdrawal generally includes a proportional share of basis and earnings. The special 529-to-Roth transfer is separate and has its own age, contribution-history, annual-limit, compensation, and lifetime rules.

·Updated Oct 29, 2026·12 min read
First published Jun 18, 2026·Methodology →
A figure plants a glowing gold coin beside a sapling, with a larger gold-laden tree glowing ahead.
Eligible leftover 529 money can start a Roth IRA for the beneficiary.

The short answer

A regular 529 cash distribution generally includes a proportional share of basis and earnings; you cannot designate it as contributions only. A qualifying 529-to-Roth transfer is a separate direct trustee-to-trustee rollover to the same beneficiary's Roth IRA, subject to account-age, contribution-history, annual IRA, compensation, and $35,000 lifetime limits.

Short answer: Usually, no: a 529 account owner cannot take an ordinary cash distribution and label it “contributions only” to avoid the earnings portion. A regular distribution generally carries a proportional share of basis and earnings. The 529-to-Roth provision is a separate route: it must move directly from the 529 trustee to the beneficiary’s Roth IRA and meet several limits. It is not a cash withdrawal followed by an ordinary Roth IRA contribution. The special statute uses the annual Roth IRA contribution limit, and its cross-reference appears to include the ordinary compensation ceiling. The IRS does not explain this point directly in its rollover summary, so the statutory chain matters.

The trap: people are borrowing Roth IRA withdrawal rules

Imagine a 529 account has $24,000 of contributions and $6,000 of investment growth. The account is worth $30,000. Someone wants to move $7,500 to a Roth IRA and reasons that the first $7,500 out should be the original money they contributed. That is how many people think about withdrawing regular Roth IRA contributions. It is not the general federal tax treatment for a 529 distribution.

For a 529, the contribution amount is generally called basis. The growth is earnings. When a regular distribution is taken, a share of each comes out. The IRS's ordinary distribution calculation and Form 1099-Q reporting distinguish basis from earnings; they do not give the account owner a general “contributions first” election. If the distribution is not matched with enough adjusted qualified education expenses or another exception, the earnings part can be taxable and may face an additional 10% federal tax.

The confusion gets worse because the 529-to-Roth provision is often described as “withdrawing leftover money.” That is imprecise. The special provision is a direct trustee-to-trustee rollover from a 529 to the Roth IRA of that same 529 beneficiary. The legal route, recipient, and limits matter. Taking a check personally and depositing it as a Roth IRA contribution is not the same transaction.

Do not ask your 529 plan for a check to yourself if you intend to use the special Roth rollover. Contact both trustees and confirm they can process and document a direct transfer that meets the federal rules.

Two transactions, two different questions

Illustrative planning worksheet · 2026 limits

529 cash distribution or Roth transfer?

Compare an ordinary distribution’s estimated basis/earnings mix with the dollar ceilings for a possible direct 529-to-Roth rollover. They are separate transactions.

A. Ordinary 529 cash distribution

Estimate the earnings share using your current account value and basis. This is not a substitute for Form 1099-Q records or the IRS annual expense allocation.

Modeled distribution mix

Basis in distribution$6,000
Earnings in distribution$1,500
Estimated taxable earnings$1,500
Estimated federal tax + additional tax$480

B. Potential direct Roth rollover

The tool estimates a ceiling using the 2026 limit, taxable compensation, other IRA contributions, and the other inputs. It cannot determine whether your account, contributions, records, or transfer satisfy the law.

The worksheet applies Publication 590-A’s “more than 15 years” wording and compares calendar dates in UTC to avoid local-time shifts. Ask the plan how it treats transfers or beneficiary changes.

Candidate under the IRS Publication 970 summary

$7,500

IRS-summary annual space: $7,500 · Compensation-capped limit: $7,500 · Lifetime space: $35,000 · Age limit: $7,500

Planning estimate only. The cash estimate uses a simplified basis ratio and ignores state tax, multiple accounts/distributions, scholarship coordination, special exceptions, and other return details. The rollover estimate follows the annual-limit summary in IRS Publication 970 and the JCT Bluebook's described intent, which excludes SEP and SIMPLE contributions. The literal statutory cross-reference may double-count Traditional IRA contributions; Publication 970 does not explain this interaction. The worksheet presents one estimate and discloses the issue above. It also does not determine the amount available under §219(c) or resolve unusual compensation facts. Confirm the limit with the plan and Roth custodian before transferring.

Do not confuse the paths. An ordinary cash distribution may include both basis and earnings. The special rollover must go directly between trustees and uses its own eligibility rules; it is not a cash withdrawal of contributions only.

2026 IRA limits are federal limits from IRS Notice 2025-67. Public IRS materials differ on the 15-year wording (“at least” versus “more than”); this worksheet uses “more than.” It also applies the compensation ceiling based on the statutory cross-reference; IRS Publication 590-A does not discuss compensation directly in its QTP rollover section. See the accompanying article and request the plan’s written determination.

Where does the money go?
Ordinary 529 cash distribution
To the account owner, beneficiary, or eligible school, depending on the request
Special 529-to-Roth transfer
Directly from 529 trustee to the beneficiary’s Roth IRA trustee
Can you designate it as contributions only?
Ordinary 529 cash distribution
Generally no; a distribution includes basis and earnings proportionally
Special 529-to-Roth transfer
It is not a contribution-only withdrawal. The statute allows a qualifying transfer within a separate cap based on older contributions and attributable earnings.
Is the transaction automatically tax-free?
Ordinary 529 cash distribution
No. Qualified expenses and exceptions determine whether earnings are taxable
Special 529-to-Roth transfer
It can be treated as a qualified distribution only if all statutory requirements are met
Main constraints
Ordinary 529 cash distribution
Qualified expenses, scholarship coordination, distribution/expense matching, and exceptions
Special 529-to-Roth transfer
Account age, five-year contribution lookback, annual IRA limit, $35,000 lifetime cap, same beneficiary, and direct transfer

This distinction is the useful answer to the “pro-rata trap.” Pro-rata describes the basis-and-earnings composition of an ordinary distribution. It does not mean that every dollar of a qualifying 529-to-Roth transfer is automatically a taxable pro-rata distribution. The special law provides a tax-free treatment for a qualifying direct rollover, including earnings attributable to eligible old contributions, up to the applicable limits. Do not apply a Roth IRA withdrawal ordering rule to either 529 transaction.

What the law allows for a 529-to-Roth rollover

Section 126 of the SECURE 2.0 Act added a special rollover rule to Internal Revenue Code Section 529(c)(3)(E). For a distribution after December 31, 2023, the statute allows qualifying amounts to move from a long-term 529 program directly to a Roth IRA maintained for the same designated beneficiary. The Internal Revenue Service's current Publication 970 describes the transfer as direct trustee-to-trustee and says the account must have been open for more than 15 years. IRS Topic 313 summarizes the threshold as at least 15 years.

The main limits are:

  • Same beneficiary: The Roth IRA must benefit the designated beneficiary of the 529 account.
  • Direct transfer: The money must go from the 529 trustee to the Roth IRA trustee. A payment to you followed by a deposit is not the qualifying transfer described by the IRS.
  • 15-year account history: The statute says the account must have been maintained for the 15-year period ending on the distribution date. IRS Topic 313 says “at least 15 years,” while IRS Publications 590-A and 970 say “more than 15 years.” Because the difference matters at the exact 15-year anniversary, this article and its calculator use Publication 590-A’s more conservative wording. Ask the plan how it measures the date, particularly after a plan transfer or beneficiary change, and retain its written response.
  • Five-year contribution lookback: A transfer cannot exceed contributions to the 529, plus earnings attributable to those contributions, made before the five-year period ending on the distribution date. Newer contributions and related earnings are outside the eligible pool for now.
  • Annual IRA dollar limit: IRS Publication 970 summarizes the limit by saying the QTP transfer, when added to other Roth IRA contributions, cannot exceed the annual limit. IRS Notice 2025-67 sets the 2026 base limit at $7,500, plus a $1,100 catch-up for someone who attains age 50 before year-end, for a total of $8,600. The limit also appears subject to the compensation cross-reference described below.
  • Lifetime ceiling: No more than $35,000 per beneficiary can move under this provision over all years.

The age of the 529 account is not enough by itself. An account could be 20 years old while recent contributions—and the earnings attributable to them—remain inside the five-year exclusion. The plan needs contribution records, dates, basis, and valuation data to identify what it will transfer.

A wrinkle in the annual limit when Traditional IRA contributions are made

The statute and the IRS summary do not fit together cleanly. Section 529 says to use the amount applicable under Section 408A(c)(2), then subtract aggregate contributions to all individual retirement plans. Section 408A(c)(2) itself defines the Roth contribution limit after subtracting contributions to non-Roth IRAs. Read literally, that can subtract a Traditional IRA contribution twice. IRS Publication 970 says a qualifying 529 rollover plus other Roth IRA contributions cannot exceed the annual limit, but does not explain how Traditional IRA contributions affect the transfer. The Joint Committee on Taxation's 2023 Bluebook describes the limit as the annual IRA limit minus contributions to other IRAs, expressly excluding SEP and SIMPLE IRAs; its footnote says a technical correction may be needed to reflect that intent. That is useful evidence of congressional tax staff's explanation, but it is not an enacted correction or binding IRS guidance.

The calculator follows the IRS Publication 970 summary and the JCT Bluebook's described intent: it reduces the annual cap by Traditional IRA contributions once and by other Roth IRA contributions once, while excluding SEP and SIMPLE contributions from that input. It presents one planning estimate and explains the text issue in its methodology note; it does not resolve the legal ambiguity. We found no published IRS explanation addressing the overlap. Ask the plan, Roth custodian, or a tax professional which limit they will apply before making a transfer. The Bluebook is explanatory evidence, not a technical correction or binding IRS guidance. IRC §§529(c)(3)(E)(ii)(I), 408A(c)(2); IRS Publication 970; Joint Committee on Taxation, JCS-1-23, p. 389 & n.1746.

Does the beneficiary need earned income?

The statutory cross-reference indicates that compensation can limit the rollover, even though the transaction is not an ordinary Roth contribution. Section 529(c)(3)(E)(ii)(I) caps the annual transfer by the amount applicable under Section 408A(c)(2), less the beneficiary’s other IRA contributions. Section 408A(c)(2) in turn uses the maximum deduction amount under Section 219, and Section 219(b)(1) limits that amount to the lesser of the annual dollar amount or compensation included in gross income. Read together, the chain appears to cap a 529 rollover at the beneficiary’s available Section 219 compensation for the year, after subtracting other IRA contributions. This is a reading of the statutory cross-references; IRS rollover summaries do not explain the compensation interaction directly. 26 U.S.C. §§ 529(c)(3)(E), 408A(c)(2), 219(b)(1).

For a married beneficiary filing jointly, Section 219(c) has a spousal-compensation rule that can allow one spouse’s compensation to support an IRA contribution for the other spouse, subject to the couple’s combined limit and the higher-earning spouse’s IRA contributions. IRS Publication 590-A describes that rule for ordinary IRA contributions, but does not say how administrators should apply it to a 529-to-Roth rollover. If the beneficiary has little or no compensation, do not automatically enter zero or assume the spouse’s full wages are available: confirm the Section 219(c) amount with a tax professional and both custodians. 26 U.S.C. §219(c); IRS Publication 590-A.

The Roth income phaseout works differently. Section 408A(c)(3)(E) expressly increases the phaseout-reduced limit by the lesser of the qualifying 529 rollover amount or the amount cut by the phaseout. In practical terms, it restores annual contribution-limit space for a qualifying 529 rollover up to the rollover amount. This special add-back neutralizes the MAGI reduction for the qualifying 529 amount; it does not remove the phaseout for ordinary Roth contributions or the compensation ceiling described above. The IRS’s Publication 590-A does not explain this coordination in its rollover summary, but the statutory formula is explicit.

For a practical estimate, use the calculator's once-only method as a planning estimate, not a legal determination. It reduces the 2026 annual amount by Traditional IRA contributions once and by other Roth IRA contributions once; it excludes SEP and SIMPLE contributions, consistent with the JCT explanation. A literal reading of the statutory cross-reference may reduce the Traditional IRA amount a second time. Neither approach determines which income qualifies as compensation, the amount available under the joint-return spousal rule, or whether a plan's records and processing satisfy the 529 rules. If the beneficiary made Traditional IRA contributions, confirm the limit with a tax preparer and both custodians before transfer.

The law does not create an “old contributions first” cash withdrawal

The five-year condition is a cap on the amount that can qualify for the special rollover. It is not permission to withdraw old contributions as cash while leaving all earnings behind. Publication 970 says the eligible amount includes “total contributions (and attributable earnings)” made before the five-year cutoff. That phrasing is one reason the common “just withdraw the contributions” explanation is misleading: investment earnings associated with eligible older contributions may be part of the qualifying rollover amount.

There is also a documentation gap for some account histories. The IRS Advisory Council has asked the IRS to clarify how plans should establish the 15-year period, including when a 529 beneficiary changes, and what information administrators must provide. The tax statute, IRS publications, and plan procedures do not answer every operational question in a uniform, step-by-step way. Do not assume a beneficiary change either restarts or preserves every relevant clock without getting the plan’s position and qualified tax advice for the actual facts.

Ordinary 529 distribution: a worked pro-rata example

Suppose a 529 is worth $30,000 immediately before a distribution. Its records show $24,000 of remaining basis and $6,000 of earnings. Basis is 80% of the balance; earnings are 20%.

If the account owner takes a regular $7,500 cash distribution, a simplified illustration gives:

  • Basis portion: $7,500 × 80% = $6,000
  • Earnings portion: $7,500 × 20% = $1,500

That does not by itself tell you how much is taxable. If the beneficiary has enough adjusted qualified education expenses for the year, some or all of the earnings may be excluded. If expenses are insufficient, taxable earnings are determined under the IRS rules and reported by the recipient shown on Form 1099-Q. A 10% additional tax generally applies to the taxable earnings portion unless an exception applies. The account owner and beneficiary should coordinate expenses, scholarships, tax credits, and distributions before the calendar year closes.

The percentages above are an illustration using a static balance and basis snapshot. Real account reporting can depend on contributions, returns, prior distributions, multiple 529 accounts, and the plan’s records. Use the plan’s Form 1099-Q and transaction history for filing; do not substitute this simple calculator for the tax return calculation.

Example: a possible 2026 rollover

Assume Maya is the designated beneficiary of a 529 opened in 2008. The account is worth $42,000. Her plan reports that $28,000 of contributions, plus attributable growth, were made more than five years before a proposed December 2026 transfer. She has already used $9,000 of the $35,000 lifetime rollover ceiling in earlier years. She made $2,000 of other Roth IRA contributions and no Traditional IRA contributions for 2026. Assume the plan and Roth custodian confirm that the 15-year and direct-transfer conditions are met.

For 2026, Maya is under age 50 and has $8,000 of Section 219 compensation. IRS Notice 2025-67 sets the annual IRA dollar limit at $7,500. After $2,000 of her other Roth IRA contributions, the remaining annual limit is at most $5,500 under the IRS Publication 970 summary. Her compensation exceeds the dollar limit, so it does not reduce the cap in this example. The remaining lifetime ceiling is $26,000. The plan-estimated eligible old contribution-and-earnings pool is at least $5,500. On these simplified inputs, the maximum candidate amount is therefore the lowest of the three caps: $5,500. Because Maya has no Traditional IRA contribution, this example is unaffected by the statutory-text ambiguity described above.

That is not a recommendation to move $5,500. Maya and the plan still need to confirm account eligibility, how “attributable earnings” are determined, reporting, processing time, and whether the account’s history satisfies the holding period. A rollover in a calendar year also competes with any regular IRA contribution for annual limit space. If she instead requested $5,500 as an ordinary check, that would be a different distribution, and the 529’s basis/earnings allocation rules would apply.

A practical checklist before requesting a transfer

  1. Identify the beneficiary and account history. Record the original account opening date, any plan-to-plan transfers, beneficiary changes, and contribution dates.
  2. Request a written eligibility estimate from the 529 plan. Ask for the amount it considers eligible under the five-year rule, including how it treats earnings attributable to older contributions and any beneficiary change.
  3. Check annual limit space. Add up the beneficiary's other Traditional and Roth IRA contributions for the year and compare them with the year-specific limit. Do not include SEP or SIMPLE contributions in the calculator's method. If the beneficiary makes Traditional IRA contributions, review the statutory-text issue with the plan because the code and IRS summary appear to treat that overlap differently. Do not reuse a prior year's number.
  4. Track the $35,000 lifetime total. Include earlier special rollovers, even if a different 529 plan or Roth custodian processed them.
  5. Confirm the transfer route with both institutions. Verify the 529 administrator can send the amount directly to the Roth IRA trustee for the same beneficiary and learn what forms, codes, and timing each institution requires.
  6. Choose the contribution year before the transfer. Section 408A(c)(6) applies the timing rule in §219(f)(3): an IRA contribution made on account of a tax year by that year’s filing due date, without extensions, is treated as made on the last day of that tax year. Publication 590-A gives a 2025 example: a 529 distribution after December 31, 2025 and before April 15, 2026, rolled over by April 15 and designated for 2025, counts as a 2025 Roth contribution. If you want a prior-year designation, ask the plan and custodian in advance to complete the direct transfer by the unextended filing deadline and code it for the intended year. Confirm which year’s compensation, other IRA contributions, annual limit, and 529 eligibility dates apply. An extension to file is not extra time for the IRA contribution.
  7. Preserve records. Keep plan statements, contribution history, beneficiary records, the written eligibility calculation, transfer confirmations, and Form 1099-Q/Form 5498 reporting.
  8. Do not mix transactions. If you need a qualified education payment or a regular nonqualified distribution, request it separately and account for the basis/earnings allocation and expense matching.
  9. Have a tax professional review unusual facts. Beneficiary changes, old plan transfers, inconsistent records, and cross-year processing can affect the analysis.

Check your state tax result separately

Federal qualification does not settle state tax treatment. California’s 2025 Schedule CA instructions say the rollover is includible in California taxable income, subject to an additional 2.5% tax, and direct the taxpayer to enter the federally excluded rollover distribution amount on line 8z, column C. That instruction points to adding the full distribution amount on the state return.

There is a statutory tension. California Revenue and Taxation Code §17140(h)(2) and §17140.3(f)(2) say the rollover amount is includible in gross income “in the manner as provided under Section 72” of the Internal Revenue Code. Section 72 generally contains rules for allocating basis and earnings, which could produce a different taxable amount from adding back the entire rollover. The 2025 Schedule CA instruction does not resolve that statutory interaction. FTB Publication 1005’s explanation that earnings are taxable on a nonqualified 529 distribution is not a clear answer for this special Roth rollover.

California residents should not assume either the full rollover or only its earnings are the final taxable base. Before transferring or filing, ask the FTB or a California tax professional to resolve the current law and filing treatment, including what amount the 2.5% additional tax applies to. Keep the answer with the return records. This is a California-specific conflict; other states have their own conformity rules.

The calculator estimates federal treatment only. It does not resolve this California conflict or calculate any state income tax or additional tax.

The decision is about eligibility, not an ordering trick

The 529-to-Roth provision can make some long-held education savings useful for retirement. Its guardrails are substantial, and the plan has to be able to substantiate them. If the account does not qualify, options may include leaving money invested for future education, changing the beneficiary to an eligible family member, using other qualified expenses, or taking a taxable nonqualified distribution. Which path makes sense depends on the family and the plan; a nonqualified withdrawal is not automatically a mistake, but the earnings tax and possible additional tax need to be priced in.

The core distinction is simpler than many forum explanations suggest: a regular 529 cash distribution does not let you pull contributions first. A special 529-to-Roth transfer can move eligible funds directly to the beneficiary’s Roth IRA under a separate statutory exception. Before requesting money, decide which transaction you actually mean, then ask the plan to show how it will document the applicable rules.

Sources and scope

This article is federal-tax educational material, not an individualized tax or legal opinion. State tax treatment, plan procedures, and the exact contribution history can change the result.

Connect the lesson

Turn the article into a next step.

Recommended: Save smarter

SwitchWize takeaway

Find your number, not the market's.

Run a Money Map to see how your cash, debt, and rates stack up against the best available options.

Start Money Map →

Federal 529-to-Roth and ordinary QTP distribution rules checked against the Internal Revenue Code, IRS Publications 590-A and 970, IRS Topic 313, and IRS Notice 2025-67 on October 29, 2026. The annual IRA-limit summary and literal statutory cross-reference appear to differ when Traditional IRA contributions are made. California treatment also remains unresolved between statute and 2025 FTB instructions.