Answers · Reviewed 2026-08-20

What is the US substantial presence test?

The IRS test uses at least 31 current-year days and a weighted 183-day total across three years — here is how the weighting works, with a worked example and the exceptions that change the result.

The substantial presence test has two parts, and both must be satisfied. First, you need at least 31 days of US presence in the current year. Second, the weighted total of days across three years must reach 183. Neither part decides the test alone, which is why a single flat day count cannot answer it.

How the weighting works

Take the days you were present in the United States and weight them by year:

  • Current year: count every day at full value (each day counts as one).
  • First preceding year: count one third of the days.
  • Second preceding year: count one sixth of the days.

Add those three figures together. If the total is 183 or more, and you also had at least 31 days in the current year, the substantial presence test is generally met. The 31-day condition matters because a large weighted total built mostly from earlier years does not meet the test without enough current-year presence.

A worked example

Suppose you spent 120 days in the US this year, 120 days last year, and 120 days the year before:

  • Current year: 120 days × 1 = 120
  • First preceding year: 120 × 1/3 = 40
  • Second preceding year: 120 × 1/6 = 20

That totals 180 weighted days. Even though the current-year minimum of 31 days is comfortably met, 180 is below 183, so the test is not met on those figures. A modest change — for instance 123 current-year days — would push the weighted total to 183 and generally meet it. Small differences near the line change the result, so the exact day counts matter. To run your own numbers with the working shown, use the free substantial presence test calculator.

Why the weighting trips people up

Many people expect a plain 183-day count within one year and are surprised that earlier years carry forward at a fraction of their weight. Two years of moderate travel can accumulate toward the threshold even when no single year looks close to 183. This is also why a simple annual counter can under-count risk: it never sees the carried-forward third and sixth from previous years.

The rule has exceptions

A US day generally means any day you were physically present in the United States, but there are exceptions and exclusions. Days as an exempt individual — certain students, teachers, and trainees — may not count at all, the closer connection exception can keep you non-resident even when the days add up, and a tax treaty can also be relevant. Whether a particular day is counted can be as important as the final arithmetic.

Check the current IRS substantial presence test guidance before filing or changing plans, and take qualified US tax advice when the result has consequences. Do not infer a residence result from one number in an app or online calculator.

Keep the record before you need it

Maintain a complete day record across multiple years, including documents that explain unusual days or exceptions. Record arrival and departure dates promptly, correct a missing journey while it is still fresh, and retain the source records an adviser may need to understand an unusual period.

The tax-residency tracker overview explains the early-warning use case. For the product boundary, read limits and scope.

How Flags helps

Flags: Country Days Tracker can help you retain a private travel-day record and flag the United States for review. It does not calculate the full weighted test, exceptions or treaty position; treat it as an early warning, not an SPT calculator. To run the weighted three-year arithmetic yourself, the free substantial presence test calculator works out both the 31-day and 183-day conditions in your browser — including exempt student and teacher years — and stores nothing. Review the underlying stays first, then confirm the applicable rule outside the app.

Flags is an early-warning tool, not tax advice; confirm with a qualified adviser.

Sources
Country Days Tracker

Flags rebuilds country day counts from photos you confirm and warns as you approach thresholds like the 183-day rule. It is not tax, legal or financial advice, and does not determine treaty positions or every jurisdiction-specific exception.

Download on the App Store

Related answers