Tool
U.S. tax residency: substantial presence test
Enter the days you were physically in the United States and see how the IRS 183-day rule would apply to you. No sign-up and your data is not stored.
How the IRS counts
The 183-day rule, step by step
A non-U.S. citizen without a green card is a U.S. tax resident for a calendar year if they meet both conditions:
- At least 31 days of physical presence in the U.S. during the year being evaluated.
- At least 183 days over three years, counting all days of the current year, 1/3 of the days of the prior year and 1/6 of the days of the year before that.
- Any part of a day counts as a full day of presence, unless one of the exceptions below applies.
Count your days
Physical presence in the 50 states and D.C.
Enter your days of presence to see the calculation.
Educational estimate based on the general IRS rules. It does not apply exceptions, elections or tax treaties automatically and is not tax advice.
Before you rely on the result
Important notes
Days that do not count
Days you regularly commute to work from Canada or Mexico, days in transit for less than 24 hours between two foreign points, days as a crew member of a foreign vessel, and days you could not leave because of a medical condition that arose while in the U.S.
Exempt individuals
Days do not count while you are an exempt individual: students on F, J, M or Q visas and teachers or trainees on J or Q visas who substantially comply with their visa, foreign government-related individuals on A or G visas (except A-3 and G-5), and professional athletes at charitable events. Form 8843 is generally required to exclude these days.
Closer connection exception
Even if you meet the test, you may be treated as a nonresident if you were in the U.S. fewer than 183 days that year, kept a tax home all year in a foreign country with which you had a closer connection, and took no steps toward a green card. It is claimed on Form 8840.
Green card and tax treaties
If you were a lawful permanent resident (green card holder) at any time during the year, you are a resident under the green card test, regardless of days. If you are also a resident of a country with a tax treaty with the U.S., the treaty may change the outcome.
Official IRS sources:Substantial presence testPublication 519
Close to the line, or several countries involved?
Residency status defines how you file and what you report. The firm can review your days, exceptions and treaty position before you file.
More tools
Keep making the most of our resources
- Estimated Tax CalculatorEstimate your quarterly federal tax payments in seconds using the general safe-harbor rules.Calculate now
- Tax Deadline CalendarSee upcoming federal and Florida deadlines for 2026–2027 and filter them by taxpayer type.View the calendar
- Frequently Asked QuestionsStraight answers about how the firm works, who it serves and how to get started.Read the answers
- Resources & Official LinksDirect links to the official sources for filings, payments and registrations, gathered in one place.Explore resources
- Consultation RequestTell us about your situation in a few steps and the firm will respond personally.Send a request
