How to use this calculator
- Select your visa status. If you're on an F, J, M, or Q visa, the calculator checks whether you're still in your exempt period β exempt days don't count toward the test.
- Enter the year you first arrived on that visa (shown only for exempt-eligible visas).
- Enter your days of physical presence for this year and the two previous years. Any part of a day counts as a full day β arrival and departure days both count. Your official I-94 travel record is the most reliable source.
The result updates instantly. The breakdown shows exactly how the weighted total was computed so you can verify every number.
What is the Substantial Presence Test?
The Substantial Presence Test (SPT) is the IRS's mechanical day-counting rule that decides whether a foreign national is treated as a U.S. resident for tax purposes. Unlike immigration status, tax residency is purely about counting days. You meet the test β and become a tax resident β if both of these are true:
Condition 1 β 31 days
You were physically present in the U.S. at least 31 days during the current year.
Condition 2 β 183 weighted days
Your 3-year weighted total reaches 183 days: all days this year + 1/3 of last year's days + 1/6 of the days from two years ago.
Example: If you spent 120 days in the U.S. in each of the last three years, your total is 120 + 40 + 20 = 180 days. That's below 183, so you would not meet the test β even though you were here a third of every year.
Meeting the test has real consequences: you must report your worldwide income on Form 1040, and you may owe FBAR (foreign bank account) and FATCA (foreign asset) disclosures. Many people become tax residents without realizing it.
Exempt individuals: F, J, M, Q visas
"Exempt individual" doesn't mean exempt from tax β it means your days of presence don't count toward the Substantial Presence Test while the exemption lasts:
Students (F, M, J-student, Q)
- Exempt for the first 5 calendar years in the U.S.
- Calendar years, not 365-day periods β arriving in December still uses up a full year
- Must file Form 8843 each year to claim the exemption
Teachers / trainees (J, Q non-student)
- Exempt for 2 calendar years (with a 2-of-6-year look-back for repeat visits)
- Researchers and visiting scholars typically fall here
- Form 8843 also required
Common trap: switching from F-1 to H-1B. Your H-1B days count immediately β many former students meet the test in their first H-1B year and must file as residents.
Frequently asked questions
Q. Do arrival and departure days count?
A. Yes. Any part of a day physically present in the U.S. counts as a full day β including the day you land and the day you leave.
Q. Where can I find my exact days in the U.S.?
A. Your official I-94 travel history at i94.cbp.dhs.gov lists every entry and exit recorded by CBP. Passport stamps and airline records help fill gaps for land crossings.
Q. I meet the test but live abroad most of the time. Am I stuck?
A. Possibly not. If you were in the U.S. fewer than 183 days in the current year alone and maintain a tax home in another country, you may claim the Closer Connection Exception by filing Form 8840. This calculator doesn't evaluate that exception.
Q. What's the difference between this and the Green Card Test?
A. Green card holders are automatically U.S. tax residents regardless of days. The Substantial Presence Test applies to everyone else β visa holders and visa-free visitors alike.
Q. I became a resident. What do I need to file?
A. Form 1040 reporting worldwide income. If you hold foreign bank accounts over $10,000 total, FBAR (FinCEN 114). Foreign assets above certain thresholds also trigger Form 8938 (FATCA). Penalties for missing these are severe β this is where professional help pays for itself.
Sources: IRS β Substantial Presence Test, Publication 519 (U.S. Tax Guide for Aliens), Form 8843 instructions. This calculator provides an estimate only and is not tax advice. Consult a qualified U.S. tax professional for decisions about your filing status.