Tool · Runs entirely in your browser · Updated July 2026

Substantial presence test calculator.

Enter your US days for three years. See the weighted math worked out step by step — the 31-day minimum and the 183-day total, shown separately. Nothing you type leaves this page or is saved.

Worked breakdown · Fractions shown, not silently rounded
Current year (2026)
0 × 1 = 0
Prior year (2025)
0 × 1/3 = 0
Year before (2024)
0 × 1/6 = 0
Weighted total
0 of 183

Convention: the one-third and one-sixth weights are kept as fractions (shown to two decimals) and added before comparing with 183 — intermediate values are not rounded to whole days.

31-day current-year minimumNot met · 0 of 31
183 weighted-day thresholdNot met · 0 of 183
On these numbers the test is generally not met
Subject to IRS exceptions. This tells you whether the arithmetic crosses the line — it does not decide whether you are a US tax resident.

Nothing you type leaves this page or is saved. The calculation runs entirely in your browser and nothing is stored — reload the page and your numbers are gone.

Before you rely on a number · Exceptions that change the result

The arithmetic is only half the test. Days for exempt individuals (such as certain students, teachers and diplomats) 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 override the outcome. Confirm what counts and which exceptions apply against the IRS substantial presence test page and Publication 519.

This is a tool, not tax advice; confirm with a qualified adviser.

Want the reasoning behind the formula? Read how to calculate the substantial presence test and the fuller explainer on what the substantial presence test is, or start from the tax-residency tracker overview.

To keep the private, dated day record this calculation depends on — rebuilt from your photo dates, on device — install Flags: Country Days Tracker for iPhone.

Common questions · About the substantial presence test

How do I calculate the substantial presence test?

Add every US day in the current year, plus one third of the prior year's days, plus one sixth of the days from the year before that. If that weighted total reaches 183 and you were present at least 31 days in the current year, the test is generally met — subject to IRS exceptions.

What counts as a US day?

A US day generally means any day you were physically present in the United States, but the IRS excludes certain days — for example some days for exempt individuals. Whether a day is counted at all can matter as much as the arithmetic, so check the current IRS guidance.

What is the closer connection exception?

It can let you avoid US residency even if you meet the day count, when you were in the US fewer than 183 days in the current year and can show a tax home and closer ties to another country. See the IRS substantial presence test page and Publication 519 for the conditions and how to claim it.

Does this store my data?

No. The calculator runs entirely in your browser. Nothing you type leaves this page or is saved.