Substantial Presence Test Calculator

Enter each US stay with arrival and departure dates and mark exempt days; the tool counts days for the test year and the two before it, weights them, applies the 31-day and 183-day rules and finds the date the test is met.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Year

    Enter the tax year to test.

  2. 2
    Stays

    Add arrival and departure dates.

  3. 3
    Exempt

    Mark exempt-individual stays.

  4. 4
    Ties

    Answer the closer connection question.

  5. 5
    Result

    Read days, total and date met.

Sobre aquesta eina

A foreign national without a green card is treated as a US resident for federal income tax if he or she meets the substantial presence test under section 7701(b) of the Internal Revenue Code. The test has two parts. You must be physically present in the US on at least 31 days of the current year, and the total of all days this year, one third of the days last year and one sixth of the days the year before must reach 183. The Substantial Presence Test Calculator does the counting from your travel records. You enter the tax year to test and each stay as an arrival date and a departure date in YYYY-MM-DD form; both the arrival day and the departure day count as days present, as Pub. 519 says. Overlapping stays are counted once, so you can paste trips from several sources without double counting. A stay can be marked as exempt when the days were spent as an exempt individual, such as an F or J student, a teacher or trainee, or a foreign government official, and those days are left out of every year. The tool reports the days in each of the three years, the weighted total, a result line and the calendar date in the test year on which the 183-day mark was crossed. When the test is met with fewer than 183 days in the current year and you answer yes to having a tax home and a closer connection to another country, the result says the closer connection exception on Form 8840 may apply. Any row with a missing or reversed date is skipped and reported in a note. The day rules come from Pub. 519; the trips are an example.

Who this is for

Visitors on business or tourist visas who spend long stretches in the US, remote workers splitting the year between countries, international students nearing the end of their exempt years, and employers or preparers checking whether a foreign employee files Form 1040 or Form 1040-NR.

How to use it

1. Enter the tax year you want to test. 2. Add each US stay with its arrival and departure date. 3. Mark stays spent as an exempt individual. 4. Answer the tax home and closer connection question. 5. Read the result, the weighted total and the date the test is met.

What the example shows

The frequent visitor came for 101 days in 2024 (10 February to 20 May), 222 days in 2025 over two stays and 172 days in 2026 (10 January to 30 June). The weighted total is 172 + 222 ÷ 3 + 101 ÷ 6 = 172 + 74 + 16.83 = 262.83, well past 183, and 2026 has more than 31 days. The person is a resident alien for 2026. Since the earlier years supply 90.83 weighted days, the 183 mark is crossed on the 93rd day present in 2026, which falls on 12 April.

The closer connection exception

The same person has fewer than 183 days in 2026. If they keep a tax home abroad and have closer ties there, such as a permanent home, family and a driving licence, they may be treated as a nonresident by filing Form 8840 by the due date of the return. The tool flags this when you answer yes, but it cannot judge the facts behind the answer. The exception is not available to anyone who has applied for a green card.

Exempt individuals

A student who arrives on an F-1 visa on 20 August 2025 and stays through 31 December 2026 has no counted days when the stay is marked exempt, so the result is nonresident. Students are normally exempt for five calendar years and teachers or trainees for two years out of six, and each exempt year needs a Form 8843. The tool trusts the exempt mark you set and does not check those year limits.

Other days that do not count

Pub. 519 also leaves out days in transit between two foreign points for less than 24 hours, days kept in the US by a medical condition that arose here, and days of regular commuters from Canada or Mexico. Enter such stays as exempt or leave them out.

Limits

Tax treaties can override the result through tie-breaker rules, and dual-status years, the first-year choice and green card residency follow their own rules. The answer is a day count and not tax or immigration advice; check Pub. 519 or a preparer who works with nonresident returns.

Exemple resolt

172 days in 2026, 222 in 2025 and 101 in 2024: 262.83 weighted days, so the test is met on 12 April 2026.

En resum

Preguntes freqüents

How many days do I need for the substantial presence test?

At least 31 days in the current year and 183 weighted days over three years: all of this year, one third of last year and one sixth of the year before.

Do arrival and departure days count?

Yes. Any part of a day in the US counts as a day present, so the tool counts both the arrival and the departure date.

Who are exempt individuals?

Mainly F, J, M and Q students, teachers and trainees within their time limits, and foreign government-related individuals. Their days do not count, and most file Form 8843.

What does the date the test is met mean?

It is the first day in the test year on which your weighted total reaches 183. Residency normally starts on your first day present that year.

Can I still be a nonresident if I meet the test?

Possibly, through the closer connection exception (Form 8840) when you had fewer than 183 days this year, or through a tax treaty tie-breaker.

What if I enter overlapping trips?

Each calendar day is counted once, so overlapping or repeated stays do not inflate the total.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes