Nonresidents
Foreign citizen is treated as a non-resident alien unless he or she qualifies as a resident alien. A “US” resident is defined as a foreign citizen or national who meets either of green card tests or the substantial presence test. This definition is only for purpose of determining foreign individual’s US income tax liability. It does not for example apply for estate and gift tax purpose.
The residency rules for tax purposes are found in I.R.C.