New: Try our GST, HRA and NRI residency calculators for quick planning.
International taxation: DTAA, foreign income and FEMA touchpoints need documentation-first handling.
US Tax calculator

Substantial Presence Test Calculator

The substantial presence test decides whether a non-citizen without a green card is a US resident for tax. You meet it if you were in the US at least 31 days this year and at least 183 days counting all of this year's days, one-third of last year's and one-sixth of the year before's. Days as an exempt individual don't count.

This year
At least 31 days
Weighted total
183 days over 3 years
Formula
All of this year + ⅓ last year + ⅙ the year before
Substantial presence test
Are you a US resident for tax purposes this year? Count days you were physically in the US.
Countable days this year
120
Weighted total (needs 183)
186.7
Result
Meets the test

You meet the test, but with fewer than 183 days this year you may still be a nonresident under the closer connection exception (Form 8840) or a treaty tie-breaker. A green card makes you resident regardless.

Days that don't count

  • Days as an exempt individual: F, J, M or Q students (generally for 5 calendar years), and J or Q teachers and trainees (generally 2 of the last 6 years).
  • Diplomats and employees of international organisations.
  • Days you couldn't leave because of a medical condition that arose in the US.
  • Days in transit between two foreign points for under 24 hours, and regular commuting days from Canada or Mexico.

If you meet the test

You're a resident alien and file Form 1040 on worldwide income, generally from your first day in the US that year — often a dual-status year in the year you arrive. With fewer than 183 days this year you may still be treated as a nonresident under the closer connection exception (Form 8840), unless you've applied for a green card, or under a treaty tie-breaker.

If you don't

You're a nonresident alien unless you hold a green card, and you file Form 1040-NR if you have US income. If you'll meet the test next year, the first-year choice may let you start residency this year.

Worked example: H-1B holder who arrived in 2025

  1. 12026: 120 days; 2025: 180 days; 2024: 0 days.
  2. 2120 + 180 ÷ 3 + 0 ÷ 6 = 120 + 60 + 0 = 180.
  3. 3180 is below 183, so the test isn't met for 2026 on these numbers.

Not resident under the test — though one more week in the US would change that.

Official sources

  • IRS — Substantial presence test
  • IRS Publication 519 — US Tax Guide for Aliens

Want this checked before you file or pay?

A few questions so the right person replies with a checklist and a fixed quote.

Don't include your SSN, ITIN, passport, bank details or tax documents. We collect documents only after you engage us, through a secure upload link.

WhatsApp Call
FAQ

Frequently Asked Questions

Quick answers to the questions we hear most often.

Does a partial day count?
Yes. Any part of a day you're physically present in the US counts as a full day, apart from the exceptions listed above.
Can I rely on this calculator's result for filing?
Use it as a planning estimate. The final figure depends on the tax year's rules and your exact documents, so a US tax professional should review it before you file or pay.
Does my visa type decide this?
Only in that F, J, M and Q holders can exclude days within their limits. H-1B, L-1, B-1/B-2 and most other visa days count in full.
Does the calculator store my data?
No. The calculation runs in your browser and nothing you type is saved. If you want a US tax professional to review it, share your documents through our checklist-led process.