
Resident or nonresident? The Substantial Presence Test.
Your US tax status does not come from your visa alone. It comes from a day count called the Substantial Presence Test. J-1 and F-1 visa holders can leave out their days for a limited number of years, H-2B workers cannot. The result decides which return you file, whether you pay Social Security and Medicare, and what can be deducted.
Written by the TaxReturn4You teamLast reviewed November 2026Tax year 20264 min read
Key facts
The Substantial Presence Test at a glance
- The test
- At least 31 days in the US this year and at least 183 days over three years, weighted.
- The weighting
- All days this year + 1/3 of last year's days + 1/6 of the days the year before.
- J-1 and F-1 students
- Days are excluded for up to 5 calendar years. We treat Work and Travel participants as students.
- J-1 interns and trainees
- Days are excluded for 2 of 6 calendar years.
- H-2B workers
- No excluded days. Every day counts from the first.
- How you exclude days
- Form 8843, filed for each exempt year.
What is the Substantial Presence Test?
It is the IRS rule that decides whether a non-US citizen is taxed as a resident or a nonresident for a calendar year. You are a resident for tax purposes for 2026 if both are true:
- You were physically present in the US on at least 31 days in 2026, and
- The sum of all your days in 2026, one third of your days in 2025 and one sixth of your days in 2024 is at least 183.
Any part of a day counts as a full day. Days spent as an exempt individual are left out of both counts, which is why most J-1 and F-1 visa holders stay nonresidents during their first years.
Who are exempt individuals?
"Exempt individual" means your days are not counted for the test. It does not mean you are exempt from US tax. The main groups for visa holders:
| Visa group | Days excluded | Limit |
|---|---|---|
| F-1 and J-1 students | All days as a student | Up to 5 calendar years, counted over your lifetime |
| J-1 Work and Travel (our approach) | All program days | Treated as students: up to 5 calendar years |
| J-1 interns, trainees, teachers, au pairs, camp workers | All program days | 2 calendar years out of the last 6 |
| H-2B seasonal workers | None | Every day counts |
| Spouses and children on F-2 or J-2 | Same as the main visa holder | Same limits |
A calendar year counts as one exempt year even if you were in the US for only a few days of it. Each year, the exemption only works if you substantially comply with your visa and file Form 8843 for that year. Form 8843 explained
Work and Travel participants. The IRS does not name the Summer Work Travel program on its J-1 page, and it lists J-1 summer camp workers among teachers and trainees. Our guides apply the student rule of five calendar years to Work and Travel participants, who must be university students abroad to take part. This is our editorial approach, not an IRS ruling for the program; after several seasons or a change of program, ask a tax professional. You choose your tax status when you approve your calculation online, and you can contact us with questions.
How does the test work for H-2B workers?
H-2B is not an exempt category, so every day you spend in the US counts. One long season of 183 days or more in a single year makes you a resident for that year. Two shorter seasons can add up: 150 days in 2026 and 150 days in 2025 give 150 + 50 = 200 weighted days, which meets the test.
If you have fewer than 183 days in the current year but pass the test only because of earlier years, you may still be treated as a nonresident under the closer connection exception: you keep a tax home in your home country and have closer ties there, and you file Form 8840 on time. H-2B tax returns explained
What changes if I am a resident?
| Nonresident | Resident | |
|---|---|---|
| Federal return | Form 1040-NR | Form 1040 |
| Income taxed | US income only | Worldwide income |
| Standard deduction | Generally not available (India students excepted) | Available ($16,100 for a single filer in 2026) |
| Social Security and Medicare | J-1 and F-1: generally exempt on program work | Generally paid |
| Form 8843 | Filed for exempt years | Not needed for that year |
The year you become a resident can be a dual-status year: nonresident until your residency starting date, resident afterwards. Dual-status returns follow special rules, and choosing the right form is where resident tax software most often goes wrong. Filed Form 1040 instead of 1040-NR?
What are the most common mistakes?
- Assuming the visa decides. An H-2B worker can be a resident; a J-1 student usually is not.
- Counting full days only. Any part of a day in the US counts.
- Forgetting earlier years. The test looks back two years, at one third and one sixth.
- Not filing Form 8843. Without it, exempt days can be counted after all.
- Using up exempt years without noticing. A short visit in a year still uses one of your five or two years.
How is your status set when you file with us?
In the application you give your visa, your days in the US over the last three years and your entry and exit dates. Your calculation shows your figures as a resident and as a nonresident, and you choose your tax status when you approve it online; we do not check your status for you. We then prepare the return that goes with your status: Form 1040-NR with Form 8843, or Form 1040. Questions about which status applies, or a dual-status year? Contact us and we will tell you if we can help.
Next stepNot sure about your status? Ask us.
You choose your tax status when you approve your calculation online. Not sure? Contact us and we will tell you if we can help.
Written by the TaxReturn4You team, former J-1 Work and Travel participants. Last reviewed: November 2026. This page is general information, not individual tax advice.

