Capital gains tax for foreigners selling US stocks — what actually applies?
Trying to understand capital gains tax for foreigners who hold US brokerage accounts. I'm on an F-1 visa, have been in the US for about two years, and sold some ETF positions this year with a decent gain. My broker sent a 1099-B but someone told me nonresident aliens get taxed differently and maybe I shouldn't even be filing a 1040. I tried reading the IRS instructions but the resident vs. nonresident distinction is confusing me. I passed the substantial presence test this year I think, but I'm not 100% sure. Does the type of gain matter — like long-term vs. short-term? And does it matter if the ETFs are US-domiciled? I've already reported everything on a draft 1040 with Schedule D but now I'm second-guessing whether that's even the right form.