Tessa Tax
Back to calculator
Residency for tax

Substantial Presence Test

If you are an international in the US, this test is one way to determine whether you should be treated as a resident or nonresident for federal income tax purposes.

Start here

These three rules cover the most common paths before counting days.

Green card holder

Resident (1040)

A lawful permanent resident generally meets the green card test and is treated as a resident for tax purposes.

F-1, J-1, or M-1 in first 5 years

Usually nonresident (1040-NR)

Foreign students in these statuses are generally nonresident aliens during their first 5 calendar years in the US.

Everyone else

Use the day-count test

Enter current-year and prior-year US presence days to calculate the weighted three-year total.

How the test works

You generally meet the substantial presence test when both of these are true:

  • You were physically present in the US for at least 31 days during the current tax year.
  • Your weighted three-year total is at least 183 days.

Weighted day formula

Current tax year100% of U.S. presence days

120 days = 120 counted days

1 year before1/3 of U.S. presence days

120 days = 40 counted days

2 years before1/6 of U.S. presence days

120 days = 20 counted days

Don't know your exact days?

CBP's official I-94 record lists every date you arrived in and departed the United States. Count the days in each year and enter them below.

Look up my I-94 history

Try the calculation

Enter your U.S. presence days for the tax year and the two prior years. The result updates using the IRS weighted-day formula.

Weighted total
0

Current year must have at least 31 days, and the weighted total must be at least 183 days.

Projected status
Enter days to preview residency

The calculator will show the projected result once days are entered.

31-day current-year rule
183-day weighted-total rule

Important exceptions

Some days may not count, including certain days as an exempt individual, days you could not leave because of a medical condition, and certain transit or commuting days.

The IRS uses the term exempt individual for SPT day-counting rules. It does not automatically mean the person is exempt from US income tax.

Foreign students in F-1, J-1, or M-1 status are generally treated as nonresident aliens during their first 5 calendar years in the US, so those days may be excluded from the substantial presence calculation during that period. Review the IRS foreign student guidance: IRS foreign student liability guidance.

The calculator can still ask for visa, travel, and treaty details because those facts may change the final residency result. Review the IRS substantial presence test guidance for full rules: IRS substantial presence test.