IRC 862: Foreign-Source Income Categories and Special Rules

Section 862 of the Internal Revenue Code defines which items of gross income count as foreign-source income for U.S. federal tax purposes, listing nine categories and directing you to subtract allocable deductions to reach foreign-source taxable income. That classification does most of its work in two places: it sets the ceiling on your foreign tax credit, and, for nonresident aliens and foreign corporations, it usually determines whether the United States can tax the income at all.

Where Section 862 Sits in the Sourcing Rules

Sections 861 through 865 form a single system for assigning a geographic source to every dollar of income. Section 861 identifies U.S.-source income. Section 862 identifies foreign-source income. Section 863 splits income earned partly inside and partly outside the country. Section 864 supplies definitions and expense-allocation rules. Section 865 sources most gains from the sale of personal property, generally based on the seller’s residence.1IRS. Income Sourcing Practice Unit

For several categories, Section 862 works as a mirror image of Section 861: foreign-source income is anything “other than” what Section 861 pulls into the U.S. bucket. Interest, dividends, underwriting income, and guarantee fees all follow this reciprocal pattern.2Legal Information Institute. 26 U.S.C. § 862 Other categories, like compensation and rentals, are sourced independently by geography, meaning where the work happens or where the property sits.

The Nine Categories of Foreign-Source Income

Section 862(a) enumerates the following categories.2Legal Information Institute. 26 U.S.C. § 8623IRS. Sourcing of Income Practice Unit

Interest

Interest is foreign-source when the obligor is a foreign resident or a foreign corporation. The place of payment, the currency, and the lender’s location do not matter; the debtor’s residence controls. Two exceptions are worth knowing. Interest on deposits with a foreign branch of a U.S. bank is treated as foreign-source, even though the parent is domestic. And interest paid by a U.S. branch of a foreign corporation is recharacterized as U.S.-source under Section 884(f)(1)(A), as if a domestic corporation had paid it.

Dividends

Dividends are generally foreign-source when the paying corporation is incorporated outside the United States. Under Section 861(a)(2)(B), part of a foreign corporation’s dividends can be recharacterized as U.S.-source if at least 25 percent of its gross income over the preceding three years was effectively connected with a U.S. trade or business. The U.S.-source portion is the ratio of effectively connected income to total gross income.

Compensation for Personal Services

Wages, salaries, and fees are sourced to where the work is physically performed. The employer’s location and the place of payment are irrelevant. Services performed partly inside and partly outside the United States must be apportioned, typically on a time basis for employees.

Rentals and Royalties

Rental income is foreign-source when the property is located outside the United States. Royalties on patents, copyrights, trademarks, trade secrets, franchises, and similar intangibles are foreign-source when the rights are used outside the United States. The nationality or residence of the payer or payee does not change the answer.

Gains From Real Property

Gain from the sale or exchange of real property located outside the United States is foreign-source.

Inventory Property

Gain from inventory purchased in the United States and sold outside the United States is foreign-source. The Tax Reform Act of 1986 narrowed this category from “personal property” to “inventory property” as defined in Section 865(i)(1). For inventory that is both produced and sold across borders, Section 863(b), as amended by the Tax Cuts and Jobs Act for tax years after 2017, requires sourcing based solely on production activities, not on where title passes.

Underwriting Income

Insurance underwriting income not sourced within the United States under Section 861(a)(7) is foreign-source.

U.S. Virgin Islands Real Property

Gain from disposing of a U.S. real property interest located in the U.S. Virgin Islands is treated as foreign-source. Congress added this provision in 1981.

Guarantee Fees

Amounts received from a foreign person for guaranteeing that person’s debt are foreign-source, unless Section 861(a)(9) pulls them back to U.S.-source. This category was added in 2010 and applies to guarantees issued after September 27, 2010.

From Gross Income to Taxable Income: Section 862(b)

Once you have identified gross income as foreign-source, Section 862(b) requires you to subtract deductions to reach foreign-source taxable income. Two kinds of deductions come off.4Office of the Law Revision Counsel. 26 U.S.C. § 862 First, expenses, losses, and other deductions that are properly apportioned or allocated to foreign-source gross income. Second, a ratable share of any deductions that cannot be tied to a specific item or class of income. For individuals who take the standard deduction, that deduction is treated as unallocable and apportioned ratably.

The mechanics live in Treasury Regulation Section 1.861-8 and its companion regulations at Sections 1.861-9 through 1.861-17 and 1.861-20. You start by identifying each deduction’s factual relationship to a class of gross income, then apportion the deduction between foreign-source and U.S.-source income within that class.5eCFR. 26 CFR § 1.861-8 Specific rules govern interest expense, research and experimental expenditures, state and local income taxes, and charitable contributions, among other categories.6IRS. Allocation and Apportionment of Deductions

Why the Classification Matters

The Foreign Tax Credit Limit

The biggest reason to get Section 862 right is the foreign tax credit. Under Section 904(a), the credit for taxes paid to foreign governments is capped by the ratio of foreign-source taxable income to total worldwide taxable income, multiplied by your pre-credit U.S. tax.7Legal Information Institute. 26 U.S.C. § 904 The formula is total U.S. tax times foreign-source taxable income divided by entire taxable income.8IRS. FTC Limitation Computation Practice Unit

Understate your foreign-source income and the limit shrinks, so you end up double-paying tax on cross-border earnings. Overstate it and the IRS may find the credit was overstated.3IRS. Sourcing of Income Practice Unit The limit is also applied separately for distinct baskets, including general category, passive category, foreign branch, and global intangible low-taxed income, so sourcing has to be granular.

Taxation of Foreign Persons

For nonresident aliens and foreign corporations, source decides whether the United States can tax the income in the first place. The U.S. generally taxes foreign persons only on U.S.-source income that is either effectively connected with a U.S. trade or business or is fixed or determinable annual or periodical income subject to 30 percent withholding. Income properly classified as foreign-source under Section 862 typically escapes U.S. tax entirely.1IRS. Income Sourcing Practice Unit

Boundaries and Traps Worth Knowing

Personal Property Gains Go Through Section 865, Not 862

Gains from selling personal property (anything other than real property) are generally sourced under Section 865 based on the seller’s tax home. A U.S. resident’s gain is presumptively U.S.-source; a nonresident’s is presumptively foreign-source.9Legal Information Institute. 26 U.S.C. § 865 Inventory is the exception and stays under Sections 861(a)(6), 862(a)(6), and 863.

Two provisions let a U.S. resident treat personal property gains as foreign-source. Section 865(e)(1) allows income attributable to a foreign office or fixed place of business to be sourced abroad, but only if the taxpayer actually pays foreign income tax equal to at least 10 percent of the sale income. Section 865(g)(2) treats a U.S. citizen or resident alien who pays foreign tax of at least 10 percent on a personal property gain as a nonresident for that transaction, sourcing the gain outside the United States.10Office of the Law Revision Counsel. 26 U.S.C. § 865

The De Minimis Rule for Services

A nonresident alien temporarily present in the United States can treat compensation as foreign-source, despite the U.S. work location, if three conditions are met: the individual is in the country for 90 days or fewer during the tax year, earns no more than $3,000, and is paid by a foreign employer or by the foreign office of a U.S. employer.1IRS. Income Sourcing Practice Unit Nonqualified stock option income is apportioned between U.S. and foreign sources based on the relative months worked in each place between grant and vesting.

Substance, Not Labels: Boulez

The line between compensation for services and royalties can be contested, and the label the parties use will not save an incorrect classification. In Boulez v. Commissioner, 83 T.C. 584 (1984), CBS Records paid the conductor Pierre Boulez under a contract that called the payments “royalties” based on a percentage of record sales. Because Boulez did not own the master recordings and CBS controlled production, the Tax Court held the payments were compensation for personal services, not royalties.11vLex. Boulez v. Commissioner, 83 T.C. 584 The economic substance of the transaction picks the sourcing rule.

Branch Interest Under Section 884

Interest paid by a U.S. branch of a foreign corporation is not foreign-source. Section 884(f)(1)(A) treats it as if paid by a domestic corporation, making it U.S.-source and subject to withholding. Where interest allocated to the branch’s effectively connected income exceeds the branch interest actually paid, the excess is treated as paid by a hypothetical domestic subsidiary and taxed under Section 881(a).12GovInfo. 26 U.S.C. § 884

Cloud Transactions: A Recent Change

On January 14, 2025, the IRS published final regulations (TD 10022) classifying cloud transactions solely as the provision of services, dropping a prior framework that split them between services and leases of computing capacity. At the same time, proposed regulations (REG-107420-24) set out a three-factor test for determining where cloud services are performed, using personnel, tangible property, and intangible property factors.13Grant Thornton. IRS Provides Important Clarity for Cloud Transactions For cross-border cloud income, that combination determines whether the receipts fall under the foreign-source services rule of Section 862(a)(3) or the U.S.-source rule of Section 861(a)(3).