US capital gains tax for foreign investors — what actually applies?
Trying to sort out the us capital gains tax for foreign investors situation before I file. I'm a nonresident alien, tax treaty country, and I sold shares in a US-listed ETF this year through a brokerage account I opened in my home country. The broker sent something that looks like a 1099-B but my accountant back home has never seen one. I also sold shares in a foreign corporation listed only on a foreign exchange — no US nexus that I can tell. I keep reading that nonresident aliens generally aren't taxed on capital gains unless the gains are "effectively connected" with a US trade or business, but I keep hitting walls about what that means in practice and whether the ETF counts. Does anyone here know how this actually works? Is there a form involved, and does the treaty change anything?