Residency for Tax Purposes: Federal Tests and State Rules

Your residency for tax purposes decides which governments get to tax your income, and the federal government and the states answer that question with different tests. The IRS looks at whether you hold a green card or meet the substantial presence day count. States look at where your permanent home is (your domicile) and, separately, at how many days you spent inside their borders. You can be a nonresident under one system and a resident under another in the same year, and the paperwork that proves your position often matters as much as the underlying tax.

The Two Federal Tests for Non-Citizens

If you are not a U.S. citizen, the IRS treats you as a nonresident unless you pass one of two tests.1Internal Revenue Service. Determining an Individual’s Tax Residency Status

The first is the green card test. If you held a lawful permanent resident card at any point during the calendar year, you are a tax resident for that entire year and file Form 1040 on worldwide income, the same as a citizen.

The second is the substantial presence test, at 26 U.S.C. ยง 7701(b). You meet it when both of these are true:2Office of the Law Revision Counsel. 26 USC 7701 – Definitions

  • You were physically present in the U.S. for at least 31 days during the current year, and
  • Your weighted day count over three years hits 183. Count every day in the current year, one-third of the days in the prior year, and one-sixth of the days two years back.

The weighted math catches people. Someone who spends 120 days a year in the U.S. lands at 120 + 40 + 20 = 180 days, just under. At 125 days a year, the total crosses 183 and residency kicks in. If you split time between countries, tracking days carefully is the difference between owing tax on worldwide income and owing tax only on U.S.-source income.

Days That Don’t Count and Exceptions That Undo the Test

Some categories of visitors can exclude their U.S. days from the substantial presence calculation entirely. The statute calls them “exempt individuals,” meaning exempt from the day count, not exempt from all U.S. tax:2Office of the Law Revision Counsel. 26 USC 7701 – Definitions

  • Foreign government personnel on diplomatic visas, employees of international organizations, and their immediate family.
  • Teachers and trainees on J or Q visas (other than students) who comply with visa requirements.
  • Students on F, J, M, or Q visas who comply with visa requirements.
  • Professional athletes temporarily present to compete in charitable sporting events.

Claiming the exclusion requires filing Form 8843, either with your return or, if you don’t otherwise have to file, by mailing it to the IRS by the return due date. Miss the deadline and the days generally count again.3Internal Revenue Service. Substantial Presence Test

The Closer Connection Exception

Even when the weighted formula puts you at 183 or above, you can still avoid resident status by showing a closer connection to a foreign country. All four of the following must apply:4Internal Revenue Service. Closer Connection Exception to the Substantial Presence Test

  • You were physically present in the U.S. for fewer than 183 actual days (not weighted).
  • You maintained a tax home in a foreign country for the whole year.
  • Your closer connection was to that foreign country than to the U.S.
  • You had no application, and no pending application, for lawful permanent resident status.

The IRS decides “closer connection” by looking at where your permanent home, family, personal belongings, social and religious affiliations, business activities, voter registration, and driver’s license sit. Filing Form I-485 or Form I-130 disqualifies you automatically because those signal intent to become a permanent resident. You claim the exception on Form 8840 by the return due date. Filing late blocks it unless you can prove by clear and convincing evidence that you took reasonable steps to comply.

Medical Condition Exception

If a medical condition arises while you are in the United States and prevents you from leaving, those trapped days do not count toward substantial presence. The condition has to have started here, not before you arrived. You document the exclusion on Form 8843 by the same strict deadline.3Internal Revenue Service. Substantial Presence Test

Arriving Mid-Year: First-Year Choice and Dual-Status Returns

People who arrive part-way through the year sometimes fall into a gap: they don’t meet either federal test for the arrival year but will meet substantial presence the following year. In that case you can elect to be treated as a resident for part of the arrival year. This is the first-year choice. It requires you to have been present for at least 31 consecutive days, and then present for at least 75 percent of the days from the start of that 31-day period through December 31. Up to five days of absence count as presence for the 75 percent test.5Internal Revenue Service. Tax Residency Status – First-Year Choice

Your residency start date under the election is the first day of the qualifying 31-day period. You make the election by attaching a signed statement to Form 1040 with your identifying details, a declaration that you are making the first-year choice, and the exact dates of your 31-day period and any absences. Because the election requires meeting substantial presence the next year, you may need to file for an extension until you can confirm you qualify. Once made, the election cannot be revoked without IRS approval.

If you were a resident for part of the year and a nonresident for the rest, the IRS treats you as a dual-status taxpayer, and the form you file depends on your status on December 31. Residents at year-end file Form 1040 with “Dual-Status Return” written across the top and attach a Form 1040-NR as a statement covering the nonresident portion. Nonresidents at year-end file Form 1040-NR and attach a Form 1040 as the statement.6Internal Revenue Service. Taxation of Dual-Status Individuals

When Two Countries Both Claim You: Treaty Tiebreakers

Someone who qualifies as a tax resident under U.S. rules and another country’s rules at the same time can end up taxed twice on the same income. Where the U.S. has an income tax treaty with the other country, the treaty usually contains a tiebreaker that assigns residency to one country based on permanent home, center of vital interests, habitual abode, and nationality. A dual resident who comes out as a resident of the foreign country under the treaty can file Form 1040-NR and attach Form 8833 to disclose the treaty position.7Internal Revenue Service. Form 8833, Treaty-Based Return Position Disclosure

Failing to disclose a treaty-based return position triggers a $1,000 penalty per failure for individuals. Even green card holders can invoke a treaty tiebreaker to be treated as nonresidents for tax purposes. Doing so can have immigration consequences and is worth working through with both a tax professional and an immigration attorney before filing.

State Residency Starts With Domicile

States use a different framework than the IRS. In most states with an income tax, residency starts with domicile: your one true permanent home, the place you intend to return to after any absence. You can own homes in several states, but you have only one domicile at a time. That address determines which state can tax all of your income, wherever earned.

Domicile is sticky. You keep your existing domicile until you affirmatively establish a new one by physically moving to a new state with the genuine intent to stay there permanently. Simply leaving the state doesn’t end domicile if you plan to come back. Someone on a two-year overseas assignment can still owe state income taxes at home the entire time if they never cut the ties or set up a domicile somewhere else.

Nine states impose no broad-based individual income tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming. Domicile in one of those states generally means no state tax on wages and investment income, though a few tax other categories. Everywhere else, domicile means reporting worldwide income on a resident return.

The 183-Day Rule: Statutory Residency

Domicile isn’t the only way a state can pull you in. Most states with an income tax also apply a statutory residency rule. The common version: if you spend more than 183 days in the state and maintain a place to live there, the state treats you as a resident and can tax all of your income, just as if you were domiciled there.

The dwelling requirement trips people up more than the day count. Any place suitable for year-round use that you maintain or have access to usually qualifies, including a house you own, a leased apartment, and in many states a vacation home or even a room at a relative’s place available to you. It’s the combination of days plus available dwelling that creates the tax obligation, and people often discover this after buying a second home or taking an extended assignment.

Day counting is more precise than most people expect. Some states count any part of a day as a full day, so arriving at 11 p.m. and leaving at 6 a.m. is two days. Others count where you spent the night. If you are close to the line, the counting method for your particular state matters.

Remote Work Across State Lines

Remote work has added a wrinkle. In most states, tax follows physical presence: you owe tax to the state where you sat while doing the work. If you work from home in one state for an employer headquartered elsewhere, you generally owe tax only in your home state.

Roughly eight states apply a “convenience of the employer” test that breaks from that rule. Under it, if you work remotely for your own convenience rather than because your employer requires it, the employer’s state can tax your wages as though you performed the work there. New York enforces this most aggressively; Connecticut, Delaware, Nebraska, New Jersey, Oregon, and Pennsylvania have adopted some version. Details vary. Some apply the rule only to residents of other convenience-rule states; one limits it to executives performing managerial services.

The practical problem is that both your home state and the employer’s state may claim the same wages, leaving you to work out credits so you don’t pay twice. Before you assume the home state is the only one with a claim, check whether either state applies a convenience rule.

Changing Your Domicile Between States

Moving from one state to another mid-year typically produces part-year resident status in each. You file a part-year return in both, allocating income to whichever state you were domiciled in when you earned it. Wages earned before the move go on the old state’s return; wages earned after go on the new one. Investment income and other passive earnings usually follow domicile on the date received.

Proving you actually changed domicile is the harder question, especially when the move is from a high-tax state to a low-tax one. Auditors are skeptical and look at substance over form. Getting a new driver’s license and registering to vote in the new state are necessary but not sufficient. What auditors weigh most heavily:

  • Time. Are you spending significantly more days in the new state, including holidays and important personal occasions?
  • Homes. Did you sell or downsize in the old state? Keeping a comparable home there undercuts the claim.
  • Business ties. Did active business involvement move with you? Passive investments like rental property carry less weight.
  • Family. Did your spouse and minor children move too?
  • Personal belongings. Items with sentimental value, family heirlooms, and pets should be where you now live.

States also look at whether you gave up benefits tied to the old state’s residence, like primary-residence property tax exemptions and resident-rate club memberships. Auditors have been known to check which airport you fly from for vacations. The more your daily life still looks like the old state’s, with only a paper trail in the new one, the more likely the old state will reject the change and assess back taxes with interest.

How Tax Authorities Verify Where You Lived

Residency audits are among the most invasive examinations in tax enforcement because the auditor is reconstructing where you actually lived. Traditional evidence includes voter registration records, driver’s and professional license records, the location of bank accounts, the location of your doctors and dentists, and where you attend religious services. Auditors look at where valuable personal property is kept and where close family lives. Each data point builds a picture of where your life is centered.

The digital trail has become just as important. Tax departments obtain credit card records and airline manifests to track movement. Toll records provide time-stamped evidence of which state you were driving through on a given day. Cell phone location data has become a particularly powerful tool. Every time your phone connects to a tower, the carrier records which tower handled the connection, creating a log of your approximate location throughout the day.

Tax authorities can subpoena that cellular data, and some carriers produce detailed latitude and longitude coordinates for every call, text, and data session. The data isn’t perfect. Phones sometimes connect to towers across a border rather than the closest one, and periods of inactivity leave gaps. But auditors use it to challenge day counts that don’t match. If you claimed to be in Florida on a Tuesday and your phone pinged towers in Manhattan, expect to explain. Carriers typically retain the data for about two years, which won’t cover every year under audit but is often enough to create real problems when the records contradict the return.

The best defense is a contemporaneous log of where you slept each night, backed by credit card receipts, calendar entries, and travel records. Reconstructing it years later is far harder and much less convincing to an auditor who already has the phone records.

Avoiding Being Taxed Twice

State Credits for Taxes Paid to Another State

When two states tax the same income, most states with an income tax provide a credit on your resident return for income taxes you paid to another state on the same earnings. The credit is generally limited to the lesser of the tax you paid to the other state or the tax your home state would have charged on the same income. You typically have to file in both states and attach proof of what you paid elsewhere. The specifics of qualifying income and how the credit is calculated vary, so it rarely makes you whole, but it usually prevents outright double taxation.

Federal Foreign Tax Credit and the Earned Income Exclusion

At the federal level, resident aliens and citizens who pay income tax to a foreign government can claim the Foreign Tax Credit against U.S. tax on the same income. You use Form 1116, which runs the calculation by income category. Simple situations (all passive income like dividends and interest, reported on standard forms, and total foreign taxes of $300 or less, or $600 on a joint return) let you claim the credit on the return itself without Form 1116.8Internal Revenue Service. Instructions for Form 1116

Residents who live and work abroad may also qualify for the Foreign Earned Income Exclusion, which lets you exclude a portion of your foreign wages from U.S. taxable income. The exclusion amount adjusts annually for inflation. To qualify, you need a tax home in a foreign country and must meet either the bona fide residence test or the physical presence test (330 full days abroad in a 12-month period).9Internal Revenue Service. Foreign Earned Income Exclusion

What You Have to Report Once You’re a Resident

Once you qualify as a U.S. tax resident, the IRS wants worldwide income reported on Form 1040 regardless of where the money was earned. That covers wages from a foreign employer, overseas investment returns, and profits from businesses operated outside the country.10Internal Revenue Service. U.S. Citizens and Resident Aliens Abroad At the state level, residents of taxing states file a resident return covering their total income.

Foreign financial accounts trigger separate disclosure requirements with steep penalties. If the combined value of your foreign bank and financial accounts exceeds $10,000 at any point during the year, you must file an FBAR (FinCEN Form 114) electronically through the BSA E-Filing system by April 15, with an automatic extension to October 15.11Internal Revenue Service. Report of Foreign Bank and Financial Accounts (FBAR)

A separate FATCA requirement covers specified foreign financial assets reported on Form 8938, attached to your tax return. Thresholds depend on filing status and whether you live in the U.S. or abroad:12Internal Revenue Service. Do I Need to File Form 8938, Statement of Specified Foreign Financial Assets?

  • Unmarried, living in the U.S.: more than $50,000 on the last day of the year, or more than $75,000 at any point.
  • Married filing jointly, living in the U.S.: more than $100,000 on the last day, or more than $150,000 at any point.
  • Unmarried, living abroad: more than $200,000 on the last day, or more than $300,000 at any point.
  • Married filing jointly, living abroad: more than $400,000 on the last day, or more than $600,000 at any point.

Form 8938 and the FBAR are not interchangeable. They overlap but cover different sets of assets, and many taxpayers have to file both. The FBAR covers bank accounts, brokerage accounts, and mutual funds at foreign institutions. Form 8938 covers those plus foreign stock, foreign partnership interests, foreign financial instruments, and interests in foreign entities.

What Happens When You Get Residency Wrong

Consequences start with back taxes and interest and can climb quickly depending on what you failed to report and whether the IRS treats the mistake as negligent or willful.

If you should have filed a resident return and didn’t file at all, the failure-to-file penalty runs 5 percent of the unpaid tax for each month or partial month the return is late, capped at 25 percent.13Internal Revenue Service. Failure to File Penalty A separate failure-to-pay penalty of 0.5 percent per month accrues alongside. Both run concurrently, with the failure-to-file penalty reduced by the failure-to-pay amount for months they overlap. Interest compounds on top.

If you filed but substantially understated income because of an incorrect residency position, the IRS can impose an accuracy-related penalty of 20 percent on the underpayment. That applies when the understatement exceeds the greater of 10 percent of the tax that should have been shown or $5,000.14Office of the Law Revision Counsel. 26 USC 6662 – Imposition of Accuracy-Related Penalty on Underpayments

The harshest consequences involve unreported foreign accounts. Non-willful failure to file an FBAR can carry a penalty of over $16,000 per form. Willful violations run to the greater of roughly $165,000 or 50 percent of the account balance, assessed per account per year. These amounts adjust annually and can exceed the value of the accounts themselves. The IRS also imposes penalties for missing Form 8938 and for failing to disclose treaty-based return positions on Form 8833. In extreme cases of willful evasion, criminal prosecution is possible. The paperwork matters as much as the tax. Missing a disclosure form, even when no additional tax is actually owed, can generate penalties that dwarf the underlying tax.