GroundSkill
EA Exam Part 1 · Lesson 4 of 48

Resident or Nonresident

Determine resident or nonresident alien status and whether an ITIN is needed

Resident or nonresident decides which return the taxpayer files. This lesson applies the two statutory tests in order and settles the identifier for those who cannot get a Social Security number.

Step 1 Apply the two tests in order

Tax residence turns on two tests in this order:

  1. Green-card test. Lawful permanent resident status at any point in the year generally makes the person a resident alien. Status continues until taken away by order or determined abandoned. A treaty tiebreaker can change the tax treatment of a card holder.
  2. Substantial-presence test. If the green-card test does not settle residence, count at least 31 days in the current year and at least 183 weighted days over three years: all current-year days, one-third of the prior year's days, and one-sixth of the second prior year's days. For 150 days this year, 120 last year and 60 the year before, the weighted count is 150 + 40 + 10 = 200 days.

Exclude qualifying days first. An exempt student on an F, J, M or Q visa generally excludes days in the first five calendar years in that status. A teacher or trainee on a J or Q visa has a different two-of-six-year rule. File a fully completed Form 8843 for the exclusion.

Then check closer connection. Even a person meeting the weighted count may be a nonresident under the closer-connection exception if they were in the United States fewer than 183 days in the current year, maintained a foreign tax home, had a closer connection to that country, and filed Form 8840. Check the exception's other eligibility conditions before claiming it.

Worked example

Dana shows a Permanent Resident Card and a full-year lease. The card test is met and no order or abandonment determination ends her status, so Dana is a resident alien for the year and the day count is unnecessary. Eli holds an F student visa, is in the second calendar year as an exempt student, and was present 190 days this year. All 190 days are excluded as exempt-individual days, so the countable total is zero and Eli fails both the 31-day leg and the 183-day weighted leg; the preparer files a fully completed Form 8843 for the exclusion.

IRS sources for this step (10)
  • Publication 519 Page 4

    You are a resident alien of the United States for tax purposes if you meet either the green card test or the substantial presence test for calendar year 2025 (January 1–December 31).
    View on the source
  • Publication 519 Page 5

    To meet this test, you must be physically present in the United States on at least: 1. 31 days during 2025; and 2. 183 days during the 3-year period that includes 2025, 2024, and 2023, counting: a. All the days you were present in 2025, b. 1/3 of the days you were present in 2024, and c. 1/6 of the days you were present in 2023.
    View on the source
  • Publication 519 Page 4

    You continue to have resident status under this test unless the status is taken away from you or is administratively or judicially determined to have been abandoned.
    View on the source
  • Publication 519 Page 4

    Note: Even if an individual meets the green card test, if the individual claims foreign residency under a U.S. tax treaty tiebreaker rule, they would be treated as a nonresident for purposes of their tax liability. See section 7701(b) (6)(B).
    View on the source
  • Publication 519 Page 7

    You will not be an exempt individual as a student in 2025 if you have been exempt as a teacher, trainee, or student for any part of more than 5 calendar years unless you meet both of the following requirements.
    View on the source
  • Publication 519 Page 7

    You will not be an exempt individual as a teacher or trainee in 2025 if you were exempt as a teacher, trainee, or student for any part of 2 of the 6 preceding calendar years.
    View on the source
  • Publication 519 Page 8

    Form 8843. If you exclude days of presence in the United States because you fall into any of the following categories, you must file a fully completed Form 8843. • You were unable to leave the United States as planned because of a medical condition or problem. • You were temporarily in the United States as a teacher or trainee on a “J” or “Q” visa. • You were temporarily in the United States as a student on an “F,” “J,” “M,” or “Q” visa.
    View on the source
  • Publication 519 Page 8

    Even if you meet the substantial presence test, you can be treated as a nonresident alien if you: • Are present in the United States for less than 183 days during the year, • Maintain a tax home in a foreign country during the year, and • Have a closer connection during the year to one foreign country in which you have a tax home than to the United States (unless you have a closer connection to two foreign countries, discussed next).
    View on the source
  • Publication 519 Page 9

    Form 8840. You must attach a fully completed Form 8840 to your income tax return to claim you have a closer connection to a foreign country or countries.
    View on the source
  • Form 1040 Instructions Page 8

    Generally, you are a resident alien if you meet either the green card test or the substantial presence test for 2025.
    View on the source

Check this step

  1. Question 1Choose one.

    Li was physically present in the United States 130 days in 2025, 120 days in 2024, and 120 days in 2023. No days are excludable. Does Li meet the substantial presence test for 2025?

Step 2 Settle the identifier

The individual taxpayer identification number serves those who must file or be claimed yet cannot get a Social Security number. The intake decision names the person and the application: a nonresident or resident alien without SSN eligibility applies on Form W-7, as does an alien spouse or dependent claimed for an allowable tax benefit who cannot get an SSN. The number is for tax use only and confers no benefit or status change. An SSN is applied for with Form SS-5 through the Social Security Administration. Once an SSN arrives, the taxpayer stops using the ITIN, uses the SSN instead, and tells the IRS so the tax records under both numbers can be combined.

Worked example

Ike is a nonresident alien who must file Form 1040-NR, has no SSN, and is not eligible for one. The preparer records an ITIN need and prepares Form W-7 alongside the return papers. Ike's spouse, also without SSN eligibility and claimed for an allowable tax benefit, completes a separate Form W-7 attached to the same return. Neither application changes immigration standing; each supplies the identifier the return requests.

IRS sources for this step (6)
  • Form 1040 Instructions Page 13

    If you are a nonresident or resident alien and you don’t have and aren’t eligible to get an SSN, you must apply for an ITIN.
    View on the source
  • Publication 519 Page 36

    In addition to those aliens who are required to furnish a TIN and are not eligible for an SSN, a Form W-7 must be filed for alien spouses or dependents who qualify for an allowable tax benefit and are not eligible for an SSN.
    View on the source
  • Publication 519 Page 36

    An ITIN is for tax use only. It does not entitle you to social security benefits or change your employment or immigration status under U.S. law.
    View on the source
  • Form 1040 Instructions Page 13

    If you received your SSN after previously using an ITIN, stop using your ITIN. Use your SSN instead.
    View on the source
  • Form 1040 Instructions Page 13

    If you receive an SSN after previously using an ITIN, stop using your ITIN. Use your SSN instead. Visit a local IRS office or write a letter to the IRS explaining that you now have an SSN and want all your tax records combined under your SSN.
    View on the source
  • Publication 17 Page 39

    You can get Form SS-5 online at SSA.gov/ forms/ss-5.pdf or at your local SSA office.
    View on the source

Check this step

  1. Question 1Choose one.

    Raj is a nonresident alien who must file Form 1040-NR for 2025. He has no social security number and is not eligible for one. What must Raj do about a taxpayer identification number?

599 practice questions for EA Exam Part 1

The course asks you questions like these as you learn, brings back the ones you miss, and ends with full-length practice exams.

See the course Or take the free 12-question check
All 48 lessons in EA Exam Part 1
  1. Dependents, Filing Status, and a Clean File
    1. Counting Dependents
    2. Stop Rejections Before the Math
    3. Who the Taxpayer Is
    4. Resident or Nonresident
    5. Whether, When, and How to File
    6. Mapping the Whole Return
    7. Special Situations at Intake
  2. Everyday Income
    1. Pay, Interest, and Dividends
    2. Rentals, Gambling, and Canceled Debt
    3. Earning Abroad
    4. Odd Receipts and Timing
    5. Passive and Pass-Through Income
    6. Refunds, Forms 1099, and Children's Income
  3. Retirement Money
    1. IRA Basis and Roth Treatment
    2. Leaving the Plan
    3. Penalties on Early Money
    4. Required Withdrawals and Inherited Accounts
    5. Social Security and Foreign Pensions
  4. Property Sales and Basis
    1. What the Property Cost
    2. Gains, Losses, and Netting
    3. Shares and Partnership Interests
    4. Exclusions and Deferred Sales
    5. Options, Bad Debts, and Trader Status
  5. Adjustments and Itemized Deductions
    1. Retirement, HSA, and Self-Employed Adjustments
    2. Student Loans, Alimony Paid, and Moving
    3. Medical Costs, Taxes, and Mortgage Interest
    4. Gifts, Casualties, and Other Itemized
    5. Investment Interest and the QBI Deduction
  6. Credits
    1. Child Care and Child Credits
    2. School Credits and Foreign Taxes Paid
    3. Earned Income and Adoption Credits
    4. Health Credits and the Rest
  7. Total Tax and Penalties
    1. The Alternative Minimum Tax
    2. Self-Employment and Household Taxes
    3. Investment and Medicare Surtaxes
    4. Clergy, Military, and Decedents
    5. Paying on Time
  8. Estates, Gifts, and Foreign Reports
    1. Counting the Estate
    2. Spouses and Estate Filing
    3. Giving While Living
    4. Skipping Generations and Reporting Gifts
    5. Accounts and Entities Abroad
    6. Foreign-Reporting Penalties
  9. Planning and Fixing Returns
    1. Reporting and Fixing the Return
    2. Selling, Schooling, and Passing On
    3. Retirement and Timing Choices
    4. Marriage, Divorce, and Carryovers
    5. When Spouses Need Relief

GroundSkill is independently produced and is not affiliated with or endorsed by the IRS. Sources last checked 2026-09-14. Exam preparation, not tax advice.