Tax year 2026Checked
The substantial presence test for F-1 students: how to count your days
How the 183-day formula works, why a December arrival uses up a whole year, the 2-of-6 rule for J-1 scholars, and what changes when you pass, with 2026 examples.
183 days counted over three years, leaving out exempt student days
In short
- The substantial presence test for 2026 needs 31 days in the US in 2026 and 183 days over 2024 to 2026: all 2026 days, a third of 2025 days and a sixth of 2024 days.
- F-1, J-1, M-1 and Q students leave their days out of the test for 5 calendar years, and any part of a year counts as a whole year.
- A student first here in August 2022 is still exempt in 2026; a student first here on December 28, 2021, and here every year since, is in year 6 in 2026.
- J-1 researchers and other J-1s who are not students are usually exempt for only 2 calendar years, under the 2-of-6 rule on line 8 of the 2026 draft Form 8843.
- A resident alien for all of 2026 files Form 1040 instead of Form 1040-NR, reports worldwide income and can take the $16,100 standard deduction for a single filer.
Contents, 11 sections
As an F-1 student, you do not count your days toward the substantial presence test for your first 5 calendar years, so you are usually a nonresident alien. For tax year 2026, if 2026 is your sixth calendar year or later, 183 days in the US in 2026 generally make you a resident alien for tax.
A student here every year since first arriving in 2021 is in their sixth year in 2026. The main exception is the Form 8843 line 12 claim for students who do not intend to live in the US permanently. "Resident alien" is a tax status only; you are still on an F-1 visa.
Note
The IRS has not yet published Publication 519 for 2026 or the final 2026 Form 8843 (as of October 14, 2026). The rules below come from the 2026 draft Form 8843 and the 2025 Publication 519. The test itself is the same as for 2025, with the years moved forward by one.
How does the substantial presence test work for 2026?
You meet the substantial presence test for 2026 if you were in the US at least 31 days in 2026 and 183 days over 2024 to 2026. The 183 is a weighted count: every day in 2026, one third of your days in 2025 and one sixth of your days in 2024.
230 days counted: you meet the test, so you are a resident alien for 2026.
Unless you qualify for the student exception: a student past five years who shows the IRS they do not intend to live in the US permanently stays exempt (Form 8843, Part III).
The formula is in the 2026 draft Form 8843 instructions and on the IRS substantial presence test page. Exempt days count as 0 in all three years, so a sixth-year student whose earlier days were all exempt needs 183 days in 2026 alone.
To run the test on your own days, with your exempt years left out for you, use the free resident alien checker.
Key facts
- The 2026 test
- 31 days in 2026, and 183 days over 2024 to 2026
- How the 183 days are counted
- All 2026 days + one third of 2025 days + one sixth of 2024 days
- F, J, M and Q students
- Days not counted for 5 calendar years; any part of a year counts as a year
- J-1 researchers, professors and trainees
- Usually 2 calendar years
- 183rd day for a sixth-year student here all of 2026
- July 2, 2026; residency still starts on January 1
- Form that leaves your exempt days out
- Form 8843, filed for each year
- For
- F-1, J-1, M-1 and Q students, and J-1 researchers and scholars, who want to know whether they are nonresident or resident aliens for tax year 2026.
- Not for
- Green card holders, who are residents under a separate test, and readers who need to know how to fill in Form 1040 or a dual-status return.
What counts as a day in the US?
Any part of a day in the US counts as a full day, so the day you arrive and the day you leave both count. The 2026 draft Form 8843 lists the days you do not count:
- Days you were an exempt individual, such as an F, J, M or Q student (next section).
- Days you could not leave because of a medical condition that arose while you were in the US. You claim these on Form 8843 Part V, with a statement from your doctor.
- Days you were in the US for less than 24 hours while travelling between two places outside the US.
- Days you regularly commuted to work in the US from a home in Canada or Mexico.
- Days as a regular crew member of a foreign ship, and days as a member of a NATO force.
To count your days, start with "View Travel History" on the CBP I-94 website, which shows up to 10 years of arrivals and departures. CBP says it can miss some departures, such as by land, so check it against your passport stamps and tickets.
Which days are exempt for F-1 and J-1 students?
Your days in the US as an F, J, M or Q student are exempt for your first 5 calendar years if you substantially comply with your visa. Days in most other statuses, such as a tourist visit or H-1B work, count at their normal weight, even inside those five years.
You substantially comply if you have not done anything prohibited by immigration law that could cost you your status (2026 draft Form 8843). J-1 degree and exchange students are students for this rule. J-1 researchers, professors and trainees follow a shorter rule, explained below.
Days as a foreign government-related individual in A or G status, other than A-3 or G-5, are also exempt, under a separate rule. You claim your exempt days by filing Form 8843 for each year, attached to your Form 1040-NR if you file one (IRS: substantial presence test). The Form 8843 guide goes through it line by line.
Note
A separate 183-day rule applies to gains from selling stocks, and it counts all your days in the US, exempt or not. The stocks and crypto guide explains it.
How do I count my five calendar years?
Count each calendar year in which you were in the US as an F, J, M or Q student, or as a J or Q teacher or trainee. Any part of a year counts as a whole year, so a few days in December use up one of your five years.
- 20211 of 5: exempt, days do not count
- 20222 of 5: exempt, days do not count
- 20233 of 5: exempt, days do not count
- 20244 of 5: exempt, days do not count
- 20255 of 5: exempt, days do not count
- 20266th: days count
2026 is your 6th year: your days now count.
Most students who stay all year pass the 183-day test and become resident aliens: Form 1040, the standard deduction, and Social Security and Medicare tax on most pay (work for your own school while you are enrolled can stay exempt). Residency starts on the first day you were in the US this year. You stay exempt only if you show the IRS you do not intend to live in the US permanently (Form 8843, Part III).
Your days stop being exempt once you have been exempt for any part of more than 5 calendar years (IRS: exempt individual, who is a student). The five are a lifetime total, not five for each visa or each stay: IRS Publication 4152 calls them "any part of any 5 different calendar years". An earlier F-1 degree, or a short J-1 summer program years before, uses up years too.
OPT, STEM OPT and CPT are part of F-1 status, so a year on OPT counts like any other, and OPT neither pauses nor restarts the count. The OPT tax guide covers the rest of OPT taxes.
This assumes you were in the US as a student in every calendar year since you first arrived. We found no IRS text on whether a whole calendar year outside the US uses up one of your five. Ask a tax professional before you rely on either answer.
Worked example: Daniel, first arrived December 2021, and Lina, first arrived August 2022
Daniel and Lina are illustrative F-1 students. Each has been in the US in F-1 status in every calendar year since first arriving, and each was in the US every day of 2026, which is 365 days.
| Daniel | Lina | |
|---|---|---|
| First arrived | December 28, 2021 (only 4 days in 2021) | August 15, 2022 |
| Exempt years 1 to 5 | 2021 to 2025 | 2022 to 2026 |
| Days count from | 2026 (year 6) | 2027 (year 6) |
Daniel's 2026 test is 365 + 0 + 0 = 365, because his 2025 and 2024 days were exempt. He was in the US on January 1, 2026, so he is a resident alien for all of 2026 and files Form 1040, unless he qualifies for the Form 8843 line 12 exception.
Lina's 2026 days are all exempt, so her total is 0. She is a nonresident alien for 2026 and files Form 8843, with Form 1040-NR if she had income to report. If she is in the US on January 1, 2027 and stays at least 183 days in 2027, she is a resident from January 1, 2027.
Daniel arrived less than eight months before Lina, but his days count a full year earlier. Four days in December 2021 used up one of his five years.
What date does my residency start once my days count?
In the year your days start to count, your residency normally starts on the first day you are in the US that calendar year. A student who is here on January 1 and reaches 183 days is a resident alien for the whole year, even though the 183rd day comes months later.
A sixth-year student in the US every day of 2026 reaches 183 counted days on July 2, 2026. But the start is "generally the first day you are present in the United States during that calendar year" (IRS: residency starting dates).
| Your sixth calendar year is 2026, and earlier days were all exempt | Your status for 2026 |
|---|---|
| In the US on January 1, 2026 and 183 days or more in 2026 | Resident alien for all of 2026; you file Form 1040 |
| Outside the US on January 1, 2026, back on January 10 and here for the rest of the year | Nonresident January 1 to 9, resident from January 10: a dual-status year |
| First day back in the US after July 2, 2026 | You cannot reach 183 days in 2026, so you are a nonresident for 2026 |
| You qualify for the Form 8843 line 12 exception | Nonresident alien; you file Form 8843 with a statement |
A dual-status return gets no standard deduction, even for the months you were a resident (Publication 519). If you change from F-1 to H-1B inside your five years, your F-1 days that year stay exempt and your H-1B days count from the day H-1B status begins. The F-1 to H-1B guide works through those cases.
Do J-1 researchers and scholars get five years too?
No. A J-1 teacher, researcher or trainee who is not a student is usually exempt for 2 calendar years, not 5.
They generally cannot exclude 2026 days if they were exempt as a teacher, trainee or student in any part of 2 of the 6 prior years (2020 to 2025). In practice, a J-1 researcher counts days from their third calendar year.
A researcher who arrived in September 2025, for example, is exempt in 2025 and 2026. Their days count from January 1, 2027, and they need 183 days in 2027 itself to meet the test.
Student years count toward the limit. Someone on F-1 from 2021 to 2025 who becomes a J-1 researcher in January 2026 was exempt in five of the six prior years. Their 2026 days count from the start.
Line 8 of the 2026 draft Form 8843 points to one exception: a teacher or trainee can still leave 2026 days out only if all four of these apply.
- You were exempt in no more than 3 of the 6 prior years.
- A foreign employer paid all your 2026 pay.
- You were in the US as a teacher or trainee in some of those prior years.
- A foreign employer paid all your pay in each of those years.
A researcher paid by a US university does not meet the exception. The J-1 researcher guide covers Form 8843 Part II and treaties.
Can I stay a nonresident after five years?
Yes, if you can show that you do not intend to live in the US permanently. You answer Yes on Form 8843 line 12 and attach a statement with enough facts to support the claim.
The 2026 draft Form 8843 says the IRS looks at factors including your closer connection to a foreign country and any steps toward a green card. The IRS has published no list of documents that guarantees acceptance. The IRS page on this exception for foreign students lists four conditions, and you must establish all four:
- you do not intend to live in the US permanently,
- you have substantially complied with your visa,
- you have not taken steps toward permanent residence, and
- you have a closer connection to a foreign country than to the US.
Do not use Form 8840 for this. Form 8840 is a different exception that needs fewer than 183 days in the US in the year and a tax home abroad, so most students cannot use it.
If your line 12 claim holds, you stay a nonresident, and your F-1 exemption from Social Security and Medicare tax continues with it. Your sixth year on F-1 goes through the claim in more detail.
What changes when I become a resident alien?
A resident alien for all of 2026 files Form 1040 instead of Form 1040-NR and reports worldwide income. You can take the $16,100 standard deduction for a single filer, and the F-1 exemption from Social Security and Medicare tax ends, so OPT wages are taxed at 7.65%.
| Nonresident alien | Resident alien for all of 2026 | |
|---|---|---|
| Federal return | Form 1040-NR, with Form 8843 | Form 1040; no Form 8843 |
| Income taxed | Only US income | Worldwide income, including interest and gains in your home country |
| Standard deduction | Generally none; students from India who qualify under Article 21(2) of the treaty can take $16,100 | $16,100 for a single filer |
| Education credits | Generally not available | May be available if you meet each credit's own rules |
| Social Security and Medicare tax (7.65%) | Not due on pay for F-1 work, including on-campus jobs, CPT and OPT | Due on OPT and most other wages; pay from your own school may still be exempt |
| Tax treaty benefits | Available under your country's treaty, if it has one | Most stop; some student articles, China's and India's among them, can continue under conditions (IRS) |
| FBAR (foreign bank accounts) | Not filed | Filed if your foreign accounts total more than $10,000 at any time in the year |
The $16,100 is from Revenue Procedure 2025-32; for 2025 it was $15,750. The F-1 exemption from Social Security and Medicare tax covers only nonresident aliens (IRS: foreign student liability).
Pay from your own school while you are enrolled and regularly attending classes may still be exempt under a separate student FICA exception. It never covers OPT or CPT with an outside company, or a full-time employee, which includes anyone who normally works 40 hours or more a week (Rev. Proc. 2005-11). At a public university it does not apply if your state's Social Security agreement covers student workers.
A resident alien is a US person for the FBAR, which is filed online with FinCEN (IRS: FBAR). The FBAR guide explains who files and when. The China treaty guide and the India treaty guide explain the two student articles that can continue.
What to do next
- Find the calendar year you first entered the US in F, J, M or Q status, using the I-94 travel history checked against your passport and tickets.
- Count your calendar years from that year, including 2026. If 2026 is year 5 or earlier and all your 2026 days were in student status, you are a nonresident alien for 2026.
- As a nonresident with wages, attach Form 8843 to Form 1040-NR and mail both by Thursday, April 15, 2027. With no income to report, mail Form 8843 alone by Tuesday, June 15, 2027 (mailing guide).
- If 2026 is year 6 or later, count your 2026 days. With 183 or more, read your sixth year on F-1 and decide whether the line 12 exception fits you.
- If you are a J-1 researcher or scholar, check line 8 of Form 8843: were you exempt in any part of 2 of the years 2020 to 2025?
- If Social Security and Medicare tax was taken from your pay while you were still a nonresident, read the FICA refund guide.
F1TaxReturn prepares the 2026 Form 1040-NR and Form 8843 for free once the IRS publishes the final 2026 forms and instructions. You print, sign and mail them. It does not prepare Form 1040 or dual-status returns, and it is built for students, not for J-1 researchers or scholars.
If your employer will not refund Social Security or Medicare tax taken from a nonresident student's pay, it prepares Form 843 with Form 8316 as a $20 add-on. Create an account.
Questions students ask
Does OPT count toward my five calendar years?
I arrived on December 28. Does that year really count as year 1?
Do earlier J-1 or summer program years count toward my five?
Do I still file Form 8843 after my fifth year?
Does becoming a resident alien for tax change my visa?
I am a J-1 researcher. When do my days start to count?
Sources
This guide is checked against these 14 documents, most recently on .
- Form 8843 (2026 draft), Statement for Exempt Individuals and Individuals With a Medical Condition, IRS
- Substantial presence test, IRS
- Exempt individual: who is a student, IRS
- Residency starting and ending dates, IRS
- The closer connection exception to the substantial presence test for foreign students, IRS
- Publication 519 (2025), U.S. Tax Guide for Aliens, IRS
- Publication 4152 (Rev. 9-2025), IRS
- Revenue Procedure 2025-32 (2026 inflation adjustments), IRS
- Foreign student liability for Social Security and Medicare taxes, IRS
- Student FICA exception, IRS
- Report of Foreign Bank and Financial Accounts (FBAR), IRS
- I-94/I-95 frequently asked questions (View Travel History), US Customs and Border Protection
- Withholding certificates and exemptions for personal services and students, IRS
- Revenue Procedure 2005-11 (student exception safe harbor), IRS