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.
Other use cases
Australia tax residency
For people spending 183 or more days in Australia during an income year.
Canada 183-day tax residency
For people without significant Canadian ties who spend 183 or more days in Canada.
Canada provincial health coverage
For Canadian residents who travel and need to keep provincial health coverage.
Canada visitor stay
For visitors entering Canada, including travellers with an eTA or visitor visa.
France tax residency
For people whose home, main stay, work or economic interests are in France.
Germany tax residency
For people who keep a home or establish a habitual stay in Germany.
Ireland tax residency
For people spending 183 days in Ireland in one year or 280 days across two years.
Italy tax residency
For people registered, domiciled or physically present in Italy for most of the year.
Mexico visitor stay
For tourists entering Mexico without temporary or permanent residence.
New Zealand tax residency
For people present more than 183 days in any rolling 12-month period.
Portugal tax residency
For people spending more than 183 days in Portugal or keeping a habitual home there.
Schengen 90-in-180 rule
For non-EU short-stay visitors travelling across the Schengen Area.
Spain 183-day tax residency
For people in Spain more than 183 days or whose main economic interests are there.
U.S. visitor stay
For Visa Waiver Program and B-1/B-2 visitors entering the United States.
UK Statutory Residence Test
For people with UK days or ties who need to determine tax residence.