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
- 12026: 120 days; 2025: 180 days; 2024: 0 days.
- 2120 + 180 ÷ 3 + 0 ÷ 6 = 120 + 60 + 0 = 180.
- 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

