Do non residents pay capital gains tax in the US?
Trying to figure out if non residents pay capital gains tax on US investments. I'm on a J-1 visa, been here about 14 months, and I sold some shares in a US brokerage account in October. The broker sent a 1099-B showing proceeds and cost basis. I'm pretty sure I'm a nonresident alien for tax purposes because I don't think I pass the substantial presence test, but I'm not 100% certain. My tax software keeps trying to put me on a 1040 instead of a 1040-NR and I'm getting confused about which rules apply. Do I owe capital gains tax on those stock sales, and if so how does it get reported? The 1099-B just shows the numbers, it doesn't say anything about residency.