< Back to IRS

Sarah Ali

Capital gains tax rules for non-resident non-citizens who own US assets

I'm not a US citizen or resident anymore. I was working in the States on a visa but moved back to my home country a couple months ago. Still have some investments (stocks and crypto) sitting in my US accounts. Really confused about what capital gains and income tax rules apply to people like me who haven't physically been in the US for the entire financial year? Do I still pay US taxes on these gains even though I'm living overseas now? Also, I haven't updated my address yet on my brokerage and crypto exchange accounts. They still show my old US address. If I sell stocks or crypto before changing my address, will the IRS consider me a US resident for tax purposes? The main reason I haven't changed my address yet is I've only been gone a few months, and I've heard horror stories about accounts getting frozen when you update to a foreign address. Anyone gone through this process before? What's the right way to handle this?

This is a really important question for expats! The US tax system treats non-resident aliens (NRAs) differently than citizens or residents. First, your tax residency status is determined by the "substantial presence test" - not by the address on your financial accounts. If you were physically present in the US for less than 31 days in the current year and don't meet other residency tests, you're generally considered a non-resident alien for tax purposes, regardless of your address on file. For NRAs, only US-source income is taxable by the US. This includes capital gains from selling US real property interests. However, most capital gains from selling stocks, bonds, and even crypto are generally NOT taxable for NRAs (with some exceptions for those who've been in the US for 183+ days in a year). You should still file a 1040-NR if you have any US-source income, even if no tax is due. And you should update your address with your financial institutions - while some may have restrictions, most major brokerages have procedures for non-US clients.

0 coins

Thanks, this is really helpful. But I'm still a bit confused about the whole capital gains thing. Let's say I sell some Apple stock I bought when I was working in the US. As a non-resident non-citizen now, I don't have to pay US capital gains tax on that profit? That seems too good to be true? What about dividends from US stocks?

0 coins

Capital gains from selling personal property (including stocks and crypto) are generally not US-taxable for NRAs unless you were physically present in the US for 183 days or more during the year of the sale. This is indeed a favorable aspect of the US tax code for non-residents. Dividends are different - they're considered US-source income and are typically subject to a 30% withholding tax, though this rate may be reduced by tax treaties depending on your country of residence. Your brokerage should automatically withhold this amount before paying you dividends.

0 coins

After dealing with similar confusion about my investments when I moved abroad, I tried several tax advisors who gave conflicting advice. Finally found https://taxr.ai which specifically helped clarify my non-resident alien tax situation with US investments. They analyzed my specific scenario with investments in both countries and explained exactly which forms I needed and which capital gains were taxable where. Their document analysis pointed out that I needed to look at Section 871(a)(2) of the tax code for the 183-day rule that affects capital gains taxation for non-residents. Without their help, I would have reported incorrectly and probably paid thousands in unnecessary taxes or risked penalties for underreporting.

0 coins

Did they help with filing the actual forms too? Or just give advice on what to do? I'm in a similar situation but in Canada now and really struggling with figuring out all the cross-border investment stuff.

0 coins

Was this expensive? I'm always skeptical of tax services that claim to help expats because they usually charge premium rates knowing we're desperate for help. Also, what about state taxes if you lived in a place like California before leaving?

0 coins

They don't file the forms for you, but they provide detailed instructions and explanations that make filing much easier. They break down exactly which forms apply to your situation and how to complete the key sections. I used their guidance to file my 1040-NR myself without issues. Regarding cost, they're actually reasonable compared to international tax specialists I contacted. They offer different service levels depending on your needs. And for state taxes, yes they covered that too - they explained I needed to file a non-resident state return for the partial year I lived in New York, but didn't need to report investment income earned after I established residency abroad.

0 coins

Just wanted to follow up about my experience with taxr.ai since I ended up trying it despite my initial skepticism. Their system caught that I qualified for something called the "tie-breaker rules" under the tax treaty with my new country (Australia). This saved me from double taxation on some investments I was planning to sell. The document analysis also highlighted that I needed to file FBAR forms for my foreign accounts that exceeded $10,000 - something I had no idea about and might have missed. I'm really glad I checked it out because the penalties for not filing those forms can be steep. Ended up much better than the generic advice I was getting elsewhere!

0 coins

I had a similar issue last year and spent WEEKS trying to get someone at the IRS to clarify my situation as a former H1B visa holder with US investments. Literally could not get through on the phone - either busy signals or disconnected after hours on hold. Finally used https://claimyr.com to get a callback from the IRS within about 2 hours. You can see how it works here: https://youtu.be/_kiP6q8DX5c. The IRS agent I spoke with confirmed that as a non-resident alien, I'm only taxed on US-source income (which does NOT include most capital gains on stocks and crypto for NRAs), and helped me understand the exact forms I needed to file. Getting actual confirmation directly from the IRS gave me so much more confidence than just reading online opinions.

0 coins

This seems sketchy. How does a third-party service get the IRS to call you when regular people can't get through? Is this even legit or just some scam to get your tax info?

0 coins

Does this work for international callbacks? Like if I'm living in Europe now, can they still get the IRS to call me? And what if I need to talk to a specific department at the IRS about NRA tax status?

0 coins

It's actually not sketchy at all - they use an automated system that continually redials the IRS until it gets through, then connects you. They don't access any of your tax info. It's basically just solving the phone queue problem that makes it impossible for regular people to reach the IRS. For international callbacks, yes it works! You'll need to provide an international number, and they can reach you anywhere. Regarding specific departments, when the IRS calls you, you start with a general agent who can then transfer you to specialty departments if needed. In my case, they transferred me to someone who specialized in non-resident taxation.

0 coins

I take back what I said! After dealing with endless frustration trying to reach the IRS myself, I tried Claimyr out of desperation. Got a call from an actual IRS agent within 90 minutes who cleared up my confusion about Form 1040-NR vs 1040. The agent confirmed I needed to file a dual-status return for the year I left the US, treating part of the year as a resident and part as non-resident. They also explained I needed to file Form 8833 to claim treaty benefits for certain income. Would've had no idea without speaking directly to them. Definitely worth it just for the peace of mind of knowing I'm filing correctly.

0 coins

Just wanted to add that you ABSOLUTELY need to change your address with your financial institutions. I stayed with my US address for almost a year after moving overseas and my brokerage eventually found out and temporarily froze my account until I provided proper documentation. Also, if you have more than $10,000 total across all foreign financial accounts at any point during the year, you need to file an FBAR (FinCEN Form 114). The penalties for not filing this are HUGE - like $10,000+ for non-willful violations.

0 coins

Thanks for sharing this. How did your brokerage find out you weren't in the US anymore? Was it just because you were logging in from foreign IPs consistently? And how difficult was the process of unfreezing your account once they discovered it?

0 coins

They noticed consistent foreign IP logins over several months. Also, I had updated my phone number to an international one but forgot about the address, which raised flags in their system. The process of unfreezing wasn't terrible but required submitting a ton of documentation - proof of my foreign address, passport, visa status, completed W-8BEN form, and a signed statement explaining my residency situation. It took about 2 weeks to get full access back. Different brokerages have different policies, but many major ones like Fidelity, Schwab, and Interactive Brokers actually have specific processes for non-US residents. Some might restrict certain trading activities or products, but they usually don't just close your account.

0 coins

Just a heads up that if you're from a country that has a tax treaty with the US, your situation might be different. I'm now in the UK and our tax treaty reduces the withholding on US dividends from 30% to 15%. Also, be aware you might have tax obligations in your new country for your US investments. For example, even if the US doesn't tax your capital gains as an NRA, your new home country probably will!

0 coins

This!! I got hit with surprise taxes in Germany on my US stock sales even though I wasn't taxed in the US. Ended up with a mess because I didn't report properly in either country. Make sure you understand BOTH tax systems.

0 coins

Exactly! And each country has different rules about when they consider you a tax resident. Some countries (like the UK) have a "split year" treatment where you're only taxed as a resident for the portion of the tax year you actually lived there. Others might consider you a full-year resident if you're there on a certain date or for a minimum number of days. It's super important to check the residency rules for both countries and any applicable tax treaties. Tax treaties usually have "tie-breaker" rules that determine which country has primary taxing rights when you could be considered resident in both countries during a transition year.

0 coins

I went through almost exactly this situation when I moved back to India after my H1B expired. The key thing that helped me was understanding that your tax residency status is based on physical presence, not where your accounts are registered. Since you've only been gone a few months, you'll likely need to file a "dual-status" return for this tax year - treating part of the year as a US resident (when you were physically here) and part as a non-resident alien. This means different tax rules apply to income earned during each period. For your investments, here's what I learned: As an NRA, you generally won't owe US capital gains tax on stock/crypto sales (unless you hit that 183-day presence test), but you WILL still owe the 30% withholding on any US dividends. Your brokerage should handle the dividend withholding automatically. Regarding the address issue - I was terrified to update mine too, but most major brokerages like Charles Schwab and Fidelity actually have good processes for this. You'll need to fill out a W-8BEN form and provide some documentation, but they're used to dealing with people in your situation. The key is being proactive about it rather than waiting for them to discover it through IP tracking. Also, don't forget about potential tax obligations in your home country! Many countries will tax you on worldwide income once you become a resident there, which could include gains from your US investments.

0 coins

This is super helpful, thanks for sharing your experience! I'm in a similar boat - moved back to Canada after my work visa expired and still have investments in my US accounts. The dual-status return concept makes a lot of sense, but I'm confused about one thing: how do you determine the exact date when you switched from resident to non-resident status for tax purposes? Is it the day you physically left the US, or when you established residency in your home country? Also, did you have any issues with your Canadian tax obligations on the US investments? I'm worried about getting double-taxed or missing something important on the Canadian side.

0 coins

Great question! For tax purposes, you're generally considered to change from resident to non-resident status on your "last day of residence" - which is typically the day you leave the US with the intention of not returning as a resident. This is different from just taking a vacation - it's when you've made the decision to permanently relocate. The IRS looks at factors like when you moved your belongings, closed US bank accounts, ended your US employment, etc. In most cases for people on expired visas, it's the day you physically left the US since you legally had to leave. For the Canada/US tax treaty, you'll likely benefit from the foreign tax credit system. Canada will generally tax you on worldwide income once you become a Canadian resident, BUT you can claim credits for any US taxes paid (like the 30% withholding on dividends). This prevents true double taxation. The tricky part is timing - make sure you understand when Canada considers you a resident for tax purposes. If you arrived in Canada partway through the tax year, you might be able to file as a part-year resident there too, similar to the dual-status approach in the US. I'd strongly recommend getting professional help for at least the first year of filing in both countries - the interaction between the two tax systems can be complex, and mistakes can be costly!

0 coins

I was in a very similar situation last year when I moved back to Australia after my L1 visa expired. Had a bunch of US stocks and was terrified about the tax implications. One thing that really helped me was getting clear on the "closer connection" test. Even though I still had US financial accounts and hadn't changed all my addresses immediately, I could demonstrate that my tax home had shifted to Australia through things like where I was living, working, banking day-to-day, etc. The IRS Publication 519 has a really good flowchart that walks through how to determine your tax status for the year you leave. It's worth printing out and going through step by step with your specific dates and circumstances. Also, regarding the address updates - I found that being upfront with my broker (TD Ameritrade at the time) actually worked in my favor. I called them, explained my situation, and they walked me through exactly what forms I needed and helped me avoid any account restrictions. They said they prefer when customers are proactive about status changes rather than trying to hide them. The W-8BEN form someone mentioned is key - it's what tells your broker to treat you as a foreign person for tax withholding purposes going forward. Without it, they'll keep treating you as a US person and withholding at potentially incorrect rates.

0 coins

Thanks for mentioning Publication 519 - that flowchart is exactly what I needed! I've been stressing about proving my "closer connection" to my home country since I still have some ties to the US. One question about the W-8BEN form - do you remember how long it took for your broker to process it and update your withholding status? I'm planning to sell some positions soon and want to make sure the correct tax treatment applies. Also, did you have to provide any additional documentation beyond the W-8BEN to prove your foreign status, or was the form sufficient? I'm really glad to hear that being proactive with the broker worked out well for you. I've been putting off the call because I was worried they might restrict my account or make things complicated, but it sounds like most of them are used to handling these situations.

0 coins

The W-8BEN processing was pretty quick for me - TD Ameritrade updated my status within about 3-5 business days after I submitted it online. The form itself was sufficient for basic withholding changes, but they did ask for a copy of my Australian passport as additional proof of foreign status. One important thing to note: if you're planning to sell positions soon, the W-8BEN mainly affects future dividend withholding, not the tax treatment of capital gains you're about to realize. Since you're likely already considered an NRA based on your physical absence, those capital gains should be exempt from US tax regardless of when you submit the W-8BEN. Just make sure you keep good records of your departure date and residency establishment in your home country - you'll need those details for both your US dual-status return and to claim any treaty benefits. The IRS can be pretty reasonable about these transitions if you document everything properly and file the right forms. Definitely make that call to your broker though - in my experience, they'd much rather work with you proactively than discover the status change later through their compliance monitoring!

0 coins

I went through this exact situation when I moved back to Germany after my J-1 visa ended. One thing that really helped me understand my tax obligations was getting clear on the difference between "tax residency" and "address on file" - they're completely separate things for IRS purposes. The substantial presence test is what determines your tax status, not where your mail goes. Since you've been physically absent from the US for months, you're likely already considered a non-resident alien for the portion of the year after you left, regardless of what address your brokerage has on file. However, I'd strongly recommend updating those addresses sooner rather than later. I delayed updating mine for about 6 months and my brokerage (E*Trade) eventually flagged my account for review when they noticed consistent foreign IP logins. The process wasn't terrible, but it would have been much smoother if I'd been proactive about it. The key forms you'll need are the W-8BEN (to establish your foreign status with financial institutions) and likely a dual-status tax return for this year. Don't forget that while the US may not tax your capital gains as an NRA, Germany definitely will once you're considered a German tax resident - so make sure you understand both sides of the equation! Also, keep detailed records of your departure date and when you established residency abroad. You'll need these for both countries' tax authorities.

0 coins

This is really helpful! I'm actually in a very similar situation - just moved back to the UK after my visa expired and have been putting off dealing with my US investment accounts. Your point about tax residency vs address on file is reassuring, but I'm curious about something: did you have any issues with your German tax obligations when you first established residency there? I'm worried about the timing - like if I sell some US stocks now (as an NRA) but then become a UK tax resident later this year, will the UK want to tax those gains even though they happened before I was a UK resident? The whole "when does tax residency actually begin" question is stressing me out because it seems like it could affect which country has the right to tax what. Also, how strict was E*Trade about the documentation when you finally updated your status? I'm with them too and have been nervous about triggering a review.

0 coins

Great question about the timing! For UK tax purposes, you generally become a UK tax resident based on the statutory residence test, which looks at factors like how many days you spend in the UK and whether you have accommodation there. The good news is that most countries, including the UK, typically only tax gains that occur after you become their tax resident. So if you sell US stocks while you're still considered a non-resident of the UK (but already an NRA for US purposes), those gains would likely fall into a gap where neither country taxes them - which is actually favorable for you! Just make sure to keep detailed records of exactly when you established UK residency versus when you made the sales. Regarding E*Trade, they were actually pretty reasonable once I proactively contacted them. I had to provide a copy of my German passport, fill out the W-8BEN form, and provide proof of my German address (utility bill). The whole process took about a week, and they didn't restrict any of my trading activities. The key was being upfront about the situation rather than letting them discover it through their monitoring systems. One tip: before you make any major sales, consider getting a consultation with a tax advisor who specializes in US-UK tax issues. The timing of when you establish UK residency could significantly impact your overall tax bill, and it might be worth strategically planning your investment sales and residency establishment dates.

0 coins

I went through almost this exact scenario when I moved back to Singapore after my H1-B expired last year. The stress about tax obligations and account freezes is totally understandable! First, don't panic about the address issue - your tax residency status is determined by physical presence tests, not the address your brokerage has on file. Since you've been physically absent from the US for months, you're likely already considered a non-resident alien (NRA) for tax purposes for the period after you left. That said, you should update your address with your financial institutions sooner rather than later. I was terrified about this too, but most major brokerages (I was with Fidelity) actually have established processes for clients who become non-residents. The key is being proactive - call them, explain your situation, and ask about their non-resident client procedures. You'll likely need to fill out a W-8BEN form and provide some documentation, but it's much better than having them discover the change through IP monitoring and potentially freezing your account. For your investments, as an NRA you generally won't owe US capital gains tax on stock and crypto sales (assuming you don't hit the 183-day presence test), but you will still have 30% withholding on US dividends. However, don't forget about tax obligations in your home country - many countries will tax you on worldwide income once you become their resident, which could include your US investment gains. You'll probably need to file a dual-status return for this tax year, treating part of the year as a US resident and part as NRA. Keep detailed records of your departure date and when you established residency abroad - you'll need this for both countries' tax authorities.

0 coins

This is such a comprehensive overview, thank you! I'm in a very similar situation - just moved back to India after my H1-B expired and have been paralyzed by fear about making any moves with my US investment accounts. Your point about being proactive with the brokerage is really reassuring. I've been putting off calling Schwab for weeks because I was convinced they'd immediately freeze everything or force me to liquidate. It's good to know that most major firms have processes in place for this. One question about the dual-status return - do you remember roughly how complex that filing was? I'm trying to decide whether to attempt it myself or just bite the bullet and hire a professional for this transition year. Also, did Singapore end up taxing your US investment gains, and if so, were you able to avoid double taxation through treaty benefits? I'm especially nervous about the timing of everything since I only left the US about 6 weeks ago, so I'm still very much in that transition period where I need to be careful about how I establish my new tax residency.

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
20,095 users helped today