§ 863.
(b)
Income partly from within and partly from without the United States
In the case of gross income derived from sources partly within and partly without the United States, the taxable income may first be computed by deducting the expenses, losses, or other deductions apportioned or allocated thereto and a ratable part of any expenses, losses, or other deductions which cannot definitely be allocated to some item or class of gross income; and the portion of such taxable income attributable to sources within the United States may be determined by processes or formulas of general apportionment prescribed by the Secretary. Gains, profits, and income—
(1)
from services rendered partly within and partly without the United States,
(2)
from the sale or exchange of inventory property (within the meaning of section 865(i)(1)) produced (in whole or in part) by the taxpayer within and sold or exchanged without the United States, or produced (in whole or in part) by the taxpayer without and sold or exchanged within the United States, or
(3)
derived from the purchase of inventory property (within the meaning of section 865(i)(1)) within a possession of the United States and its sale or exchange within the United States,
shall be treated as derived partly from sources within and partly from sources without the United States. Gains, profits, and income from the sale or exchange of inventory property described in paragraph (2) shall be allocated and apportioned between sources within and without the United States solely on the basis of the production activities with respect to the property.
(c)
Source rule for certain transportation income
(1)
Transportation beginning and ending in the United States
(2)
Other transportation having United States connection
(A)
In general
50 percent of all transportation income attributable to transportation which—
(i)
is not described in paragraph (1), and
(ii)
begins or ends in the United States,
shall be treated as from sources in the United States.
(B)
Special rule for personal service income
Subparagraph (A) shall not apply to any transportation income which is income derived from personal services performed by the taxpayer, unless such income is attributable to transportation which—
(i)
begins in the United States and ends in a possession of the United States, or
(ii)
begins in a possession of the United States and ends in the United States.
In the case of transportation income derived from, or in connection with, a vessel, this subparagraph shall only apply if the taxpayer is a citizen or resident alien.
(3)
Transportation income
For purposes of this subsection, the term “transportation income” means any income derived from, or in connection with—
(A)
the use (or hiring or leasing for use) of a vessel or aircraft, or
(B)
the performance of services directly related to the use of a vessel or aircraft.
For purposes of the preceding sentence, the term “vessel or aircraft” includes any container used in connection with a vessel or aircraft.
([Aug. 16, 1954, ch. 736], [68A Stat. 277]; [Pub. L. 94–455, title XIX], §§ 1901(b)(26)(C), (D), 1906(b)(13)(A), Oct. 4, 1976, [90 Stat. 1798], 1799, 1834; [Pub. L. 98–369, div. A, title I, § 124(a)], July 18, 1984, [98 Stat. 646]; [Pub. L. 99–514, title XII], §§ 1211(b)(1)(A), 1212(a), (e), 1213(a), Oct. 22, 1986, [100 Stat. 2536], 2539, 2540; [Pub. L. 100–647, title I, § 1012(e)(3)(A)], (f), Nov. 10, 1988, [102 Stat. 3500]; [Pub. L. 101–239, title VII, § 7811(i)(2)], Dec. 19, 1989, [103 Stat. 2409]; [Pub. L. 105–34, title XI, § 1174(a)(2)], Aug. 5, 1997, [111 Stat. 989]; [Pub. L. 115–97, title I, § 14303(a)], Dec. 22, 2017, [131 Stat. 2225].)