(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,
(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.
(2) Applicable percentage
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 in the case of the portion of the effectively connected taxable income which is allocable under section 704 to foreign partners which are corporations.
(1) Paragraph (1) of 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.
(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.
(2) Credit treated as distributed to 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—
(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.
(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 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.
(2) Exception if nonforeign affidavit furnished
(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 affidavit
Subparagraph (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 ) 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 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 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.
(1) regulations providing for the application of this section in the case of publicly traded partnerships, and
(2) regulations providing—
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.