The substantial presence test

Updated

If you are not a US citizen or green card holder, the substantial presence test decides whether the US taxes you as a resident on your worldwide income. You meet it if you were physically present in the United States on at least 31 days this year and at least 183 days across three years, counting every day this year, a third of last year's days, and a sixth of the days from the year before that.

The three-year figure is a weighted total, not days in a single year. That is the most common misreading, and it is why someone who spends about 122 days a year in the US can meet a test that looks like it needs 183.

Run the substantial presence test

The calculator is made by Spyglass Beacon, a sister site. It runs entirely in your browser: the days you enter are not sent anywhere, by them or by us.

Which days do not count?

Not every day you are physically in the country is a day of presence. These are excluded, and excluding some of them requires a form.

How the count works

Student, teacher and diplomatic visas

Other days that do not count

Form 8843, and what a late one costs

When your US residency starts and ends

What people get wrong about the substantial presence test

What happens if you meet it?

You are taxed as a US resident: worldwide income on Form 1040, the same rules as a citizen, for the whole year, or from your residency starting date onward if this is your first year of residency. Meeting the test is not the end of the question though. Two separate escapes exist, and they are different things:

Which forms does this involve?

Forms
FormWhat it does
Form 8843Statement for Exempt Individuals and Individuals With a Medical Condition: the form that explains why you are excluding days of presence, required for teacher and trainee days, student days, charitable sports event days and medical days.
Form 1040The return you file once you meet the test, because you are then taxed as a US resident on worldwide income.
Form 1040-NRThe nonresident return, and the form whose due date sets the deadline for a standalone Form 8843 and for the residency start and end date statements.
Form 8840Closer Connection Exception Statement for Aliens: the separate claim that keeps you a nonresident even though you met the substantial presence test. Form 8843 does not make that claim.

Counting after the fact is the hard part, because the answer depends on days you have to remember months later. Spyglass Beacon is a paid app that keeps the running count and warns you before you cross a line. We link it because it is a sister site, not because we are paid for the click.

Sources

Every rule and figure on this page was read on an IRS page or in an IRS document, and checked a second time by a separate review, on September 16, 2026.