Capital gains non resident alien — do I report this on a US return?
Trying to figure out where I stand. I'm on an F-1 visa, have been in the US about 3 years, and I sold some shares in a US-listed ETF this year. My broker sent a 1099-B showing a long-term gain. Someone told me nonresident aliens don't pay US tax on capital gains, but someone else said that only applies if you're not in the US long enough. I ran the substantial presence test on the IRS site and I think I'm still a nonresident alien for 2025 — students on F-1 are exempt from counting days for 5 years. But now I'm looking at the 1099-B and don't know if I report this on Form 1040-NR or just ignore it. What's the actual rule for capital gains non resident alien filers?