(I) In general If subparagraph (A) does not apply to a distribution by reason of this subparagraph and a qualifying event occurs before the close of the 5-year period beginning on the date of the purchase of the principal residence with respect to which such distribution was used, the designated beneficiary’s tax for the taxable year in which such qualifying event occurs shall be increased by an amount, determined under regulations, equal to the tax which (but for this subparagraph) would have been imposed, plus interest for the deferral period. The amount of any increase determined under the preceding sentence shall be reduced (but not below zero) by 20 percent for each full year occurring during the period beginning on the date of such purchase and ending on the date of such qualifying event.
(II) Qualifying event For purposes of this clause, the term qualifying event means, with respect to a distribution to which subparagraph (A) does not apply by reason of this subparagraph, the disposition of the principal residence which the designated beneficiary purchased using such distribution, or the cessation of such residence as the principal residence of the designated beneficiary (and, if married, such designated beneficiary’s spouse).
(III) Deferral period For purposes of this clause, the term deferral period means, with respect to a distribution to which subparagraph (A) does not apply by reason of this subparagraph, the period beginning with the taxable year in which (without regard to this subparagraph) the distribution would have been includible in gross income and ending with the taxable year in which the qualifying event described in subclause (I) occurs.
(IV) Exceptions Rules similar to the rules of subparagraphs (A), (B), (C), and (E) of section 36(f)(4) shall apply for purposes of this subparagraph.
(iv) Recapture of tax benefit
(v) Definitions For purposes of this subparagraph, the terms purchase, principal residence, and first-time homebuyer have the meaning given such terms in section 36(c).
.
(b) Coordination with aggregate limitation on special rollovers to Roth IRAs Section 529(c)(3)(E)(ii)(II) of such Code is amended to read as follows:
(II) Aggregate limitation This subparagraph shall not apply to any distribution described in clause (i) to the extent that the aggregate amount of such distributions with respect to the designated beneficiary for the taxable year and all prior taxable years exceeds an amount equal to $35,000, reduced by the aggregate amount of distributions to which subparagraph (F) applies with respect to such designated beneficiary for such taxable year and all prior taxable years..
(c) Effective date The amendments made by this section shall apply to distributions made in taxable years beginning after the date of the enactment of this Act.