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

Sarah Ali

Author

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

IRS AI

Expert Assistant
Secure