Nonresident alien selling US stock before moving back — capital gains tax question
Finishing up a work assignment in the US and heading back to my home country in about three months. I've been here on a visa for just under four years total. I have a brokerage account with US-listed stocks I bought while living here, and I'm thinking about selling everything before I leave rather than dealing with the account from abroad. I know the tax situation changes once I leave and become a nonresident alien again, but I'm not totally clear on what that means for capital gains on stock I sell while I'm still physically in the US. My broker sent a 1099-B last year and I filed a regular 1040. If I sell before I go, do I still file a 1040 and pay capital gains the normal way? Or does something change because I'm about to leave? Does the timing of the sale relative to my departure date actually matter for how I'm taxed on it?