10 min readUpdated March 12, 2026H1B TaxFile Editorial

Key Takeaways

  • Form 1042-S reports income paid to nonresident aliens subject to Chapter 3 withholding
  • Common income codes: 15 (pensions), 16 (scholarships), 17 (independent services), 20 (teaching)
  • Exemption codes indicate the basis for reduced withholding (e.g., tax treaty)
  • All 1042-S income must be reported on Form 1040-NR even if no additional tax is owed
  • If your 1042-S contains errors, contact the withholding agent to issue a corrected form

File your H-1B return — $49.99

Start free

Understanding Your 1042-S Form: Complete Guide

If you are an international student or scholar in the United States, you may receive Form 1042-S instead of (or in addition to) a W-2. This form reports income paid to nonresident aliens that is subject to withholding under Chapter 3 of the Internal Revenue Code. Understanding the codes and amounts on this form is essential for filing an accurate tax return.

What Is Form 1042-S and Why Did You Receive It?

Form 1042-S, “Foreign Person's U.S. Source Income Subject to Withholding,” is issued by a withholding agent (typically your university, employer, or financial institution) to report payments made to nonresident aliens. Common reasons you might receive a 1042-S:

  • Scholarship or fellowship payments: Your university issues 1042-S for taxable portions of scholarships or fellowships paid to nonresident alien students.
  • Treaty-exempt income: Even if no tax was withheld due to a treaty exemption, the withholding agent must still report the payment on Form 1042-S.
  • Other U.S.-source income: Certain types of income paid to nonresident aliens, such as compensation for independent services, royalties, or prizes, are reported on 1042-S.

You should receive your 1042-S by March 15 following the tax year (not January 31 like a W-2). If you have not received it by then, contact the withholding agent.

Key Fields: Income Codes, Exemption Codes, and Tax Rates

Form 1042-S contains several coded fields that determine how the income is classified and taxed:

  • Box 1 — Income Code: A two-digit number identifying the type of income (e.g., 16 for scholarships, 20 for compensation for teaching).
  • Box 2 — Gross Income: The total amount paid to you before any withholding.
  • Box 3a — Exemption Code: Indicates the basis for any reduced withholding (e.g., 04 for tax treaty, 06 for scholarship under IRC §117).
  • Box 4a — Exemption Code (from withholding): The code indicating why withholding was reduced or eliminated.
  • Box 7 — Federal Tax Withheld: The amount of U.S. tax actually withheld from the payment.
  • Box 7a — Tax Rate: The withholding rate applied (e.g., 14% for scholarships, 30% default, or 0% under treaty).

Common Income Codes Explained (15, 16, 17, 18, 19, 20)

CodeIncome TypeDefault RateCommon For
15Pensions and annuities30%Retirement distributions
16Scholarship or fellowship grants14%F-1 students with taxable scholarships
17Independent personal services30%Freelance or consulting work
18Dependent personal services (wages)Graduated ratesEmployment wages (less common on 1042-S)
19Compensation for teachingGraduated ratesTeaching assistants, lecturers
20Compensation during studying/trainingGraduated ratesStudent employment, research assistants

Income code 16 is the most common for F-1 students, as it covers taxable scholarship and fellowship income. If you are a teaching or research assistant, you may also see codes 19 or 20.

How to Report 1042-S Income on Form 1040-NR

All income reported on Form 1042-S must be included on your Form 1040-NR. Here is how to report it:

  1. Identify the income type using the income code. This determines which line of Form 1040-NR you report it on.
  2. Report gross income (Box 2) on the appropriate line. For scholarship income (code 16), this goes on the scholarship/grant income line. For wages (codes 18, 19, 20), this goes on the wages line.
  3. Claim treaty benefits if applicable. If you have a tax treaty exemption, report the exempt amount on Schedule OI (Other Information) and deduct it from your taxable income.
  4. Claim the tax withheld (Box 7) as a credit on your Form 1040-NR. This reduces your tax liability or generates a refund.

Do not double-report W-2 and 1042-S income

If your university reported the same income on both a W-2 and a 1042-S (which sometimes happens with teaching assistant compensation), be careful not to report it twice. Compare the amounts on both forms and ensure you are reporting the total income only once.

1042-S vs W-2: Understanding the Difference

Students often receive both forms and wonder how they differ:

  • W-2 is used for wages paid to employees, regardless of their immigration status. If you work on campus, on CPT, or on OPT, your employer issues a W-2. Federal income tax is withheld at graduated rates based on your W-4.
  • 1042-S is used for payments subject to Chapter 3 withholding, typically scholarships, fellowships, and certain other payments to nonresident aliens. Withholding is at a flat rate (often 14% for scholarships or 0% under a treaty).

You can receive both forms in the same year. For example, an F-1 student who works as a teaching assistant (W-2) and receives a taxable fellowship (1042-S) would have both. Report each on your Form 1040-NR on the appropriate line.

What to Do If Your 1042-S Is Wrong

Errors on Form 1042-S are not uncommon. Common mistakes include wrong income codes, incorrect tax rates, wrong exemption codes, or incorrect amounts. If you believe your 1042-S is incorrect:

  1. Contact the withholding agent (usually your university's payroll or tax office) and explain the error.
  2. Request a corrected Form 1042-S. The corrected version will be marked as “Amended” in Box 10.
  3. Do not file your tax return until you receive the corrected form, if possible. Filing with incorrect information may trigger IRS notices.
  4. If you cannot get a correction in time, file based on your records and attach a statement explaining the discrepancy.

Disclaimer: This guide is for educational purposes only and does not constitute tax or legal advice. Consult a qualified tax professional for advice specific to your situation.

Frequently Asked Questions

Skip the complexity. We handle all of this for you.

H1B TaxFile supports every form in this guide — FATCA, PFIC, FTC, RSU basis correction, and 22 more H-1B-specific features. Flat price, no surprises.

No credit card to start Printable PDF in 15 minutes 22 H-1B-specific features
File your return — $49.99

H1B TaxFile Team

Written by the H1B TaxFile editorial team — tax professionals and software engineers who specialize in U.S. federal tax filing for H-1B visa holders, F-1 students, and nonresident aliens.

Reviewed by a licensed CPA with international tax experience.

Disclaimer: This guide is for educational purposes only and does not constitute tax or legal advice. Tax laws are complex and change frequently. Consult a qualified tax professional for advice specific to your situation.

Recommended Reading