# 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.

Interactive calculator: https://www.industax.com/calculators/substantial-presence-test

- **This year:** At least 31 days
- **Weighted total:** 183 days over 3 years
- **Formula:** All of this year + ⅓ last year + ⅙ the year before

## 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. 2026: 120 days; 2025: 180 days; 2024: 0 days.
2. 120 + 180 ÷ 3 + 0 ÷ 6 = 120 + 60 + 0 = 180.
3. 180 is below 183, so the test isn't met for 2026 on these numbers.

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

## FAQs

### 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.

### 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.

## Official sources

- IRS — Substantial presence test: https://www.irs.gov/individuals/international-taxpayers/substantial-presence-test
- IRS Publication 519 — US Tax Guide for Aliens: https://www.irs.gov/publications/p519

---
Canonical page: https://www.industax.com/calculators/substantial-presence-test
Publisher: Indus Tax — CA-led tax and compliance firm (https://www.industax.com). Contact: info@industax.com, 9059139258.
This is general information, not advice for your specific facts.