Lelifi·tools

183 Day Rule Calculator

120 days in each of the last three years comes to a weighted 180, 3 short of the 183 day line. The math: 120 + 40 + 20 = 180. Add 31 days in the current year and the IRS treats you as a resident. New York draws its own line at 184 days.

Count your weighted days of presence in the United States over the last three years and see where you stand against the 183 day line.

By the Lelifi editors ·

Key takeaways

Second example: does a frequent visitor pass for 2026?Days present in 2026: 1501/3 of the 90 days in 2025: 90 / 3 = 301/6 of the 60 days in 2024: 60 / 6 = 10Total: 150 + 30 + 10 = 190 weighted days190 is over the 183 line, and 150 is over the 31 day floor, so the test is met.
The weighted count for a frequent visitor who passed the 2026 test.
Where the 190 weighted days come from150 days30 daysThis year, in full (150 days)Last year, one third (30 days)Two years back, one sixth (10 days)
Each bar is a slice of the 190 weighted days in the second example.
On this page
  1. What the 183 day rule is
  2. The weighted count, step by step
  3. What counts as a day in the United States
  4. The 183 day rule at the state level
  5. Days that do not count
  6. Three travel patterns, compared
  7. What the result does and does not mean

What the 183 day rule is

The 183 day rule is the day count the IRS uses to decide who counts as a US resident for tax purposes in a given year. It is part of something called the substantial presence test. People hear "183 days" and think it means you can be in the country for half the year without a tax consequence. That reading misses the twist: the test looks at a three year window, and only the current year counts at full weight.

The rule has two parts. First, you must have been present in the United States on at least 31 days during the current year. Second, the weighted total across the current year and the two prior years must reach 183. The current year counts in full, the first year back counts at one third, and the second year back counts at one sixth. If both parts are met, the IRS treats you as a resident for the whole year, no matter what visa you hold.

The name is also used outside taxes. Some states use a version of the 183 day line to decide who counts as a resident for state income tax, and a handful of colleges use day counts when they decide who qualifies for in state tuition. Those versions usually count calendar days straight up, with no weighting, and the thresholds can be a day different, as New York's 184 day rule shows. This page covers the federal weighted test in depth and then walks through the state version, so you can tell which one applies to the question you are asking.

The weighted count, step by step

The formula reads like this: take every day you were present this year, add one third of the days you were present last year, and add one sixth of the days from the year before. In symbols, the weighted total equals D1 + (D2 / 3) + (D3 / 6), where D1 is this year's count, D2 is last year's and D3 is the one before that. The result is compared against 183, and the current year's raw count is compared against 31.

Here is the example the IRS itself uses, moved to recent years. Suppose you were present 120 days in 2026, 120 days in 2025 and 120 days in 2024. For the 2026 test, the count is 120 for 2026, plus 40 for 2025 (one third of 120), plus 20 for 2024 (one sixth of 120). The weighted total is 120 + 40 + 20 = 180. That is under 183, so the test is not met even though you spent almost four months a year in the country for three years running.

Now change the pattern to a longer summer stay. Say you were present 150 days in 2026, 90 in 2025 and 60 in 2024. The weighted count is 150 + 30 + 10 = 190, as the figure above shows. That clears 183, and the 150 days in 2026 also clears the 31 day floor, so both parts of the test are met. Notice what happened: you spent fewer total days across the three years (300 against 360), yet you pass this time, because the heavy years land where the weight is.

One practical note on fractions. If your prior year count does not divide evenly, the cautious habit many preparers follow is to drop the fraction and keep whole days, which never inflates the total. The calculator above shows the exact weighted figure and the whole day count it would use for the verdict.

What counts as a day in the United States

A day of presence is any day you are physically in the country at any time during the day. Land at 11:30 at night and that calendar day counts. The same is true of the day you leave: if you are in the country for part of the day, the whole day counts. This surprises people who think of travel days as half days. For the federal test there are no half days.

The United States, for this purpose, means the 50 states and the District of Columbia. It does not include Puerto Rico, Guam, the US Virgin Islands or other territories, and it does not include US airspace. A flight that lands in San Juan does not add a day of US presence even though the trip feels domestic.

Counting your own days is easier if you work from travel records. Passport stamps, boarding passes and calendar entries give you the raw material, and the stay counter in the calculator above can total one trip for you. If you made many trips in a year, total them trip by trip and put the sum into the current year field. The IRS substantial presence test page lists the counting rules and the exceptions in full, and it is worth a slow read if your travel pattern is unusual, because a few of those exceptions can flip the answer on their own.

The 183 day rule at the state level

States have their own residency lines, and the best known is New York's, which people also call the 183 day rule. New York's version works differently from the federal one. There is no weighting and no three year lookback. Instead, if your permanent home is outside New York but you keep a permanent place of abode in the state for substantially all of the year, then spending 184 days or more in New York during the year makes you a resident for state income tax purposes. Any part of a day counts as a day, so a morning meeting in Manhattan followed by an afternoon flight home is a New York day.

That one day gap between 183 and 184 trips people up. Under the federal test, 183 weighted days meets the line, because the rule says "at least 183". Under New York's statutory residency rule, the line moves at 184, because the statute says more than 183. The New York residency FAQ spells out the 184 day threshold and the part of a day rule.

FeatureFederal substantial presence testNew York statutory residency
Line183 weighted days184 or more calendar days
WeightingFull, one third, one sixth across 3 yearsNone, single year
Extra floor31 days in the current yearAbode maintained substantially all year
What a day meansAny presence during the day, with exceptionsAny part of a day, few exceptions

Other states run similar day based tests, with thresholds that vary, so the number 183 is not universal even where the name is. If you split your year between two states, the practical move is to keep a simple day log for each state through the year. Reconstructing 300 days of travel from memory during an audit is a losing game, and the burden of proof usually sits with you, not the state.

Days that do not count

The federal test carves out a short list of days that never make it into the count, even if you were physically here. The list matters most for people who travel a lot, because the exceptions are aimed at travel and hardship, not at people living in the country.

SituationCounts toward the 183 days?
Regular commute to a US job from a home in Canada or MexicoNo
In transit between two foreign points, in the US under 24 hoursNo, unless you attend a business meeting while here
Crew member of a foreign vessel between the US and a foreign portNo
Medical condition that began in the US and kept you from leavingNo, for the days the condition delayed your departure
Exempt individual, such as many students and foreign government employeesNo
Ordinary vacation, work or family visitYes, every day counts

Two of these deserve a closer look. The medical exception applies when a condition that started while you were in the United States prevents you from leaving, and the days only drop out if a doctor's letter ties the delay to the condition; a planned stay that became long because of treatment you could have had elsewhere does not qualify. The commuter exception requires regular commuting, which the IRS Topic 851 page defines as commuting on more than 75 percent of the workdays in your current working period.

The "exempt individual" label confuses newcomers because it does not mean exempt from tax. It means your days do not count toward the test. Students on F and J visas are generally exempt individuals for five calendar years, and foreign government related employees count as exempt for the length of their official duties. After the exemption window closes, the day count starts from scratch, which is why year five on a student visa deserves a fresh calculation.

Three travel patterns, compared

The weighting rewards recent time and discounts old time, and that single feature explains most of the surprising results. Four patterns below use the same three year window. Only the distribution of days changes, and the verdicts flip back and forth.

PatternThis yearLast yearTwo years backWeighted totalResult
Steady visitor120120120180Short by 3
Long recent summer1509060190Met
First year in the country200300210Met
Snowbird who left60180180150Short by 33

The first row is the trap. Three years of four month visits looks like a lot of time in the country, and it still misses by 3 days. The second row spends 60 fewer days in total and passes, because the days landed in the year that counts at full value. The snowbird row shows the mirror image: two heavy years cannot rescue a light current year, since old days are worth a third and a sixth of what they once were.

The fourth pattern also explains why a departure can feel like it came out of nowhere. Somebody who spent 180 days a year here for two years, then cut back to 60 days, sees the weighted total fall to 150 and the test fail, even though this year's travel was the lightest of the three. If you are near the line, the current year number is the one to watch, because it is the only one that moves the total a full day at a time.

What the result does and does not mean

Meeting the substantial presence test does not by itself decide how much tax you owe, and failing it does not guarantee the opposite. The test is the default classification rule, and the IRS allows a way out for people who pass the day count but keep their closer ties abroad: the closer connection exception, claimed by filing Form 8840. To use it you generally must have been present fewer than 183 days in the current year, so a person at 190 weighted days because of prior years can sometimes claim it while a person at 200 current year days cannot. Visa type also matters, since people on certain visas, such as many G and A visa holders, are exempt individuals whose days never count in the first place.

If you do pass and no exception applies, the usual consequence is that you file as a resident for that year, which means reporting worldwide income on a resident return. That can be better or worse than nonresident filing depending on the person, and it is exactly the kind of call that deserves a professional rather than a calculator. This page does the day arithmetic and nothing else; it is not tax advice, and the numbers here are estimates built from published rules.

Treat the calculator as a planning tool in the other direction too. If the weighted total sits close to 183 in October, the result can tell you whether a planned December trip pushes you over. Each current year day counts at full weight, so the last weeks of the year are the most expensive part of the calendar for this test. Decide the trip before you book it, not after.

Frequently asked questions

How is the 183 day weighted count calculated?

Add every day you were present in the current year, one third of the days from the previous year, and one sixth of the days from two years back. For 150 days in 2026, 90 in 2025 and 60 in 2024, the count is 150 + 30 + 10 = 190 weighted days.

Do 120 days a year for three years pass the 183 day rule?

No. The weighted total is 120 + 40 + 20 = 180, which is 3 days short of the 183 line. This is the IRS's own example, and it shows why the full year count can mislead you.

What is the 31 day requirement in the substantial presence test?

The weighted test has a floor: you must be present at least 31 days in the current year on its own. A person with 190 weighted days built almost entirely from past years, who was present only 10 days this year, fails the current year check.

How many days make me a New York statutory resident?

184 days or more in New York State during the year, when you also maintain a permanent place of abode in the state for substantially all of the year. Any part of a day counts, so a same day business trip is a New York day.

Does the day I arrive or leave count as a day of presence?

Yes, for the federal test. Being in the United States at any time during a calendar day makes that day count, so both the arrival day and the departure day add to your total. There are no half days in the federal count.

What is the closer connection exception?

It is an escape hatch for people who meet the day count but have their home, family and economic life in another country. You claim it by filing Form 8840, and you generally need to have been present fewer than 183 days in the current year to use it.

Which days never count toward the 183 day total?

Days you were kept here by a medical condition that began in the United States, regular commutes from Canada or Mexico, transit stops under 24 hours between two foreign points, days as a foreign vessel crew member, and days you were an exempt individual, such as a student in the first five calendar years on an F or J visa.

Do students on F or J visas count their days?

For the first five calendar years in the United States, students on F and J visas are exempt individuals and their days do not count. Once the five years are used up, the day count begins, and many students find they meet the test in the sixth year.

Does the 183 day rule apply to US citizens?

No. The test decides who is a resident alien for tax purposes. US citizens and green card holders are taxed as residents regardless of their day count, so the calculator is aimed at visitors, foreign workers and recent arrivals.

Is 183 weighted days enough, or do I need more?

183 weighted days is enough for the federal test, because the rule says at least 183. Watch the state version instead: New York's statutory residency rule flips at 184 or more days, so the same year can pass the federal test and still cross the state line.

How can I tell how many more days I can spend in the US this year?

Run your numbers through the calculator and read the days still needed line. If your weighted total sits at 178, each additional day in the current year adds a full day, so you could add up to 5 days before crossing 183. Prior year days add only a fraction each.

If I meet the substantial presence test, do I automatically owe tax on everything?

Meeting the test makes you a resident for that year, and residents generally report their worldwide income, but the actual amount depends on treaties, credits, and filing choices that a day count cannot capture. Use the result as a starting point and confirm your situation with a tax professional.

Spotted a wrong number or a broken result?

More Date Time tools

See all Date Time tools

Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.