Resident alien

http://www.irs.gov/pub/irs-pdf/p515.pdf (Pages 7 and 8.)

A resident alien is an individual who is not a citizen or national of the United States and who meets either the green card test or the substantial presence test for the calendar year.

Green card test. An alien is a resident alien if the individual was a lawful permanent resident of the United States at any time during the calendar year. This is known as the green card test because these aliens hold immigrant visas (also known as green cards).

Substantial presence test. An alien is considered a resident alien if the individual meets the substantial presence test for the calendar year. Under this test, the individ­ual must be physically present in the Uni­ted States on at least:

  1. 31 days during the current calendar year, and
  2. 183 days during the current year and the 2 preceding years, counting all the days of physical presence in the current year, but only 1/3 the number of days of presence in the first preceding year, and only 1/6 the number of days in the second preceding year.

In most cases, the days the alien is in the United States as a teacher, student, or trainee on an “F,” “J,” “M,” or “Q” visa are not counted. This exception is for a limited period of time.

For more information on resident and non-resident status, the tests for residence, and the exceptions to them, see Publication 519.