Tax & FinanceLast Updated: February 2026

What Is the Substantial Presence Test?

Quick Answer

The Substantial Presence Test is an IRS formula that determines whether a foreign national is a resident alien or nonresident alien for tax purposes. F-1 students are exempt from counting their days in the US for the first five calendar years, meaning most students remain nonresident aliens throughout their studies.

Key Takeaway

F-1 students do not count their days toward the Substantial Presence Test during the first five calendar years. File Form 8843 each year to document your exempt status.

How the Substantial Presence Test Works

The Substantial Presence Test is the primary method the IRS uses to determine whether a foreign national in the US should be taxed as a resident alien or a nonresident alien. Under this test, you are considered a resident alien if you were physically present in the United States for at least 31 days during the current calendar year and a total of 183 days during the current year and the two preceding years, using a weighted formula.

The formula counts all the days you were present in the current year, one-third of the days in the first preceding year, and one-sixth of the days in the second preceding year. If the total equals 183 or more, you meet the Substantial Presence Test and are classified as a resident alien for that tax year.

For example, if you were present for 120 days in 2025, 120 days in 2024, and 120 days in 2023, the calculation would be: 120 + (120 × 1/3) + (120 × 1/6) = 120 + 40 + 20 = 180 days. Since 180 is less than 183, you would not meet the test in this example.

The F-1 Student Exemption

F-1 students receive a special exemption under IRC Section 7701(b)(5)(D). During the first five calendar years you are present in the US as an F-1 student, your days of presence are classified as exempt and do not count toward the 183-day threshold. This is a significant benefit because it ensures most F-1 students maintain nonresident alien status throughout their academic program.

The five-year count begins with the first calendar year you enter the US in F-1 status, regardless of when during that year you arrived. If you arrived on August 15, 2022, then 2022 is year one, and your exempt period runs through the end of 2026. After five calendar years, your days begin counting toward the Substantial Presence Test, and you may become a resident alien if you meet the 183-day threshold.

To claim the exemption, you must file Form 8843 every year. Without this form, the IRS may count all your days toward the test and classify you as a resident alien retroactively.

What Happens After Five Years?

Once your five-year exempt period expires, your days in the US begin counting toward the Substantial Presence Test. If you are still on F-1 status (for example, on STEM OPT) and are present in the US for a significant portion of the year, you will likely meet the 183-day threshold and become a resident alien for tax purposes.

Becoming a resident alien has several implications. You will be taxed on your worldwide income, not just US-source income. You will need to file Form 1040 instead of 1040-NR. You will no longer be exempt from FICA taxes. However, you will gain access to the standard deduction and certain tax credits not available to nonresident aliens.

  • Days start counting toward the 183-day threshold after the exempt period
  • Worldwide income becomes subject to US taxation
  • Must file Form 1040 instead of 1040-NR
  • FICA exemption no longer applies
  • Standard deduction and additional credits become available

Closer Connection Exception

Even after meeting the Substantial Presence Test, you may be able to maintain nonresident alien status if you can demonstrate a closer connection to a foreign country. This requires showing that your tax home is in a foreign country and that you have closer personal and economic ties to that country than to the US. You must file Form 8840 to claim this exception.

The closer connection exception is evaluated based on factors such as where your permanent home is located, where your family resides, where your personal belongings are kept, where you have bank accounts, where you hold a driver's license, and where you vote. This exception is not commonly used by F-1 students who are living and working in the US full-time, but it may apply in transitional situations.

Track Your OPT Status Automatically

Join 2,500+ international students who use TrackMyOPT to stay compliant, track deadlines, and navigate their F-1 journey with confidence.

Start Free Tracking
No credit card requiredSetup in 2 minutes