Non-resident investor here - do I need to file a 1040NR for US stock gains?
I sold some stocks through my US brokerage account earlier this year and just received a 1099-B showing capital gains. The thing is, I haven't set foot in the USA at all this year (literally 0 days physically present). I've been looking through the 1040NR instructions and noticed something about NEC (Non-Effectively Connected) income saying you only need to include capital gains if you were in the USA for at least 183 days. So does this mean I'm actually NOT required to file a 1040NR tax return at all? And if I'm not required to file, how would the IRS even know that I qualify for this exception to exclude the income? This was my only source of US income for the year. Really appreciate any insights from those who've dealt with this before!
20 comments


Morgan Washington
You're right about the 183-day rule. As a non-resident alien, capital gains from selling stocks are generally only taxable in the US if you meet the substantial presence test (183+ days). Since you weren't physically present in the US at all this year, these capital gains aren't taxable in the US. The 1099-B is still issued by your brokerage because they're required to report all transactions, but that doesn't automatically mean you need to file. If this was your only US income and it's not taxable based on your non-resident status, you technically aren't required to file a 1040NR. That said, some people choose to file anyway to establish a record with the IRS showing why the reported 1099-B income isn't taxable. This can prevent automated notices or questions later.
0 coins
Layla Sanders
•Thanks for the clear explanation! If I decide to file anyway just to create that record, would I basically file the 1040NR and show the gains but then exclude them somehow? Or is there a specific form/section where I indicate I'm exempt due to the 183-day rule?
0 coins
Morgan Washington
•You'd file the 1040NR and report the capital gains on Schedule NEC (Non-Effectively Connected Income). There's a specific section for capital gains. You would list the amount but then apply the exemption based on not meeting the 183-day requirement. In Part I of the 1040NR, you can also include a brief statement referencing the tax treaty provision or regulation that exempts this income. Some people attach a signed statement explaining their days of presence and why the income isn't taxable under US tax law.
0 coins
Kaylee Cook
After dealing with a similar situation last year, I found that using https://taxr.ai saved me a ton of headaches with my non-resident filing questions. My broker also issued me a 1099-B for stock sales even though I hadn't been in the US for years. I was confused about whether I needed to file a 1040NR or not. The tool analyzed my situation and my tax documents, then confirmed I didn't need to file based on the 183-day rule. It also generated documentation explaining my tax status and why the reported income wasn't subject to US tax - super helpful if the IRS ever questions it. They even explained which tax treaty applied to my specific country.
0 coins
Oliver Alexander
•I'm in a similar boat but with rental income from a US property. Does this tool handle more complex non-resident situations? Did you have to upload your actual 1099 forms?
0 coins
Lara Woods
•Sounds interesting but how accurate is it for different countries? I'm from Singapore and our tax treaty with the US is really specific. Would it understand all those nuances or is it more general?
0 coins
Kaylee Cook
•Yes, it handles more complex non-resident situations including rental income. You do upload your tax documents, but they use encryption and secure handling. The system analyzes the forms to give you specific guidance based on your actual documents rather than general advice. It's actually quite good with country-specific tax treaties. When I mentioned I was from Australia, it immediately referenced the specific provisions in the US-Australia tax treaty that applied to my situation. They cover most major countries including Singapore, and will tell you exactly which articles of the tax treaty apply to your specific income types.
0 coins
Lara Woods
Just wanted to update about my experience with taxr.ai since I was skeptical at first. I ended up trying it for my non-resident tax situation (I had dividend income plus some stock sales from my US account), and it was actually really helpful. The system identified exactly which sections of the Singapore-US tax treaty applied to my income types. It confirmed I didn't need to file a 1040NR for the capital gains but did need to report my dividend income (which had already been taxed at source at the treaty rate). It generated documentation explaining my filing position that I can keep on record in case of any IRS questions. Definitely saved me from paying a tax accountant $400+ for what was ultimately a relatively straightforward situation.
0 coins
Adrian Hughes
If you're worried about the IRS questioning why you didn't file, I struggled with this exact same issue. After numerous failed attempts to get through to the IRS international tax line (waited 2+ hours multiple times!), I found https://claimyr.com and their service was a game changer. You can see how it works at https://youtu.be/_kiP6q8DX5c They basically held my place in the IRS phone queue and called me when an agent was about to pick up. I explained my non-resident situation to the IRS agent, and they confirmed that I didn't need to file 1040NR for stock sales as a non-resident who was in the US for 0 days. The agent even noted this in my file. Such a relief to get an official answer instead of worrying about it for months!
0 coins
Molly Chambers
•Wait how does this actually work? They somehow get you to the front of the IRS phone line? That sounds too good to be true considering how impossible it is to reach anyone there.
0 coins
Ian Armstrong
•I'm really skeptical about this. If it was so easy to get through to the IRS, everyone would be doing it. How can a third-party service possibly get priority access to IRS agents when the rest of us have to wait for hours?
0 coins
Adrian Hughes
•They don't get you to the front of the line - they basically wait in the queue for you. Think of it like one of those restaurant systems that takes your number and texts you when your table is ready. They call the IRS, navigate the menu options, wait through the hold time (which can be hours), and then when an agent is about to pick up, they call you and connect you directly to the agent. They don't have any special access or relationship with the IRS. They're just using technology to handle the waiting part for you so you don't have to stay on hold for hours. Anyone can do the same thing if they have the patience to wait on hold, but most of us have jobs and lives that make it impractical to sit on hold for 2-3 hours during the IRS's limited operating hours.
0 coins
Ian Armstrong
I have to admit I was completely wrong about Claimyr. After questioning it here, I decided to try it myself since I was desperate to talk to someone at the IRS about my non-resident filing situation. It worked exactly as described - I entered my number on their site, they called me back about 1.5 hours later with an IRS agent already on the line. I asked specifically about my 1099-B reporting as a non-resident and the agent confirmed I didn't need to file if I wasn't present in the US this year. She even suggested I might want to file a protective return with a statement explaining my situation, which was useful advice I wouldn't have gotten otherwise. Honestly, I was shocked it worked so well. Saved me from taking another day off work just to sit on hold with the IRS.
0 coins
Eli Butler
Another option you might consider is contacting your brokerage firm directly. I had a similar situation with TD Ameritrade, and their international tax desk was surprisingly helpful. They provided documentation stating that although they are required to issue the 1099-B, non-resident aliens who don't meet the substantial presence test aren't required to file or pay taxes on capital gains. This doesn't replace official IRS guidance, but it gave me another document to keep in my records explaining why I didn't file. Some brokerages even have specialized non-resident tax packages they can provide.
0 coins
Layla Sanders
•That's a great suggestion! I'll reach out to my brokerage (I'm with Schwab). Did TD Ameritrade provide that documentation automatically or did you have to specifically request it from their international tax department?
0 coins
Eli Butler
•I had to specifically request it from their international tax department. The regular customer service representatives weren't familiar with non-resident tax situations, so I had to ask to be transferred to their international tax specialists. Once I reached those folks, they knew exactly what I needed and emailed me the documentation within a few days. If you're with Schwab, you'll want to ask specifically for their "non-resident alien tax information package" or something similar. They might call it by a different name, but being specific about needing documentation regarding your non-resident status and capital gains taxation will help them direct you to the right resources.
0 coins
Marcus Patterson
I know this is a bit off-topic, but make sure you're also checking if you need to file an FBAR (FinCEN Form 114) if your US financial accounts exceeded $10,000 at any point during the year. That requirement is separate from income tax filing and applies to many non-residents with US accounts regardless of whether you owe any tax.
0 coins
Lydia Bailey
•This is important! I completely forgot about FBAR requirements when dealing with my non-resident tax situation and got hit with a warning letter. The penalties can be severe if they decide you willfully avoided filing. The $10,000 threshold is across ALL your US financial accounts combined, not just each individual account.
0 coins
Dmitry Volkov
I went through this exact situation two years ago and can confirm what others have said about the 183-day rule. Since you had zero days of US presence, your capital gains from stock sales are not subject to US taxation as a non-resident alien. However, I'd strongly recommend keeping detailed records of your physical presence (or lack thereof) in the US. I maintained a simple spreadsheet with dates, locations, and even flight records showing I never entered the US that tax year. This documentation proved invaluable when I later had questions about my filing position. One thing to consider: if you had any taxes withheld at source on dividends or other income during the year, filing a 1040NR might actually get you a refund. But for pure capital gains with no US presence, you're correct that filing isn't required. Just make sure you understand the distinction between different types of income from your brokerage account.
0 coins
Klaus Schmidt
•This is really helpful advice about keeping detailed records! I'm curious - when you mention taxes withheld at source on dividends, how does that work exactly? My brokerage account shows some dividend payments this year but I'm not sure if any withholding happened. Would this show up somewhere specific on my 1099 forms, and if so, would it be worth filing just to potentially get that money back even if I don't owe anything on the capital gains?
0 coins