What Is the Substantial Presence Test and How Does It Work?

The Substantial Presence Test is the IRS formula that decides whether a non-citizen owes U.S. tax as a resident alien based on days spent in the country. You pass it, and become a resident alien for tax purposes, if you were physically in the United States for at least 31 days during the current calendar year and for a weighted total of 183 days across the current year and the two years before it. Passing means the IRS taxes you on your worldwide income the same way it taxes a citizen.1Internal Revenue Service. Substantial Presence Test

The Two Thresholds You Have to Clear

Both conditions have to be satisfied in the same calendar year. If you were in the United States fewer than 31 days during the current year, you stay a nonresident no matter how much time you logged in prior years.2Office of the Law Revision Counsel. 26 U.S. Code 7701 – Definitions

The 183-day figure is not raw days added together. It is a weighted total, with a declining multiplier applied to older years. Meeting the 31-day floor but coming up short on the weighted count also keeps you a nonresident.1Internal Revenue Service. Substantial Presence Test

How the Weighted Day Count Works

Three tiers feed the total. Every day of physical presence in the current calendar year counts at full value. Days from the first preceding year count at one-third. Days from the second preceding year count at one-sixth. Add those three numbers. If the sum reaches 183, you pass.1Internal Revenue Service. Substantial Presence Test

The IRS uses a worked example: 120 days of presence in each of 2023, 2024, and 2025. For 2025, you count all 120 days from the current year, 40 days from 2024 (one-third of 120), and 20 days from 2023 (one-sixth of 120). That is 180 days, three short of 183. You are not a resident alien for 2025 under this test.1Internal Revenue Service. Substantial Presence Test

A “day of presence” is any part of a calendar day. A flight that lands at 11 p.m. and clears customs before midnight counts as a full day. There is no minimum number of hours, which is why frequent business travelers sometimes trip the threshold without realizing it.

Days That Don’t Count

Several categories of physical presence are excluded from the tally.

The medical exclusion ends once you can travel again. Days after a reasonable window to arrange departure go back on the count.4Internal Revenue Service. Form 8843 – Statement for Exempt Individuals and Individuals With a Medical Condition

Exempt Individuals Whose Days Are Ignored

The tax code defines certain “exempt individuals” whose days in the country are left out of the formula entirely. “Exempt” refers only to the day count; many of these people still owe U.S. tax on U.S.-source income.

Everyone in these categories, except A and G visa holders other than A-3 and G-5, has to file Form 8843 by the Form 1040-NR due date to preserve exempt status.4Internal Revenue Service. Form 8843 – Statement for Exempt Individuals and Individuals With a Medical Condition

Two Ways to Stay Nonresident Even After Passing

The Closer Connection Exception

If your weighted total hits 183 but you were physically present for fewer than 183 actual days in the current year, you can still be treated as a nonresident by showing a closer connection to a foreign country. You need to have maintained a tax home in that country for the entire year and to have neither applied for nor had a pending application for a green card.6Office of the Law Revision Counsel. 26 U.S. Code 7701 – Definitions

The IRS looks at where your permanent home, family, personal belongings, bank accounts, driver’s license, and social affiliations are, and whether those foreign ties outweigh your U.S. contacts. You claim the exception by filing Form 8840 with your return, or by the Form 1040-NR due date (including extensions) if you have no return to file.7Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test

This is the exception people miss most often. Someone spends 160 actual days in the United States this year, passes the weighted test because of carryover from prior years, and files as a resident without realizing they were eligible to remain nonresident.

Tax Treaty Tie-Breaker Provisions

If you pass the test and cannot use the closer connection exception, a bilateral tax treaty between the United States and your home country may still assign residency to the other country. Most U.S. tax treaties include a tie-breaker article that resolves dual residency by looking at where your permanent home is, where your personal and economic ties are strongest, where you habitually live, and your nationality.

You have to disclose a treaty-based position on Form 8833, Treaty-Based Return Position Disclosure, attached to your return. Failing to file Form 8833 can trigger a $1,000 penalty per failure for individuals. Treaty provisions vary widely by country, and this is often the point at which people bring in a tax professional familiar with international rules.

What Changes If You Pass

A resident alien is taxed on worldwide income. Wages earned in London, rent from a flat in Tokyo, and interest from a bank in São Paulo all belong on your U.S. return. You file Form 1040, the same form citizens use, with the same deductions, credits, and filing statuses.8Internal Revenue Service. U.S. Residents Access to the standard deduction is one meaningful gain compared to nonresident status, which does not allow it.9Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026

Nonresident aliens, by comparison, are taxed only on income connected to U.S. sources. They file Form 1040-NR and face a flat 30 percent rate on certain passive income like dividends and royalties, with no deductions allowed against that income. Treaty rates may reduce the 30 percent, but that is the default.10Internal Revenue Service. Taxation of Nonresident Aliens

The year you arrive in or leave the country often splits between the two statuses, producing what the IRS calls a dual-status tax year with its own rules and its own restrictions on deductions and joint filing.11Internal Revenue Service. Taxation of Dual-Status Individuals

Foreign Account Reporting Follows Residency

Becoming a resident alien pulls you into the U.S. foreign account reporting system, and the penalties there are harsher than on the income tax side.

If the combined value of your foreign financial accounts crosses $10,000 at any point during the calendar year, you have to file a Report of Foreign Bank and Financial Accounts (FBAR), FinCEN Form 114, with the Financial Crimes Enforcement Network. The deadline is April 15, with an automatic extension to October 15.12Internal Revenue Service. Report of Foreign Bank and Financial Accounts (FBAR) A non-willful failure can bring a penalty up to $10,000 per violation (adjusted for inflation). Willful violations reach up to 50 percent of the highest account balance during the year.

Separately, under FATCA, you may need to file Form 8938, Statement of Specified Foreign Financial Assets, with your return. Single filers in the United States report if foreign assets exceed $50,000 on the last day of the tax year or $75,000 at any point during it. For married couples filing jointly, the thresholds are $100,000 and $150,000.13Internal Revenue Service. Do I Need to File Form 8938, Statement of Specified Foreign Financial Assets

Many first-year resident aliens hold accounts back home they never thought of as “foreign.” Once residency kicks in, those accounts are reportable, and the FBAR and FATCA penalties are usually where the real cost of misunderstanding the test shows up.

Penalties for Getting It Wrong

If you meet the test and fail to file as a resident alien, the standard IRS penalties apply. The failure-to-file penalty runs 5 percent of the unpaid tax per month, capped at 25 percent. The failure-to-pay penalty adds another half of one percent per month, also capped at 25 percent. When both hit in the same month, the filing penalty is reduced by the payment penalty, but the combined amount grows quickly.3Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens

The more common problem is not fraud. It is honest confusion: counting days wrong, missing the weighted formula, or assuming a particular visa type keeps you outside the test. By the time the mistake surfaces, back tax, interest, penalties, and unfiled FBAR exposure can stack together. Running the day count each year before tax season is the simplest way to keep any of that from starting.