The Substantial Presence Test: Resident or Nonresident for 2026 Taxes?
The IRS doesn't ask what visa you hold to decide your tax status. It counts your days in the U.S. over three years. This is the test that decides whether you file Form 1040 or 1040-NR — and it's part of the complete ITIN filing guide.
The short version
- Your visa type does not decide your tax residency. Physical days in the U.S. do.
- The test has two prongs: at least 31 days this year AND a weighted 183 days across three years.
- Prior years count at reduced weight — 1/3 for last year, 1/6 for two years ago. You can be under 183 actual days and still pass.
- Pass the test and you're a resident alien taxed on worldwide income (Form 1040). Fail it and you're a nonresident alien taxed only on U.S. income (Form 1040-NR).
- F-1 students, J-1 teachers, and diplomats are exempt individuals — their days often don't count, but they may still owe Form 8843.
- Even if you pass, the Closer Connection Exception (Form 8840) or a tax treaty may keep you a nonresident.
01What the Substantial Presence Test actually decides
If you are not a U.S. citizen, the IRS treats you as a nonresident for tax purposes unless you meet one of two tests: the green card test or the substantial presence test (SPT). The SPT looks at one thing — how many days you were physically present in the United States over a three-year window.
This matters because your tax status controls almost everything else. A resident alien files Form 1040 and reports worldwide income. A nonresident alien files Form 1040-NR and is generally taxed only on U.S.-source income. Same person, very different tax bill.
Here's the part that surprises people: your immigration status does not control the answer. You can hold a temporary work visa and still be a tax resident. You can hold a green card application that's pending and still be counted. The IRS counts calendar days, January 1 through December 31. If you want the bigger picture on filing without a Social Security number, start with the complete ITIN filing guide.
Educational, not tax advice. Young Money Creators is run by educators, not CPAs or attorneys. Tax residency can hinge on small details. Confirm your situation with a licensed professional before filing.
02The two-prong day-count formula
To pass the SPT you must satisfy both conditions at the same time:
- Prong 1 — Current year minimum: present in the U.S. at least 31 days in the current calendar year.
- Prong 2 — Weighted three-year total: at least 183 days using a weighted formula across the current year and the two years before it.
The weighting is the trap. You count:
- All the days you were present in the current year
- 1/3 of the days you were present in the first prior year
- 1/6 of the days you were present in the second prior year
So the math is: (current-year days × 1) + (last year × 1/3) + (two years ago × 1/6). If that total hits 183 or more — and you have at least 31 days this year — you're a resident.
03A worked example (straight from IRS Publication 519)
120 days a year, three years running
Same number of days each year — but the weighting changes everything.
180 is under 183, so this person is not a resident under the SPT for 2025, per IRS Publication 519. But notice how close it is. A few extra days in any year would flip the result.
The opposite is also true. You can spend fewer than 183 actual days in 2026 and still pass, because last year and the year before are pulling weight into your count. Run your own numbers with our free calculator before assuming you're safe under the line.
04Days that don't count
Not every day in the U.S. counts toward the SPT. The IRS excludes several categories:
- Days you commute to work from a residence in Canada or Mexico, if you commute regularly
- Days you're in the U.S. for less than 24 hours while in transit between two places outside the U.S.
- Days you're in the U.S. as a crew member of a foreign vessel
- Days you're unable to leave because of a medical condition that developed while you were in the United States
Keep records to support any excluded days. The IRS expects documentation — boarding passes, a doctor's statement, commuter logs. If you exclude medical days, you generally must attach Form 8843 to your return.
05Exempt individuals: when your visa pauses the count
Certain visa holders are "exempt individuals," meaning their days are not counted toward the SPT for a set period. This is different from being tax-exempt — it just freezes the day-counting clock.
- F, J, M, or Q students — exempt for up to five calendar years
- J or Q teachers and trainees — exempt for two out of the last six years
- Diplomats and foreign-government-related individuals
- Professional athletes temporarily in the U.S. for a charitable sports event
Important: exempt individuals must still file Form 8843 with their income tax return to claim the exclusion. If you have no income and don't have to file a return, you still send Form 8843 on its own by the filing due date. Skipping it can cost you the exemption.
After the exempt period ends — for example, an F-1 student in year six — your days start counting normally and you may flip to resident status. Many international students get caught off guard here.
06Resident vs. nonresident: what changes on your return
The status decides your form and the income you report.
Resident alien (SPT met)
Nonresident alien (SPT not met)
Resident aliens can generally claim the standard deduction, the same tax credits, and the same deductions available to U.S. citizens. Nonresidents are more limited and usually can't take the standard deduction. Once you're a resident, you also pick up foreign-asset reporting obligations like the FBAR (filed when foreign accounts total over $10,000 at any point in the year) and possibly Form 8938.
If you're building a broader plan around your new status, our Money Moves Guide covers what to do once you owe U.S. tax on worldwide income.
07The Closer Connection Exception (Form 8840)
Pass the SPT but feel like your real life is abroad? You may still claim nonresident status through the Closer Connection Exception. It applies if you:
- Were present in the U.S. fewer than 183 days in the current year
- Maintained a tax home in a foreign country all year
- Had a closer connection to that country than to the U.S. — think permanent home, family, belongings, and personal ties
You claim it by filing Form 8840. File it on time. If you don't, the IRS says you cannot claim the exception unless you can show by clear and convincing evidence that you took reasonable steps to learn and comply with the rules.
Disqualifier: You can't claim a closer connection if you applied for a green card during the year, took steps toward permanent residence, or had an adjustment-of-status application pending. Pursuing a green card signals you're tying yourself to the U.S., not away from it.
08Dual-status years and the First-Year Choice
The year you arrive or leave the U.S., you may be a nonresident for part of it and a resident for the rest. That's a dual-status year, and it gets its own return.
If you don't meet either test in the current year or the prior year, but you will meet the SPT next year, you may be able to make the First-Year Choice to be treated as a resident for part of the current year. To qualify, you must:
- Be present in the U.S. for at least 31 consecutive days in the current year, and
- Be present for at least 75% of the days from the first day of that 31-day period through December 31.
If you haven't met the SPT yet by April 15, you can request an extension to file with Form 4868, pushing your deadline to October 15 while you wait to satisfy the test. Residency-termination rules also matter when you leave — your termination date is generally December 31 unless you qualify for an earlier date.
09What the OBBBA changed for ITIN holders
The One Big Beautiful Bill Act, signed July 4, 2025, tightened several credits for filers using an ITIN instead of a Social Security number. The headline changes: tighter SSN requirements around the Child Tax Credit and the loss of certain education credits for ITIN filers.
What you may still be able to claim depends on your facts, including the $500 Credit for Other Dependents as a fallback in some cases. Because these rules are new and shifting, don't assume last year's outcome applies. Read the immigrant-specific breakdown in our immigrant money playbook and confirm credit eligibility before you file.
One thing the OBBBA did not change: the SPT itself. The day-count rules above still decide whether you're a resident or nonresident. Your ITIN is a tax ID, not a residency status — the IRS issues ITINs to both resident and nonresident aliens.
10Deadlines, forms, and a filing checklist
Key 2026 dates
- April 15, 2026 — due date for 2025 returns; also the deadline for Form 8840 and Form 8843
- June 15, 2026 — extended due date for nonresidents living abroad (Form 1040-NR)
- October 15, 2026 — extension deadline via Form 4868
- April 15, 2027 — due date for 2026 returns if you met the SPT in 2026
Before you file
- Pull your I-94 travel history to count days accurately
- Run the weighted formula for all three years
- Gather support for any excluded or exempt days
- File Form 8843 if you're an exempt individual — even with no income
- File Form 8840 on time if claiming a closer connection
- Renew your ITIN if it has expired
ITIN processing takes about 7 weeks normally, and 9–11 weeks during tax season (mid-January to April 30) or from overseas. Apply early. For broader money decisions tied to your status, see the Money Moves Guide.
Frequently asked questions
Do I have to be in the U.S. for 183 days this year to be a tax resident?
No. This is the most common misunderstanding. The 183 figure is a weighted three-year total, not a current-year count. Last year's days count at 1/3 and two years ago at 1/6. You can be under 183 actual days in the current year and still pass the test because the prior years pull weight into the formula.
Does my visa type decide whether I'm a resident or nonresident?
Not by itself. The SPT counts physical days in the U.S. over a weighted three-year period. A person can hold a temporary visa and still be treated as a resident for tax purposes once they cross the day threshold. The main exception is "exempt individuals" like students and teachers, whose days don't count for a set number of years.
I'm an F-1 student. Do my days count toward the SPT?
Generally no, for up to five calendar years. F-1 students are exempt individuals, so their days of presence are not counted during that window. But you must file Form 8843 to claim the exemption, even if you have no income. After the five-year period, your days start counting normally.
What's the difference between Form 1040 and Form 1040-NR?
Resident aliens (who meet the SPT) file Form 1040 and report worldwide income. Nonresident aliens file Form 1040-NR and are generally taxed only on U.S.-source income. Residents can usually claim the standard deduction and the same credits as citizens; nonresidents are more limited.
Can I avoid resident status even if I pass the SPT?
Possibly. If you spent fewer than 183 days in the U.S. this year, kept a tax home abroad, and have stronger ties to another country, you may claim the Closer Connection Exception by filing Form 8840 on time. A tax treaty tie-breaker may also help separately. You cannot claim a closer connection if you applied for a green card or had an adjustment-of-status application pending during the year.
What happens if I file Form 8840 late?
The IRS says if you don't timely file Form 8840, you cannot claim the closer connection exception — unless you show by clear and convincing evidence that you took reasonable steps to learn the filing requirement and significant steps to comply. Don't rely on that. File it by the return due date.
What is a dual-status tax year?
It's a year where you're a nonresident for part of it and a resident for the rest, usually the year you arrive in or depart from the U.S. You file a dual-status return that splits the year. The First-Year Choice lets some new arrivals elect resident treatment for part of the year if they meet the 31-consecutive-day and 75% presence rules.
Does an ITIN make me a resident or nonresident?
Neither. An ITIN is a tax identification number for people who need to file but aren't eligible for a Social Security number. The IRS issues ITINs to both resident and nonresident aliens. Your residency is decided by the SPT (or green card test), not by your ITIN.
What foreign-asset reporting kicks in if I become a resident?
Once you're a resident alien, you may owe an FBAR if your foreign financial accounts total more than $10,000 at any point in the year, and possibly Form 8938 (FATCA) above separate thresholds. These have their own deadlines. Check the immigrant money playbook for an overview before filing.
How do I count my days accurately?
Pull your official I-94 travel history from the government's travel records, then run the weighted formula across the current year and the two prior years. Keep documentation for any excluded days — transit, commuter, crew, or medical. Our free calculator can help you estimate where you land.
Find your tax leak in 90 seconds.
Our free calculator estimates what you may be over- or under-paying based on your situation — then the Money Moves Guide shows you the fixes, in the same plain-English voice as this article.
Get the Money Moves Guide — $47Sources
- IRS — Substantial Presence Test
- IRS Publication 519 (2025), U.S. Tax Guide for Aliens
- IRS — Tax Residency Status: First-Year Choice
- IRS — Closer Connection Exception to the SPT
- IRS — About Form 8840
- IRS — Individual Taxpayer Identification Number (ITIN)
- IRS — One Big Beautiful Bill provisions
- TaxAct — OBBB Limits Tax Credits for ITIN Filers Without SSNs

