Two ways to start. A free fit call, or the Diagnostic in writing.
Client login786-952-6621

Substantial Presence Test: The 183-Day Formula and Counter

Written by Yarik Yarosh, CPA (US & Canada) October 18, 2026 · FL CPA license AC61704 · CPA Ontario

The substantial presence test makes a non-citizen without a green card a US tax resident for a calendar year if they were in the US on at least 31 days that year and the weighted total reaches 183: every day this year, a third of last year’s days and a sixth of the days the year before (IRC 7701(b)(3)). For a snowbird it’s the first test in the snowbird tax guide, and the line sits closer than most people think.

✓Key takeaway

120 days a year, every year, works out to 180 weighted days and doesn’t meet the test. 122 days a year reaches exactly 183 and does. If you meet it with fewer than 183 days in the current year, a timely Form 8840 can keep you a nonresident. At 183 or more, the treaty tie-breaker is what’s left.

What is the substantial presence test?

It’s the day-count test in IRC 7701(b)(3). You meet it for a year if you were in the US on at least 31 days that year and the current year’s days, plus one-third of the first preceding year’s days, plus one-sixth of the second preceding year’s days, equal or exceed 183. The IRS states the same two conditions on its substantial presence test page.

YearDays you were in the USMultiplierCounted days
Current yearAll of them1100 percent
First year beforeAll of them1/3One third
Second year beforeAll of them1/6One sixth

Three details decide close cases.

  • The 31-day floor. If you were not present for more than 30 days in the current year, the test isn’t applied for that year “even if the three-year total is 183 or more days” (Treas. Reg. 301.7701(b)-1(c)(4)). The prior years have no floor of their own.
  • No rounding. The regulation says fractional days “will not be rounded to the nearest whole number” (Treas. Reg. 301.7701(b)-1(c)(1)). Its own example is 122 days in each of three years: 122 plus 40 2/3 plus 20 1/3 equals 183, which meets the test.
  • The IRS’s 120-day example. On its test page, 120 days in each of 2023, 2024 and 2025 gives 120 plus 40 plus 20, or 180 days, so that person is “not considered a resident under the substantial presence test for 2025.”

The counter below runs entirely in your browser and sends nothing anywhere. Enter your counted days for the current year and the two years before, and it shows the weighted total, whether you meet the test, whether the 31-day minimum stops it, and when Form 8840 may still apply.

Substantial presence day counter

Enter the days you were in the US in each year. Leave out days that don't count (regular commuting from Canada, transit under 24 hours between two foreign points, days as a crew member of a foreign vessel, days you couldn't leave because of a medical condition that arose in the US, days as an exempt individual). Medical and exempt-individual days only drop out if you file Form 8843 on time. Nothing you type leaves this page.

What counts as a day of presence in the US?

Any day you’re physically in the US at any time counts as a full day, so the day you arrive and the day you leave both count (Treas. Reg. 301.7701(b)-1(c)(2)(i)). The US here means the 50 states, DC and US territorial waters, and the IRS says it doesn’t include US territories or US airspace (IRS).

The statute and regulations take out a short list of days (IRC 7701(b)(3)(D) and (b)(7)):

  • Regular commuters from Canada or Mexico. Days you commute to a job or self-employment in the US from a home in Canada or Mexico don’t count, if you commute regularly. The regulation defines regularly as more than 75% of the workdays in the working period, and a commute means going and coming back within 24 hours (Treas. Reg. 301.7701(b)-3(e)). A retiree who drives down for groceries isn’t commuting to employment.
  • Transit. Days you’re in the US for fewer than 24 hours while traveling between two places outside the US. Changing planes counts as transit; a business meeting during the stop, even inside the airport, does not (Treas. Reg. 301.7701(b)-3(d)).
  • Medical condition. Days you intend to leave and can’t because of a medical condition that arose while you were in the US. A condition you knew about before you arrived doesn’t qualify, and the exclusion stops once you’re able to leave and stay beyond a reasonable time to arrange it (Treas. Reg. 301.7701(b)-3(c)).
  • Exempt individuals. Days as a foreign government-related individual, a teacher or trainee on a J or Q visa, a student on an F, J, M or Q visa, or a professional athlete at a charitable sports event. “Exempt” here means exempt from counting days, not from tax.
  • Crew members of a foreign vessel temporarily in the US, unless they otherwise engage in a trade or business that day.

To exclude medical or exempt-individual days you must file Form 8843, and the IRS says that if you don’t file it on time, “you cannot exclude the days” unless you can show by clear and convincing evidence that you took reasonable steps to comply (IRS).

Do snowbirds meet the substantial presence test?

Often, yes, and long before they hit 183 days in any one winter. The weighting means a steady pattern of about four months a year sits right at the line, and a single long winter keeps counting for the next two years at a third and then a sixth. Meeting the test doesn’t settle your status, though: a snowbird with fewer than 183 days in the current year usually has the Form 8840 route.

The days a snowbird can spend without meeting the test at all, given the last two years, is the question our day-limit guide for snowbirds works through. The counter above gives the same number for your own history.

How do you avoid US residency if you meet the test?

If you were in the US on fewer than 183 days in the current year, you can still be treated as a nonresident by showing a tax home in a foreign country and a closer connection to that country than to the US (IRC 7701(b)(3)(B)). You claim it on Form 8840, and it’s off the table for a year in which you had a green card application pending or took other steps toward permanent residence.

  • The deadline. If you file a Form 1040-NR, attach Form 8840 to it. If you don’t have to file a return, mail it to the IRS in Austin “by the due date (including extensions) for filing Form 1040-NR” (Form 8840 instructions). With no US wages, that due date for a 2025 return is June 15, 2026 (Pub. 519), and in general June 15 of the year after the tax year.
  • Late is costly. The IRS says that if you don’t file Form 8840 on time you “cannot claim the closer connection exception”, unless you show by clear and convincing evidence that you took reasonable steps to comply (IRS).
  • What the IRS weighs. Where your permanent home, family, personal belongings, social and religious affiliations and business activities are, where you hold a driver’s license and vote, the charities you give to, and the country of residence you put on forms (IRS). Our guides on Form 8840 for snowbirds and whether you need to file it go line by line.

At 183 or more current-year days, Form 8840 isn’t available. The last resort is the treaty tie-breaker in Article IV(2) of the Canada-US tax treaty, which looks in order at a permanent home, then personal and economic relations (centre of vital interests), then habitual abode, then citizenship. A dual resident who claims treaty benefits must file Form 1040-NR with Form 8833 attached and compute the tax as a nonresident (Pub. 519). Pub. 519 also says that for purposes other than figuring the tax, you’re still treated as a US resident. The treaty tie-breaker guide covers how each step is read.

What happens if you meet the test and do nothing?

You’re a resident alien for that year, and resident aliens are generally taxed on their worldwide income, the same as US citizens, while nonresidents are taxed only on US-source income and income connected with a US business (Pub. 519). For a Canadian who is still a Canadian resident, that means two countries claiming the same income unless an exception or the treaty is claimed.

  • In the first year you meet it, residency generally starts on the first day you were present in the US that year, under the residency starting date rule in IRC 7701(b)(2)(A)(iii).
  • Snowbirds who missed earlier years have a route back in. The streamlined filing guide for snowbirds covers who qualifies.

Does the test apply to green card holders?

No. A green card holder is a US resident under a separate test: the statute treats you as a resident for any year in which you are “a lawful permanent resident of the United States at any time during such calendar year” (IRC 7701(b)(1)(A)(i)). Day counts don’t decide it, and Form 8840 isn’t available to a green card holder (Form 8840 instructions).

The exception runs through the treaty. Pub. 519 notes that a green card holder who claims foreign residency under a treaty tie-breaker is treated as a nonresident for figuring tax liability, and that this can trigger the expatriation tax in some cases. Immigration questions about keeping or giving up a green card go to an immigration lawyer.

Does the Canadian Snowbird Act change the test?

Not today. Two bills in Congress would let qualifying Canadians aged 50 and over stay up to 240 days in a 365-day period and treat them as nonresident aliens notwithstanding the substantial presence test, but as of October 18, 2026 neither has moved past committee referral. Until something is enacted, the formula above is the law. Our guide to the Canadian Snowbird Act tracks what the bills would and wouldn’t change.

Want this checked against your own situation?

Start with a Diagnostic: a CPA licensed in the US and Canada reads your file and tells you in writing what's wrong and how to fix it, three to four business days after you finish the questions. The report is $250. If you hire us for any work after that, you get the $250 back as a discount on that work. Or send us your return or your letter and get a fixed price, free.

Get the next cross-border guide by email

One or two plain-English guides a week on US-Canada tax. No spam, unsubscribe anytime.

Cite this page

Yarik Yarosh, CPA. "Substantial Presence Test: The 183-Day Formula and Counter." Blue Cloud CPA, August 30, 2026, updated October 18, 2026. https://bluecloudcpa.com/guides/substantial-presence-test-formula-days-count

This guide is general information, not tax advice for your specific situation. Which points apply, and how, depends on your facts.