Nonresident alien capital gains tax — what actually gets taxed in the US?
I'm on an F-1 visa, been in the US about 14 months total, and I sold some US-listed ETFs through a brokerage account I opened here. My 1042-S arrived showing withholding, and my broker also sent a 1099-B, which confused me because I thought nonresidents don't get those. I looked at the 1040-NR instructions but couldn't figure out which capital gains are actually taxable for a nonresident alien versus which ones are exempt. I know the substantial presence test matters but I'm still counting my exempt days as an F-1 student. Does nonresident alien capital gains tax work differently depending on the type of asset — like ETFs versus individual stocks versus real estate? I haven't filed yet and want to make sure I'm on the right form before I do anything.