Menu
Flag of the United States

Substantial Presence Test Calculator

Tap the days you were in the United States, then pick the year to test. The calculator applies the IRS formula and checks both conditions, planned trips included.

Last verified: November 2026

Check your days

Timeline

Continue on your iPhone or iPadExport or open in AtlasDays

Keep counting as you travel. Get AtlasDays free.

Scan to open your trips and tracker in AtlasDays.

  1. Open your stays in the appCheck them, then tap Import. Nothing is saved before that.Open in AtlasDays
  1. Download trips as a CSV fileThat is more stays than a link can carry. Download the file and open it on your iPhone with AtlasDays.
  2. Get AtlasDaysFree on the App Store for iPhone.App Store

How the calculator counts

When the count is not the last word

The calculator counts every day you mark. A few things can change the answer, and the substantial presence test guide explains each of them:

The rule itself, including which days can be excluded and the forms that go with them, is explained in US Substantial Presence Test: What Travelers Need to Know. Canadian winter visitors: see Canadian Snowbirds: the 182-Day Rule and Form 8840.

Keep the count running, not just once

A calculator checks the days you remember today. The US Substantial Presence Test preset in AtlasDays keeps counting both thresholds as you travel, privately on your iPhone. IRS day-count exclusions are not applied.

Get the app

FAQ

Is the calculator's answer final?

No. It applies the day count to the dates you enter. Excluded days, the closer connection exception and tax treaties can change the outcome, and your filing position is between you and the IRS.

Do I need 183 days in the year I test?

No. The two years before it contribute too, so the weighted total can reach 183 with far fewer days this year. The separate minimum of 31 days in the year you test still applies.

Why does 120 days a year not meet the test?

Because the earlier years are weighted down. 120 days in each of three years gives 120 + 40 + 20 = 180, three days short. 125 days in the oldest year would bring it to 180⅚, still short.

Is my data stored?

No. The calculator runs in your browser and does not send, log or save the dates you enter. Closing or reloading the page clears them. To keep them, tap Export or open in AtlasDays.

About this article: AtlasDays provides general information, not legal, tax, or immigration advice. Rules change and outcomes depend on your circumstances, so never rely on it alone: check the linked official source or ask a qualified professional.