Substantial Presence Test (SPT): Form 8843 & 8840 Guide (2026) | NationRules
Home/USA/IRS Substantial Presence Test (SPT) & Form 8843 / 8840 Guide
IRS Tax Residency

IRS Substantial Presence Test Guide

Understand U.S. tax residency math, 'Exempt Individual' rules for F-1/J-1 visas (Form 8843), and the Closer Connection Exception (Form 8840).

Quick References
3-Year Math Formula: 183 Days Weighted
Student Exemption: 5 Calendar Years
Form 8843 Deadline: June 15 (No income)

The Substantial Presence Test (183-Day Weighted Formula)

The IRS uses the Substantial Presence Test (SPT) to determine if a foreign national has spent enough time in the United States to be classified as a Resident Alien for tax purposes.

Unlike standard immigration rules, U.S. tax residency is determined purely by a weighted day-count math formula over a 3-year period:

First Condition: You must be present in the U.S. for at least 31 days during the current calendar year.

Second Condition (The 183-Day weighted sum): The sum of your days in the U.S. must equal 183 days or more, calculated as:

• 100% of the days you were present in the current year,

• 33.3% (1/3) of the days you were present in the first preceding year, and

• 16.7% (1/6) of the days you were present in the second preceding year.

Exempt Individuals (F-1 & J-1 Visa Holders)

Non-citizens on student or scholar visas are considered 'Exempt Individuals' under IRS rules. This does not mean they are exempt from paying income tax; rather, it means their days in the U.S. are excluded from the Substantial Presence Test day count:

F-1 and F-2 Student Visas: Exempt from counting days for up to 5 calendar years.

J-1 and J-2 Scholars/Trainees: Exempt from counting days for up to 2 calendar years.

Mandatory Form 8843 Filing

To claim your day-exclusion status, you must file Form 8843 (Statement for Exempt Individuals) every year. You must mail this form to the IRS by June 15 even if you had $0 income.

FICA Exemption Period

As long as you are a nonresident alien under the 5-year student rule, you are exempt from FICA (Social Security & Medicare) payroll taxes on student wages.

Form 8840: The Closer Connection Exception

If your day-count math meets the 183-day threshold, you can still avoid being treated as a Resident Alien by claiming a 'Closer Connection' to your home country:

Eligibility: You must have spent fewer than 183 days in the U.S. during the current calendar year, and you must maintain a tax home in a foreign country where you have stronger social/economic ties.

IRS Evaluation Criteria

To approve Form 8840, the IRS reviews physical indicators of connection: the location of your permanent home, your family, your vehicles, your bank accounts, and where you hold a driver's license or voter registration.

Filing Deadline

Form 8840 must be printed and mailed to the IRS center in Austin, Texas, by the tax deadline (typically April 15) to preserve your nonresident status.

Frequently Asked Questions

Who must file Form 8843?

Every F-1/J-1 student and J-1 scholar who is exempt from counting days for the Substantial Presence Test must file Form 8843 annually, even if they earned no U.S. income.

What is the penalty for failing the Substantial Presence Test?

Failing the test (meeting the 183-day limit) turns you into a Resident Alien. This subjects your worldwide income to U.S. tax and mandates foreign assets disclosure via FBAR and FATCA. Use our [FBAR & FATCA Calculator](/usa/fbar-fatca-calculator) to check your requirements.

SPT Summary

Determining whether you are a Resident Alien or Nonresident Alien is the first step of U.S. tax filing. Passing the test changes your filing requirements to worldwide income reporting.

3-Year Math Formula:183 Days Weighted
Student Exemption:5 Calendar Years
Form 8843 Deadline:June 15 (No income)