What is the Substantial Presence Test? 2026 guide to the 183-day rule
The substantial presence test is the IRS day-count framework in IRC §7701(b) that decides when a non-citizen without a green card becomes a US tax resident. You meet it for 2025 with at least 31 days in the US in 2025 and 183 weighted days across 2025, 2024 and 2023.
Substantial presence test meaning: a two-part day count that decides whether the IRS treats you as a US tax resident for the year. Pass it and you are a resident alien taxed on worldwide income on Form 1040. Fail it and you are a nonresident alien taxed mainly on US-source income on Form 1040-NR.
The substantial presence test makes a foreign national a US tax resident for the year once both day-count thresholds are met after excluded days are removed, regardless of how the person classifies themselves, with residency generally starting on the first day of US presence in that year.
That is the substantial presence test for tax purposes in one sentence.
Who needs to apply the US substantial presence test?
US citizens and lawful permanent residents are already US tax residents, so the substantial presence test only applies to other non-citizens – visa holders, visitors, students, and short-term workers – who spent time in the US during 2025 or the two preceding years.
Immigration status and tax residency are separate determinations; a non-immigrant visa does not shield you from US tax residency. You can hold a valid B-2 tourist visa and still file Form 1040 as a resident alien if your day count crosses both thresholds.
The following four pathways can make a non-citizen a US tax resident for 2025:
- Green card test: Any lawful permanent resident status held during the year, regardless of time spent in the US
- Substantial presence test: The day-count test covered in this article
- First-year choice election: A voluntary election to be treated as a resident for part of the year before you meet the SPT
- Election to treat a nonresident spouse as a resident: A joint election under IRC §6013(g) or (h) when one spouse is a US citizen or resident
The US substantial presence test is the most common route for inbound workers, investors, and long-stay visitors. The rest of this article covers how it works.
How the substantial presence test works: the 31-day rule and the 183-day rule
You meet the substantial presence test for 2025 only if you pass both prongs: at least 31 days in the US in 2025, and at least 183 weighted days across the three-year period of 2025, 2024, and 2023. Missing either prong means you fail.
Weighted day formula: all days in 2025 + 1/3 of days in 2024 + 1/6 of days in 2023 ≥ 183.
The test is strictly calendar-year based. Days are counted by the day they occur, not by the day the trip begins or ends. Both thresholds must be met in the same year – a person with 190 weighted days but only 20 current-year days does not meet the test for that year.
This is where the US rule diverges from the simple 183-day residency rule most other countries use. Many foreign systems look only at days in the current calendar year. The US test looks back three years and discounts the older days, which means short trips that would not trigger residency elsewhere can accumulate into US residency over time.
What counts as a day of presence in the US
Any part of a day you are physically in the United States counts as a full day of presence toward the 31-day and 183-day totals. An arrival at 11:30 pm on a Tuesday and a departure at 6:00 am on Wednesday count as two days, not one.
The following six rules define what the IRS counts as a day of US presence:
- Partial days count as full days
- Arrival days count
- Departure days count
- ‘United States' means the 50 states, the District of Columbia, and US territorial waters
- US territories and US airspace are not counted as US presence
- Certain categories of days are excluded entirely, covered later in this article
These are the days of presence in the US that feed every other calculation in this guide. Count them accurately before you apply any multiplier.
How to calculate the substantial presence test step by step
To calculate the substantial presence test for 2025, count your days in the US for each year, subtract any excluded days, apply the 1, 1/3, and 1/6 multipliers for 2025, 2024, and 2023, and check whether the total reaches 183 while also confirming at least 31 current-year days.
The IRS does not publish an official online substantial presence test calculator. If you have seen one advertised, it is a third-party tool. Build your own worksheet and keep the supporting records.
The following five steps walk through the calculation:
- Count physical presence days for 2025, 2024, and 2023 separately, using passport stamps and your official travel record
- Subtract any excluded days such as exempt individual status days, medical condition days, regular commuter days, or transit days under 24 hours
- Apply the multipliers: 1 for 2025, 1/3 for 2024, 1/6 for 2023
- Sum the three weighted figures to get your three-year weighted total
- Check both prongs: confirm you have at least 31 days in 2025 and at least 183 total weighted days
The following worksheet shows how to lay out your three-year day count for the 2025 substantial presence test.
| Year | Days present | Multiplier | Weighted days |
|---|---|---|---|
| 2025 | [your count] | × 1 | [count × 1] |
| 2024 | [your count] | × 1/3 | [count × 1/3] |
| 2023 | [your count] | × 1/6 | [count × 1/6] |
| Three-year weighted total | [sum] |
Substantial presence test examples: pass, fail, and borderline day counts
Three worked scenarios show where readers land under the 183-day weighted formula. Each uses an actual engagement pattern from our practice rather than a hypothetical, so the numbers reflect the fact patterns that come up most often.
The following three examples illustrate a fail, a pass, and a borderline result:
Example 1 (Fail). Based on our client scenario at TFX: a Mexican consultant spent 120 days in the US in each of 2025, 2024, and 2023. Her weighted total is 120 + (120 × 1/3) + (120 × 1/6) = 120 + 40 + 20 = 180 weighted days. She fails the 183-day prong by three days and files no US resident return for 2025.
Example 2 (Pass). Based on our client scenario at TFX: an engineer on an L-1 visa was present 120 days in 2025, 180 days in 2024, and 60 days in 2023. His weighted total is 120 + (180 × 1/3) + (60 × 1/6) = 120 + 60 + 10 = 190 weighted days. He also clears the 31-day prong for 2025, so he files Form 1040 as a resident alien for 2025.
Example 3 (Borderline). Say a Canadian executive totaled exactly 183 weighted days across 2025, 2024, and 2023, with at least 31 of those days in 2025. The test is met at exactly 183 – the threshold is inclusive. A result of 182 would not meet the threshold.
Days you exclude for purposes of the substantial presence test
Some days never count toward the 183-day total. These fall into two groups: days when you qualified as an exempt individual under one of four visa categories, and other excluded days that apply to specific situations such as medical conditions or commuting. An exempt individual substantial presence test calculation simply treats the excluded days as zero.
Most exclusions only work if you file the required IRS statement, usually Form 8843 – without it, the days revert to counted days and the IRS can reclassify you as a resident alien for that year.
The following four categories of exempt individuals do not count any days of US presence while that exempt status applies:
- Foreign-government-related individuals on A or G visas (diplomats, consular staff, international organization employees)
- Teachers and trainees on J-1 or Q visas
- Students on F-1, J-1, M-1, or Q-1 visas
- Professional athletes temporarily in the US to compete in a charitable sports event
The following four categories of other excluded days do not count even when the person is not an exempt individual:
- Regular commuters from Canada or Mexico working in the US while maintaining a residence across the border
- Transit of less than 24 hours between two points outside the US (for example, a layover at a US airport)
- Days as a crew member of a foreign vessel working between the US and a foreign country
- Days you were unable to leave the US because of a medical condition that arose while you were present in the US
Together these are the days you exclude for purposes of the substantial presence test. Each exclusion has its own filing proof, and missing the proof usually loses the exclusion.
Are F-1 and J-1 students exempt from the substantial presence test?
Yes. F-1 and J-1 students are generally exempt individuals for their first 5 calendar years in the US, so those days do not count toward the 183-day test. The exemption is calendar-year based, so any portion of a year counts as a full calendar year against the 5-year limit.
The following four rules govern student exempt status:
- F-1, J-1, M-1, and Q-1 students: exempt for the first 5 calendar years of presence in the US in any immigration status
- J-1 and Q teachers, researchers, and trainees: exempt if they have not been exempt in any 2 of the preceding 6 calendar years
- Calendar year counting: any part of a year counts as a full calendar year, even one day
- After year 5: students must either start counting days or file Form 8843 showing they do not intend to reside permanently in the US and have substantially complied with visa requirements
This is the direct answer to "are F1 students exempt from the substantial presence test" questions we receive weekly. The exemption is powerful but narrow and runs on the calendar year, not the anniversary of arrival.
Form 8843 is required every year the student claims the exemption, even with zero US income. Missing it in one year can collapse the entire exemption for that year.
Substantial presence test for H-1B, E-2, L-1 and other visa holders
H-1B, L-1, E-2, and most other work or investor visas are not exempt. Every day in the US counts from your first day of arrival, which is why most H-1B holders arriving in the first half of a calendar year pass the test and file Form 1040 as resident aliens for that year. This is the substantial presence test H1B treatment in one line.
The following table shows how the substantial presence test applies to the most common non-immigrant visa categories. Resident alien substantial presence test outcomes depend heavily on which column a visa lands in.
| Visa type | Exempt from day counting? | Key note |
|---|---|---|
| F-1, J-1, M-1, Q-1 (students) | Yes | First 5 calendar years; Form 8843 required |
| J-1, Q (teachers, researchers, trainees) | Yes | 2 of preceding 6 calendar years; Form 8843 required |
| A, G (foreign government, diplomats) | Yes | No calendar-year limit while status applies |
| H-1B (specialty occupation) | No | Days count from first day of arrival |
| L-1 (intracompany transferee) | No | Days count from first day of arrival |
| E-2 (treaty investor) | No | Days count from first day of arrival; E2 visa substantial presence test triggers once you cross both prongs |
| O-1 (extraordinary ability) | No | Days count from first day of arrival |
| TN (USMCA professional) | No | Days count from first day of arrival |
| B-1, B-2 (business or tourist) | No | Days count from first day of arrival |
How Form 8843 keeps exempt days out of your day count
Exempt individuals and anyone with a qualifying medical condition claim excluded days on Form 8843. The form is required even if you had no US income during the year, and missing it in a given year generally means the IRS treats the excluded days as counted days and may reclassify you as a resident alien.
Form 8843 substantial presence test attachments are usually filed with Form 1040-NR, or standalone if you had no US income. For the line-by-line walkthrough, including who files Part I, II, III, IV, or V, see our full Form 8843 for exempt individuals guide.
Green card test and substantial presence test: key differences
Under the green card test, you are a US tax resident for any part of 2025 in which you held lawful permanent resident status, regardless of how many days you spent in the US. The substantial presence test applies only to non-citizens who do not hold a green card.
Living abroad does not end green card tax residency; the status continues until you formally abandon it, it is administratively revoked, or a court issues a final removal order. Spending zero days in the US during 2025 does not, by itself, end your tax residency as an LPR.
The green card test and substantial presence test produce the same outcome (US resident alien) through very different mechanics. Understanding the difference matters for people moving between visa and LPR status.
The following table compares the green card test and the substantial presence test on the five factors clients most often ask about.
| Factor | Green card test | Substantial presence test |
|---|---|---|
| Who it applies to | Lawful permanent residents | Non-citizens without a green card |
| Day requirement | None | 31 current-year + 183 weighted |
| Residency start date | First day you were present in the US as an LPR | First day present in the US in the year you meet the test |
| How residency ends | Formal abandonment, administrative revocation, or final court order | Last day present + closer connection to a foreign country |
| Remain resident while living abroad? | Yes, until status ends | No |
The green card substantial presence test interaction matters most during a status change year. Read our guide to green card foreign income tax for how worldwide income reporting applies once LPR status is established.
Substantial presence test vs. physical presence test: don't confuse them
The substantial presence test decides whether a non-citizen is a US tax resident. The physical presence test decides whether a US taxpayer living abroad qualifies for the foreign earned income exclusion by spending 330 full days outside the US during any 12-month period.
The following four points separate the two tests:
- Substantial presence applies to non-citizens; it makes you a US resident
- Physical presence applies to US citizens and residents already; it qualifies you for the foreign earned income exclusion
- Substantial presence is calendar-year based, using a three-year weighted formula
- Physical presence uses any 12-month period and a straight day count
See our guide to the physical presence test for the FEIE side of that comparison.
Using the closer connection exception when you hit 183 weighted days
If you meet the substantial presence test for 2025 but spent fewer than 183 days in the US during 2025, maintained a tax home in a foreign country, and had closer ties to that country, you can file Form 8840 to be treated as a nonresident for US income tax.
The closer connection exception has three strict requirements. You must have been present fewer than 183 days in the current year (183 or more and the exception is unavailable). You must have had a tax home in a foreign country for the full year. And your overall ties – permanent home, family, personal belongings, social and religious affiliations, business activities, and the jurisdiction of your driver's license and voter registration – must point more strongly to the foreign country than to the US.
A pending green card application (for example, a filed Form I-485) generally blocks the closer connection exception because it signals intent to reside permanently in the US.
Form 8840 is attached to Form 1040-NR when a return is required, or filed on its own by the standalone deadline when no return is otherwise due. See our full walkthrough of the Form 8840 closer connection exception for line-by-line filing instructions and common denial reasons.
When you pass the test in two countries: treaty tie-breaker rules
If you are a US tax resident under the substantial presence test and also a tax resident of a country that has an income tax treaty with the US, you may use the treaty's tie-breaker article to be treated as a resident of only one country for tax purposes. The position is disclosed on Form 8833.
The tie-breaker factors are applied in order: permanent home available to you, center of vital interests, habitual abode, nationality, and if still tied, the competent authorities of the two countries decide. Breaking in favor of the foreign country means the US treats you as a nonresident for income tax even though you passed the SPT.
A treaty tie-breaker position does not switch off FBAR, Form 8938, or other US information reporting. Those duties follow residency as defined by US domestic law. See our guide to US tax treaties for the current treaty list and how the tie-breaker articles are applied.
Residency start and end dates, dual-status years and the first-year choice
If you meet the substantial presence test for 2025, your US residency generally starts on the first day you were physically present in the US during 2025, not on 1 January. Specific rules cover a nominal-presence exception, end-of-year departures, dual-status returns, and the first-year choice election.
The following four rules govern residency start and end dates:
- Start date: First day of US presence in the year you meet the test, so a traveler whose first day in the US was 15 March 2025 generally has a residency start date of 15 March 2025
- Nominal-presence exception: Up to 10 days of US presence can be disregarded for start-date purposes if you had a tax home and closer connection to a foreign country during those days
- End date: Residency can end on the last day of US presence if you leave with a tax home abroad and a closer connection; otherwise it runs through 31 December
- First-year choice: You can elect to be treated as a resident for part of 2025 before meeting the SPT, if you have 31 consecutive days of US presence in 2025 AND presence on 75% of the days from that period through 31 December, AND you meet the SPT in 2026
In the year you become or cease to be a US tax resident, you file a dual-status return – nonresident for part of the year on Form 1040-NR and resident for the other part on Form 1040. Our guide to Form 1040-NR for nonresident aliens covers how dual-status returns are structured. The IRS covers residency start and end dates in detail in Publication 519.
Which forms do you file? Form 8843, Form 8840, 1040-NR, or 1040
Your result under the substantial presence test decides whether you file Form 1040 as a resident alien or Form 1040-NR as a nonresident alien, and whether you need to attach Form 8843 for excluded days or Form 8840 for the closer connection exception. The 1040nr substantial presence test outcome controls which forms you prepare.
Form 8843 is required for exempt individuals even with zero US income – missing it can turn exempt days into counted days and reclassify you as a resident alien.
The following table shows which form applies to each outcome under the substantial presence test, with the TY2025 due dates and the forward-looking TY2026 dates filed in 2027.
| Form | Who files it | What it does | Due date |
|---|---|---|---|
| Form 1040 | Resident aliens (met SPT, green card test, or elected resident status) | Reports worldwide income | 15 April 2026, (15 April 2027 filed in 2027) |
| Form 1040-NR (with withheld US wages) | Nonresident aliens with US wage withholding | Reports US-source and effectively connected income | 15 April 2026, (15 April 2027 filed in 2027) |
| Form 1040-NR (no withheld wages) | Nonresident aliens without US wage withholding | Reports US-source and effectively connected income | 15 June 2026, (15 June 2027 filed in 2027) |
| Form 8843 | Exempt individuals and those with a medical condition | Claims excluded days of presence | Attached to Form 1040-NR, or standalone by 15 June 2026, (15 June 2027 filed in 2027) |
| Form 8840 | Those claiming the closer connection exception | Elects nonresident treatment despite meeting SPT | Same timing as Form 1040-NR |
All TY2025 deadlines in the table above have passed as of publication. Late filers should read the Streamlined section further down this article. Our Form 1040-NR guide covers line-by-line preparation. The IRS covers the full residency and filing framework in Publication 519.
What passing the test means for your return: worldwide vs. US-source income
Resident aliens are taxed on worldwide income on Form 1040, just like US citizens – wages, investment income, foreign pensions, foreign business income, and foreign rental income all come onto the US return. Nonresident aliens are taxed mainly on US-source and effectively connected income on Form 1040-NR, with fewer deductions and credits available.
The practical difference is large. A resident alien reports their German brokerage account dividends, their UK rental income, and their Singapore business profits on Form 1040. A nonresident alien reports none of those on a US return – only the US-source items.
This is why the SPT outcome matters so much more than it first appears. The test decides the entire scope of what the IRS can tax. Our Form 1040-NR guide covers the specific income types taxed to nonresidents. The IRS summary of worldwide income rules for resident aliens is in its taxation of US resident aliens page.
Income tax residency vs. estate tax domicile for nonresidents
Passing the substantial presence test makes you a US resident for income tax only. US estate tax is based on domicile – a separate legal concept – so a nonresident alien with US-situs assets (US real estate, US corporate shares held directly) can face separate estate tax rules even while failing the SPT.
The gap between income tax residency and estate tax domicile catches many short-term workers and investors by surprise. See our guide to nonresident alien estate tax rules for the US-situs asset rules and exemption amounts.
Foreign accounts and investments once you become a resident alien
Once you meet the substantial presence test, you report worldwide income and take on the same foreign reporting duties as a US citizen, including the FBAR when your foreign accounts exceed $10,000 (2025) combined at any point during the year.
The following four reporting duties apply to new resident aliens:
- FBAR (FinCEN Form 114): Required when the aggregate maximum of your foreign financial accounts exceeded $10,000 (2025) at any point in the year
- Form 8938 (FATCA): Required above thresholds that vary by filing status and whether you live in or outside the US (check current IRS thresholds; do not rely on a figure quoted secondhand)
- Form 8621 (PFIC): Required for most foreign mutual funds, foreign ETFs, and other non-US pooled investment vehicles
- Form 3520: Required for large gifts and bequests received from foreign persons above the annual threshold
Common substantial presence test mistakes and their consequences
Most residency errors come from day-count shortcuts and missed statements. A missed Form 8843 or Form 8840 can turn excluded days into counted days, and filing the wrong return (Form 1040-NR instead of Form 1040) can mean unreported worldwide income once the IRS matches foreign information returns under FATCA or treaty exchange.
The following six mistakes recur most often in our review of inbound tax returns:
- Miscounting partial days. Treating an arrival or departure day as a half-day – the IRS counts any part of a day as a full day. Fix: recount using passport stamps and the I-94 record.
- Ignoring prior-year weighting. Counting only current-year days and skipping the 1/3 and 1/6 multipliers for the prior two years. Fix: always calculate on the three-year weighted basis.
- Missing Form 8843 or Form 8840. Without the required statement, excluded days revert to counted days, and the closer connection exception is denied. Fix: file the statement even when no return is otherwise due.
- Assuming H-1B time is exempt. Only F, J, M, Q students and J/Q teachers, researchers, and trainees are exempt. H-1B, L-1, E-2, and B-1/B-2 days count from arrival. Fix: treat every H-1B day as a counted day.
- Claiming a closer connection after filing a green card application. A pending Form I-485 generally disqualifies the exception. Fix: use a treaty tie-breaker on Form 8833 instead, if available.
- Filing Form 1040-NR when Form 1040 was required. Common after a quiet pass of the weighted 183-day test in a low-current-year-days scenario; worldwide income goes unreported and PFIC/FBAR obligations are missed. Fix: amend the return and consider the Streamlined procedure.
Penalty exposure on these errors includes failure-to-file and failure-to-pay penalties, interest, and in serious cases accuracy-related penalties under IRC §6662. Information-return penalties for FBAR and Form 8938 can be substantial. The Streamlined Filing Procedure is available for non-willful cases and reduces that exposure materially.
Taxes for Expats (TFX) handles both US expats abroad and foreign nationals determining US residency; our US expat tax services team can review your prior returns and residency position before you contact the IRS.
Frequently asked questions
The substantial presence test requires both at least 31 days in the US in the current year and at least 183 weighted days across the current year, prior year, and second prior year. Days are weighted at 1, 1/3, and 1/6, respectively. For 2025, the three years are 2025, 2024, and 2023.
No. Most countries use a flat 183-day rule based only on the current calendar year. The US substantial presence test is a two-prong weighted formula requiring both 31 days in the current year and 183 weighted days over three years. The two formulas produce different outcomes in identical day-pattern scenarios.
Yes. F-1 students, along with J-1, M-1, and Q-1 students, are exempt individuals for their first 5 calendar years in the US. Those days do not count toward the 183-day total. J-1 students follow the same 5-calendar-year rule as F-1 students, while J-1 teachers, researchers, and trainees follow the separate rule that generally limits exempt status to 2 calendar years. Form 8843 is required every year, even with zero US income, to preserve the exemption.
Yes. H-1B is not an exempt visa category. Every day in the US counts from the day of arrival. Most H-1B holders arriving in the first half of a calendar year pass the test and file Form 1040 as resident aliens for that tax year, reporting worldwide income rather than only US-source income.
The substantial presence test is a federal income tax concept only, administered by the IRS. It decides whether you file as a US tax resident for a given year. It does not affect your immigration status, visa validity, or path to a green card, which are administered by USCIS under different rules.
Possibly. If you were present fewer than 183 days in the current year and have a tax home and closer connection abroad, you can file Form 8840 under the closer connection exception. If you are a resident of a treaty country, the treaty tie-breaker (disclosed on Form 8833) may apply. Both carry strict requirements.
Yes. Exempt individuals (students, teachers, trainees, diplomats) must file Form 8843 every year they claim excluded days, even with zero US income or US filing requirement. Missing it in a year can cost you the exemption for that year and reclassify the days as counted days under the substantial presence test.