7.1 Resident vs. Nonresident Alien Status, Visas & Treaty Withholding
Key Takeaways
- The substantial presence test is met with 31 days in the current year and 183 weighted days counting current-year days in full, prior-year days at one-third, and second-prior-year days at one-sixth.
- F, J, M, and Q students are exempt individuals for five calendar years and J or Q teachers and trainees for two of the prior six years, so their days do not count toward substantial presence.
- A nonresident alien completing Form W-4 must select Single or Married filing separately, may not claim exemption from withholding, and writes NRA in the space below Step 4(c); the employer then adds the Publication 15-T nonresident alien amount to wages before using the withholding tables.
- Form 8233 claims a treaty exemption from withholding on compensation for personal services; Form W-8BEN covers non-service income and cannot be used for wages.
- Treaty-exempt and other reportable nonresident alien payments go on Form 1042-S with Form 1042 and Form 1042-T, due March 15, not on Form W-2.
Resident vs. Nonresident Alien Status, Visas & Treaty Withholding
The Global sub-topic of the CPP content outline carries sixteen separate knowledge statements, more than any other lettered item on the outline, and every one of them depends on a single upstream determination: is this worker a resident alien or a nonresident alien for U.S. tax purposes? Immigration status and tax residency are different questions decided under different bodies of law. A person can be lawfully present and still be a nonresident alien; a person can be out of status and still be a resident alien.
1. The Two Residency Tests
A foreign national is a resident alien for a calendar year if they satisfy either the green card test or the substantial presence test.
The Green Card Test
An individual who has been lawfully admitted for permanent residence at any time during the calendar year is a resident alien from the first day of that presence, and remains one until the status is formally rescinded or judicially or administratively abandoned.
The Substantial Presence Test
+-----------------------------------------------------------------------------+
| SUBSTANTIAL PRESENCE TEST (IRC Sec. 7701(b)) |
| |
| BOTH conditions must be satisfied: |
| |
| 1. At least 31 days of physical presence in the CURRENT calendar year; |
| AND |
| 2. A 3-year weighted total of at least 183 days: |
| |
| (Current-year days x 1) |
| + (First prior-year days x 1/3) |
| + (Second prior-year days x 1/6) |
| ------------------------------------ |
| = weighted total; 183 or more means RESIDENT ALIEN |
+-----------------------------------------------------------------------------+
Worked example. An engineer was present 130 days in 2026, 180 days in 2025, and 180 days in 2024.
- Current year: 130 × 1 = 130.0
- First prior year: 180 × 1/3 = 60.0
- Second prior year: 180 × 1/6 = 30.0
- Weighted total: 220.0 days. The 31-day current-year condition is met and 220 exceeds 183, so the engineer is a resident alien for 2026 and is taxed on worldwide income exactly like a U.S. citizen.
Exempt Individuals: Days That Do Not Count
An exempt individual is not exempt from tax; they are exempt from counting days toward substantial presence.
| Visa Category | Exempt Individual Period |
|---|---|
| F-1, M-1, J-1, Q-1 students | Any part of 5 calendar years (lifetime, cumulative) |
| J-1 and Q-1 teachers, trainees, researchers | 2 of the preceding 6 calendar years |
| Foreign-government-related individuals (A and G visas) | Indefinite while in that status |
| Professional athletes competing in a charitable sports event | Days of competition |
A calendar year counts in full even if the individual held the status for a single day. The exempt individual must file Form 8843 to substantiate the exclusion. H-1B, L-1, TN, O-1, and E visa holders are never exempt individuals, so they typically become resident aliens during their first or second year in the United States.
2. Withholding on Nonresident Alien Wages
Nonresident alien wages for services performed inside the United States are U.S.-source income subject to graduated withholding, but with three modifications set out in IRS Notice 1392 and Publication 15-T:
- The employee must check Single or Married filing separately in Step 1(c) of Form W-4, regardless of actual marital status. (Residents of Canada, Mexico, South Korea, and students and business apprentices from India under the applicable treaty article may claim additional adjustments.)
- The employee may not claim exemption from withholding on Form W-4.
- The employee writes "Nonresident Alien" or "NRA" in the space below Step 4(c).
- Before entering the withholding tables, the employer adds the annual nonresident alien amount from the Publication 15-T table for the current year to the employee's taxable wages. This offsets the standard deduction that is built into the tables but that a nonresident alien is not entitled to claim.
[!IMPORTANT] The nonresident alien add-back is a withholding-computation adjustment only. It is not paid to the employee, is not reported as wages, and never appears in Form W-2 Box 1. Its size changes each year, so verify it against the current Publication 15-T rather than carrying it forward.
FICA and FUTA on Nonresident Aliens
| Population | Social Security & Medicare | FUTA |
|---|---|---|
| Nonresident alien F-1, J-1, M-1, Q-1 performing services allowed by their status, while still a nonresident alien | Exempt under IRC § 3121(b)(19) | Exempt |
| Nonresident alien on H-1B, L-1, TN, O-1 | Subject | Subject |
| Resident alien in any status | Subject | Subject |
| Nonresident alien performing services entirely outside the United States | Not U.S. wages at all | Not subject |
| H-2A agricultural worker | Exempt from FICA; no FITW unless voluntarily agreed | Exempt |
The § 3121(b)(19) exemption is lost the moment the student becomes a resident alien under the substantial presence test -- typically at the start of the sixth calendar year -- which is why the exempt-individual clock must be tracked in the master file and not in a spreadsheet.
3. Income Tax Treaty Claims
The United States maintains income tax treaties with roughly seventy countries. For payroll, the relevant articles are those covering dependent personal services, teachers and researchers, and students and trainees. Treaty benefits are not automatic; the employee must claim them on the correct form.
| Form | Used For | Key Mechanics |
|---|---|---|
| Form 8233 | Exemption from withholding on compensation for personal services of a nonresident alien | Requires a U.S. TIN; employer must forward a copy to the IRS and wait 10 days for objection before honoring it; must be renewed annually |
| Form W-8BEN | Non-service income (royalties, scholarships beyond tuition, interest) | Cannot be used for wages; generally valid three calendar years after the year signed |
| Form W-9 | U.S. persons, including resident aliens | Used with the saving clause exception for a resident alien claiming a treaty student article |
| Form 673 | U.S. citizens or resident aliens abroad claiming the § 911 exclusions | Lets the employer stop FITW on excludable foreign earned income |
Most treaties contain a saving clause that lets the United States tax its own residents as if the treaty had not entered into force. Exceptions to the saving clause -- notably for students, teachers, and trainees -- are what allow a foreign national who has become a resident alien to keep claiming a treaty article; the claim is then made on Form W-9 with an attached treaty statement rather than on Form 8233.
Treaty-exempt wages are not reported on Form W-2. They are reported on Form 1042-S using the appropriate income and exemption codes. When an employee's treaty article caps the exemption at a dollar amount, wages up to the cap go on Form 1042-S and wages above the cap go on Form W-2 for the same employee in the same year.
4. The Form 1042 Series
| Form | Purpose | Due Date |
|---|---|---|
| Form 1042-S | Foreign Person's U.S. Source Income Subject to Withholding -- one per recipient per income/exemption code | March 15 to the recipient and the IRS |
| Form 1042 | Annual withholding tax return summarizing all 1042-S amounts and deposits | March 15 |
| Form 1042-T | Paper transmittal accompanying Forms 1042-S | March 15 |
Withholding on amounts reported on Form 1042-S is deposited under the same-day, monthly, or quarter-monthly rules of Treas. Reg. § 1.6302-2, which are not the Form 941 lookback rules -- an easy place to build the wrong deposit calendar. The default withholding rate on U.S.-source fixed or determinable annual or periodical income paid to a nonresident alien is 30% unless a treaty or a statutory exemption reduces it. Chapter 4 (FATCA) reporting shares the same form.
A foreign national on an H-1B visa was physically present in the United States for 120 days in 2026, 150 days in 2025, and 240 days in 2024. What is this individual's 2026 U.S. tax residency status?
A university employs an F-1 student from Brazil who is in her third calendar year in the United States on that status and works on campus. How should payroll treat her wages?
A nonresident alien researcher submits a valid Form 8233 claiming a treaty exemption capped at $5,000 for the calendar year. The researcher earns $18,000 in wages that year. How must the employer report the compensation?