Are You a U.S. Resident for Tax Purposes? Understanding the Substantial Presence Test

Navigating U.S. tax law can feel complex, especially if you spend a significant amount of time in the country but aren’t a green card holder. One of the most common questions we see is: “How do I know if the IRS considers me a U.S. resident for tax purposes?”

While having a green card automatically makes you a tax resident, there’s another crucial test you need to know the Substantial Presence Test (SPT).

This test is purely mathematical and is based on the number of days you are physically present in the United States over a three-year period. Let’s break it down into simple, easy-to-understand steps.

The Two Conditions of the Substantial Presence Test

To be considered a U.S. resident for tax purposes in a given year, you must meet both of the following conditions:

  1. The 31 Day Rule: You must be physically present in the U.S. for at least 31 days during the current calendar year.AND
  2. The 183 Day Rule: You must meet a 183-day threshold calculated over a 3-year period using a specific formula.

If you don’t meet the 31-day rule for the current year, you don’t need to proceed to the next step, you are not a tax resident for that year under this test. If you do meet it, it’s time to do the math for the 183-day rule.

How to Calculate the 183-Day Rule ?

The 183-day rule isn’t as simple as counting your days this year. It’s a “look-back” formula that weights your days over a three-year period. Here’s how it works for determining your status for the current year:

Step 1: Count all the days you were present in the U.S. in the current year.

Step 2: Add 1/3 of the days you were present in the U.S. in the first year before the current year.

Step 3: Add 1/6 of the days you were present in the U.S. in the second year before the current year.

If the grand total from these three steps is 183 days or more, you have met the test.

To be considered a U.S. tax resident for a given year (say 2023), both conditions must be met:

  1. Present at least 31 days in the U.S. during 2023, AND
  2. 183 days test: Add up days over 3 years like this:
    1. All days in 2023 (the current year)
    2. 1/3 of days in 2022 (the year before)
    3. 1/6 of days in 2021 (two years before)

If the total ≥ 183 days, then you meet the test.


Let’s understand with an Example:

Let’s say :

  1. 2021: 150 days in U.S.
  2. 2022: 180 days in U.S.
  3. 2023: 120 days in U.S.

Now, let’s apply the formula for 2023 residency:

  1. Days in 2023: 120 full days
  2. Days in 2022: 180 × 1/3 = 60 days
  3. Days in 2021: 150 × 1/6 = 25 days

Total = 120 + 60 + 25 = 205 days

Since 205 ≥ 183 and you were present for more than 31 days in 2023, you do meet the Substantial Presence Test → You are a U.S. resident for tax purposes in 2023.


Compare with a Non-Resident Example:

Let’ say

  1. 2021: 90 days
  2. 2022: 90 days
  3. 2023: 100 days

Calculation for 2023:

  1. 2023: 100
  2. 2022: 90 × 1/3 = 30
  3. 2021: 90 × 1/6 = 15
    Total = 145 days

Since 145 is less than 183, you do no meet the SPT, You are a nonresident alien for 2023.

The rules have exceptions. You should not count days of presence in the U.S. if you are:

  1. Commuting regularly to work in the U.S. from a residence in Canada or Mexico.
  2. In the U.S. for less than 24 hours while in transit between two foreign locations.
  3. A crew member on a foreign vessel in the U.S.
  4. An “exempt individual” (such as a student on a specific visa, a diplomat, or a teacher/trainee).
  5. Unable to leave the U.S. due to a medical condition that developed while you were here.

For a full list of exceptions, always refer to IRS Publication 519, U.S. Tax Guide for Aliens.

Final Thoughts

The Substantial Presence Test is a critical tool for determining your U.S. tax obligations. By understanding the 31-day and 183-day rules, you can get a clear picture of your status. However, individual situations can be unique.

Disclaimer: This article is for informational purposes only and does not constitute legal or tax advice.


Discover more from

Subscribe to get the latest posts sent to your email.

Leave a Reply

Discover more from

Subscribe now to keep reading and get access to the full archive.

Continue reading

Discover more from

Subscribe now to keep reading and get access to the full archive.

Continue reading