Can someone explain capital gains tax rules for non-resident aliens on F1 visa?
So I've been researching tax rules as a non-resident alien on an F1 visa, and frankly, I'm really confused about capital gains tax. I've been physically present in the US throughout 2022 and 2023 for my graduate studies. I found this IRS page saying I'd be hit with a flat 30% tax rate on my capital gains (yikes!). But the more I read, the more confusing it gets. I made some small investments through Robinhood last year - nothing huge, just trying to learn about the US market while I'm studying here. Does anyone know if this 30% rate applies to ALL my capital gains? Are there any exemptions or treaties with certain countries? My home country has a tax treaty with the US for some things, but I can't figure out if it covers capital gains. Also, does it matter if they're short-term vs long-term gains? For US residents there's a big difference, but for non-resident aliens like me on F1, I can't tell if all gains just get lumped together at 30%. Any help would be really appreciated! Tax season is coming up and I want to make sure I'm filing correctly.
22 comments


Mia Green
The tax situation for non-resident aliens can definitely be confusing! Here's what you need to know: For F1 students who are non-resident aliens for tax purposes, capital gains from U.S. sources are generally NOT subject to the flat 30% withholding tax. Instead, they're usually considered "effectively connected income" (ECI) if you're trading through a U.S. broker like Robinhood. This means your capital gains would actually be taxed at the graduated rates that apply to U.S. citizens and residents, including the favorable long-term capital gains rates (0%, 15%, or 20% depending on your income level) if you held the investments for more than a year. The 30% flat rate typically applies to certain types of "fixed, determinable, annual, or periodical" (FDAP) income like dividends, not to capital gains from selling stocks or other investments. That said, tax treaties can further modify these rules, so checking the specific treaty with your home country is important.
0 coins
Sophia Rodriguez
•Wow, that's completely different from what I thought! So to clarify - even though I'm a non-resident alien, my capital gains through Robinhood would be taxed at the normal graduated rates (like 0%, 15%, 20%)? Not the 30% flat rate? And for dividends I received from US stocks, would those still be subject to the 30% withholding? My country (India) does have a tax treaty with the US, but I'm not sure how to interpret it for my situation.
0 coins
Mia Green
•Yes, that's correct! Since you're trading through a U.S. broker (Robinhood), your capital gains would be considered effectively connected with a U.S. trade or business and therefore taxed at the regular graduated rates, not the 30% flat rate. This means you get the benefit of the preferential long-term capital gains rates if you held the investments for more than a year. For dividends, those are generally subject to the 30% withholding tax, but this rate is often reduced by tax treaties. For India, the U.S. tax treaty typically reduces the dividend withholding rate to 15% for most non-residents. Your broker should automatically withhold at the correct treaty rate if you've properly completed a W-8BEN form with them.
0 coins
Emma Bianchi
After spending hours trying to figure out my own capital gains situation as an international student, I finally tried taxr.ai (https://taxr.ai) and it was honestly a game-changer for my non-resident tax questions. I uploaded my Robinhood statements and answered a few questions, and it immediately clarified that my capital gains were ECI (effectively connected income) rather than subject to the 30% rate. It also analyzed my tax residency status based on my F1 visa and physical presence history to confirm I was still a non-resident for tax purposes despite being here for multiple years. The system even flagged which specific dividend payments might qualify for reduced treaty rates based on my country of citizenship.
0 coins
Lucas Kowalski
•That sounds helpful, but how does it deal with the substantial presence test? I've been in the US for 4 years on F1 and I'm confused about whether I'm still considered a non-resident or if I've crossed some threshold.
0 coins
Olivia Martinez
•Did it actually file the taxes for you or just give you information? I have a mix of US and foreign investments and the whole PFIC thing has me completely lost even after reading tons of IRS publications.
0 coins
Emma Bianchi
•For the substantial presence test, it walks you through the exact calculation including the exempt individual rules that apply specifically to F1 students. It correctly identified that the first 5 calendar years of F1 status are generally exempt from counting toward the substantial presence test, which means you likely still qualify as a non-resident alien even after 4 years. It doesn't file the taxes for you, but it gives you very specific guidance on exactly what forms to file and how to report everything. For my situation with both US and foreign investments, it flagged which investments might be PFICs and generated clear instructions on completing Form 8621 for those. It also showed exactly where to report each type of income on the 1040NR.
0 coins
Lucas Kowalski
I just tried taxr.ai based on the recommendation here, and I'm honestly relieved. I've been freaking out about the 30% rate thinking I'd lose a third of my investment gains! The tool confirmed I'm still a non-resident alien for tax purposes (in my 4th year of F1) and walked me through the exact tax treatment of my capital gains. It was super clear about how the effectively connected income rules work - showing that my Robinhood trades are taxed at regular capital gains rates, not the 30% flat rate. It even pointed out which of my specific stock trades qualified for long-term vs short-term treatment. The explanation about tax treaties was particularly helpful since I'm from South Korea - it showed exactly which dividend withholdings should've been reduced under the treaty and how to claim a refund for any excess withholding. I didn't even know I could get some of that money back!
0 coins
Charlie Yang
Has anyone else been frustrated trying to call the IRS for clarification on the non-resident alien capital gains rules? I spent WEEKS trying to get through to someone who understood international tax issues. Then a friend told me about Claimyr (https://claimyr.com). You can see how it works here: https://youtu.be/_kiP6q8DX5c I was skeptical but desperate after wasting hours on hold. It actually got me connected to an IRS agent who specializes in international tax issues in about 20 minutes! The agent confirmed what others are saying here - that capital gains for F1 students trading through US brokers are generally treated as effectively connected income and taxed at regular rates, not the 30% flat rate. They also clarified some confusion about my 1042-S forms and explained exactly which tax treaty provisions applied to my situation.
0 coins
Grace Patel
•How does this actually work? Seems sus that they can somehow magically get you through when the IRS lines are impossible to reach. Is it just autodialing or something?
0 coins
ApolloJackson
•Pretty sure this is just a scam. There's no way to "skip the line" with a government agency. They probably just keep you on hold themselves and then pretend they got you through faster. I wouldn't trust this with my tax info.
0 coins
Charlie Yang
•It's not magic - they use an automated system that navigates the IRS phone tree and waits on hold for you. When a real IRS agent finally picks up, you get a call back so you can talk directly to them. It's not skipping any lines, just saving you from having to sit on hold yourself for hours. It's completely legitimate - you're speaking directly with actual IRS agents, not with Claimyr representatives. They don't access your tax information at all. They're just getting you connected to the real IRS faster than you'd be able to do yourself, especially during the busy tax season.
0 coins
ApolloJackson
Ok I need to eat crow here. After being skeptical about Claimyr, I actually tried it because I was desperate to resolve my capital gains questions before filing. I was SHOCKED when I got a call back within 25 minutes saying an IRS agent was on the line. The agent was super helpful explaining how my capital gains from US stocks are considered effectively connected income and subject to regular capital gains rates, not the 30% flat rate. She even walked me through exactly which forms I needed (Schedule D and Form 8949) and which parts of the 1040NR to complete. She also confirmed that the tax treaty provisions for capital gains vary by country and gave me the specific IRS publication numbers to review for my situation. I was able to get clear answers on questions I'd been struggling with for weeks. Definitely worth it for the peace of mind.
0 coins
Isabella Russo
One important thing nobody's mentioned yet - make sure you're actually a non-resident alien for tax purposes! The substantial presence test has special rules for F1 students. Generally, for the first 5 calendar years you're in the US on F1 status, you're automatically considered a non-resident alien regardless of how many days you're physically present. After that 5-year period, you need to start counting days under the substantial presence test. This matters because resident aliens follow completely different tax rules than non-resident aliens - you'd file Form 1040 instead of 1040NR and be taxed on worldwide income, not just US source income.
0 coins
Sophia Rodriguez
•Thanks for bringing this up! I've been here for just over 2 years, so it sounds like I'm definitely still a non-resident alien based on what you're saying. That's helpful to confirm. Is there anything special I need to do on my tax forms to indicate I'm exempt from the substantial presence test due to being an F1 student? Or does the 1040NR form take care of that automatically?
0 coins
Isabella Russo
•You'll need to file Form 8843 "Statement for Exempt Individuals" along with your 1040NR. This form specifically documents your exempt status as an F1 student and prevents you from being incorrectly classified as a resident alien. The form is pretty straightforward, but make sure you complete Part I and Part III (which is specifically for students). You'll need to provide information about your academic institution and visa details. Every F1 student needs to file this form annually, even if you have no income and don't need to file a tax return.
0 coins
Rajiv Kumar
Question - I have investment gains in my home country as well as some small investments in the US through Robinhood. Do I need to report the foreign investment gains on my US tax return as a non-resident alien? Or only the US-source income?
0 coins
Mia Green
•As a non-resident alien filing Form 1040NR, you generally only report and pay US tax on your US-source income. Foreign investment gains (like selling stocks on your home country's exchange) typically wouldn't be reported on your US tax return. The exception would be if you've passed the substantial presence test and become a resident alien for tax purposes, or if those foreign investments have a direct connection to US business activities. But in the standard case for an F1 student still considered a non-resident alien, only your US-source income (like those Robinhood investments) would be included on your US tax return.
0 coins
Aria Washington
Important note from someone who messed this up last year - don't forget to check if your country has a tax treaty with the US! I'm from the Netherlands and found out too late that there are special provisions that could have saved me money on my US taxes. Also make sure you tell your broker you're a non-resident alien by submitting a W-8BEN form. If you don't, they might withhold at the wrong rates or report your income incorrectly.
0 coins
Liam O'Reilly
•I second this! I'm from India and did my W-8BEN wrong at first. Make sure you actually claim the treaty benefits if you're eligible. Robinhood's interface for this isn't super clear. I had to specifically claim the treaty provisions or else they defaulted to withholding the full 30% on dividends when my country's treaty rate is only 15%.
0 coins
Emma Morales
This is such a helpful thread! I'm also on F1 and was totally panicking about the 30% rate. Just to add one more point that helped me - if you're using multiple brokers (like I have both Robinhood and Fidelity), make sure you submit the W-8BEN form to ALL of them. I made the mistake of only doing it for one account and ended up with incorrect withholding on my dividends from the other broker. Had to file for a refund which was a huge hassle. Also, keep really good records of all your trades and any tax documents (1042-S forms, etc.) because as non-resident aliens we sometimes get different tax forms than regular US taxpayers, and you'll need them all when filing your 1040NR. The effectively connected income treatment for capital gains is definitely the key thing to understand - it was such a relief to learn my gains weren't subject to that flat 30% rate!
0 coins
LordCommander
•This is exactly what I needed to hear! I'm new to investing as an F1 student and was terrified about the tax implications. The W-8BEN form tip is super valuable - I just opened a Schwab account in addition to my Robinhood account and almost forgot to submit the form there too. Quick question - when you say "keep good records," what specific documents should I be saving beyond the obvious trade confirmations? I want to make sure I'm not missing anything important for when I file my 1040NR next year. Also, has anyone had experience with how brokers handle the year-end tax documents for non-resident aliens? Do we get the same 1099 forms as everyone else, or are there different forms we should expect?
0 coins