Tax residency and visa absence tracking · Guide + calculator Without the guesswork.

Substantial Presence Test Calculator

Apply the IRS current-year, one-third and one-sixth weights while separating exclusions and exceptions. Sensitive inputs stay in your browser.

Reference toolSubstantial Presence Test CalculatorApply the IRS current-year, one-third and one-sixth weights while separating exclusions and exceptions. Sensitive inputs stay in your browser. Verify important decisions with a qualified professional.
Reference calculation

Enter your details.

Calculated locally. This page loads no analytics and uploads no inputs.

Plain-date semantics · start date is not counted unless the result explicitly says inclusive.

Your result
Arithmetic test not met · 180 weighted days

The IRS test requires at least 31 countable days in the current year and 183 weighted days across three years.

Current year after entered exclusions120
Prior year contribution40One third of countable days
Second prior year contribution20One sixth of countable days
Weighted total180Weighted 183-day threshold is not met

Read before relying

Context matters.

  • Meeting the arithmetic test does not resolve exempt-individual days, treaty tie-breakers, closer-connection exceptions or filing obligations. Use IRS Publication 519 and professional advice.
Rule set 1.1.0

Sources & scope

Source & calculation QA reviewed

The calculation guide and this source trail show what the result means, where the rule came from and when it was last reviewed. This is source-and-calculation QA, not a claim of medical, legal, tax or other professional review; time-sensitive decisions still belong with the linked authority.

JurisdictionUnited States federal tax-residency arithmetic — IRS exclusions, exceptions, treaties and filing rules control
Last reviewed2026-08-22
Next review due2027-02-22
Review scopeCalcSpan source & calculation QA
PrivacySensitive input stays local
How this calculation works

A visible path from input to answer.

Apply the IRS current-year, one-third and one-sixth weights while separating exclusions and exceptions. The page keeps the calculation scope and its limits beside the result so the output can be checked, copied or revisited.

Calculation flow
  1. Read the record. The calculator uses Countable U.S. days this year, Countable U.S. days last year, Countable U.S. days two years ago and Current-year days confirmed as excluded supplied in the form.
  2. Apply the scope. It applies the United States federal tax-residency arithmetic — IRS exclusions, exceptions, treaties and filing rules control reference and the explicit date, unit and counting conventions shown in the result.
  3. Expose the checkpoints. Intermediate rows, warnings and timeline events stay visible; the emphasized row identifies the primary checkpoint when one exists.
Illustrative default example Arithmetic test not met · 180 weighted days

The IRS test requires at least 31 countable days in the current year and 183 weighted days across three years.

  • Weighted total180
Defaults are an illustration only. Replace them with the record that applies to your situation.
Assumptions and scope

Calculation purpose: Apply the IRS current-year, one-third and one-sixth weights while separating exclusions and exceptions. This is a high-sensitivity reference output; the linked authority or qualified professional controls the final decision.

Boundary behavior

Numeric inputs are constrained by the field limits and the result keeps the entered units visible. Zero, minimum, maximum and non-finite values are treated as input boundaries.

Rule trail

Rule set 1.1.0 · Last reviewed 2026-08-22 · Next review due 2027-02-22. The source panel below contains the linked evidence.

Questions answered

What to know before using the result.

Is the IRS substantial presence test simply 183 days in one year?

No. The standard test also requires at least 31 current-year days and uses all current-year days plus one-third of prior-year days and one-sixth of second-prior-year days.

Are all U.S. presence days counted?

No. The IRS lists excluded-day categories and exceptions. Enter counts only after applying the current official instructions to your facts.

Does meeting the arithmetic test always make someone a U.S. tax resident?

No. Exempt-individual rules, closer-connection relief and treaties can change the conclusion; qualified tax advice may be needed.