Get your taxes done using TurboTax

If you meet the substantial presence test, then you will file a 1040 as a resident alien.

https://www.irs.gov/individuals/international-taxpayers/substantial-presence-test.  It does not matter that you had two different student visas.  As long as you were physically present, you file taxes as a resident alien.

 

You meet the test on item 1 and 2 below, so you must file a 1040.

 

Substantial Presence Test

You will be considered a United States resident for tax purposes if you meet the substantial presence test for the calendar year. To meet this test, you must be physically present in the United States (U.S.) on at least:

  1. 31 days during the current year, and
  2. 183 days during the 3-year period that includes the current year and the 2 years immediately before that, counting:
    • All the days you were present in the current year, and
    • 1/3 of the days you were present in the first year before the current year, and
    • 1/6 of the days you were present in the second year before the current year.

 

View solution in original post