US Tax Residency Determination Rules Updated for Foreign Nationals

For foreign nationals living, working, or spending significant time in the United States, understanding how the IRS classifies you for tax purposes can make a substantial difference to your financial obligations. Your tax residency status — whether you are treated as a resident alien or a nonresident alien — determines whether you owe US tax on your worldwide income or only on what you earn from US sources.

The US residency test for tax purposes relies on two primary methods: the green card test, which applies automatically to lawful permanent residents, and the substantial presence test, which counts the number of days you are physically present in the country. Under the substantial presence test, you generally need to be present for at least 31 days in the current year and 183 days over a rolling three-year period to qualify as a tax resident.

Tax residency status can also shift within a single calendar year — a situation known as dual-status classification — which typically occurs in the year you arrive in or depart from the United States.

Forbes Advisor explains the US tax residency definition, who qualifies under each test, critical exceptions that can override standard residency rules, and recent updates affecting foreign nationals’ compliance requirements.

What Is US Tax Residency and Why Does It Matter?

US Tax Residency Definition and Its Impact

Under the Internal Revenue Code, every individual filing a US tax return falls into one of two categories: a tax resident or a nonresident alien. All US citizens and US residents are treated as US tax residents. For everyone else, classification depends on meeting either the green card test or the substantial presence test.

It’s worth noting that citizenship and tax residency are not the same thing. A US citizen living abroad still carries the same basic filing and reporting obligations as one living in the country. At the same time, a foreign national physically present in the United States can become a tax resident without ever holding a US passport. The residence tests are applied on a calendar year basis.

Foreign nationals who fail to meet either test are classified as nonresident aliens for US tax purposes. And as mentioned, tax residency status can shift during a single tax year — creating dual-status situations that most commonly arise in the year you arrive or depart. According to IRS rules, you can be both a nonresident and a resident within the same tax year.

How Tax Resident Status Affects Your Obligations

Your tax resident status shapes the entire structure of what you owe — and what you’re entitled to claim. Resident aliens follow the same tax laws as US citizens and report worldwide income. They also gain access to all the same deductions, credits, and tax benefits.

Green card holders qualify as resident aliens regardless of where they live or how much time they spend in the US. This status generally continues until the green card is formally relinquished. Individuals who hold green cards but leave the United States to live abroad indefinitely or permanently will generally continue to be classified and taxed as resident aliens until the green card is relinquished. Importantly, the mere expiration of the physical green card document is not sufficient to terminate residence for tax purposes.

For those who held a green card in at least eight of the last 15 tax years ending with the year residency ends, complex expatriation tax rules may apply. Professional tax advice should always be sought prior to obtaining or relinquishing a green card.

Worldwide Income vs. US-Source Income Taxation

This is where the distinction between resident and nonresident status has the most tangible financial impact.

As a green card holder, you are generally required to file a US income tax return and report worldwide income, no matter where you live. US citizens and residents are taxed on all their income, regardless of where it is earned.

Nonresident aliens face more limited tax obligations, but also have restricted access to tax benefits. They are taxed only on US-source income. Foreign-source income falls entirely outside the reach of US tax for this group.

Here’s how the two categories break down:

US-source income taxable for nonresidents:

  • Wages for services performed in the US
  • Interest from US payers
  • Dividends from US corporations
  • Rental income from US real estate
  • Capital gains from US real property
  • Business income from US operations

Foreign-source income not taxable for nonresidents:

  • Wages for services performed outside the US
  • Interest from foreign payers
  • Dividends from foreign corporations
  • Rental income from foreign real estate
  • Capital gains from foreign property

Tax treaties add another layer of complexity. They generally reduce the US taxes of residents of foreign countries, as determined under the applicable treaties. If you are treated as a resident of a foreign country under a tax treaty and not treated as a resident of the United States under that treaty, you are treated as a nonresident alien when calculating your US income tax. However, for purposes other than calculating your tax, you will still be treated as a US resident.

For this to apply, the income tax treaty between the two countries must contain a provision that resolves conflicting claims of residence. Dual-resident taxpayers who claim treaty benefits as residents of another country must file using Form 1040-NR and compute tax as a nonresident alien.

Green Card Test Determines Automatic Tax Residency

How Lawful Permanent Residents Qualify

Holding a green card makes you a US tax resident — automatically and immediately. Under IRS rules, you are a resident for US federal tax purposes if you are a lawful permanent resident of the United States at any time during the calendar year. This is known as the green card test.

Lawful permanent resident status means you have been granted the privilege, under US immigration law, of residing permanently in the United States as an immigrant. You generally have this status once the US Citizenship and Immigration Services (USCIS) issues you a Permanent Resident Card, Form I-551 — more commonly known as a green card. From that point forward, you are considered a US tax resident for income tax purposes.

Importantly, the green card test operates independently from the substantial presence test. Green card holders meet US tax residency requirements without needing to satisfy any day-count threshold. Physical presence becomes irrelevant once a green card is issued. Put simply, a lawful permanent resident is a US tax resident regardless of where in the world they actually live.

When Green Card Status Begins for Tax Purposes

Your residency starting date depends on how and where you received your green card. When you initially obtain a green card while inside the United States, your residency starting date is the first day of that calendar year on which you are present in the US as a lawful permanent resident — specifically, the date USCIS officially approved your petition to become an immigrant.

If you received your green card abroad, the calculation shifts. Your residency starting date becomes the first day you are physically present in the United States after receiving the green card. Tax obligations do not begin the moment USCIS approves your application overseas — they begin when you actually enter the United States with that approved status.

If you meet the green card test at any time during the calendar year but do not meet the substantial presence test for that year, your residency starting date is still the first day on which you are present in the United States as a lawful permanent resident.

Retaining Residency After Leaving the United States

Leaving the United States does not end your tax residency. You continue to hold US resident status under the green card test unless you voluntarily renounce and abandon that status in writing to USCIS, your immigrant status is administratively terminated by USCIS, or your immigrant status is judicially terminated by a US federal court.

Green card holders who move abroad indefinitely or permanently will generally continue to be classified and taxed as resident aliens until the green card is formally relinquished. The mere expiration of the physical green card document is not enough to terminate tax residency. You remain a US taxpayer until the card is formally abandoned or administratively revoked.

There are several ways permanent resident status can be lost: intentionally abandoning it by moving to another country with no intent to return, declaring yourself a nonimmigrant on US tax returns, or remaining outside the United States for an extended period. Under Internal Revenue Code section 6039G(d)(3), the Department of Homeland Security is required to notify the IRS when you lose permanent resident status — whether through removal or voluntary surrender of your green card.

One more consideration worth noting: complex expatriation tax rules apply to individuals classified as long-term residents — meaning those who held a green card in at least 8 of the last 15 tax years ending with the year residency ends. Professional tax advice should always be sought before obtaining or relinquishing a green card.

Substantial Presence Test Calculates Your Physical Days

Meeting the 31-Day Current Year Requirement

The substantial presence test determines US tax residency through a two-part calculation based entirely on how many days you are physically present in the country. The first part is straightforward: you must be present in the United States on at least 31 days during the current calendar year. This is a gateway requirement. Fall even one day short, and you fail the test entirely for that year, regardless of how much time you spent in prior years.

Physical presence means being in the country at any time during the day. Arriving at 11:59 PM still counts as a full day toward your 31-day total. The test runs from January 1 through December 31. Spend only 30 days in the United States during 2025, and the substantial presence test simply does not apply to you for that year.

Applying the 183-Day Three-Year Formula

Clearing the 31-day threshold triggers the second part of the calculation. You must also accumulate 183 days over the three-year period that includes the current year and the two immediately preceding years. Importantly, those days are not counted equally — the formula weights recent presence more heavily than older presence.

Here is how the calculation works:

  • All days present in the current year count in full
  • One-third of the days present in the first year before the current year are counted
  • One-sixth of the days present in the second year before the current year are counted

For example, if you were physically present in the United States for 120 days in each of 2023, 2024, and 2025, the calculation for 2025 would look like this: 120 days (full 2025 presence) + 40 days (one-third of 120 days in 2024) + 20 days (one-sixth of 120 days in 2023) = 180 days total. Because 180 falls short of the 183-day threshold, you would not be considered a US tax resident under the substantial presence test for 2025.

Which Days Count Toward Your Presence

Any day you are physically present in the United States at any point during that day counts toward your total. The definition of “United States” for this purpose includes all 50 states, the District of Columbia, US territorial waters, and adjacent seabed areas where the US holds mineral rights. United States territories such as Puerto Rico, and US airspace, are not included.

Exempt Days Under Special Categories

Not every day spent in the United States counts toward the substantial presence calculation. The following days are excluded:

  • Days you are in transit through the United States for less than 24 hours, travelling between two places outside the country
  • Days you commute to work in the United States from a residence in Canada or Mexico, if you do so regularly
  • Days you are present as a crew member of a foreign vessel
  • Days you are unable to leave because of a medical condition that developed while you were in the United States

It is also worth clarifying what “exempt individual” actually means in this context. The term does not refer to someone who is exempt from US tax — it refers specifically to individuals in certain categories whose days in the United States are excluded from the substantial presence calculation. Those categories include:

  • A foreign government-related individual temporarily present under an A or G visa (excluding A-3 and G-5 visa holders)
  • A teacher or trainee temporarily present under a J or Q visa, who substantially complies with the terms of that visa
  • A student temporarily present under an F, J, M, or Q visa, who substantially complies with the terms of that visa
  • A professional athlete temporarily present to compete in a charitable sports event

Students can claim exempt individual status for up to five calendar years. Teachers and trainees are eligible for up to two exempt calendar years within any preceding six-year period.

What Exceptions Override Standard US Residency Tests?

Meeting the substantial presence test does not automatically mean you are classified as a US tax resident. Several exceptions allow foreign nationals to maintain nonresident status even when the day count would otherwise push them over the threshold. These provisions exist because mechanical day-counting does not always reflect where someone’s real life — and real ties — are anchored.

Closer Connection Exception to the Substantial Presence Test

Even if you meet the substantial presence test, you can still be treated as a nonresident alien if all three of the following conditions apply:

  • You were present in the United States for fewer than 183 days during the year
  • You maintained a tax home in a foreign country for the entire year
  • You had a closer connection to that foreign country than to the United States

The IRS evaluates your connection to a country based on a range of factors, including where your permanent home is located, where your family lives, where your personal property is kept (cars, furniture, clothing, jewelry), your social and religious affiliations, where you conduct business, and where you hold a driver’s license and are registered to vote. Your permanent home can be a house, apartment, or furnished room — rented or owned — but it must be available to you on a continuous basis, not just for occasional short stays.

There is one important disqualifier: you cannot claim the closer connection exception if you applied for lawful permanent resident status or had a green card application pending at any point during the year. Filing certain immigration forms — including Form I-485, Form I-130, Form I-140, Form ETA-750, or Form OF-230 — signals intent to become a lawful permanent resident and disqualifies you from this exception.

To claim the closer connection exception, you must file Form 8840. Without timely filing, the exception is unavailable unless you can demonstrate by clear and convincing evidence that you took reasonable steps to become aware of the requirement and made significant efforts to comply.

Tax Home Requirements in Foreign Countries

Your tax home is defined as the general area of your main place of business, employment, or post of duty — regardless of where your family lives. Having a tax home in a particular location does not necessarily mean that location qualifies as your residence or domicile for tax purposes.

If you have no regular place of business, your tax home may be wherever you regularly live. If you have neither a regular business location nor a fixed place of residence, you are considered itinerant and your tax home is wherever you happen to work. More broadly, the location of your abode is determined by where you maintain your family, economic, and personal ties.

First-Year Choice Election for New Arrivals

If you do not meet the substantial presence test for the current year but expect to meet it in the following year, you can elect to be treated as a US resident for part of the current year. To qualify, you must meet two conditions:

  • You were physically present in the United States for at least 31 consecutive days in the current year
  • You were present for at least 75% of the days from the start of that 31-day period through December 31 of that year

For the 75% requirement, up to five days of absence can be treated as days of presence.

To make this election, attach a statement to Form 1040 confirming that you are making the first-year choice, that you were not a US resident in the prior year, and that you qualified under the substantial presence test in the following year. Keep in mind that you cannot file your return until you have actually met the substantial presence test for the following year.

Students and Scholars Face Different Counting Rules

Students on F-1 or J-1 visas can exclude up to five calendar years of US presence from the substantial presence calculation. J-1 visa holders who are not students are limited to two exempt calendar years. During these exempt periods, days spent in the United States simply do not count toward the 183-day threshold — which means that many international students can spend years studying in the United States without triggering US tax residency based on physical presence alone. It’s worth noting that these exemptions apply to calendar years, not consecutive years, so timing matters when determining how much of your exemption remains.

How Do Tax Treaties Affect Your Residency Status?

Dual Resident Classification Under Treaties

Meeting the US substantial presence test does not automatically mean the United States is the only country that claims you as a tax resident. Under each country’s domestic tax laws, you can simultaneously qualify as a resident of both the United States and another country — a situation known as dual residency. This happens because domestic tax law in each jurisdiction operates independently, without automatic coordination between the two countries.

The foundation of dual residency is tax liability. To qualify under treaty provisions, you must be subject to comprehensive tax liability on worldwide income in both jurisdictions — not merely obligations on limited or source-based income. The burden falls on you to demonstrate that liability to tax exists in the other country.

Treaty Tie-Breaker Rules Resolve Conflicts

When dual residency occurs, income tax treaties provide a sequence of tie-breaker tests to determine which country holds the primary right to tax you. These tests are applied in order, and each one is only considered if the previous test fails to resolve the conflict. The sequence typically runs as follows:

  • Permanent home: Which country has a home available to you on a continuous basis, not solely for short stays?
  • Centre of vital interests: Where are your strongest personal and economic ties — family, property, business activities, social affiliations, driver’s licence, and voting registration?
  • Habitual abode: Which country do you spend more time in, looking at your patterns of presence across both countries?
  • Nationality: Which country are you a citizen of?

Where none of these tests conclusively resolves the conflict, competent authority procedures between the two tax administrations may become necessary. Put simply, the more documentation you have proving your connections to each country, the better positioned you are when applying these subjective tests.

Filing Form 8833 to Claim Treaty Benefits

If you are a dual resident taxpayer and claim treaty benefits as a resident of the other country, you must file your return using Form 1040-NR and compute tax as a nonresident alien. You must also attach a fully completed Form 8833 to disclose your treaty-based return position.

Form 8833 is required when you receive payments or income items totalling more than $100,000 and determine your residence under a treaty rather than under standard alien tax status rules. The form is also required when claiming treaty benefits that reduce or modify taxation on gains from US real property, change the source of income or deductions, or claim credit for specific foreign taxes.

There are exceptions, however. You do not need to file Form 8833 for reduced withholding rates on interest, dividends, rent, or royalties, or for treaty exemptions covering dependent personal services, pensions, annuities, social security, or income of artists, athletes, students, trainees, or teachers. Payments totalling $10,000 or less also fall below the disclosure threshold.

Missing a Form 8833 filing carries a penalty of $1,000 per failure for individuals. Each separate treaty position counts as a distinct violation — meaning penalties can multiply quickly if more than one position goes undisclosed.

Understanding Dual-Status Alien Classification

When Dual-Status Occurs in Arrival and Departure Years

Dual-status classification is exactly what it sounds like: your tax status changes at some point during the calendar year, shifting from nonresident to resident, or from resident to nonresident. This has nothing to do with citizenship. It refers strictly to how the IRS classifies you for tax purposes in a given year.

The most common dual-status tax years are the years you arrive in or depart from the United States. An arrival year occurs when you move to the United States partway through the year — by obtaining a green card, starting work on an H-1B visa, or meeting the substantial presence test. A departure year happens when you were a US resident who moved abroad and gave up your residency status midyear.

To illustrate: if you were a Mexican citizen who arrived in the United States on an H visa on June 1, 2024, and left on December 31, 2024, you would meet the substantial presence test because you were physically present for more than 183 days. That means you qualified as a nonresident alien from January 1 to May 31, and a resident alien from June 1 to December 31.

How Taxation Differs for Each Period

Your tax year splits into two distinct periods, each governed by different rules. During your resident period, all income from every source counts as worldwide income and is taxed under the same rules that apply to US citizens. During your nonresident period, only income from US sources is taxable.

A few things are worth noting. Income from sources outside the United States is taxable if you receive it while you are a resident. Income from US sources, on the other hand, is taxable whether you receive it as a nonresident or a resident — unless specifically exempt under the Internal Revenue Code or a tax treaty.

Special Filing Procedures Required

Where you stand on December 31 determines which form you file as your primary return. Residents on the last day of the year file Form 1040 as the main return, with Form 1040-NR attached. Nonresidents on December 31 do the reverse.

There are additional steps to follow:

  • Write “Dual-Status Return” across the top of the main form
  • Attach a statement showing income for the opposite portion of the year
  • Label both parts clearly so the IRS can identify them as one submission
  • Write “Dual-Status Statement” across the top of the attachment
  • Include your name, address, and taxpayer identification number on any statement

One important note: dual-status returns cannot be e-filed. They must be mailed directly to the IRS.

What Filing Requirements Apply to Each Status?

Your residency classification does not just affect how much tax you owe — it also determines which forms you need to file and when. The rules differ significantly depending on whether you are a resident alien, a nonresident alien, or an exempt individual.

Form 1040 for Resident Aliens

Resident aliens file Form 1040, the standard US Individual Income Tax Return, following the same tax rules that apply to US citizens. That means reporting worldwide income from all sources, regardless of which country generated the earnings. If you file on a calendar-year basis, your return is due by April 15. Form 8843 is not required for resident aliens.

Form 1040-NR for Nonresident Aliens

Nonresident aliens engaged in a US trade or business during the year must file Form 1040-NR and report all income from US sources. The filing deadline depends on your income type:

  • If you received wages subject to income tax withholding, your return is due by April 15
  • If you had no wages subject to withholding, your return is due by June 15

You may also need to attach Form 8833 if you engaged in a US trade or business but are claiming under a tax treaty that effectively connected income is not subject to net-basis taxation because it lacks attribution to a US permanent establishment.

Form 8843 for Exempt Individuals

Form 8843 is an informational statement — not a tax return — for nonresidents claiming exempt individual status. You must file it to exclude days of US presence from the substantial presence test calculation if you qualify as an exempt individual or were unable to leave the United States due to a medical condition.

If you are a nonresident with no US source income at all, filing Form 8843 on its own fulfills your federal tax filing obligation for the year. If you do file a nonresident tax return, attach Form 8843 to your Form 1040-NR.

Additional Reporting for Foreign Assets

Qualifying as a US tax resident can trigger foreign asset reporting obligations that go beyond your annual income tax return. US taxpayers holding foreign financial assets with an aggregate value above the reporting threshold must report those assets on Form 8938, attached to their annual return. It is worth noting that this FATCA requirement operates separately from the FinCEN Form 114, commonly known as the FBAR, which carries its own filing rules and deadlines.

Recent Updates to US Tax Residency Determination Rules

The rules governing US tax residency are not static. Green card abandonment procedures, exempt individual filings, and treaty position disclosures have all seen tightened standards in recent years — and the consequences of missing a step can be significant.

Changes in Green Card Abandonment Standards

Giving up a green card is no longer a simple administrative matter. Under Internal Revenue Code section 6039G(d)(3), the Department of Homeland Security is required to notify the Internal Revenue Service whenever someone loses permanent resident status — whether through removal or voluntary surrender of the green card. That notification creates a formal tax record of when your residency ended.

The procedure for formally abandoning a green card has also become more restrictive. Despite what some USCIS forms may suggest, consular sections at embassies and consulates general are no longer able to accept abandonment claims. Form I-407 must now be submitted directly to US Citizenship and Immigration Services by mail. It is also worth knowing that abandoning LPR status can trigger an expatriation tax for those who qualify as long-term residents — generally, individuals who held a green card in at least eight of the 15 years prior to relinquishment.

Professional tax advice should always be sought before obtaining or relinquishing a green card. The tax consequences of these decisions often depend heavily on timing.

Updated Substantial Presence Exceptions

Filing Form 8843 is now mandatory for anyone claiming exempt individual status — there is no workaround. If you do not file Form 8843 on time, you cannot exclude the days you were present in the United States as an exempt individual, or days you were unable to leave due to a medical condition that arose while in the country. The only exception is if you can demonstrate by clear and convincing evidence that you took reasonable steps to learn about the filing requirement and made significant efforts to comply.

New Treaty Position Disclosure Requirements

When a tax treaty overrides domestic residency rules, Form 8833 disclosure remains mandatory. Claiming treaty benefits as a resident of another country without attaching a completed Form 8833 to your Form 1040-NR can result in penalties of $1,000 per failure — and each separate treaty position counts as its own violation.

A Note on Staying Compliant

Tax laws are subject to change, and the consequences of decisions — particularly around green card acquisition, abandonment, or claiming treaty benefits — often depend on timing. Keeping accurate records of your physical presence in the United States, filing required forms on time, and seeking professional advice before making major immigration or residency decisions are the most effective ways to stay on the right side of these rules.

The Bottom Line

Whether you hold a green card, spend significant time in the United States on a work visa, or study on an F-1, your tax classification has real financial consequences. The difference between being taxed on worldwide income versus US-source income alone can amount to tens of thousands of dollars in reporting obligations — and potentially, in taxes owed.

The rules are not simple. Day-counting formulas, closer connection exceptions, treaty tie-breakers, dual-status filing procedures, and mandatory disclosure forms all interact in ways that are easy to get wrong. Mistakes can trigger penalties, and in some cases — particularly for long-term green card holders considering relinquishment — the stakes are even higher with potential expatriation tax implications.

A good place to start is keeping accurate records of the days you spend in the United States each year. That one habit alone can save you considerable headaches come tax season. Beyond that, if you are arriving in or departing from the United States partway through the year, or if you are considering abandoning your green card, professional tax advice is not optional — it is essential. Tax laws change, and the consequences of even well-intentioned decisions often hinge on timing.

Key Takeaways

Understanding US tax residency is crucial for foreign nationals, as it determines whether you’re taxed on worldwide income or just US-source earnings. Here’s what you need to know:

Two Primary Tests Determine Your Status: • The Green Card Test grants automatic tax residency to lawful permanent residents, requiring worldwide income reporting regardless of where you live. • The Substantial Presence Test requires 31 days in the current year plus 183 days over three years using a weighted formula.

Critical Exceptions Can Override Standard Rules: • The Closer Connection Exception allows you to remain a nonresident if present less than 183 days and maintain stronger ties abroad. • Students on F-1/J-1 visas can exempt up to 5 calendar years from presence calculations, preventing unintended tax residency. • Tax treaties provide tie-breaker rules for dual residents, requiring Form 8833 disclosure when claiming treaty benefits.

Filing Requirements Vary Dramatically by Status: • Resident aliens file Form 1040 and report global income with the same obligations as US citizens. • Nonresident aliens file Form 1040-NR, reporting only US-source income with limited deductions and credits. • Dual-status aliens must file special returns clearly labeled with separate statements for each residency period.

Recent Updates Strengthen Enforcement: • Green card abandonment now requires direct submission of Form I-407 to USCIS, with automatic IRS notification triggering potential expatriation taxes for long-term residents. • Form 8843 filing has become mandatory for exempt individuals to exclude presence days, with strict penalties for non-compliance.

The complexity of these rules makes professional tax guidance essential, especially during arrival or departure years when dual-status classifications commonly occur.

FAQs

Q1. How do I know if I qualify as a US tax resident? You qualify as a US tax resident through two main tests: the Green Card Test if you’re a lawful permanent resident, or the Substantial Presence Test if you were physically present in the US for at least 31 days in the current year and 183 days over a three-year period using a weighted formula (all current year days, plus 1/3 of prior year days, plus 1/6 of days from two years ago).

Q2. Do I still have US tax obligations if I live abroad? Yes, if you’re a US citizen or green card holder, you maintain US tax filing obligations even while living abroad. You must report your worldwide income regardless of where you reside. This obligation continues until you formally relinquish your green card or renounce citizenship through proper legal channels.

Q3. What is the 5-year exemption rule for students? Students on F-1 or J-1 visas can exclude up to 5 calendar years of US presence from the Substantial Presence Test calculation. During these exempt years, your days in the United States don’t count toward determining tax residency, allowing you to remain classified as a nonresident alien for tax purposes despite physical presence.

Q4. Can I avoid becoming a tax resident even if I meet the presence requirements? Yes, through the Closer Connection Exception. If you were present in the US for fewer than 183 days during the year, maintained a tax home in a foreign country throughout the entire year, and had stronger personal and economic ties to that country than to the US, you can remain a nonresident alien. You must file Form 8840 to claim this exception.

Q5. What forms do I need to file based on my residency status? Resident aliens file Form 1040 and report worldwide income like US citizens. Nonresident aliens file Form 1040-NR and report only US-source income. Exempt individuals must file Form 8843 to exclude presence days. If you’re claiming treaty benefits as a dual resident, you must also attach Form 8833 to disclose your treaty position.