U.S. · Aliens · Students
F-1 students as exempt individuals: the 5-year rule
Count calendar years, not 12-month periods.
An F-1 student who substantially complies with the visa is an exempt individual, so the days do not count for the substantial presence test, but only until the student has been exempt as a teacher, trainee or student for any part of more than 5 calendar years. In the sixth calendar year the student is no longer exempt unless they establish that they do not intend to reside permanently in the United States and have substantially complied with the visa. Publication 519 (2025) counts calendar years, and any part of a year is a full year for this purpose.
Check your exempt status and your day count
Result
The rule in plain terms
Most international students never become U.S. tax residents in their first few years, even if they live here full time and spend well over 183 days a year in the country. The reason is a rule in Publication 519 that sets their days aside. A student on an F, J, M or Q visa who substantially complies with the visa is an exempt individual, and days spent as an exempt individual are not counted for the substantial presence test. Immediate family members of an exempt student are included.
The same rule has a time limit. The publication says you will not be an exempt individual as a student in 2025 if you have been exempt as a teacher, trainee or student for any part of more than 5 calendar years, unless you meet two requirements together: you establish that you do not intend to reside permanently in the United States, and you have substantially complied with the visa. The limit is why a student who starts a long program, or who stays for work or research afterward, eventually has to run the weighted day count like anyone else.
Why calendar years matter
The publication says calendar years, and that is not a detail. A student who arrives in August 2021 has used calendar year 2021 even though only a few months of it passed. The calendar years then run 2021, 2022, 2023, 2024 and 2025, which is five. The next calendar year, 2026, would be the sixth year of exempt status, and from that year the student drops out of the exempt category unless the intent showing is made. Because a partial year uses up a whole one, a student who arrives late in a calendar year gets noticeably less than five full years of exemption.
The count also pools categories. Years as a student, a teacher and a trainee are added together for the student rule, so a person who was a J-1 trainee for a year and then began an F-1 degree program has already used a calendar year. The calculator above asks for the number of earlier calendar years and adds the current one, which is how the publication phrases the test: "more than 5."
What "substantial compliance" means
Both the main rule and the exception depend on substantially complying with the visa. The publication defines this as not having engaged in activities that are prohibited by U.S. immigration laws and could result in the loss of your visa status. Tax law does not decide whether a particular activity violates your status; that is an immigration question. If your status is in doubt, the exempt-individual conclusion is in doubt too, which is a good reason to resolve the immigration question first.
This is also why the calculator asks about compliance before it looks at years. If the answer is no, the tool reports non-exempt regardless of the year count, which tracks the structure of the publication: exempt-individual status requires substantial compliance in every year.
Showing you do not intend to stay
After five calendar years, the intent showing is a facts-and-circumstances matter. The publication lists considerations that include whether you have maintained a closer connection to a foreign country, and whether you have taken affirmative steps to change your status from nonimmigrant to lawful permanent resident. Filing for a green card is the clearest example of a step that cuts against the showing.
The publication does not give a form for this showing. A student who relies on it generally documents the facts in the way the closer connection rules suggest: where the home is, where the family is, the country listed on official forms, and where the person holds a driver’s license and votes. See the closer connection page for that list, which the publication uses for a related but separate exception.
Putting it together with the day count
Being non-exempt does not make you a resident by itself. It means your days start to count, and then the ordinary test applies: at least 31 days in the current year and a weighted total of at least 183 days, counting all current-year days, one-third of last year’s days and one-sixth of the days from two years ago. The publication’s own example is 120 days in each of three years: 120 plus 40 plus 20 is 180, which falls short of 183.
The tool runs both steps. Enter the earlier-year count, the two yes or no answers, and your days for the three years. If you are exempt this year the current-year days are dropped; if not, they are counted. Only enter prior-year days that were not themselves exempt days, since those were excluded in earlier years. As an example, enter 5 earlier years, answer no on the intent question, and enter 200 days this year with 0 days in the two earlier years (those were exempt days): the student is no longer exempt, and 200 days is above the 183 threshold, so the test is met.
Paperwork that goes with it
A student who excludes days must file a fully completed Form 8843 for the year, covered on the Form 8843 page. Exempt status is also separate from the payroll question. Whether an F-1 student pays social security and Medicare tax on campus pay turns on a different rule, discussed on the FICA exemption page, and the two answers can change in different years.
Sources
- IRS Publication 519, U.S. Tax Guide for Aliens (2025): Substantial Presence Test; Days of Presence; Exempt individual; Students; Form 8843. Read November 2, 2026.
Edition read: Publication 519 (2025), U.S. Tax Guide for Aliens, for use in preparing 2025 returns. Dollar figures on this page are the ones printed in that edition; check the current publication and form instructions for your tax year. This page summarizes the publication and does not replace it.
Frequently asked questions
How many years are F-1 students exempt from the substantial presence test?
Up to 5 calendar years. Publication 519 says a student is not exempt once exempt for any part of more than 5 calendar years, unless they show no intent to reside permanently and substantial compliance with the visa.
Does a partial year count as a year?
Yes. The publication counts calendar years in which you were exempt for any part of the year, so a December arrival uses one of the five.
Do J-1 years count toward the F-1 five-year limit?
Yes. The publication counts years exempt as a teacher, trainee or student together for the student rule.
What happens in the sixth year?
Unless you establish that you do not intend to reside permanently in the United States and have substantially complied with your visa, your days count and you apply the 31-day and 183-day weighted test.
Is an exempt individual exempt from U.S. tax?
No. The publication states the term refers to a visa category whose days are disregarded for residency, not to an exemption from tax.
Not tax or immigration advice
This page summarizes an IRS publication and is not tax, legal, immigration or financial advice. A CPA, enrolled agent or immigration attorney can confirm how a rule applies to you. Everything runs in your browser; nothing you enter is sent anywhere.