Capital gains tax rate for foreign investors — what actually applies?
Trying to get clarity on the capital gains tax rate for foreign investors because I'm getting conflicting information everywhere. I'm a nonresident alien living abroad, I have a U.S. brokerage account holding some ETFs and individual stocks, and I sold positions this year with gains. My broker sent a 1099-B but I've also seen references to a 1042-S in some places. I don't know which form governs my situation, what rate actually applies, whether a tax treaty changes anything, and whether I even need to file a 1040-NR. I tried reading the IRS digital assets page and Publication 550 but neither of them spell out the nonresident rules clearly. What is the actual U.S. federal treatment of capital gains for someone in my position?