Border Rules

U.S. Substantial Presence Test

For non-citizens who spend time in the U.S. across the current and previous two calendar years.

Short summary

The IRS adds up your U.S. days over three calendar years: every day this year, one third of last year's days and one sixth of the days from the year before. If that total reaches 183 and you were in the U.S. at least 31 days this year, you meet the test, and the IRS can treat you as a U.S. resident for tax, which means your worldwide income could be taxed there. If you qualify, filing Form 8840 each year keeps you a non-resident.

Key rules

  • •Formula: all of your U.S. days this year + 1/3 of last year's + 1/6 of the year before's.
  • •Example: 120 days this year, 90 last year and 60 the year before make 120 + 30 + 10 = 160 weighted days, under 183.
  • •You only meet the test if you were also in the U.S. at least 31 days this year.
  • •Any part of a day in the U.S. counts as a full day. Days don't count if you commute to work from Canada or Mexico, pass through in under 24 hours, or can't leave because of a medical condition that began in the U.S.
  • •Form 8840 (the closer connection exception): if you meet the test but were in the U.S. fewer than 183 days this year, and your home, family, work, bank accounts, driver's licence and voter registration are in Canada or another country, Form 8840 tells the IRS you remain a non-resident.
  • •File Form 8840 for every year you meet the test, by June 15 of the following year (April 15 if you had U.S. wages with tax withheld).
  • •In the U.S. 183 days or more this year? Form 8840 is not available, though a tax treaty may still apply. Talk to a cross-border tax advisor.
  • •BorderCount counts your days and warns you as you get close. Whether to file is your decision.

Official sources

Verify the rules directly with the issuing authority.

This page is a short summary, not legal or tax advice. Rules change. Confirm with the official sources above or a qualified professional before acting.

Other use cases