Insights / Immigration Tax

Substantial Presence Test for Immigrants: When H-1B, L-1, and Students Become U.S. Tax Residents

Visa status ≠tax residency. Self-check the 31+183 weighted Substantial Presence Test, Form 8840 closer connection, and student exempt days—Cary/RTP compliance planning.

Published By YCL CPA
substantial-presence-test-immigrants EN

Author: Chenchen Liu, CPA | YCL Tax, Accounting & Advisory

Bottom line

If you hold an H-1B, L-1, O-1, F-1, J-1, or similar status—or you are landing in Cary / Research Triangle Park (RTP) for tech or university work—visa status is not the same as U.S. tax residency. Most work-visa holders are tested under the Substantial Presence Test (SPT): at least 31 days in the United States in the current year, plus a weighted 183-day look-back over three years. Meeting SPT generally means you are a U.S. tax resident and file Form 1040 on worldwide income. Students and certain scholars may be “exempt individuals” whose days are counted differently and who often must file Form 8843. Before you arrive—or before filing season—map your calendar days, exempt-individual rules, and whether a closer-connection exception (Form 8840) could apply. This is compliance planning, not a promise of any tax result.

Background

IRS Publication 519, U.S. Tax Guide for Aliens, mainly uses two tests for people who are not U.S. citizens: the green card test and the substantial presence test. Immigration status answers “may I stay and work?” Tax residency answers “do I file this year as a resident or a nonresident?” Those answers often diverge. An H-1B engineer in RTP is not automatically a nonresident just because they lack a green card. An F-1 student who has aged out of exempt-individual years may still be excluding days incorrectly and choosing the wrong return.

For Cary / RTP newcomers, friction usually shows up as: I-94 travel history that does not match airline calendars; confusion about short trips home; mixing student exempt-day rules with work-visa day rules; or assuming “I was under 183 days this year, so I am safe” without running the weighted formula. The IRS also provides a closer connection exception: even if you mathematically meet SPT, you may still be treated as a nonresident alien if you were actually present fewer than 183 days in the current year and meet the other conditions, typically by filing Form 8840. This article explains how SPT works, which days count, and why visa type ≠tax residency—for education and compliance planning only. It is not immigration, legal, or investment advice.

What changed / options compared

Note: SPT itself is a long-standing rule. The table below contrasts common misconceptions with compliance framing, not a legislative old-vs-new chart. Always verify against current Pub. 519, the IRS SPT page, and form instructions.

1. Who is tested

- Common misconception: Only green-card holders or citizens are tax residents; H-1B / L-1 “temporary workers” are automatically nonresidents.

- Compliance framing: Without a green card, many people become residents under SPT (or treaty residency rules). Days on work visas generally count toward SPT.

2. Current-year threshold

- Common misconception: Fewer than 183 days in the United States this year always means nonresident.

- Compliance framing: You must be present at least 31 days in the current year and have a weighted total of 183 days for the current year + 1/3 of last year + 1/6 of the year before that.

3. Days of presence

- Common misconception: Only workdays count; any transit or short entry is ignored.

- Compliance framing: You are generally present on any day you are physically in the United States (50 states and D.C.) at any time. Limited exceptions exist (e.g., certain sub-24-hour transit, regular Canada/Mexico commuting, foreign-vessel crew, certain medical conditions that arise while in the U.S.)—see Pub. 519.

4. Exempt individual

- Common misconception: H-1B holders can exclude SPT days the same way students do.

- Compliance framing: “Exempt individual” mainly covers certain A/G, J/Q teachers/trainees, F/J/M/Q students, and athletes in charitable events. H-1B / L-1 / O-1 days usually count. Students and similar categories who exclude days often still must file Form 8843.

5. Visa ≠return type

- Common misconception: Nonimmigrant I-94 ⇒ always Form 1040-NR.

- Compliance framing: After you meet SPT (and no closer-connection or other exception applies), you generally file Form 1040 as a resident. Otherwise, Form 1040-NR is often the path. Dual-status years have separate procedures (see series article #2).

6. Closer connection — Form 8840

- Common misconception: “My family and home are in China, so I can always file as a nonresident.”

- Compliance framing: Statutory conditions apply (including, typically, fewer than 183 actual days of presence in the current year and a closer connection to a foreign country). File Form 8840 when eligible. Filing as a nonresident without meeting the exception is a compliance risk, not a planning shortcut.

7. North Carolina state tax

- Common misconception: Federal nonresident automatically means NC nonresident.

- Compliance framing: NC domicile / part-year rules are separate. After landing in Cary / Wake / Durham / Orange, review D-400 and Schedule PN on their own track (see the NC residency article in this series).

Self-check: are you affected?

1. First H-1B / L-1 / O-1 year in Cary, RTP, or Triangle universities — Build a three-year U.S. day count before choosing Form 1040 vs 1040-NR.

2. F-1 / J-1 student or scholar nearing or past exempt-year limits — Confirm which calendar years still qualify for excluded days and whether Form 8843 is required.

3. Under 183 days this year, but prior years were long — Run the weighted formula; current-year totals alone are not enough.

4. Frequent China–U.S. travel — Reconcile I-94, passport stamps, and tickets so presence days are neither missed nor double-counted.

5. Relying on “ties to China” without Form 8840 analysis — Test whether you actually meet the closer-connection exception.

6. Employer W-4 / Notice 1392 treatment disagrees with your self-view — Bring visa history, day counts, and withholding setup to a CPA.

7. Arrival or departure year — You may be dual-status or considering a first-year choice; map residency start/end dates separately (series #2).

Simplified example (illustrative only)

Example — Cary tech H-1B with three years of travel

Assume Ms. Li was physically present in the United States about 120 days in each of 2024, 2025, and 2026, and she is not an exempt individual. For 2026 SPT:

- 2026: 120 days (all count)

- 2025: 120 × 1/3 = 40

- 2024: 120 × 1/6 = 20

- Total: 180 → under 183, so on these numbers alone she generally does not meet SPT for 2026 (still check green-card test, treaties, other exceptions, and NC rules).

If 2026 presence were 150 days: 150 + 40 + 20 = 210 ≥ 183, and current year ≥ 31 → she generally meets SPT.

If she were an F-1 student still within exempt years and correctly excluding those days, the weighted count—and Form 8843 needs—would differ entirely.

Figures are illustrative only. Real flights, sub-24-hour transit, medical exclusions, and exempt-individual limits change outcomes. This article does not compute tax and does not promise any filing result.

Action plan and timeline

1. Now (any entry or status change): Start a U.S. day ledger; keep I-94, tickets, and visa pages; align W-4 / withholding with HR.

2. Each December–January: Trial-run SPT with current + prior two years; students/scholars refresh exempt-year and Form 8843 checks.

3. If near the threshold or considering Form 8840: Assemble foreign-home, family, and economic-tie evidence before filing season—not on the deadline.

4. Filing season: Choose resident / nonresident / dual-status path correctly. Calendar-year filers with wage withholding often face an April 15 due date; some 1040-NR situations use June 15—confirm current instructions. Use Form 4868 if an extension is appropriate.

5. Change-of-status years (arrival, departure, green card): Document residency starting and ending dates; evaluate dual-status or first-year choice.

6. Ongoing: Track federal tax residency separately from NC state residency; reassess information reporting (e.g., FBAR / Form 8938 when applicable) once you become a resident—see existing YCL pieces for those forms.

7. When unsure: Bring visa timeline, day counts, and income types to a YCL Free Consultation with CPA Chenchen Liu and Gloria for a compliance roadmap.

How YCL can help

YCL Tax, Accounting & Advisory (Cary / RTP + Shanghai), led by CPA Chenchen Liu and Gloria, supports Chinese-speaking immigrants and student families with bilingual compliance planning:

1. SPT workpapers — Three-year weighted day counts with exempt-day analysis.

2. Resident vs nonresident pathing — Form 1040 vs Form 1040-NR and dual-status return combinations.

3. Form 8840 / Form 8843 — Closer-connection or exempt-individual filings when facts support them.

4. First-year / departure-year coordination — Links to first-year choice and dual-status articles in this series.

5. Withholding checklist — W-4, Notice 1392, wages, and scholarship sourcing review.

6. Two-office support — Cary for U.S. filing and notices; Shanghai for China-side residence and tie documentation.

7. Free Consultation — Clarify next documents and dates—no promised tax numbers or immigration outcomes.

FAQ

Q: I am on H-1B. Do I always file Form 1040?

A: Not always. H-1B does not automatically make you a tax resident. If you meet SPT (and no closer-connection or other exception applies), you generally file Form 1040. If not, you may still be a nonresident alien filing Form 1040-NR. Day counts and exceptions control.

Q: I was in the United States only 100 days this year. Can I still be a resident?

A: Yes. SPT adds 1/3 of last year’s days and 1/6 of the year before. Long prior stays can push you over 183 even with a short current year.

Q: Do students permanently ignore substantial presence?

A: No. Exempt-individual status has category and year limits. After those limits, days generally count toward SPT, and you may become a resident. Even while excluding days, Form 8843 is often required. Check current Pub. 519 for limits that fit your visa history.

Book a consultation

YCL Tax, Accounting & Advisory

Web: yclcpa.com | Email: info@yclcpa.com

Phone: 919-802-8376 / 980-202-0666 | WeChat: YCLUSA

U.S. office: 1140 Kildaire Farm Rd. STE 208, Cary, NC 27511

Shanghai office: 上海佳通路 31 弄中冶祥腾城市广场 2-516

Free Consultation: please bring passport visa pages, I-94, a three-year travel calendar, and a list of income types.

Disclaimer

This article is general information only. It is not personalized tax, legal, immigration, or investment advice. Visa status, presence days, exempt-individual rules, and treaty positions depend on facts and on the latest IRS, USCIS, and North Carolina guidance. For advice about your situation, consult a licensed professional.

Questions this article answers

I am on H-1B. Do I always file Form 1040?

Not always. H-1B does not automatically make you a tax resident. If you meet SPT (and no closer-connection or other exception applies), you generally file Form 1040. If not, you may still be a nonresident alien filing Form 1040-NR. Day counts and exceptions control.

I was in the United States only 100 days this year. Can I still be a resident?

Yes. SPT adds 1/3 of last year’s days and 1/6 of the year before. Long prior stays can push you over 183 even with a short current year.

Do students permanently ignore substantial presence?

No. Exempt-individual status has category and year limits. After those limits, days generally count toward SPT, and you may become a resident. Even while excluding days, Form 8843 is often required. Check current Pub. 519 for limits that fit your visa history.

Ready to talk? The first 30 minutes are on us.

Book online, or send us a few details and we will come back with a written quote within one business day.

Book free callRequest a quote