Substantial Presence Test Calculator 2026 โ€” Tax Resident Status

Determine your US tax residency status under the Substantial Presence Test. Enter days present in the US for current and prior years to calculate your weighted total, see if SPT is met, and check Closer Connection Exception eligibility.

Count every day you were physically present in the US (partial day = full day)
Scenarios:
Calculating...
SPT Result
0
Weighted Day Total
โ€”
Tax Filing Status
โ€”
Closer Connection Eligible?

SPT Calculation Breakdown

How the Substantial Presence Test Works

The IRS uses the Substantial Presence Test to determine whether a foreign national living in the US is taxed as a resident alien (worldwide income, Form 1040) or a non-resident alien (US-source income only, Form 1040-NR). Meeting the SPT creates resident alien status.

The Formula

Step 1: Were you present โ‰ฅ 31 days in the current year? If no โ†’ NRA (stop).
Step 2: Weighted total = Days(current year) ร— 1
                        + Days(prior year) ร— 1/3
                        + Days(two-prior year) ร— 1/6
If weighted total โ‰ฅ 183 โ†’ SPT MET โ†’ Resident Alien (unless exempt or Closer Connection)

Exempt individuals (F-1 students within 5 years, J-1 teachers within 2 years, etc.):
Their US days do NOT count at all during the exempt period โ†’ Always NRA.

Closer Connection Exception โ€” Form 8840

Available if: current-year days < 183 AND you have a "closer connection" to a foreign country.
Evidence of closer connection: permanent home, family, business, professional licenses, bank accounts,
driver's license, voter registration, social club memberships โ€” all in the foreign country.
NOT available if you have applied for lawful permanent resident status (green card).
Must file Form 8840 by the tax return due date (June 15 for most NRAs, or Oct 15 with extension).
Extended

Closer Connection Exception + Treaty Tie-Breaker Analysis

Form 8840 eligibility check, month-by-month day tracker, and treaty tie-breaker scenarios

Month-by-Month Day Entry (2026)

Enter days present in each month to get your exact 2026 count automatically.

Monthly total: 0 days โ€” enter days above to update the main calculator

Closer Connection Exception Eligibility (Form 8840)

RequirementYour SituationEligible?
Important: The Closer Connection Exception cannot be claimed if you have applied for or taken any steps to change your status to that of a permanent resident. Even if you meet all other requirements, a pending green card application disqualifies the exception.

Frequently Asked Questions

What is the Substantial Presence Test (SPT) formula?
The SPT is met if you were present in the US for at least 31 days in the current year AND the weighted total is 183 or more days. The weighted total = all days in the current year (multiplied by 1) PLUS 1/3 of days present in the prior year PLUS 1/6 of days present in the year before that. For example: 150 days current year + 120 days prior year (ร—1/3 = 40) + 90 days two-prior year (ร—1/6 = 15) = 205 weighted days. That exceeds 183, so the SPT is met even though current-year days are only 150.
Which visa holders are exempt from counting days toward the SPT?
Several categories of individuals are "exempt" from counting their days toward the SPT: (1) F, J, M, or Q visa students during their first 5 calendar years; (2) J-1 teachers and researchers during their first 2 calendar years; (3) foreign government officials (A or G visa); (4) individuals with a medical condition that arose while in the US and prevented timely departure. These individuals' US presence days simply do not count toward the SPT during their exempt period โ€” they remain NRAs regardless of physical time in the country.
What is the Closer Connection Exception (Form 8840)?
Even if you meet the 183-day weighted SPT test, you can avoid US residency if: (1) you were present fewer than 183 actual days in the current year, AND (2) you have a closer connection to a foreign country than to the US (permanent home, family, business, licenses, bank accounts, etc. are all there). You claim this by timely filing Form 8840 (Closer Connection Exception Statement). Note: this exception is NOT available if you have applied for a green card (immigrant visa).
What is the Treaty Tie-Breaker rule for dual residents?
If you are treated as a US resident under the SPT AND also a tax resident of a country with a US tax treaty, you may be a "dual resident." Most US tax treaties include a tie-breaker provision (typically Article 4) that determines your single country of residence based on: permanent home โ†’ center of vital interests โ†’ habitual abode โ†’ nationality โ†’ mutual agreement. If the treaty makes you a resident of the other country, you still file a US return (1040) but claim non-resident treaty benefits and attach Form 8833 to disclose the treaty position.
What is the First-Year Election for a partial-year resident?
If you do not meet the SPT in the current year but you meet it in the following year, you can elect to be treated as a US resident for the last portion of the current year โ€” starting from the first day you were present for at least 31 consecutive days. This is called the First-Year Choice (Form 1040 with a statement). It can be beneficial if it lets you use the larger standard deduction and lower marginal rates on US income earned in the current year.