Resident alien or nonresident alien?

Updated

If you are not a US citizen, two tests decide your tax status, and meeting either one makes you a resident alien. The green card test: you are a lawful permanent resident at any point in the year. The substantial presence test: you were here at least 31 days this year and 183 weighted days over three years.

The difference is what the US taxes. A resident alien is taxed on worldwide income on Form 1040, the same as a citizen. A nonresident alien is taxed on US-source income, files Form 1040-NR, and is taxed a flat 30 percent on the gross amount of US-source fixed or determinable income, with no deductions against it, unless a treaty sets a lower rate.

The rules behind each status

The two tests

Keeping or giving up a green card

When residency starts and ends

What each status is taxed on

Filing as a nonresident

A year you switch: dual status

Elections that make you a resident on purpose

When a treaty overrides all of this

What people get wrong about alien tax status

Which forms does this involve?

Forms
FormWhat it does
Form 1040The return a resident alien files, reporting worldwide income at the same graduated rates as a US citizen, and the return a dual-status filer uses when resident on the last day of the year.
Form 1040-NRThe return a nonresident alien files, reporting effectively connected income on page 1 and US source income taxed at the flat rate on Schedule NEC.
Form 8833Discloses a treaty-based return position, including a claim of foreign residency under a treaty tiebreaker that overrides the green card test.
Form 8843Statement for exempt individuals and individuals with a medical condition, used to exclude days from the substantial presence day count.
Form 8854Initial and annual expatriation statement, required of a long-term green card holder who gives up permanent resident status, including by a treaty tiebreaker claim.
Form 4868Extension of time to file, used for the first-year choice while waiting to meet the substantial presence test in the following year.

If the answer is not the one you want

Three routes change the outcome, and they are not interchangeable:

Sources

Every rule and figure on this page was read on an IRS page or in an IRS document, and checked a second time by a separate review, on September 16, 2026.