Get your taxes done using TurboTax

@pk   Thank you very much for your reply. Please see below for the answers:

a. I entered USA in mid-2018, on J-1 visa (Research Scholar). I was a non-resident alien for 2018 and 2019 (filed 1040NR-EZ), and then resident alien for 2020 and 2021.

b. I had salaried income, (W2) as well as capital gains from investing in US stock market. 

c. I am citizen of India and moving back there. 

d. I have been using 1040 form for the tax years 2020 and 2021. 

Please let me know if you need any more information and do I need to file as dual status alien? I want to take advantages of different credits and standard deduction that are applicable to resident alien. I understand I need to investigate more on tax obligation in  India and tax-treaty, if any.