An estate or trust shall be allowed the credit against tax for taxes imposed by foreign countries and possessions of the United States, to the extent allowed by section 901, only in respect of so much of the taxes described in such section as is not properly allocable under such section to the beneficiaries.
Except as otherwise provided in this paragraph, a trust shall be allowed a deduction of $100.
A trust which, under its governing instrument, is required to distribute all of its income currently shall be allowed a deduction of $300.
In the case of any taxable year beginning in a calendar year after 2018, the $4,150 amount in subparagraph (A) shall be increased in the same manner as provided in section 6334(d)(4)(C).
In the case of an estate or trust (other than a trust meeting the specifications of subpart B), there shall be allowed as a deduction in computing its taxable income (in lieu of the deduction allowed by section 170(a), relating to deduction for charitable, etc., contributions and gifts) any amount of the gross income, without limitation, which pursuant to the terms of the governing instrument is, during the taxable year, paid for a purpose specified in section 170(c) (determined without regard to section 170(c)(2)(A)). If a charitable contribution is paid after the close of such taxable year and on or before the last day of the year following the close of such taxable year, then the trustee or administrator may elect to treat such contribution as paid during such taxable year. The election shall be made at such time and in such manner as the Secretary prescribes by regulations.
In the case of a pooled income fund (as defined in paragraph (5)), there shall also be allowed as a deduction in computing its taxable income any amount of the gross income attributable to gain from the sale of a capital asset held for more than 1 year, without limitation, which pursuant to the terms of the governing instrument is, during the taxable year, permanently set aside for a purpose specified in section 170(c).
To the extent that the amount otherwise allowable as a deduction under this subsection consists of gain described in section 1202(a), proper adjustment shall be made for any exclusion allowable to the estate or trust under section 1202. In the case of a trust, the deduction allowed by this subsection shall be subject to section 681 (relating to unrelated business income).
The benefit of the deduction for net operating losses provided by section 172 shall be allowed to estates and trusts under regulations prescribed by the Secretary.
An estate or trust shall be allowed the deduction for depreciation and depletion only to the extent not allowable to beneficiaries under sections 167(d) and 611(b).
The benefit of the deductions for amortization provided by sections 169 and 197 shall be allowed to estates and trusts in the same manner as in the case of an individual. The allowable deduction shall be apportioned between the income beneficiaries and the fiduciary under regulations prescribed by the Secretary.
Amounts allowable under section 2053 or 2054 as a deduction in computing the taxable estate of a decedent shall not be allowed as a deduction (or as an offset against the sales price of property in determining gain or loss) in computing the taxable income of the estate or of any other person, unless there is filed, within the time and in the manner and form prescribed by the Secretary, a statement that the amounts have not been allowed as deductions under section 2053 or 2054 and a waiver of the right to have such amounts allowed at any time as deductions under section 2053 or 2054. Rules similar to the rules of the preceding sentence shall apply to amounts which may be taken into account under section 2621(a)(2) or 2622(b). This subsection shall not apply with respect to deductions allowed under part II (relating to income in respect of decedents).