Client Access | US CA

Substantial Presence Test: The Complete 2026 IRS Guide to U.S. Tax Residency

Mar 31, 2026

Everything you need to know about how the IRS determines tax residency — with examples, exemptions, formulas, and common mistakes.

Because the tax side is where cross-border plans get complicated, see our cross-border tax and estate planning service.

What Is the Substantial Presence Test?

The Substantial Presence Test (SPT) is an IRS rule used to determine whether a foreign individual should be treated as a U.S. tax resident for a specific tax year.

If you meet this test, the IRS classifies you as a U.S. resident alien, meaning you may need to:

  • Report worldwide income
  • File a Form 1040 (instead of 1040-NR)
  • Report foreign assets in some cases
  • Comply with additional IRS disclosure requirements

Understanding this rule is crucial for international students, expats, remote workers, and anyone who spends extended time in the United States.

Why the Substantial Presence Test Matters

Becoming a U.S. tax resident impacts much more than your immigration status. It affects how the IRS taxes:

  • Salary and wages earned worldwide
  • Foreign investment income (stocks, funds, real estate)
  • Rental income from abroad
  • Crypto or capital gains
  • Global bank interest
  • Gifts or transfers from foreign individuals

Many people unintentionally trigger U.S. tax residency without knowing it — often by simply spending too many days in the United States.

How the Substantial Presence Test Works

To meet the Substantial Presence Test, two conditions must be met:

  1. You spent at least 31 days in the U.S. during the current year; AND
  2. Your total weighted days across three years equal 183 days or more.

The IRS uses a special formula to calculate this.

The Substantial Presence Test Formula (Simple Explanation)

All days in the currentyear × 1+ Days in the previous year × 1/3+ Days in the second previous year × 1/6 

≥ 183 days

This formula ensures that recent presence counts more toward residency than older presence.

Example: Do You Meet the Test?

Suppose you spent:

  • 2026: 120 days
  • 2025: 120 days
  • 2024: 120 days

Calculation:

  • 2026: 120 × 1 = 120
  • 2025: 120 × 1/3 = 40
  • 2024: 120 × 1/6 = 20

Total = 180 days → You do NOT meet the test.

Another example:

  • Current year: 150 days
  • Previous year: 90 days
  • Second previous year: 60 days

Calculation:

  • 150 × 1 = 150
  • 90 × 1/3 = 30
  • 60 × 1/6 = 10
    Total = 190 → You ARE a U.S. tax resident.

What Days Count Toward the Substantial Presence Test

The following do count:

✔ Any day you are physically inside the U.S.
✔ Partial days (even a few hours)
✔ Days spent working, studying, vacationing
✔ Days in the U.S. after passing immigration during airport transit

What Days Do NOT Count

The IRS excludes:

❌ Days you could not leave the U.S. due to a medical condition
❌ Days in transit where you did not pass immigration
❌ Days present as an exempt individual (explained below)

Exempt Individuals: Who Does NOT Count Days?

Certain visa holders are treated as exempt, meaning their days in the U.S. do not count toward the Substantial Presence Test.

F-1 Students

  • Exempt for the first 5 calendar years in the U.S.
  • After 5 years, days start counting

J-1 Teachers, Professors, Scholars

  • Exempt for 2 out of the last 6 years

Foreign government-related individuals

  • Diplomats
  • International organization employees

Professional athletes

  • Only under specific competitions

How to Avoid Becoming a U.S. Tax Resident (Legally)

Many individuals — especially Canadians, international students, and global income earners — actively plan to avoid meeting the test.

✔ 1. Limit U.S. physical presence

Staying under the threshold is the simplest method.

✔ 2. Apply the “Closer Connection Exception”

If you spent less than 183 actual days in the current year
AND
Your primary home, ties, and tax residence remain in another country,
you may avoid U.S. tax residency by filing Form 8840.

✔ 3. Use Tax Treaty Tie-Breaker Rules

If your home country has a tax treaty with the U.S. (e.g., Canada, China), you may claim residency under that treaty instead.

The Closer Connection Exception (Highly Useful)

Even if the weighted days exceed 183, you may still avoid becoming a U.S. tax resident if:

  • You spent less than 183 actual days this year,
  • You maintained a closer connection to another country (home, bank, tax filings, family),
  • You file Form 8840 by the deadline.

This exception is commonly used by cross-border workers and Canadians who winter in the U.S.

Common Mistakes People Make

❌ Thinking only nights count (all days count)
❌ Forgetting short trips to the U.S.
❌ Assuming student days are exempt forever
❌ Not filing Form 8843 or Form 8840 when required
❌ Ignoring tax treaty options
❌ Believing visa type automatically determines tax residency

FAQ About the Substantial Presence Test

  1. Does my visa determine whether I meet the test?

No. Physical days determine the result, not your visa type.

  1. If I meet the test, must I report worldwide income?

Usually yes — unless you qualify for a treaty exception.

  1. Can I avoid becoming a tax resident by leaving the U.S. before year-end?

Yes, many people use year-end travel planning for this purpose.

  1. I am an F-1 student. Do my days count?

Not for the first 5 calendar years.

  1. I spent 183 actual days but fewer weighted days — am I a tax resident?

Yes. Actual days ≥ 183 automatically make you a tax resident regardless of the weighted formula.

Disclaimer

The information provided in this article is for general educational purposes only and should not be considered tax, legal, or financial advice. U.S. tax residency determinations involve fact-specific details including visa status, exempt categories, travel days, global income sources, and applicable treaty rules.

Due to these complexities, we cannot provide personalized tax guidance or discuss individual tax situations in detail. For tailored advice, please consult a qualified U.S. tax professional or CPA experienced in international and cross-border taxation.

About The Author

Shiraz Ahmed, CIM®

CEO, Portfolio Manager

Shiraz Ahmed is the CEO of Sartorial Wealth and a cross-border financial expert with over 20 years of experience, fully registered in both Canada and the US as a Portfolio Manager with the OSC and SEC. He specializes in coordinating comprehensive financial plans for individuals, families, and businesses navigating Canada/US border complexities, life transitions, and sudden wealth events. A 2022 IIAC Top Under 40 award winner, Shiraz has been featured in major outlets including The Globe and Mail, BNN Bloomberg, and CBC.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Ready to simplify your cross-border financial life?

Start a Conversation