Does a non-resident alien need to file 1040-NR with US stock capital gains?
Trying to figure out my filing situation. I'm on an F-1 visa, have been in the US about 14 months total, and my broker here generated a 1099-B showing gains from selling shares in a few US-listed companies. I sold everything before the end of the year, no losses, just straightforward gains. My university's tax office told me I'm still a non-resident alien for tax purposes under the substantial presence test, so I'd file 1040-NR. But then I read somewhere that capital gains for non-resident aliens might not even be taxable by the US, which confused me. Does a non-resident alien need to file 1040-NR with US stock capital gains, and if so, where do those gains actually go on the form?