1042-S Income Codes: Categories, Withholding Rates, and Corrections

The 1042-S income codes are the two-digit numbers entered in Box 1 of Form 1042-S that classify each type of U.S. source income paid to a foreign person. The code you see on the form tells the IRS what kind of payment was made, and it drives the withholding rate in Box 3b, the treaty article that can reduce that rate, and how you report the income on a U.S. tax return. A separate 1042-S must be issued for each income type paid to the same recipient, so a foreign person receiving both dividends and royalties from the same payer will get two forms with two different codes.1Internal Revenue Service. Form 1042-S – Foreign Person’s U.S. Source Income Subject to Withholding

The codes fall into rough numerical clusters. Lower numbers cover passive investment income like interest, dividends, and capital gains. Middle numbers pick up royalties, pensions, scholarships, and compensation for services. Higher numbers handle specialized categories such as substitute payments and artist or athlete earnings. Picking the right code is the gateway to every reduced rate, because a withholding agent cannot apply a treaty benefit or statutory exemption without first identifying the income type correctly.

Interest Income Codes

Code 01 is the general code for interest paid by U.S. obligors. If you hold a U.S. bond or bank deposit and receive interest, this is the code the payer normally uses. The default withholding rate is 30%, and many tax treaties reduce it.2Internal Revenue Service. Withholding on Specific Income

Code 30 covers portfolio interest, which is entirely exempt from U.S. tax under Sections 871(h) and 881(c) of the Internal Revenue Code. The foreign owner generally cannot be a 10% shareholder of the borrower, and the interest must come from certain registered obligations. The exemption exists independently of any treaty.3eCFR. 26 CFR 1.871-14 – Rules Relating to Repeal of Tax on Interest of Nonresident Alien Individuals and Foreign Corporations Received From Certain Portfolio Debt Investments

Code 31 applies to interest earned by a foreign central bank of issue on U.S. government obligations or bank deposits. That income is exempt under Section 895, provided the bank is not using the funds in commercial banking activities.4Office of the Law Revision Counsel. 26 U.S. Code 895 – Income Derived by a Foreign Central Bank of Issue From Obligations of the United States or From Bank Deposits

The difference between Code 01 and Code 30 is the difference between 30% withholding and zero. A payer that defaults to Code 01 on what should be portfolio interest forces the recipient to file a U.S. return simply to recover the over-withholding.

Dividend Income Codes

Code 06 is the standard code for dividends paid by a U.S. corporation. The 30% default rate applies unless a treaty provides a lower rate, and many treaties reduce it to 15% for portfolio investors and 5% for substantial corporate shareholders.2Internal Revenue Service. Withholding on Specific Income

Code 07 covers dividends qualifying for a direct dividend rate. It generally applies when a foreign corporate shareholder owns a significant percentage of the paying company and the applicable treaty provides a reduced rate at that ownership level.

Code 40 handles substitute payments, including payments made in lieu of dividends. These arise in securities lending and repurchase agreements, where one party compensates the other for dividend income the other would have received if it still held the stock. Substitute payments carry the same withholding obligations as actual dividends.5Internal Revenue Service. Instructions for Form 1042-S

Royalty and Real Property Income Codes

Royalty payments have their own cluster of codes because treaties often treat different types of intellectual property differently. Picking the wrong royalty code can mean applying a 10% treaty rate when the correct rate is zero, or the reverse.

  • Code 10: industrial royalties, meaning payments for the use of patents, trademarks, trade secrets, and similar industrial property.
  • Code 11: motion picture or television copyright royalties.
  • Code 12: other royalties not covered by Codes 10 or 11.
  • Code 14: real property income and natural resources royalties. Rental income from U.S. real estate paid to a foreign person falls here, along with royalties from mining, oil, or timber rights.1Internal Revenue Service. Form 1042-S – Foreign Person’s U.S. Source Income Subject to Withholding

Code 14 intersects with FIRPTA rules when real property gains are involved, so the payer needs to be clear on whether the payment is rental income (Code 14) or a gain on disposal, which is reported differently.

Compensation and Services Codes

Income from personal services is broken into four codes based on the nature of the work. A footnote in the IRS instructions adds an override: if any compensation that would otherwise fall under Codes 17 through 20 is directly attributable to the recipient’s work as an artist or athlete, the withholding agent must use Code 42 or 43 instead.6Internal Revenue Service. Instructions for Form 1042-S

  • Code 17: compensation for independent personal services, covering freelancers, consultants, and self-employed individuals.
  • Code 18: compensation for dependent personal services, meaning wages, salaries, and other employee pay.
  • Code 19: compensation for teaching, used when a foreign teacher or researcher claims a treaty exemption tied to educational activities.
  • Code 20: compensation during studying and training, used when foreign students or trainees claim treaty benefits on stipends, allowances, or wages earned in a training program.

The line between Codes 19 and 20 matters because the treaty provisions for teachers and students typically differ in duration and dollar limits. A teacher might qualify for a two- or three-year exemption under one treaty article, while a student’s exemption may be capped at a specific annual amount under a different article.

Code 42 applies to earnings as an artist or athlete when there is no central withholding agreement in place. Code 43 applies when a central withholding agreement exists. Both are generally withheld at 30% unless a treaty applies.6Internal Revenue Service. Instructions for Form 1042-S

Pensions, Scholarships, and Capital Gains Codes

Several codes outside the interest, dividend, royalty, and compensation clusters appear regularly on 1042-S forms.

  • Code 15: pensions, annuities, alimony, and insurance premiums. This is the broad code for retirement-type distributions to foreign persons.
  • Code 16: scholarship or fellowship grants. The default withholding rate on the taxable portion of a grant is 14% when paid to a nonresident alien on an F, J, M, or Q visa, rather than the standard 30%.7Internal Revenue Service. Federal Income Tax Withholding and Reporting on Other Kinds of U.S. Source Income Paid to Nonresident Aliens
  • Code 09: capital gains, including gains on disposal of timber, coal, or iron ore with a retained economic interest, and gains from contingent payments on patent sales.
  • Code 24: capital gains distributions from a qualified investment entity, such as a real estate investment trust.
  • Code 36: capital gains distributions paid by mutual funds or other regulated investment companies.

For 2026, three new income codes remain optional rather than required: Code 59 for consent fees, Code 60 for loan syndication fees, and Code 61 for settlement payments.5Internal Revenue Service. Instructions for Form 1042-S

How the Code Drives the Withholding Rate

The 30% default withholding rate on U.S. source FDAP income is the starting point for every payment to a foreign person. The income code identifies the payment type, and the withholding agent then checks two things: whether a statutory exemption applies (such as the portfolio interest exemption tied to Code 30) and whether the recipient’s country of residence has a treaty that reduces the rate for that income type.2Internal Revenue Service. Withholding on Specific Income

Treaty reductions are not automatic. The recipient must give the withholding agent a valid Form W-8BEN (for individuals) or W-8BEN-E (for entities) that claims the specific treaty article and certifies the country of residence.8Internal Revenue Service. About Form W-8 BEN, Certificate of Foreign Status of Beneficial Owner for United States Tax Withholding and Reporting (Individuals) Without a valid W-8 on file, the agent must apply the full 30% rate regardless of what a treaty would otherwise allow. This is where compliance most often breaks down in practice: the recipient qualifies for a lower rate but never submits the paperwork, and by the time they realize it, they are filing a U.S. return just to recover the excess.

When income is effectively connected with a U.S. trade or business, the flat 30% rate does not apply. The income is taxed on a net basis at the graduated rates that apply to U.S. persons. To claim that treatment, the recipient provides Form W-8ECI. On the 1042-S, the agent uses the standard income code for the payment type but enters exemption code 01 (effectively connected income) in Box 3a to signal the different treatment.9Internal Revenue Service. Instructions for Form W-8ECI – Certificate of Foreign Person’s Claim That Income Is Effectively Connected With the Conduct of a Trade or Business in the United States

Box 3a carries a Chapter 3 exemption code that explains why a reduced rate or zero rate was applied. The most common ones are:

  • Code 01: effectively connected income.
  • Code 02: exempt or reduced under the Internal Revenue Code, used for statutory exemptions such as portfolio interest.
  • Code 04: exempt or reduced under a tax treaty.
  • Code 12: payee subjected to Chapter 4 withholding.
  • Code 24: paid to a foreign government or international organization exempt under Section 892.

A withholding agent must enter both a Chapter 3 and a Chapter 4 exemption code on every 1042-S, regardless of the payment type.6Internal Revenue Service. Instructions for Form 1042-S Leaving either box blank when a reduced rate is claimed is an error that can trigger penalties.

What To Do If the Income Code on Your 1042-S Is Wrong

If you are a foreign person who received a 1042-S with the wrong income code, wrong withholding rate, or wrong dollar amounts, contact the withholding agent first and ask for a corrected form. Withholding agents can file corrected 1042-S forms with the IRS and provide you an updated copy.

If the agent will not cooperate or cannot be reached, you can still file Form 1040-NR, the nonresident alien income tax return, to report the correct income and claim credit for the tax actually withheld. Attach the 1042-S you received even if it contains errors, because that is how the IRS matches your return to the withholding reported in its system. The statute of limitations for claiming a refund of over-withheld amounts is three years from the date the 1042-S was issued, so delaying too long means forfeiting the refund permanently.

You must obtain an Individual Taxpayer Identification Number before filing Form 1040-NR if you do not already have one. The ITIN application on Form W-7 can be submitted at the same time as the return.