Such term shall not include any amount which is not properly allocable to qualified business income for purposes of subsection (c)(1).
The term “qualified business income” means, for any taxable year, the net amount of qualified items of income, gain, deduction, and loss with respect to any qualified trade or business of the taxpayer. Such term shall not include any qualified REIT dividends or qualified publicly traded partnership income.
Except as otherwise provided in subsection (g)(2)(B), taxable income shall be computed without regard to any deduction allowable under this section.
In the case of any taxpayer with qualified business income from sources within the commonwealth of Puerto Rico, if all such income is taxable under section 1 for such taxable year, then for purposes of determining the qualified business income of such taxpayer for such taxable year, the term “United States” shall include the Commonwealth of Puerto Rico.
The deduction under subsection (a) shall only be allowed for purposes of this chapter.
For purposes of this subparagraph, the W–2 wages of the taxpayer shall be determined in the same manner as under subsection (b)(4) (without regard to subparagraph (B) thereof and after application of subsection (b)(5)), except that such wages shall not include any amount which is not properly allocable to domestic production gross receipts for purposes of paragraph (3)(A).
For purposes of this subsection, the taxable income of a specified agricultural or horticultural cooperative shall be computed without regard to any deduction allowable under subsection (b) or (c) of section 1382 (relating to patronage dividends, per-unit retain allocations, and nonpatronage distributions).
The Secretary shall prescribe rules for the proper allocation of items described in subparagraph (A) for purposes of determining qualified production activities income. Such rules shall provide for the proper allocation of items whether or not such items are directly allocable to domestic production gross receipts.
For purposes of determining costs under subclause (I) of subparagraph (A)(ii), any item or service brought into the United States shall be treated as acquired by purchase, and its cost shall be treated as not less than its value immediately after it entered the United States. A similar rule shall apply in determining the adjusted basis of leased or rented property where the lease or rental gives rise to domestic production gross receipts.
In the case of any property described in clause (i) that had been exported by the taxpayer for further manufacture, the increase in cost or adjusted basis under clause (i) shall not exceed the difference between the value of the property when exported and the value of the property when brought back into the United States after the further manufacture.
The term “domestic production gross receipts” means the gross receipts of the taxpayer which are derived from any lease, rental, license, sale, exchange, or other disposition of any agricultural or horticultural product which was manufactured, produced, grown, or extracted by the taxpayer (determined after the application of paragraph (4)(B)) in whole or significant part within the United States. Such term shall not include gross receipts of the taxpayer which are derived from the lease, rental, license, sale, exchange, or other disposition of land.
For purposes of subclause (I), a person shall be treated as related to another person if such persons are treated as a single employer under subsection (a) or (b) of section 52 or subsection (m) or (o) of section 414, except that determinations under subsections (a) and (b) of section 52 shall be made without regard to section 1563(b).
A specified agricultural or horticultural cooperative described in subparagraph (A)(ii) shall be treated as having manufactured, produced, grown, or extracted in whole or significant part any agricultural or horticultural product marketed by the specified agricultural or horticultural cooperative which its patrons have so manufactured, produced, grown, or extracted.
For purposes of paragraph (3)(D), if all of the interests in the capital and profits of a partnership are owned by members of a single expanded affiliated group at all times during the taxable year of such partnership, the partnership and all members of such group shall be treated as a single taxpayer during such period.
In the case of a specified agricultural or horticultural cooperative which is a partner in a partnership, rules similar to the rules of subsection (f)(1) shall apply for purposes of this subsection.
This subsection shall be applied by only taking into account items which are attributable to the actual conduct of a trade or business.
For purposes of this subparagraph, the term “oil related qualified production activities income” means for any taxable year the qualified production activities income which is attributable to the production, refining, processing, transportation, or distribution of oil, gas, or any primary product thereof (within the meaning of section 927(a)(2)(C), as in effect before its repeal) during such taxable year.
The Secretary shall prescribe such regulations as are necessary to carry out the purposes of this subsection, including regulations which prevent more than 1 taxpayer from being allowed a deduction under this subsection with respect to any activity described in paragraph (3)(D)(i). Such regulations shall be based on the regulations applicable to cooperatives and their patrons under section 199 (as in effect before its repeal).
This section shall not apply to taxable years beginning after December 31, 2025.