Publicadas 15 Oct 2026

US Substantial Presence Test: How to Count Your Days Across 3 Years

Learn how the US substantial presence test counts days across three years, which days are excluded, and when exceptions may keep you a nonresident for tax.

US Substantial Presence Test: How to Count Your Days Across 3 Years

Photo by Sean Foster on Unsplash

Many internationally mobile people assume the U.S. “183-day rule” means they can spend up to 182 days in America every year without becoming a U.S. tax resident.

In practice, the substantial presence test usually looks at three calendar years, not just the current one. For 2026, you count every qualifying U.S. day in 2026, one-third of your 2025 days, and one-sixth of your 2024 days. You also need at least 31 actual days in the United States during 2026.

Reach 183 weighted days and you will generally be treated as a U.S. resident alien for federal tax purposes unless an exception or applicable tax treaty changes the result.

One distinction matters from the start: U.S. citizens do not use this test to decide whether they remain U.S. taxpayers while living abroad. The test primarily determines the tax residency of foreign nationals.

◾ US Expat Taxes Explained

How the Substantial Presence Test Works

The IRS substantial presence test has two requirements, and you need to satisfy both.

First, you must have been physically present in the United States for at least 31 days during the current calendar year.

Second, your weighted presence over the current year and previous two years must reach 183 days.

◾ IRS Substantial Presence Test

For 2026, the calculation looks like this:

2026:
◾ U.S. days: Your actual qualifying days
◾ Amount included in the test: 100%

2025:
◾ U.S. days: Your actual qualifying days
◾ Amount included in the test: ⅓

2024:
◾ U.S. days: Your actual qualifying days
◾ Amount included in the test: ⅙

Total: 183 or more = test met

Suppose you spend 100 days in the U.S. in 2026, 180 days in 2025 and 180 days in 2024. Your calculation would be:

100 + 60 + 30 = 190 weighted days.

You have spent only 100 actual days in America during 2026, but you still meet the substantial presence test because your three-year weighted total exceeds 183.

That distinction is what makes the phrase “183-day rule” misleading.

◾ What Is Tax Residency?

Which U.S. Days Count and Which Do Not?

As a general rule, any part of a day physically spent in the United States counts as a day of presence. Arriving late at night does not normally turn that day into a fraction.

Several exceptions can change the calculation. The IRS says you generally do not count qualifying days when you are:

◾ regularly commuting to U.S. employment from a residence in Canada or Mexico;
◾ in the U.S. for less than 24 hours while traveling between two places outside the United States;
◾ present as a crew member of certain foreign vessels;
◾ unable to leave because of a medical condition that developed while you were in the United States; or
◾ treated as an “exempt individual” under the special rules for certain students, teachers, trainees, foreign government-related individuals such as diplomats, and professional athletes competing in charitable sports events.

“Exempt individual” causes a lot of confusion. It does not necessarily mean you are exempt from U.S. tax. It means certain days may be left out of the substantial presence calculation.

For example, qualifying students temporarily present under F, J, M or Q visas can have days excluded under the exempt-individual rules, although time limits apply. Certain J or Q teachers and trainees have separate limits.

People relying on exempt-individual or qualifying medical-condition days generally need Form 8843. Failing to file it on time can prevent those days from being excluded unless the taxpayer meets the IRS's relief standard.

Example: Counting Your Days Across 2024, 2025 and 2026

Say a German consultant spends part of every year working with U.S. clients.

They live mainly in Germany but spent 90 days in the United States in 2024, 120 days in 2025 and 130 days in 2026.

They initially assume they are safely below the “183-day rule” because they spent only 130 days in America during 2026.

Their substantial presence calculation tells a different story:

2026: 130 × 1 = 130 2025: 120 × ⅓ = 40 2024: 90 × ⅙ = 15 Total: 185 weighted days

They meet the substantial presence test.

What this means in real terms is that the day-count calculation needs to happen before they assume they can file as a nonresident. Resident alien status can bring worldwide income into the U.S. federal tax system, although residency starting dates, treaty provisions and exceptions can affect the eventual filing position.

They also spent fewer than 183 actual days in the United States during 2026. If they maintained their tax home in Germany, had a closer connection there than to the United States, and met the remaining requirements, they could investigate the closer connection exception rather than stopping at the 185-day calculation.

Passing the Test Does Not Always Mean the Residency Question Is Over

Passing the Test Does Not Always Mean the Residency Question Is Over

The substantial presence calculation determines whether you meet one U.S. domestic-law residency test. It is not always the final step.

Substantial presence test:

◾ What it does: Determines whether your U.S. presence makes you a resident alien under domestic tax law
◾ Typical filing issue: Three-year weighted day calculation

Closer connection exception:

◾ What it does: Can preserve nonresident treatment for some people who meet the weighted test but spend fewer than 183 actual days in the U.S. during the current year
◾ Typical filing issue: Form 8840

Tax treaty tie-breaker:

◾ What it does: May determine treaty residence when both the U.S. and another treaty country consider you resident
◾ Typical filing issue: Treaty-specific analysis; Form 8833 may apply

For the standard closer connection exception, the IRS generally requires you to have spent fewer than 183 days in the United States during the current year, maintained a tax home in a foreign country and demonstrated a closer connection to that foreign country. A timely Form 8840 is generally required. The exception is also restricted where someone has taken certain steps toward lawful permanent resident status.

A treaty can produce a different analysis. Someone who qualifies as resident under both U.S. law and another country's law may be able to use the residency tie-breaker provisions in an applicable U.S. income tax treaty. Treaty terms differ by country, and disclosure on Form 8833 may be required.

◾ The Hidden Exposure of Dual Tax Residency

Common Substantial Presence Test Mistakes

Treating 183 as a single-year limit

Many people assume 182 U.S. days automatically keeps them nonresident.

The actual substantial presence test uses three years of travel history. Someone with only 100 or 130 current-year days can still meet the test because previous years contribute to the total.

Counting only nights spent in America

A common mistake is counting hotel nights instead of days of physical presence.

In practice, part of a day normally counts as a full presence day. Travel records therefore need arrival and departure dates, not simply the number of overnight stays.

Assuming immigration status and tax residency are the same thing

A visa tells you why you can be in the country. It does not automatically determine your tax residency.

Some visa holders can exclude days under the exempt-individual rules, while others cannot. For example, the IRS states that the exempt-individual rules generally do not exclude H-1B days merely because someone holds an H-1B visa.

◾ Tax Residency vs Domicile vs Residence Permit

Finding an exception but forgetting the form

Qualifying for an exception and documenting it are separate issues.

Form 8840 is used for the closer connection exception, while Form 8843 is relevant to specified exempt-individual and medical-condition exclusions. Missing the filing requirements can jeopardize the treatment you intended to claim.

Assuming moving abroad immediately ends U.S. tax residency

Leaving the United States does not always make the final day of your trip the automatic end of tax residency.

Residency starting and ending rules can create a dual-status year, particularly when someone becomes or ceases to be resident partway through the calendar year.

What to Do Next

Start with three complete calendar years of travel records.

Use passport stamps, airline itineraries, calendar entries and immigration records to build a day-by-day U.S. travel history. Separate ordinary presence days from any days you believe qualify for an exclusion.

Next, calculate the weighted total and check the 31-day current-year requirement separately.

That calculation is easy to do once and harder to keep current, because every trip changes this year’s total and next year’s lookback. In the Flamingo Compliance app, you can set up the Tax Residency tracker to follow the test’s weighting and 183-day threshold. It records each U.S. stay as you travel and alerts you as you approach the limit.

If the number is close to 183, or already above it, do not stop at the arithmetic. Review whether the closer connection rules, a treaty, exempt-individual status or residency starting and ending rules affect the result.

Professional review becomes worthwhile when you have residency exposure in two countries, are relying on Form 8840 or a treaty tie-breaker, have changed immigration status, or are entering or leaving U.S. residency partway through a year.

Frequently Asked Questions

What is the 183-day rule in the USA?

For the substantial presence test, 183 days generally means a weighted total across three calendar years rather than simply 183 days in the current year. You count all qualifying current-year days, one-third of the previous year's days and one-sixth of the days two years earlier, while also meeting the separate 31-current-year-day requirement.

How do I know if I am a U.S. resident for tax purposes?

A foreign national is generally a U.S. resident alien if they meet either the green card test or the substantial presence test, unless an applicable exception or treaty changes the result. U.S. citizens are subject to a different framework and do not rely on the substantial presence test to establish their continuing U.S. taxpayer status.

Am I considered a U.S. tax resident if I live abroad?

Living abroad by itself does not necessarily determine whether you are a U.S. tax resident. Your citizenship, green card status, U.S. travel days, residency starting or ending rules, and potentially an applicable tax treaty can all matter.

Do arrival and departure days count toward substantial presence?

A day generally counts if you are physically present in the United States at any time during that day. Specific exceptions exist, including qualifying transit of less than 24 hours between two foreign locations.

Can I meet the substantial presence test and still be treated as a nonresident?

Yes, some people who meet the substantial presence test can still receive nonresident treatment under the closer connection exception or an applicable income tax treaty. The closer connection exception has specific conditions and generally requires Form 8840, while treaty positions depend on the treaty involved.

Final Take

The core rule is straightforward once you stop treating 183 as a single-year number: track three years, apply the correct weighting, and then check whether any excluded days or residency exceptions change the result. For internationally mobile people, accurate travel records are often what separates an easy calculation from an expensive correction later.

This article is for informational purposes only and does not constitute tax advice. Consult a qualified tax professional for guidance specific to your situation.

Voltar aos Artigos