Substantial Presence Test

How to handle a J-1 scholar hitting SPT mid-year (and why the China treaty saving clause matters)

14 min read · By the TaxCalc University team

Every university tax compliance officer eventually hits this case. A J-1 research scholar from China or India arrived three years ago. The payroll office has been treating them as a nonresident alien (NRA) the whole time. Then, mid-semester, someone notices the scholar has been physically present in the US for over 300 days this year — plus 300 the year before. A quick Substantial Presence Test calculation confirms it: the scholar is technically a US resident alien for tax purposes now.

The default move at most universities is to flip the scholar to W-2 payroll processing, start applying graduated federal withholding, and stop reporting their stipend on Form 1042-S. For most countries, that's the correct response. For China and a handful of other treaty countries, it's wrong, and it costs the scholar money they were legally entitled to keep.

This article walks through the exact workflow, the IRC and treaty sections you'll need to cite, and the saving-clause exception that trips up most tax tools (including some of the major commercial platforms).

The scenario

Meet Wei Zhang, a Chinese citizen on a J-1 Research Scholar visa. Wei entered the US on August 15, 2020, to work on a five-year research project at a large R1 university. Her annual stipend from the research assistantship is $25,000.

For her first two calendar years in the US (2020 and 2021), Wei was an "exempt individual" under IRC §7701(b)(5). Her days in the US do not count toward the Substantial Presence Test during that period. Starting in 2022, her days start counting.

The university payroll office correctly treated Wei as a nonresident alien from 2020 through 2024, reporting her stipend on Form 1042-S with income code 19 (compensation for teaching/research), applying 0% withholding under the US-China tax treaty Article 20, and issuing her a W-8BEN each time the treaty claim renewed.

Now it's 2026. Wei is in her sixth calendar year in the US. Let's run the SPT.

Running the Substantial Presence Test

The Substantial Presence Test (SPT) under IRC §7701(b)(3) uses a weighted-day formula across three years:

Days in current year × 1 + Days in prior year × 1/3 + Days in year before that × 1/6

If the weighted total is 183 or more, and the person was present at least 31 days in the current year, they meet SPT and are treated as a US resident for tax purposes for that year.

For Wei in 2026:

420 is well above the 183 threshold. Wei passes SPT for 2026 and is technically a US resident alien for the entire tax year.

At this point, the reflexive move at most universities is: "She's now a resident alien. Move her to W-2 payroll. Withhold at graduated rates. Stop issuing 1042-S." That is the wrong move for a Chinese treaty claimant.

The saving clause and its exceptions

Nearly every US tax treaty contains a saving clause. The saving clause preserves the United States' right to tax its own citizens and residents as if the treaty did not exist. In effect, it says: "Once you become a US resident for tax purposes, the treaty no longer shields you from US tax."

This is why the default move at most universities is correct for most countries. A French researcher who passes SPT loses their treaty benefits because the France-US treaty's saving clause pulls them back into the full US tax system.

But a handful of US tax treaties — including China, India, South Korea, and a few others — include a saving-clause exception specifically for students and trainees. The exception says, roughly: "Even if the individual becomes a US resident for tax purposes, the student/trainee exemption in Article 20 continues to apply."

For the US-China treaty, the relevant language is in the Protocol accompanying Article 20. The Protocol explicitly lists Article 20 in the list of provisions whose benefits are preserved notwithstanding the saving clause. IRS Publication 901 (US Tax Treaties) confirms this in its China entry.

The practical consequence: Wei's $25,000 research stipend remains exempt from federal income tax under Article 20 of the US-China treaty even though she has become a US resident alien under SPT. The university should continue to:

The common mistake

Here is where most university tax offices go wrong, and what the common commercial tools miss:

The standard NRA compliance platforms check whether a person is a nonresident or a resident alien. If they're a resident, the platform defaults to normal employee payroll processing. There is no built-in check for the China (or India, or South Korea) saving-clause exception, because those exceptions are in the treaty Protocol — a separate document from the treaty itself — and require cross-referencing.

The typical failure pattern looks like this:

  1. The payroll office runs their quarterly compliance review.
  2. They discover Wei is now technically a US resident under SPT.
  3. They reflexively switch her from 1042-S reporting to W-2 payroll.
  4. Wei suddenly sees 20-25% federal withholding on a stipend that should be 0%.
  5. At tax time, Wei files her own 1040 claiming the treaty exemption and gets the withholding refunded — but not before a year of cash-flow damage and confused HR conversations.

In worse cases, the university doesn't file the amended 1042-S forms retroactively, which can create IRS reporting inconsistencies that trigger audit attention.

The correct workflow

Here is the step-by-step decision tree your tax compliance process should follow:

  1. Run the SPT calculation using all three years of weighted days, correctly applying the exempt individual period for J-1 scholars (2 calendar years) or F-1 students (5 calendar years).
  2. If SPT is met, determine the country of residence under the treaty. This is not always the same as the country of citizenship.
  3. Check the treaty's saving clause. Pull Article 1 (or the equivalent "scope" article) of the treaty and identify the saving clause.
  4. Check for saving-clause exceptions. Look for a paragraph in the saving clause that explicitly lists Article 20 (students/trainees) or Article 19 (teachers/researchers). In the China-US treaty, this is in the Protocol. In the India-US treaty, it is in Article 22. In the South Korea-US treaty, it is in Article 21.
  5. If Article 20 is preserved, continue reporting on Form 1042-S with the treaty exemption. Do not move the individual to W-2 payroll processing.
  6. Document the decision. Attach a memo to the payee file citing the IRC section (§7701(b)(3)), the treaty article, and the Pub 901 page.

Which treaties preserve Article 20 after residency?

This list is not exhaustive, and you should always confirm against the current version of each treaty, but the following treaties contain an exception to the saving clause that preserves student or researcher benefits even after the individual becomes a US resident alien:

For every other treaty country, the saving clause applies in full: once the person becomes a US resident alien, their treaty benefits for scholarship/research income end.

Why this matters financially

For Wei, the difference is roughly $5,000-$6,000 per year in withholding she shouldn't be paying. For the university, the difference is whether its 1042-S reporting is correct or whether it has to issue amended forms. For the payee-university relationship, the difference is whether Wei trusts that the finance office knows what it's doing.

Multiply this across every J-1 and F-1 student from China, India, and Korea at a large R1 research university, and the stakes add up. A university with 200 treaty-claiming Chinese students and scholars could be over-withholding $1 million per year on a systematic misreading of the saving clause.

How TaxCalc University handles this case

The entire decision tree above is encoded in TaxCalc's determination engine. When you create a payment for a J-1 scholar:

You can see this scenario run end-to-end in our interactive demo.

See this exact scenario solved in the live demo.

Interactive walkthrough of a J-1 scholar passing SPT in year 3 with full China treaty saving-clause analysis. No email gate.

See the demo →

Citations

IRC §7701(b)(3) — Substantial Presence Test
IRC §7701(b)(5) — Exempt individuals
US-China Income Tax Treaty, Art. 20 + Protocol
US-India Income Tax Treaty, Art. 21 + Art. 22
US-Korea Income Tax Treaty, Art. 21
IRS Publication 519 — US Tax Guide for Aliens
IRS Publication 901 — US Tax Treaties (see China, India, and Korea entries)