Skip to content

Physical Presence Calculator

How do you want to enter your days in the USA?

Already know your totals? Type the number of days you were physically in the US for each year.

The formula looks at 2026, 2025 and 2024.

Leave out exempt days — time on an F, J, M or Q visa, regular commuting days from Canada or Mexico, and days you were stuck for a medical reason don't count. More on that below.

Substantial Presence Test — 2026

Likely a US Tax Resident

Weighted total: 195 days · threshold is 183

How the 183 threshold stacks up

183
2026: 1402025 ÷ 3: 402024 ÷ 6: 15

31-day test

140 days in 2026

183-day test

195 weighted

You meet the day count, but you were in the US only 140 days this year — under 183. If you keep a tax home abroad you may still escape residency with the closer connection exception (Form 8840). See the guide below.

Educational estimate only, not tax or legal advice. Exempt-day and treaty rules can change the result.

How to Use This Calculator

  1. 1.Set the tax year you want to test — the formula automatically pulls in the two calendar years before it
  2. 2.Pick Quick day counts if you already know your totals, or Trip log to enter entry and exit dates and let the calculator count days for each year
  3. 3.Exclude any exempt days (F/J/M/Q visa days, commuter days, transit under 24 hours, medical-condition days)
  4. 4.Read the weighted total against the 183 line, and check that both the 31-day and 183-day badges are green
  5. 5.If you pass but spent fewer than 183 days in the US this year, look into the closer connection exception before assuming you owe tax as a resident

Rate this calculator

Physical Presence Calculator: How the Substantial Presence Test Counts Your Days in the USA

This physical presence calculatoranswers the tax version of a question that trips up thousands of international travelers every spring: does the IRS treat you as a US resident this year? Two completely different rules both go by the name "physical presence test," and confusing the tax one with the immigration one can cost you thousands of dollars or a denied application. The IRS version — the Substantial Presence Test — isn't a simple "were you here 183 days?" count. It weights your days across three separate calendar years, and it quietly catches people who assumed a few months a year could never make them a US taxpayer.

Physical presence calculator weighing three years of US days against the 183-day substantial presence test threshold

The Two ‘Physical Presence’ Tests People Confuse

Before you count a single day, know which test you actually need. The tax test and the immigration test share a name and nothing else — they have different owners, different day thresholds, and different consequences. Enter the wrong one into the wrong form and you can overpay tax on income that was never taxable, or file a naturalization application that gets bounced for coming up short.

Substantial Presence Test (this page)Naturalization Physical Presence
Run byIRSUSCIS
DecidesWhether you're a US resident for taxWhether you're eligible to become a citizen
Day threshold31 days this year + a weighted 183 over 3 years~913 days (30 months) over the last 5 years
Counting methodWeighted: this year ×1, last year ÷3, prior ÷6Raw days, no weighting
Consequence of passingTaxed on worldwide income; file Form 1040May file Form N-400 to naturalize

If you're here to count days toward a green card or citizenship rather than taxes, you want the immigration side instead — the physical presence calculator for USA immigration tracks that 913-day, five-year requirement. Everything below is about the tax test.

Why the Substantial Presence Test Isn’t Just 183 Days

The 183 number is real, but the way you reach it surprises almost everyone. You're a resident for tax purposes if you meet both parts of this test:

1. At least 31 days in the current year, and
2. daysthis year + ⅓ dayslast year + ⅙ days2 years ago≥ 183

A day this year counts as a full day. A day last year counts as one-third of a day. A day two years ago counts as one-sixth. So the test has a three-year memory that fades as it looks back. Run the numbers on someone who visits the same amount each year and the threshold lands lower than the headline 183: a steady 122 days a year gives 122 + 40.7 + 20.3 = 183.0 exactly. In other words, roughly four months a year, every year, is enough to make the US your tax home — no single year anywhere near 183.

A Worked Example: The Snowbird Who Crossed the Line

Margaret is a Canadian retiree who winters in Arizona. She's careful never to spend half the year in the US, capping each stay at about 130 days. In 2026 she was present 130 days, in 2025 another 130, and in 2024 the same 130. She assumes she's safely a nonresident. Run it through the formula:

  • 2026: 130 × 1 = 130
  • 2025: 130 ÷ 3 = 43.3
  • 2024: 130 ÷ 6 = 21.7
  • Weighted total: 195 days — well over 183

Margaret is a US tax resident for 2026, even though she never came within 50 days of 183 in any single year. That's the trap of the weighting: consistency across years is what pushes people over, not one long visit. Here's how a few common patterns shake out:

Days each year (this / last / prior)Weighted totalTax resident?
100 / 100 / 100150.0No
120 / 120 / 120180.0No (just under)
122 / 122 / 122183.0Yes (exactly on the line)
130 / 130 / 130195.0Yes
180 / 0 / 0180.0No — one year needs 183 actual days
183 / 0 / 0183.0Yes

Notice the bottom two rows. Someone who parachutes in for 180 days once and never returns is nota resident, while 300 days spread evenly over three years (the top row's cousin) can be. Distribution matters as much as the raw count, which is exactly what the day-count fields in the calculator are built to expose.

The Days That Don’t Count

Not every day on US soil is a countable day, and this is where a lot of bad self-assessments go wrong. Two categories get excluded. First, exempt individuals— whole groups of people whose days don't count at all for a set window:

  • Students on F, J, M or Q visas — exempt for their first 5 calendar years. A PhD student can live in the US for years and still file as a nonresident.
  • Teachers and trainees on J or Q visas — exempt for 2 of the previous 6 years.
  • Foreign-government-related individuals and diplomats on A or G visas, plus professional athletes competing in charitable events.

Second, even for a normal visitor, certain daysdrop out: days you regularly commute to work from Canada or Mexico, days you were in transit for under 24 hours between two foreign points, days you couldn't leave because of a medical condition that arose while you were here, and days as a crew member of a foreign vessel. Strip those out before you type a number into the day-count fields, because the IRS expects the net figure.

Passing the Test but Still Escaping Residency

Meeting the day count isn't always the final word. Two escape hatches let you pass the arithmetic yet remain a nonresident. The closer connection exceptionapplies if you were in the US fewer than 183 days in the current year, keep a tax home in another country, and can show a closer connection to that country (family, home, bank accounts, driver's license). You claim it by filing Form 8840. Margaret from the example above can't use it — her 130 current-year days qualify, but only because she stays under 183 each year; her problem is the three-year total, which the exception can still rescue if her real life is clearly in Canada.

The second hatch is a tax treaty tie-breaker. The US has income tax treaties with more than 60 countries, and many include residency tie-breaker rules for people who count as residents of both. You invoke a treaty position on Form 8833. These aren't loopholes — they're the intended mechanism for people whose center of life is genuinely abroad, and skipping them is how frequent visitors end up taxed on income they never owed.

Why the Formula Discounts Your Older Years

The 1/3 and 1/6 fractions aren't arbitrary. Congress wanted a test that captures people whose life is actually shifting to the US, not someone who happened to spend a long stretch here two summers ago. A day two years back tells you far less about where you live now than a day last week, so the formula literally values it at one-sixth. That design choice produces a counter-intuitive result worth internalizing: how you distributeyour days changes the verdict as much as how many you rack up. A person with 150 days packed into the current year alone sits at a weighted 150 and stays a nonresident, while a person with 150 days this year plus 90 last year and 60 the year before reaches 190 and crosses over. Same recent behavior, different history, different tax status. If you're managing your presence deliberately, front-loading days into a single year is far "cheaper" than the same total spread across three — the opposite of what most people guess.

Mistakes That Trigger a Surprise Tax Bill

A few specific errors account for most of the shocks:

  • Counting only whole trips.Both the arrival and the departure day count, so a stack of long weekends adds up faster than you'd think — six three-day trips is 18 days, not six.
  • Forgetting the prior two years.A modest 100-day stay this year feels harmless until you add a third of last year's 120 and a sixth of the prior 120 — that's 100 + 40 + 20 = 160, and one busier year flips it.
  • Miscounting exempt-visa days. An F-1 student who files as a resident by mistake — or a former student who forgets their 5-year exemption has expired and keeps filing as a nonresident — both file wrong.
  • Assuming a green card is about days.If you hold a green card you're a tax resident from the day you get it, full stop, no day-counting involved.

What Changes the Day the Test Says ‘Resident’

Passing the substantial presence test flips real switches. You move from Form 1040-NR to Form 1040, and the US can now tax your worldwideincome — foreign salary, foreign rental income, foreign investment gains — not just US-source income. You also pick up foreign-account reporting: an FBAR (FinCEN Form 114) if your foreign accounts top $10,000 at any point, and possibly Form 8938 under FATCA. In your first year you're usually a dual-status taxpayer, with a residency start date equal to the first day you were present that year. None of that is a reason to panic — it's a reason to run the count before the year ends, while you can still adjust travel, rather than discovering it at tax time.

Use this calculator each year before you file, and again before you plan a long US stay, so residency never sneaks up on you. Pair it with the official IRS Substantial Presence Test guidance for the exact statutory wording, and browse our other specialized tracking tools when you need to count days for immigration, health, or clinic physical therapy productivity instead. When the stakes are high — a big foreign income year, a treaty question, a first year of residency — confirm the result with a cross-border tax professional before you file.

Marko Šinko
Marko ŠinkoCo-Founder & Lead Developer

Croatian developer with a Computer Science degree from University of Zagreb and expertise in advanced algorithms. Co-founder of award-winning projects, Marko ensures precise physics computations and reliable calculator tools across AI Physics Calculator.

Last updated: July 3, 2026LinkedIn

Frequently Asked Questions

Related Calculators