If—
(1) a partnership has effectively connected taxable income for any taxable year, and
(2) any portion of such income is allocable under section 704 to a foreign partner,
For purposes of paragraph (1), the term “applicable percentage” means—
(1) In general The amount of the withholding tax payable by any partnership under subsection (a) shall be equal to the applicable percentage of the effectively connected taxable income of the partnership which is allocable under section 704 to foreign partners.
For purposes of paragraph (1), the term “applicable percentage” means—
(A) the highest rate of tax specified in section 1 in the case of the portion of the effectively connected taxable income which is allocable under section 704 to foreign partners who are not corporations, and
(B) the highest rate of tax specified in section 11(b) in the case of the portion of the effectively connected taxable income which is allocable under section 704 to foreign partners which are corporations.
For purposes of this section, the term “effectively connected taxable income” means the taxable income of the partnership which is effectively connected (or treated as effectively connected) with the conduct of a trade or business in the United States computed with the following adjustments:
(1) Paragraph (1) of section 703(a) shall not apply.
(2) The partnership shall be allowed a deduction for depletion with respect to oil and gas wells but the amount of such deduction shall be determined without regard to sections 613 and 613A.
(3) There shall not be taken into account any item of income, gain, loss, or deduction to the extent allocable under section 704 to any partner who is not a foreign partner.
Except as provided in regulations, a foreign partner’s share of any withholding tax paid by the partnership under this section shall be treated as distributed to such partner by such partnership on the earlier of—
(1) Allowance of credit Each foreign partner of a partnership shall be allowed a credit under section 33 for such partner’s share of the withholding tax paid by the partnership under this section. Such credit shall be allowed for the partner’s taxable year in which (or with which) the partnership taxable year (for which such tax was paid) ends.
Except as provided in regulations, a foreign partner’s share of any withholding tax paid by the partnership under this section shall be treated as distributed to such partner by such partnership on the earlier of—
(A) the day on which such tax was paid by the partnership, or
(B) the last day of the partnership’s taxable year for which such tax was paid.
For purposes of this section, the term “foreign partner” means any partner who is not a United States person.
Subparagraph (A) shall not apply to any disposition if—
(1) In general Except as provided in this subsection, if any portion of the gain (if any) on any disposition of an interest in a partnership would be treated under section 864(c)(8) as effectively connected with the conduct of a trade or business within the United States, the transferee shall be required to deduct and withhold a tax equal to 10 percent of the amount realized on the disposition.
Subparagraph (A) shall not apply to any disposition if—
(A) In general No person shall be required to deduct and withhold any amount under paragraph (1) with respect to any disposition if the transferor furnishes to the transferee an affidavit by the transferor stating, under penalty of perjury, the transferor’s United States taxpayer identification number and that the transferor is not a foreign person.
(B) False affidavitSubparagraph (A) shall not apply to any disposition if— (i) the transferee has actual knowledge that the affidavit is false, or the transferee receives a notice (as described in section 1445(d)) from a transferor’s agent or transferee’s agent that such affidavit or statement is false, or (ii) the Secretary by regulations requires the transferee to furnish a copy of such affidavit or statement to the Secretary and the transferee fails to furnish a copy of such affidavit or statement to the Secretary at such time and in such manner as required by such regulations.
(C) Rules for agents The rules of section 1445(d) shall apply to a transferor’s agent or transferee’s agent with respect to any affidavit described in subparagraph (A) in the same manner as such rules apply with respect to the disposition of a United States real property interest under such section.
(3) Authority of Secretary to prescribe reduced amount At the request of the transferor or transferee, the Secretary may prescribe a reduced amount to be withheld under this section if the Secretary determines that to substitute such reduced amount will not jeopardize the collection of the tax imposed under this title with respect to gain treated under section 864(c)(8) as effectively connected with the conduct of a trade or business with in the United States.
(4) Partnership to withhold amounts not withheld by the transferee If a transferee fails to withhold any amount required to be withheld under paragraph (1), the partnership shall be required to deduct and withhold from distributions to the transferee a tax in an amount equal to the amount the transferee failed to withhold (plus interest under this title on such amount).
(5) Definitions Any term used in this subsection which is also used under section 1445 shall have the same meaning as when used in such section.
(6) Regulations The Secretary shall prescribe such regulations or other guidance as may be necessary to carry out the purposes of this subsection, including regulations providing for exceptions from the provisions of this subsection.
The Secretary shall prescribe such regulations as may be necessary to carry out the purposes of this section, including—
(1) regulations providing for the application of this section in the case of publicly traded partnerships, and
regulations providing—
(A) that, for purposes of section 6655, the withholding tax imposed under this section shall be treated as a tax imposed by section 11 and any partnership required to pay such tax shall be treated as a corporation, and
(B) appropriate adjustments in applying section 6655 with respect to such withholding tax.
(Added Pub. L. 99–514, title XII, § 1246(a), Oct. 22, 1986, 100 Stat. 2582; amended Pub. L. 100–647, title I, § 1012(s)(1)(A), Nov. 10, 1988, 102 Stat. 3526; Pub. L. 101–239, title VII, § 7811(i)(6), Dec. 19, 1989, 103 Stat. 2410; Pub. L. 115–97, title I, §§ 13001(b)(3)(D), 13501(b), Dec. 22, 2017, 131 Stat. 2098, 2139; Pub. L. 115–141, div. U, title IV, § 401(a)(199), Mar. 23, 2018, 132 Stat. 1193.)