(a) Citizens or residents In computing taxable gifts for the calendar year, there shall be allowed as a deduction in the case of a citizen or resident the amount of all gifts made during such year to or for the use of
(1) the United States, any State, or any political subdivision thereof, or the District of Columbia, for exclusively public purposes;
(2) a corporation, or trust, or community chest, fund, or foundation, organized and operated exclusively for religious, charitable, scientific, literary, or educational purposes, or to foster national or international amateur sports competition (but only if no part of its activities involve the provision of athletic facilities or equipment), including the encouragement of art and the prevention of cruelty to children or animals, no part of the net earnings of which inures to the benefit of any private shareholder or individual, which is not disqualified for tax exemption under section
501 (c)(3) by reason of attempting to influence legislation, and which does not participate in, or intervene in (including the publishing or distributing of statements), any political campaign on behalf of (or in opposition to) any candidate for public office;
(3) a fraternal society, order, or association, operating under the lodge system, but only if such gifts are to be used exclusively for religious, charitable, scientific, literary, or educational purposes, including the encouragement of art and the prevention of cruelty to children or animals;
(4) posts or organizations of war veterans, or auxiliary units or societies of any such posts or organizations, if such posts, organizations, units, or societies are organized in the United States or any of its possessions, and if no part of their net earnings insures to the benefit of any private shareholder or individual.
Rules similar to the rules of section 501 (j) shall apply for purposes of paragraph (2).
(b) Nonresidents In the case of a nonresident not a citizen of the United States, there shall be allowed as a deduction the amount of all gifts made during such year to or for the use of
(1) the United States, any State, or any political subdivision thereof, or the District of Columbia, for exclusively public purposes;
(2) a domestic corporation organized and operated exclusively for religious, charitable, scientific, literary, or educational purposes, including the encouragement of art and the prevention of cruelty to children or animals, no part of the net earnings of which inures to the benefit of any private shareholder or individual, which is not disqualified for tax exemption under section
501 (c)(3) by reason of attempting to influence legislation, and which does not participate in, or intervene in (including the publishing or distributing of statements), any political campaign on behalf of (or in opposition to) any candidate for public office;
(3) a trust, or community chest, fund, or foundation, organized and operated exclusively for religious, charitable, scientific, literary, or educational purposes, including the encouragement of art and the prevention of cruelty to children or animals, no substantial part of the activities of which is carrying on propaganda, or otherwise attempting, to influence legislation, and which does not participate in, or intervene in (including the publishing or distributing of statements), any political campaign on behalf of (or in opposition to) any candidate for public office; but only if such gifts are to be used within the United States exclusively for such purposes;
(4) a fraternal society, order, or association, operating under the lodge system, but only if such gifts are to be used within the United States exclusively for religious, charitable, scientific, literary, or educational purposes, including the encouragement of art and the prevention of cruelty to children or animals;
(5) posts or organizations of war veterans, or auxiliary units or societies of any such posts or organizations, if such posts, organizations, units, or societies are organized in the United States or any of its possessions, and if no part of their net earnings inures to the benefit of any private shareholder or individual.
(c) Disallowance of deductions in certain cases
(1) No deduction shall be allowed under this section for a gift to of
for the use of an organization or trust described in section
508 (d) or
4948 (c)(4) subject to the conditions specified in such sections.
(2) Where a
donor transfers an interest in property (other than an interest described in section
170 (f)(3)(B)) to a person, or for a use, described in subsection (a) or (b) and an interest in the same property is retained by the
donor, or is transferred or has been transferred (for less than an adequate and full consideration in money or moneys worth) from the
donor to a person, or for a use, not described in subsection (a) or (b), no deduction shall be allowed under this section for the interest which is, or has been transferred to the person, or for the use, described in subsection (a) or (b), unless
(A) in the case of a remainder interest, such interest is in a trust which is a charitable remainder annuity trust or a charitable remainder unitrust (described in section
664) or a pooled income fund (described in section
642 (c)(5)), or
(B) in the case of any other interest, such interest is in the form of a guaranteed annuity or is a fixed percentage distributed yearly of the fair market value of the property (to be determined yearly).
(3) Rules similar to the rules of section
2055 (e)(4) shall apply for purposes of paragraph (2).
(4) Reformations to comply with paragraph (2)
(A) In general A deduction shall be allowed under subsection (a) in respect of any qualified reformation (within the meaning of section
2055 (e)(3)(B)).
(B) Rules similar to section 2055 (e)(3) to apply For purposes of this paragraph, rules similar to the rules of section
2055 (e)(3) shall apply.
(5) Contributions to donor advised funds A deduction otherwise allowed under subsection (a) for any contribution to a
donor advised fund (as defined in section
4966 (d)(2)) shall only be allowed if
(A) the sponsoring organization (as defined in section
4966 (d)(1)) with respect to such
donor advised fund is not
(i) described in paragraph (3) or (4) of subsection (a), or
(ii) a type III supporting organization (as defined in section
4943 (f)(5)(A)) which is not a functionally integrated type III supporting organization (as defined in section
4943 (f)(5)(B)), and
(B) the taxpayer obtains a contemporaneous written acknowledgment (determined under rules similar to the rules of section
170 (f)(8)(C)) from the sponsoring organization (as so defined) of such
donor advised fund that such organization has exclusive legal control over the assets contributed.