Skip to main content
Tax Compliance

Navigating the Substantial Presence Test as an F-1 Student

Visa Hero Editorial TeamUpdated 6 min read

After 5 years, F-1 students transition to resident aliens for tax purposes. Discover the hidden FICA tax implications and treaty advantages.

Key takeaways

  • The substantial presence test counts days in the current year plus fractions of the two prior years.
  • F-1 students are exempt individuals, so their first five calendar years do not count toward the test.
  • The year the counting starts, most students meet the threshold and become resident aliens for tax purposes.
  • Form 8843 has to be filed documenting exempt days, even in years with no income.
Table of contentsJump to

What the substantial presence test actually measures

The substantial presence test is a day-counting formula, not a judgment about intent. You add all the days you were physically present in the current year, one third of the days in the year before, and one sixth of the days two years before. If the total reaches 183, you are a resident alien for tax purposes unless an exception applies.

There is also a floor: you must be present at least 31 days in the current year for the test to apply at all. A short visit in December does not create residency by itself.

The fractions are why someone who spends a full year here and part of two prior years can cross the threshold without ever staying a full three years. Students rarely notice because a separate rule takes them out of the count entirely for a while.

Why F-1 students are not counted for five years

Students in F, J, M, and Q status are treated as exempt individuals for their first five calendar years of presence. During those years, their days do not count toward the substantial presence test, and they file as nonresident aliens.

Teachers and researchers in J or Q status get a shorter window — generally two calendar years. The distinction matters for exchange visitors who arrive as a researcher rather than as a student.

The five-year count is by calendar year, not by 365-day periods. Arriving in August still uses up that calendar year, which is why a student who starts in the fall may only have four full academic years of exempt treatment before the count begins in January of the sixth year.

  • F, J, M, Q students: five calendar years.
  • J or Q teachers and researchers: two calendar years.
  • Counted by calendar year, not by 12-month periods.
  • Form 8843 required to document the exemption.

The year the counting starts

Once the exempt years are used up, January of the next year begins the count. In most academic and OPT situations the student is physically present well beyond 183 days that year, so resident alien treatment applies from that point.

That first year is often messy. A student may spend part of the year as a nonresident and part as a resident, which produces a dual-status return. A first-year choice election can sometimes treat the student as a resident for the whole year, but it comes with conditions and affects how the return is prepared.

Getting the transition year wrong creates problems that surface years later — in a green card interview, in a naturalization file, or in an IRS notice about a return filed on the wrong form. The date you became a resident for tax purposes is a fact worth documenting rather than estimating.

What changes when you become a resident for tax purposes

Resident aliens report worldwide income, not just U.S. source income. Foreign bank accounts, foreign pensions, and foreign investment income can create reporting obligations that did not exist in the nonresident years, and the thresholds for some of those forms are low.

Social Security and Medicare withholding changes at the same time. The student FICA exemption is tied to nonresident status under the statute, so once the student is a resident for tax purposes an employer should begin withholding. Students notice this as a smaller paycheck and sometimes assume payroll made a mistake.

Credits become available in the other direction. Education credits that are unavailable on a nonresident return can often be claimed once the student is a resident, which is one reason the transition year deserves careful attention rather than a default choice.

  • Worldwide income instead of U.S. source income only.
  • Possible foreign account and foreign asset reporting.
  • FICA withholding typically begins.
  • Education credits may become available.

The forms and records that prove it

Form 8843 is the statement exempt individuals and individuals with a medical condition file to explain days that should not count. It is required even when the student had no income and no filing obligation otherwise. Missing 8843s do not usually trigger a letter the same year, but they weaken the record you will need later.

The I-94 arrival and departure history is the evidence behind the day count. Download it and keep the travel history, because the fractions depend on exact days rather than on memory.

Wage forms matter too. A W-2 shows what an employer withheld and reported; a 1042-S shows amounts paid to a nonresident. When a student transitions mid-year, both can appear in the same year, and the return has to reconcile them rather than pick one.

  • Form 8843 — exempt-individual statement.
  • I-94 travel history — proof of days present.
  • Form W-2 — U.S. employment income.
  • Form 1042-S — payments to a nonresident.

A worked example: the first counting year

Take a student who arrives in August 2019 and stays continuously through graduation. The five exempt calendar years are 2019 through 2023, so 2024 is the first year their days count. If they were present 330 days in 2024, the arithmetic is short: 330 plus nothing from 2023 or 2022, because those years were exempt. The total clears 183, so 2024 is a resident year, and because presence began in 2024 the residency starting date falls inside that year rather than on January 1.

The fractions matter much more when the first counting year is short. Suppose a student's exemption ends in time for a July 2024 arrival, and they are present 150 days that year. That is below 183, so 2024 remains a nonresident year. In 2025 the carry-over does the work: 300 days plus one third of the 150 days from 2024 reaches 350, which clears the threshold and makes 2025 the first resident year.

YearDays presentDays countedOutcome
2024150150Not resident — below 183
2025300300 + 50 = 350Resident
The mid-year arrival: how a short year is carried forward

The mistakes that change the answer

Most disputes about residency come from four habits rather than from complicated facts. The first is counting by 12-month periods instead of calendar years, which quietly grants a sixth year of exemption to anyone who arrived in the autumn. The second is forgetting that the test only applies at all once you reach 31 days of presence in the current year.

The third is filing the form out of habit. A student who has filed a 1040-NR for five straight years tends to file a sixth, even in the year the count begins — and then has to amend. The fourth is not keeping a travel history, which is the only reliable evidence of the exact days the fractions depend on.

  • Counting five 365-day periods instead of five calendar years.
  • Assuming your visa status decides residency, when the day count does.
  • Ignoring the 31-day floor that switches the whole test on.
  • Skipping Form 8843 in no-income years, which erases the proof of exempt days.
  • Filing 1040-NR again in the transition year out of habit.
  • Assuming FICA will not apply once residency starts — it usually does.

How we can help

We reconstruct the day count from I-94 records, identify the year the exemption ends, and prepare the transition-year return so the residency position is documented rather than assumed.

If you have already filed as a nonresident in a year you may have been a resident — or the reverse — bring the return and the travel history to a consultation. Correcting it early is far cheaper than explaining it during a green card interview.

Frequently asked questions

How many days do I need to be a resident for tax purposes?

The test adds all current-year days, one third of last year's days, and one sixth of the prior year's days. Reaching 183 makes you a resident alien unless an exception applies, and you must be present at least 31 days in the current year.

Do my first five years on F-1 count toward the test?

No. F-1 students are exempt individuals for five calendar years, so those days are excluded from the count. The count can begin in January of the sixth calendar year.

Do I have to file Form 8843 if I had no income?

Yes. Form 8843 documents your exempt days and is required even when you have no income or filing obligation. It supports the residency position you will rely on later.

Why did my paycheck get smaller after my fifth year?

Once you are a resident for tax purposes, the student exemption from Social Security and Medicare taxes generally no longer applies, so the employer should begin withholding FICA.

Does the year I arrive count as one of the five?

Yes, and that is the detail most students miss. The five exempt years are calendar years, so arriving in August still uses up that year. An autumn arrival often gets only four full academic years of exempt treatment before the count begins in January.

Can I be treated as a resident before I meet the test?

There are two narrow routes. If you meet the test in the following year, the first-year choice lets you be treated as a resident for part of the earlier year. If your spouse is a U.S. citizen or resident, a joint-return election under section 6013(g) or 6013(h) can also apply. Both require a signed statement attached to the return and neither is automatic.

Do I still file Form 8843 in the year I become a resident?

If any days in that year were exempt days you generally still file it, and the transition year is often split. Keep the I-94 history either way, because the fractions in later years depend on the days you were actually present.

Sources and official links

This article is general information, current as of its publication date, and is not legal or tax advice for your situation.

Written and reviewed by

Visa Hero Editorial Team

General information only. Articles are reviewed against the official USCIS, State Department, or IRS source linked in each piece, and updated when the underlying rule or fee changes. Read our editorial policy.

Sources citedLast reviewed 2026-11-05T12:00:00.000Z

Share
All services
All articles

Legal alerts

Know your rights. Get them in your inbox.

One email when something actually changes — fee schedules, filing windows, and deadlines that affect your case. No daily marketing.

Unsubscribe any time. We never sell your information.

Free case evaluation

Not sure which path fits your situation?

Talk to our team for a free evaluation, or answer five questions and see the pathways that fit before you speak to anyone.

  • No fee to ask
  • Phone or video
  • Nationwide