; carryover of excess expenses (1) In general Subsection (b) of section 222 of the Internal Revenue Code of 1986 is amended to read as follows: (b) Carryover If the amount of the deduction allowable under subsection (a) exceeds the taxable income of the taxpayer for the taxable year (determined without regard to this section), then an amount equal to such excess shall be treated as qualified tuition and related expenses paid by the taxpayer in the succeeding taxable year. . (2) Conforming amendment Paragraph (3) of section 222(d) of such Code is amended by striking deduction .— and inserting deduction .—Except as provided in subsection (b)— . (b) Permanent extension Section 222 of the Internal Revenue Code of 1986 is amended by striking subsection (e). (c) Effective date The amendments made by this section shall apply to taxable years beginning after December 31, 2017. 3. Expansion of rules for Coverdell education savings accounts (a) Elimination of contribution limitation (1) In general Section 530(b)(1)(A) of the Internal Revenue Code of 1986 is amended by inserting or at the end of clause (i), by striking , or at the end of clause (ii) and inserting a period, and by striking clause (iii). (2) Conforming amendment Section 530 of such Code is amended by striking subsection (c). (b) Effective date The amendments made by this section shall apply to contributions made in taxable years beginning after the date of the enactment of this Act.