Substantial presence test calculator

Determine if the IRS considers you a U.S. tax resident based on the 183-day weighted formula.

Presence Details
IRS 3-year weighted formula
180
120
90

You Meet the Test

235.0 days

weighted total (183 needed to pass)

2026 (×1)

180

180 actual days

2025 (×⅓)

40.0

120 actual days

2024 (×⅙)

15.0

90 actual days

What This Means

Based on your inputs, the IRS would classify you as a resident alien for tax purposes. This means:

  • You are taxed on your worldwide income, not just U.S.-source income
  • You file taxes using Form 1040 (same as U.S. citizens)
  • You may be eligible for standard deductions and most tax credits
  • You must report foreign bank accounts if totals exceed $10,000 (FBAR)

You may still qualify for the Closer Connection Exception if you were present fewer than 183 actual days this year and maintained a tax home abroad. This requires filing Form 8840.

* This calculator is for informational purposes only. Consult a tax professional for advice specific to your situation.

How the Substantial Presence Test works

The IRS uses the Substantial Presence Test (SPT) to determine whether a foreign national is treated as a U.S. resident for federal tax purposes. The test uses a weighted 3-year formula based on your physical presence in the United States.

The formula: Count all days present in the current year, plus one-third of the days in the prior year, plus one-sixth of the days two years ago. If this weighted total reaches 183 days or more, and you were present at least 31 days in the current year, you pass the test.

Exempt individuals: Certain visa holders — including F1 and J1 students and researchers — are considered "exempt individuals" for a limited number of calendar years. During exempt years, their U.S. presence days are excluded from the calculation entirely.

Understanding your tax residency status is crucial because it determines which tax form you file, whether you're taxed on worldwide or U.S.-only income, and which deductions and credits you can claim. If you're on an H1B visa, use our H1B Tax Estimator to estimate your actual tax liability.

Who needs to take this test?

Any foreign national who has spent time in the United States should understand the Substantial Presence Test. It applies to all visa types including H1B work visas, L1 transfers, O1 extraordinary ability visas, B1/B2 tourist visas, and more.

Even if you are not working in the U.S., extended visits can trigger tax residency. For example, someone who visits the U.S. for 120+ days per year over three years could meet the weighted threshold without ever holding a work visa.

If you're an international student on an F1 visa, check our F1 OPT Tax Calculator to understand how your exempt status affects your tax obligations during Optional Practical Training.

Substantial Presence Test FAQ

Common questions about IRS tax residency for immigrants.