What's the Capital Gain Tax Rate for US Nonresident Aliens?
I've been researching capital gain taxes for non-resident aliens (US tax situation) and I'm super confused about what rate I'll actually be taxed at. I'm from Canada and I invested about $14,000 in US stocks last year through my online brokerage. Now I've sold some with around $3,200 in gains and I'm trying to figure out what I owe. From what I understand, there's different treatment for residents vs non-residents, and it seems like the rates might depend on whether these are short-term or long-term gains? The IRS website is so complicated and I'm seeing conflicting info everywhere. I think I need to file a 1040NR but I'm not sure if the standard capital gains rates apply or if there's a special flat rate for non-residents. Has anyone gone through this before? What tax rate should I expect to pay as a nonresident alien on US stock gains? And do I need to worry about any tax treaties between US and Canada? Thanks for any help!
20 comments


Chloe Mitchell
So capital gains tax for nonresident aliens can be tricky, but here's the basic breakdown. For nonresident aliens, the tax treatment depends on whether your gains are effectively connected with a US trade or business. Most casual stock investors fall under capital gains that are NOT effectively connected income (non-ECI). If your capital gains are non-ECI, they're generally only taxable if you're physically present in the US for 183 days or more during the year (using a special formula). In that case, they're taxed at a flat 30% rate with no deductions allowed. If you're in Canada and just trading US stocks through a brokerage, and you're in the US less than 183 days, your capital gains are typically NOT subject to US tax at all. The US-Canada tax treaty generally protects you from double taxation. You would still file a 1040NR if you have any US-source income that requires it, but the capital gains themselves would likely not be taxable in the US.
0 coins
Michael Adams
•Wait so if I'm understanding right, if I'm a nonresident alien who was NOT in the US for 183+ days, I don't have to pay ANY capital gains tax to the US on my stock sales? That sounds too good to be true. Wouldn't the US want their cut? Also, what if these were stocks in US real estate companies? I heard those get treated differently.
0 coins
Chloe Mitchell
•That's generally correct for most portfolio investments like stocks. The US tax system for nonresidents mainly focuses on taxing US-source income like dividends, interest, or rental income, not capital gains from stock sales. Real estate investments are indeed treated differently. If you have gains from selling US real property interests (including stocks in US corporations that are primarily real estate holding companies, known as USRPHCs), those ARE taxable in the US regardless of your days of presence. These fall under FIRPTA rules (Foreign Investment in Real Property Tax Act) and are taxed as effectively connected income, subject to graduated rates similar to US citizens.
0 coins
Natalie Wang
After dealing with the exact same issue last year, I discovered taxr.ai (https://taxr.ai) which literally saved me hours of confusion. I'm also a Canadian investing in US markets and was completely lost trying to figure out my tax obligations. The tool analyzed my trading history and tax residency status, then outlined exactly which parts of my capital gains were taxable in the US vs Canada. It even identified a specific provision in the US-Canada tax treaty that applied to my situation, which my regular tax software completely missed. What I found most helpful was that it explained the 183-day rule calculation (which is more complicated than it sounds) and determined I didn't meet the threshold, meaning most of my capital gains weren't subject to US tax at all! I was about to overpay by nearly $2,000.
0 coins
Noah Torres
•Does it handle situations where you own US property stocks too? I have investments in some REITs and I heard those are treated differently than regular stocks.
0 coins
Samantha Hall
•I'm skeptical about services like this. How does it actually work? Do you have to upload all your financial docs? Seems risky to share that kind of info online.
0 coins
Natalie Wang
•Yes, it actually specializes in identifying special asset classes like REITs, MLPs, and real property holding corporations that have different tax treatments. It flags FIRPTA considerations for real estate-heavy investments and explains the withholding requirements. For your privacy concern, it's more secure than most tax preparation services. You can either upload statements or just enter the relevant information manually. It uses the same encryption standards as banks, and they don't store your documents after analysis if you choose that option. I was hesitant at first too, but the amount of money I saved by not overpaying made it completely worth it.
0 coins
Samantha Hall
Ok I need to apologize for being skeptical earlier. I actually tried taxr.ai and it was surprisingly helpful. I'm from Australia with US investments and it immediately identified that my ETF holdings included some real estate funds that are subject to FIRPTA rules (something my regular accountant missed). The system walked me through the exact tax implications and identified which forms I needed to file. It even showed me that I qualified for a reduced withholding rate on some of my investments because of the US-Australia tax treaty. What impressed me most was the plain language explanations that actually made sense—no more deciphering IRS jargon! I ended up saving about $1,700 that I would have unnecessarily paid. Wish I'd known about this last tax season.
0 coins
Ryan Young
If you're struggling to get answers directly from the IRS about your nonresident alien tax situation, I strongly recommend trying Claimyr (https://claimyr.com). I spent WEEKS trying to get through to a human at the IRS international taxpayer line with zero success. After seeing a video demo (https://youtu.be/_kiP6q8DX5c), I was skeptical but desperate enough to try it. The service got me connected to an actual IRS agent in under 45 minutes (after I had previously spent hours on hold multiple times). The agent was able to clarify my specific capital gains reporting requirements as a nonresident from the UK and confirmed I was eligible for treaty benefits I wasn't aware of. For nonresident alien tax questions, getting accurate information is crucial since the penalties for incorrect filing can be severe. Having an actual conversation with an IRS representative made all the difference in my situation.
0 coins
Aaron Lee
•Wait how does this actually work? Do they just call the IRS for you? I'm confused how a third party service can get through when no one else can.
0 coins
Sophia Clark
•This sounds like a scam. There's no way some random service can magically get through to the IRS when millions of people can't. They're probably just charging you to wait on hold themselves.
0 coins
Ryan Young
•They don't just call for you - they use an automated system that navigates the IRS phone tree and holds your place in line. When they're close to reaching an agent, you get an alert and jump on the call. It's your phone number that's used, so you're the one who actually speaks with the IRS directly. I was confused about this too before trying it. No, it's definitely not a scam. Their system essentially automates the hold process and notifies you when you're about to be connected. It works because they've optimized the calling process with technology that knows the best times to call and how to navigate the complex IRS phone system. I was extremely skeptical too but after wasting hours myself, it was worth trying. The IRS agent I spoke with answered my specific questions about the US-UK tax treaty provisions for capital gains.
0 coins
Sophia Clark
I need to eat my words from earlier. After being completely unsuccessful reaching the IRS for THREE MONTHS about my nonresident capital gains situation, I tried Claimyr out of desperation. Got connected to an IRS international tax specialist in about 35 minutes, which is mind-blowing considering I had previously spent 4+ hours on hold multiple times without ever reaching anyone. The agent confirmed that as a nonresident from Germany who wasn't present in the US for the 183-day threshold, my stock gains weren't subject to US tax (except for my real estate investment trust holdings, which fall under FIRPTA). They also explained exactly which forms I needed to file to properly document this. Would have saved myself so much stress if I'd known about this service months ago. Definitely worth it for complex international tax situations where you need official clarification.
0 coins
Katherine Harris
Something nobody has mentioned yet - make sure you check your specific country's tax treaty with the US. I'm from India, and our treaty has different provisions than the Canada or UK ones mentioned above. For instance, in some treaties, capital gains from selling shares of US companies may be taxable only in your country of residence, while others might allow the US to tax certain types of capital gains. Also, don't forget that even if you don't owe any US tax on your capital gains, you might still have reporting requirements. I had to file a 1040NR with a statement explaining why my capital gains weren't taxable in the US under the treaty.
0 coins
Madison Allen
•Do you know where I can find a simple breakdown of the US-Singapore tax treaty? I've tried looking at the actual treaty text but it's written in such dense legal language that I can barely understand it.
0 coins
Katherine Harris
•The IRS has a publication called "United States Income Tax Treaties - A to Z" where you can find links to all the treaties. For Singapore specifically, check out Article 13 of the treaty which covers capital gains. For a simpler explanation, try the IRS Publication 901 (US Tax Treaties) which has more readable summaries. Another approach is to check the Singapore tax authority website as they sometimes have clearer explanations of their treaties with other countries. The IRAS (Inland Revenue Authority of Singapore) might have guides specifically for Singapore residents with US investments.
0 coins
Joshua Wood
One thing I haven't seen mentioned is that the 183-day rule for nonresident aliens isn't just a simple count of days in the tax year! It's actually a weighted formula: - Days present in current year count as full days - Days in the previous year count as 1/3 of a day - Days in the year before that count as 1/6 of a day I miscalculated this and almost filed incorrectly. I was physically in the US for only 120 days in 2024, but when I counted my previous years' presence (190 days in 2023 and 180 days in 2022), my formula result was: 120 + (190 ÷ 3) + (180 ÷ 6) = 120 + 63.3 + 30 = 213.3 days So technically I exceeded the 183-day threshold even though I was physically present less than 183 days in 2024!
0 coins
Justin Evans
•Omg thank you for posting this! I had no idea about the weighted formula. I'm going to have to recalculate my days now. Does anyone know if business travel counts the same as tourism days?
0 coins
Malia Ponder
This is such a helpful thread! As someone who's been through this maze myself, I want to add a few important points that might help others avoid the mistakes I made. First, timing matters more than you think. If you're planning to sell US stocks as a nonresident alien, consider the timing of your sales carefully. Even if your gains aren't subject to US tax under the 183-day rule or treaty provisions, you still might face withholding requirements at the broker level that can tie up your money for months while you sort out refunds. Second, keep meticulous records of your US presence days - not just for the current year but for the previous two years as well due to that weighted formula Joshua mentioned. I use a simple spreadsheet tracking entry/exit dates with supporting documentation (flight records, hotel receipts, etc.). The IRS can and will ask for proof. Third, don't forget about state taxes! Even if you don't owe federal capital gains tax, some states have their own rules for nonresidents. I got hit with an unexpected California tax bill because some of my gains were considered California-source income even though I'm not a US resident. Finally, if you have any doubts about your situation, seriously consider getting professional help. The penalties for getting this wrong can be severe, and the rules are complex enough that even tax professionals sometimes disagree on interpretations.
0 coins
Alberto Souchard
•Thank you so much for mentioning the state tax issue! I'm in a similar situation as the original poster (Canadian investing in US stocks) and I had completely overlooked state taxes. When you mention California-source income, does that apply if the companies I invested in are headquartered in California, or is it based on something else? Also, your point about withholding at the broker level is really important. I've noticed my brokerage sometimes withholds taxes even on sales where I shouldn't technically owe US taxes. Is there a way to prevent this upfront, or do you always have to go through the refund process? I'm realizing this is way more complicated than I initially thought when I started investing in US markets. The 183-day weighted formula alone is something I never would have figured out on my own.
0 coins