Non resident capital gains tax on US stocks — what do I actually owe?
I'm on an F-1 visa, have been in the US for about 14 months, and my OPT started this past January. My broker sent a 1099-B showing gains from selling some index fund shares I bought two years ago. I ran the substantial presence test and I think I'm still a nonresident alien for 2025 because of the student exemption. If that's right, I'm not sure what the non resident capital gains tax rules actually say for me — do I owe anything on those gains, do I file Form 8949 and Schedule D the usual way, or is there a totally different form? My broker just checked box D on the 1099-B and reported basis to the IRS. I haven't filed anything yet.