In the case of an individual, there shall be allowed as a deduction an amount equal to the qualified tuition and related expenses paid by the taxpayer during the taxable year.
The amount allowed as a deduction under subsection (a) with respect to the taxpayer for any taxable year shall not exceed the applicable dollar limit.
No deduction shall be allowed under subsection (a) for any expense for which a deduction is allowed to the taxpayer under any other provision of this chapter.
No deduction shall be allowed under subsection (a) for a taxable year with respect to the qualified tuition and related expenses with respect to an individual if the taxpayer or any other person elects to have section 25A apply with respect to such individual for such year.
The total amount of qualified tuition and related expenses shall be reduced by the amount of such expenses taken into account in determining any amount excluded under section 135, 529(c)(1), or 530(d)(2). For purposes of the preceding sentence, the amount taken into account in determining the amount excluded under section 529(c)(1) shall not include that portion of the distribution which represents a return of any contributions to the plan.
No deduction shall be allowed under subsection (a) to any individual with respect to whom a deduction under section 151 is allowable to another taxpayer for a taxable year beginning in the calendar year in which such individual’s taxable year begins.
The term “qualified tuition and related expenses” has the meaning given such term by section 25A(f). Such expenses shall be reduced in the same manner as under section 25A(g)(2).
No deduction shall be allowed under subsection (a) to a taxpayer with respect to the qualified tuition and related expenses of an individual unless the taxpayer includes the name and taxpayer identification number of the individual on the return of tax for the taxable year.
A deduction shall be allowed under subsection (a) for qualified tuition and related expenses for any taxable year only to the extent such expenses are in connection with enrollment at an institution of higher education during the taxable year.
Subparagraph (A) shall not apply to qualified tuition and related expenses paid during a taxable year if such expenses are in connection with an academic term beginning during such taxable year or during the first 3 months of the next taxable year.
If the taxpayer is a married individual (within the meaning of section 7703), this section shall apply only if the taxpayer and the taxpayer’s spouse file a joint return for the taxable year.
If the taxpayer is a nonresident alien individual for any portion of the taxable year, this section shall apply only if such individual is treated as a resident alien of the United States for purposes of this chapter by reason of an election under subsection (g) or (h) of section 6013.
The receipt of the statement referred to in subparagraph (A) by an individual described in subsection (c)(3) shall be treated for purposes of subparagraph (A) as received by the taxpayer.