When Nonresident Status Ends: The Five-Year F-1 and Two-Year J-1 Exemption Explained
By Muntasir Minhaz • Published Aug 19, 2026
F-1 students, and J-1 students, count as exempt individuals for tax purposes for 5 calendar years. J-1 scholars, teachers, and trainees (the non-student category) get 2 of the last 6 calendar years. Once that clock runs out, you become a resident alien for tax purposes, which changes how and what you file.
🎓 The 5-year and 2-year counts are calendar years, so even one day in a calendar year counts as a full year toward the limit.
📩 File Form 8843 every year you claim exempt status, even with no income.
⏱️ The year you become a resident alien, you may qualify for a first-year choice or be a dual-status alien.
💵 Losing nonresident status changes which deductions, credits, and forms apply to you.
What being an exempt individual means
For federal tax purposes, the IRS decides whether you are a resident or nonresident alien using the substantial presence test, which is a day-count formula based on how many days you spent in the US. Students and scholars on F, J, M, or Q visas can be classed as an exempt individual, which means the days you spend in the US on that status do not count toward the substantial presence test, as long as you substantially comply with your visa requirements, according to IRS guidance on the substantial presence test .
Being exempt in this sense has nothing to do with owing no tax. It only means your days in the US are excluded from the count that would otherwise make you a resident alien. You still report and may owe tax on your US-source income as a nonresident, and you still file the required forms every year.
The 5-year rule for F-1 students
Under IRS Publication 519 , an F-1 student loses exempt individual status once they have been exempt for any part of more than 5 calendar years. This is not 5 full years of 365 days. Arriving in December counts that partial calendar year as one of your 5, so a student who lands in the US in December of their first year and stays continuously effectively uses up their exemption faster in calendar-year terms than the 5 years phrase suggests.
After the 5-calendar-year limit, you can still be treated as exempt if you can prove to the IRS that you do not intend to reside permanently in the US and that you have maintained a closer connection to a foreign country. Meeting that closer-connection test requires supporting facts, such as your permanent home, family ties, and where your economic and social life is based, and is not automatic.
The 2-year rule for J-1 students, scholars, and trainees
J-1 (and Q) teachers, trainees, and researchers remain exempt individuals unless they were exempt as a teacher, trainee, or student for any part of 2 of the preceding 6 calendar years, per Publication 519. J-1 students specifically generally follow the same 5-calendar-year framework as F-1 students, so check which J category you hold, since teacher or trainee status and student status are treated differently under this rule.
An exception applies if a foreign employer paid all your compensation both in the current year and in all prior years you were present in the US. This exception is narrow and depends on your specific funding source, so confirm it applies to your situation with Publication 519 or a tax professional rather than assuming it covers your funding.
| Status | Exemption clock | Counted as |
|---|---|---|
| F-1 / F-2 student | 5 calendar years | Any part of a calendar year counts as one full year |
| J-1 teacher / trainee / researcher | 2 of the last 6 calendar years | Rolling 6-year lookback |
| J-1 student | Generally 5 calendar years | Same calendar-year counting as F-1 |
Filing Form 8843 while exempt
Every exempt individual on F, J, M, or Q status must file Form 8843 for each calendar year they claim the exemption, even in a year with zero US income. This form tells the IRS which days you are excluding from the substantial presence test and why. Missing this filing does not automatically end your exempt status, but it removes your documented proof of it, so file it every year on time using the IRS Form 8843 instructions .
What happens the year you become a resident alien
Once your exempt years run out and you meet the substantial presence test's day-count for the calendar year, you become a resident alien for tax purposes starting that year. This is a major shift: as a resident alien you generally file the standard Form 1040 instead of Form 1040-NR, and you become eligible for deductions and credits nonresidents cannot claim, but you also lose access to nonresident-specific tax treaty benefits that may have reduced your withholding.
The calendar year this transition happens is often complicated because your status can change partway through the year. Publication 519 covers two paths for that year: a first-year choice, where you elect to be treated as a resident for part of the year if you meet specific day-count conditions, and dual-status alien rules, where you file as a nonresident for part of the year and a resident for the rest, using separate rules in Chapter 6 of Publication 519 for each part.
Steps for the transition year
Track your exact arrival date and every day spent in the US, since exact days decide the calendar-year count.
Confirm whether you are still within your 5-year (F-1) or 2-of-6-year (J-1 teacher/trainee) window before you file.
If your exemption has run out, work out whether you meet substantial presence for the year and, if so, whether dual-status or first-year choice rules apply to you.
Use nonresident-specific software or a tax preparer experienced with dual-status returns for the transition year, since this is one of the more error-prone returns to self-file.
Keep filing Form 8843 for every year you were exempt, since it documents your history if the IRS or a future visa or immigration process asks about it.
Tax residency rules and the substantial presence test framework can be updated by the IRS, so verify your specific year count and any recent changes directly on the IRS substantial presence test page before you file, as of August 2026.