Sprintax Substantial Presence Test: Formula, Exemptions, and Exceptions

Sprintax runs the Substantial Presence Test by collecting your visa type, visa history, and every U.S. entry and exit date across the current and two prior tax years, then applying the IRS day-counting formula to decide whether you file as a nonresident alien or a resident alien. That single determination controls which return you file, which income the U.S. taxes, and whether Social Security and Medicare should be withheld from your wages. The math is straightforward once the inputs are right; the inputs are where people go wrong.

What the Test Actually Decides

If you are not a U.S. citizen, the IRS treats you as either a resident alien or a nonresident alien. A resident alien files Form 1040 and is taxed on worldwide income.1Internal Revenue Service. Alien Taxation – Certain Essential Concepts A nonresident alien files Form 1040-NR and is taxed only on U.S.-sourced income.2Internal Revenue Service. Taxation of Nonresident Aliens

Without a green card, the Substantial Presence Test is what decides which side of that line you are on. The financial gap can be large. A nonresident with $30,000 in U.S. wages and $50,000 in foreign investment income owes U.S. tax only on the $30,000. A resident owes tax on the full $80,000.

Days Sprintax Removes Before It Counts

Before the formula runs, Sprintax asks about your visa status because certain visa holders are “exempt individuals” whose U.S. days don’t count toward the test at all. Exempt here means exempt from day-counting, not exempt from tax.3Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens

  • Students on F, J, M, or Q visas can exclude days for their first five calendar years in the U.S. After that, the exemption expires unless you can show the IRS you don’t intend to live here permanently.4Internal Revenue Service. Exempt Individual – Who Is a Student
  • Teachers and trainees on J or Q visas can exclude days until they have been exempt for any part of two of the six prior calendar years, which for most people means about two years of exempt status.5Internal Revenue Service. Exempt Individuals: Teachers and Trainees
  • Foreign government-related individuals, generally on A or G visas other than A-3 or G-5, and full-time employees of international organizations.3Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens

Days you couldn’t leave the country because of a medical condition that arose while you were in the U.S. can also be excluded.

Form 8843 Keeps the Exemption Alive

To actually exclude those days, you must file Form 8843 for every year you claim exempt status, and you must file it even if you had zero U.S. income.6Internal Revenue Service. About Form 8843, Statement for Exempt Individuals and Individuals with a Medical Condition Sprintax generates this form automatically when your answers show you qualify. Missing the deadline can cost you the exemption: the IRS may refuse to exclude your days, which can push you past 183 and into resident status. Reasonable-cause relief exists but requires clear and convincing evidence that you took meaningful steps to comply.7Internal Revenue Service. Form 8843 – Statement for Exempt Individuals and Individuals With a Medical Condition

The Weighted Three-Year Formula

Once exempt days are stripped out, the test has two parts. You meet it, and become a resident alien, only if both are true:8Internal Revenue Service. Substantial Presence Test

  • You were physically in the U.S. for at least 31 days during the current calendar year, and
  • Your weighted three-year day total reaches 183 days or more.

The weighted total counts all your days in the current year, one-third of your days in the prior year, and one-sixth of your days two years back. A “day of presence” is any part of a day you were physically in the U.S., with two narrow exceptions: commuting days from Canada or Mexico for work, and transit days between two foreign points where you were in the U.S. for less than 24 hours.8Internal Revenue Service. Substantial Presence Test

The formula trips people up at the margins. Spend 120 days here in each of three years and the weighted total is 180 (120 + 40 + 20). You are not a resident. Bump any year to 125 and the total crosses 183. This is why the entry and exit dates you feed Sprintax matter so much: a single trip you forgot to enter can flip your status.

When the Formula Says Resident but You Can File as Nonresident

Crossing 183 weighted days does not automatically end the story. Two paths let you keep nonresident status.

The Closer Connection Exception

If your life is clearly centered abroad, you can claim the Closer Connection Exception, but only if you were physically present in the U.S. for fewer than 183 actual days in the current year.9Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test You must also show that your tax home was in a foreign country and that your ties there were stronger than your ties to the U.S. The IRS weighs where your permanent home is, where your family lives, where you keep belongings, where you bank, hold a driver’s license, and vote, and what forms you have filed such as W-8 versus W-9.10eCFR. 26 CFR 301.7701(b)-2 – Closer Connection Exception The claim goes on Form 8840, filed with your return or separately if no return is required.11Internal Revenue Service. About Form 8840, Closer Connection Exception Statement for Aliens Sprintax walks you through the qualifying questions and produces the form when you’re eligible, though the software cannot judge the strength of your foreign ties for you.

Tax Treaty Tie-Breakers

If your home country has a tax treaty with the U.S. and both countries consider you a resident under their own laws, a treaty tie-breaker may reassign your residence. Most U.S. treaties look sequentially at where your permanent home is, where your personal and economic ties are strongest, where you habitually live, and finally your nationality.3Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens If the treaty puts you in the foreign country, you can file Form 1040-NR and attach Form 8833 to disclose the treaty position.12Internal Revenue Service. Form 8833, Treaty-Based Return Position Disclosure Not every country has a treaty, and the tie-breaker provisions differ, so this route is not open to everyone.

Dual-Status Years and the First-Year Choice

When your status changes partway through the year, such as arriving on an H-1B in August and meeting the test from that point, you are a dual-status taxpayer. You are taxed on U.S.-sourced income for the nonresident portion and on worldwide income for the resident portion.13Internal Revenue Service. Taxation of Dual-Status Individuals

Which form leads depends on your status on December 31. Resident on the last day of the year: Form 1040 is the primary “Dual-Status Return” with Form 1040-NR attached as a statement covering the nonresident period. Nonresident at year-end: the reverse.13Internal Revenue Service. Taxation of Dual-Status Individuals

If you didn’t meet the test last year but do this year, the first-year choice can let you elect resident status for part of the prior year. You need at least 31 consecutive days of presence in that prior year and presence for at least 75% of the days from the start of that 31-day stretch through year-end.14Internal Revenue Service. Tax Residency Status – First-Year Choice The election creates a dual-status year.

What Changes When Sprintax Puts You on the Resident Side

The status change ripples beyond form selection.

Social Security and Medicare

Nonresident students on F, J, M, or Q visas are generally exempt from FICA on wages earned to carry out the purpose of their visa.15Internal Revenue Service. Foreign Student Liability for Social Security and Medicare Taxes That exemption ends the moment you become a resident alien. If withholding is wrong in either direction, you can ask the employer to correct it or file Form 843 with the IRS to claim a refund.16Internal Revenue Service. Instructions for Form 843

Foreign Account Reporting

Resident aliens are “U.S. persons” for reporting purposes. You must file an FBAR (FinCEN Form 114) if the combined value of your foreign financial accounts exceeded $10,000 at any point during the year.17Internal Revenue Service. Report of Foreign Bank and Financial Accounts (FBAR) You may also owe Form 8938 under FATCA if your foreign financial assets exceeded $50,000 on the last day of the year or $75,000 at any point (higher thresholds for joint filers or those living abroad).18Internal Revenue Service. Comparison of Form 8938 and FBAR Requirements Nonresidents have neither obligation. This is one of the sharper edges of the five-year student exemption running out.

What Sprintax Produces After the Determination

Sprintax is built specifically for nonresident alien tax preparation and produces forms based on the status it calculates. If you land as a nonresident, you get Form 1040-NR and Form 8843 pre-populated from your answers. With no U.S. income, you get Form 8843 alone. If you qualify for treaty benefits, the software applies the relevant provisions and prepares Form 8833. If you meet the Closer Connection Exception, it generates Form 8840. If the calculation places you as a resident alien, Sprintax generates Form 1040 instead.

After the federal return, Sprintax checks whether you have a state filing obligation and offers a state return as a separate add-on. It supports electronic filing of the federal return and produces print-ready copies for anything that must be mailed. The value most users get from the tool is in the two steps where manual errors most often flip status: the exempt-day analysis and the weighted count.

Filing Deadlines

Form 1040-NR is due April 15 if you had wages subject to U.S. income tax withholding, and June 15 if you had only passive income such as dividends, interest, or rent.19Internal Revenue Service. Instructions for Form 1040-NR (2025) An extension to October 15 is available, but any tax owed is still due by the original deadline. Resident aliens filing Form 1040 use the standard April 15 date. Form 8843 attaches to your return; if you have no return to file, mail it by the date a return would have been due, generally June 15 for nonresidents without wage income.6Internal Revenue Service. About Form 8843, Statement for Exempt Individuals and Individuals with a Medical Condition