http://www.irs.gov/pub/irs-pdf/p519.pdf this is the publication website to see if you are Nonresident Alien or You are a resident alien