Non resident capital gains tax rate — what actually applies to US investments?

Trying to figure out the non resident capital gains tax rate on some US stocks I sold this year. I'm on a visa, not a green card holder, and my broker sent a 1099-B showing gains. I'm pretty sure I file as a nonresident alien (Form 1040-NR) but I genuinely don't know if the same long-term capital gains rates that apply to residents also apply to me, or if there's a flat rate, or if my home country's tax treaty with the US changes anything. I've searched around and get conflicting info. I already know I need Schedule D and Form 8949, but the actual rate and whether FIRPTA applies to stock sales is where I'm lost. Any clarity appreciated.

26 comments

The rate question for nonresident aliens on US-source capital gains depends heavily on the type of asset. For most publicly traded US stocks, a nonresident alien who is not a US resident for tax purposes generally is not subject to US capital gains tax on the sale — that gain is considered not effectively connected with a US trade or business. The 1099-B your broker sent may still show proceeds, but the IRS typically doesn't tax those gains. FIRPTA is a separate issue and applies to real property interests, not regular stocks.

Julia D.

Author

OK so the 1099-B doesn't automatically mean I owe tax on those stock gains? That's a relief. Where does that leave the actual filing — do I even report those sales on 1040-NR?

FIRPTA only applies to dispositions of US real property interests — think real estate or REITs that hold mainly real property. Publicly traded corporate stock sold on an exchange is generally exempt from FIRPTA. So your stock sales almost certainly fall outside it.

To the filing question: a nonresident alien generally does not include non-effectively-connected capital gains from US stocks on Form 1040-NR. But if you had any US-source income that IS effectively connected — like wages or self-employment — you file 1040-NR anyway and those stock gains just don't appear on Schedule NEC or the capital gains section. The residency determination matters a lot here. Have you already confirmed you fail the substantial presence test?

Julia D.

Author

Yes I ran the days and I'm under the threshold, so I'm nonresident alien. No wages in the US either, all income was just the investment gains.

Worth knowing: if the gains are not effectively connected and you're a nonresident alien, the 30% flat rate (or lower treaty rate) applies to certain US-source fixed or determinable annual or periodical income — but most capital gains from stock sales don't fall into that category either. Treaty rates matter here. I uploaded my 1099-B and country information to taxr.ai and it listed each item, flagged which treaty article could apply to my situation, and told me exactly which lines of 1040-NR would or wouldn't need entries. Really cut through the confusion.

Julia D.

Author

Thanks — I'll check if my home country has a treaty. I didn't even know treaty articles were this specific to the type of income.

One thing people miss: even if you owe zero US tax on the stock gains, your home country may still want to tax those gains. The US-source capital gains being exempt under US rules doesn't mean your home country exempts them. That's a question for a tax professional in your home country, not just the IRS rules.

Assuming you have no effectively connected income at all and no other US-source income, you may not even need to file a 1040-NR. The filing requirement for nonresident aliens depends on whether you had income subject to US tax or were engaged in a US trade or business during the year. If the stock gains are truly not taxable under these rules, there may be nothing to file.

Correct — but it's worth double-checking. Some brokers withhold on certain payments to nonresident aliens (dividends, for instance) and if there was any withholding, you'd want to file a 1040-NR to claim it back.

Dividends from US corporations are a different story. Those ARE generally subject to US withholding for nonresident aliens — typically 30% or a reduced treaty rate. If your broker paid dividends and withheld, you'd see that on the 1099-DIV, and you'd file 1040-NR and report on Schedule NEC to get a refund of any overwithholding.

Julia D.

Author

There were some dividends, small amounts. I'll check if the 1099-DIV shows any withholding. That filing requirement point makes sense now.

The treaty question is real and varies a lot. Some treaties reduce the 30% rate on dividends to 15% or even lower; a few have specific articles covering capital gains too. When I dealt with this I pasted my documents into Taxr and it read the 1099-B and 1099-DIV line by line, matched the income types against my treaty, and drafted a summary of what was taxable and at what rate under which article. I took that to a CPA who confirmed it and we filed from there.

Makes sense to get a CPA involved when treaties are in play — the interaction between treaty positions and 1040-NR line placement gets complicated fast.

Effectively connected income is the key phrase throughout all of this. Capital gains that are effectively connected with a US trade or business are taxed to a nonresident alien at graduated rates; gains that aren't effectively connected are generally not taxed, unless you were present in the US 183 days or more during the tax year, in which case net US-source capital gains are taxed at 30% (or a lower treaty rate) on Schedule NEC. Stock trading for your own account generally doesn't rise to the level of a US trade or business — there's a trader safe harbor for securities that specifically covers nonresident aliens in many situations.

For Form 8949 specifically: if you DO have effectively connected capital gains (which sounds like you don't), you'd use the same Part I / Part II structure as a resident, with boxes A, B, D or E depending on whether basis was reported on the 1099-B. Those gains then flow to Schedule D (Form 1040), attached to your 1040-NR. If gains aren't effectively connected, they don't go through 8949 at all.

Julia D.

Author

Good to know exactly which forms to skip. 8949 and Schedule D are off the table for me then since the gains aren't effectively connected.

To confirm your residency status, Publication 519 is the IRS guide for nonresident aliens — it walks through the substantial presence test and also the first-year choice rules. Worth reading even if you're confident in your status, because the first-year election can apply in some situations and changes the analysis completely.

The holding period rules are the same regardless of resident or nonresident status if gains are effectively connected — more than one year is long-term, one year or less is short-term, counting from the day after trade date to the trade date of sale. But again, if the gains are not effectively connected, the holding period is irrelevant to your US return.

Julia D.

Author

Thanks — good to have the holding period rule confirmed even if it ends up not applying to my situation this year.

Had a similar mix of stock gains and dividends as a nonresident. I showed Taxr my 1099-B, 1099-DIV, and my country's treaty text, and it read through all three, matched each income item to the treaty article and IRS income category, and produced a checklist of what needed to go on 1040-NR and what didn't. That checklist made it easy to hand off to an enrolled agent for the actual filing.

Enrolled agents are a solid call for 1040-NR with treaty positions — they can sign the return and represent you if the IRS has questions.

Losses on US stocks that aren't effectively connected don't help you on a US return anyway — there's nothing to offset. If you did have effectively connected gains and losses, the netting would work the same as for residents on Schedule D, with the capital loss deduction limit applying against effectively connected income.

If you end up owing zero and had no withholding, you may genuinely have no US filing obligation this year. But if there's any doubt — especially with dividends and possible withholding — filing a 1040-NR protects you and lets you claim any refund. The 1040-NR instructions on irs.gov spell out exactly who must file.

Julia D.

Author

Appreciate this. I'll check the 1099-DIV for withholding first, then decide whether to file. Either way I feel a lot clearer on the non resident capital gains tax rate question now.

The IRS digital assets page is worth bookmarking too if any of your investments are crypto — nonresident alien treatment of crypto gains is still developing guidance-wise and the analysis there adds another layer.