2026-11-11 · Tax

Am I a US Tax Resident? How to Count Your Days for the 183-Day Test (2026)

↓ Get the free Excel + PDF kit for this article

If you split your year between the US and another country, one question decides how you file: are you a US tax resident? Business owners who live abroad and visit their US company, people who moved here this year on a work or investor visa, students, scholars and parents on long visits all run into it. A resident reports worldwide income on Form 1040. A nonresident generally reports only US-source income on Form 1040-NR. The answer usually comes down to counting days, and the count is easy to get wrong.

This guide walks you through the IRS substantial presence test (often called the 183-day rule) step by step, with formulas you can type into Excel or Google Sheets, worked examples, the exceptions that change the answer, and the forms and dates for the 2026 tax year.

Step 1: Know the two parts of the test

For 2026 you meet the substantial presence test if both of these are true:

  1. You were physically present in the US on at least 31 days in 2026, and
  2. You were present at least 183 days during 2026, 2025 and 2024, counting all the days in 2026, 1/3 of the days in 2025 and 1/6 of the days in 2024.

If you held a green card at any time during the year, you are a resident under the separate green card test, whatever your day count.

Flowchart: green card test, 31-day test, 183 weighted-day test and closer connection exception for 2026
Figure 1. Follow the four questions in order (example flow, not tax advice).

Step 2: Count every day you were in the US

The IRS treats you as present on any day you are physically in the US at any time during the day. That means the arrival day and the departure day both count. A 3-night hotel stay is usually 4 days.

The most reliable way to rebuild your history is to download your I-94 travel history from the official CBP website, then check it against boarding passes and passport stamps. Put each trip on its own row in a sheet:

ColumnWhat to typeExample (example values)
AArrival date6/1/2026
BDeparture date7/31/2026
CDays in 2026=MAX(0,MIN(B2,DATE(2026,12,31))-MAX(A2,DATE(2026,1,1))+1) → 61
DDays in 2025=MAX(0,MIN(B2,DATE(2025,12,31))-MAX(A2,DATE(2025,1,1))+1) → 0
EDays in 2024same formula with 2024 → 0

Example values. Copy the formulas down one row per trip, then total each column with =SUM(C2:C50).

The MIN and MAX parts clip each trip to the calendar year, so a trip from November 2, 2024 to January 13, 2025 correctly gives 60 days in 2024 and 13 days in 2025.

Days you do not count

Subtract these from the yearly totals before Step 3. Exempt individuals and people with medical-condition days generally file Form 8843 to explain them.

Step 3: Do the weighted math

With three yearly totals in B2 (this year), B3 (last year) and B4 (two years ago), this one formula gives the answer:

=IF(AND(B2>=31, B2+B3/3+B4/6>=183), "Meets test", "Does not meet")

Bar chart of example A: 150 days in 2026 plus 40 weighted days from 2025 plus 30 from 2024 equals 220, above the 183 line
Figure 2. Example A: 150 + 40 + 30 = 220 weighted days (example values).
Example (example values)2026 / 2025 / 2024 daysMathResult
A. Owner abroad visiting her US company150 / 120 / 180150 + 40 + 30 = 220Meets the test
B. Moved on an investor visa in June 2026200 / 20 / 0200 + 6.7 + 0 = 206.7Meets the test
C. F-1 student, all days exempt300 / 330 / 2500 + 0 + 0 = 0Does not meet
D. Snowbird, 4 months a year121 / 121 / 121121 + 40.3 + 20.2 = 181.5Does not meet

Example values for illustration. Your facts decide your result.

Notice example A: she was in the US only 150 days in 2026, yet she meets the test because the earlier years add 70 weighted days. Being under 183 days this year does not, by itself, make you a nonresident.

How many days do you have left this year?

Work backwards: =CEILING(183-B3/3-B4/6,1)-1 gives the most days you can spend in the current year and stay below 183 weighted days. If the result is below 31, the 31-day part protects you up to 30 days. For example D, 183 - 40.3 - 20.2 = 122.5, so 122 days keeps the snowbird under the line: one more day is fine, two more days would cross it.

Step 4: Check the exceptions before you decide

RuleWhen it appliesForm
Closer connection exceptionFewer than 183 days in the current year, a tax home in a foreign country, and a closer connection to that country than to the US. Not available if you applied for, or took steps toward, a green card.Form 8840
StudentsDays as an exempt student do not count. After more than 5 calendar years as a student you are no longer exempt unless you show you do not intend to live in the US permanently.Form 8843
Teachers and traineesNot exempt if you were exempt as a teacher, trainee or student for any part of 2 of the 6 prior calendar years (a special rule applies if a foreign employer paid you).Form 8843
Tax treaty tie-breakerIf you are also a resident of a treaty country under its own law, the treaty may treat you as a resident of that country. This changes how you file.Form 1040-NR + Form 8833

Summary for education. Read the form instructions for every condition.

Example A is the classic closer connection case: under 183 days in 2026, her main business and home are abroad, and she has not applied for a green card. If she files Form 8840 on time, she may be treated as a nonresident for 2026. Example B cannot use it, because he was in the US 183 days or more in 2026.

First and last years

Under the day count, residency generally starts on the first day you are present in the year you meet the test, and you may be able to ignore up to 10 days of presence when fixing that date. The year you arrive and the year you leave are often dual-status years, part resident and part nonresident. These years deserve a careful look.

Step 5: Note the forms and dates

Timeline from December 31, 2026 to June 15, 2027 with the day count close, I-94 download, April 15 and June 15 filing dates
Figure 3. Key dates for the 2026 tax year. Confirm them in the current IRS instructions.

Common mistakes

FAQ

Does a day of arrival count if I land at 11 p.m.?

Yes. Any part of a day in the US counts as a day.

I was in the US 150 days in 2026. Am I automatically a nonresident?

No. Add 1/3 of last year's days and 1/6 of the year before. If the total reaches 183, you meet the test, and then you check whether the closer connection exception or a treaty applies.

Do airport layovers count?

Not if you were in the US less than 24 hours while traveling between two places outside the US.

Do I round 1/3 and 1/6 to whole days?

The IRS examples use the plain fractions. Keeping the fractions is the cautious approach near the line.

Does this decide my state residency or immigration status?

No. States have their own residency rules, and tax residency is separate from immigration status.

Checklist

You can download the ready-made US Tax Residency Day Counter 2026 for free in the Free kit download box below (Excel + PDF guide, no sign-up).

This article is for education only and is not tax, legal or immigration advice. Rules change and every situation is different; check the current IRS instructions or consult a qualified professional before you file.

Sources

Free kit download

Tools to follow this article step by step. No sign-up needed.

Free to use for yourself and your own business; please do not resell or redistribute. General information, not tax, legal or accounting advice; check every figure against your own records.

← All articles Privacy