F1 student over 183 days capital gains tax on ETFs, no treaty

Trying to figure out where I stand before I file. I'm on an F1 visa, been in the US for about 26 months total across my program. I bought some broad-market ETFs through a brokerage last year and sold a few positions, some at a gain, some at a loss. My country has no tax treaty with the US. I keep reading conflicting things about the substantial presence test and whether F1 students are even counted toward the 183-day threshold. Some posts say F1 holders are exempt from counting days for 5 years, others say that only matters for the substantial presence test and not for my actual tax rate on capital gains. I've already pulled my 1099-B from the broker. I just don't know if I'm filing as a resident alien or nonresident alien, and whether my ETF gains get taxed at regular capital gains rates or at 30 percent flat. What actually applies here?

31 comments

The exempt individual rule is the key piece here. F1 students are typically exempt individuals for purposes of the substantial presence test, meaning the days you're present on an F1 status don't count toward the 183-day threshold, but only for 5 calendar years. After those 5 years the days start counting. So the first question is: how many calendar years have you been in F1 status in the US? If you're still inside that 5-year window, you're almost certainly a nonresident alien regardless of how many days you've been physically here.

Maya C.

Author

I entered the US in 2022 so this is my 4th calendar year counting from then. That puts me still inside the 5-year exempt window, which means nonresident alien status. That changes everything about how I approach this.

I was in almost the same spot last year, F1 with ETF sales and no treaty country. I uploaded my 1099-B and my visa entry dates to taxr.ai and it walked me through the Form 8843 exempt individual analysis line by line, then flagged where my gains would land on Form 1040-NR versus what I would have owed as a resident. Really helped me see the distinction before I handed anything to a preparer. Worth doing before you assume one way or the other.

Maya C.

Author

That's exactly the kind of check I needed before committing to a filing position. I'll run my documents through it.

Nonresident alien status matters a lot for ETF gains specifically. If you're a nonresident alien, US-source capital gains are generally not taxable unless you were present in the US for 183 days or more during the tax year under the special NRA 183-day rule, which is a separate test from the substantial presence test. That NRA-specific 183-day rule counts actual days present in the tax year, not exempt days. So if you were physically in the US for 183 days or more in 2024, your net capital gains could be taxed at 30 percent flat on Form 1040-NR. That means your US-source gains minus your US-source losses, though unlike residents you can't deduct an excess loss against other income or carry it forward.

This is the part a lot of people miss. There are two different 183-day tests. One determines residency status (where F1 exempt days don't count). The other, specific to nonresident aliens, looks at actual physical presence in the tax year to tax capital gains at 30 percent. They are not the same calculation.

Maya C.

Author

So I need to count my actual days in the US during the tax year, not just my total time on F1. If I was physically here 183 days or more in 2024, the gains are taxed at 30 percent flat even as a nonresident alien. If I was under 183, they may not be taxable at all as a nonresident.

My situation last year had me under the 183 actual days for the tax year because I traveled home for a few months. The gains on my ETF sales ended up not being subject to US tax as a nonresident alien since I didn't cross that threshold. But I still had to file Form 1040-NR and attach Form 8843 to document my exempt individual status.

That tracks with what I've seen. Even when no tax is owed, the filing obligation is still there. 1040-NR plus 8843 for F1 students who have any US-source income or who want to protect their exempt status on record.

I ran my entry and exit dates and all my ETF transactions through Taxr last spring when I was sorting out the same question. It pulled together a summary showing how the two 183-day tests applied to my specific dates. It also flagged that on 1040-NR my losses only offset my gains, and that unlike a resident's Schedule D, any excess loss couldn't be deducted against other income or carried forward. I would not have caught that on my own. If you're in a no-treaty situation that's the kind of detail that matters.

Maya C.

Author

The loss netting difference is something I hadn't thought about at all. On a regular 1040 with Schedule D you net gains and losses and can deduct some of an excess loss. I assumed it worked the same way on 1040-NR, apparently only partly.

Correct. On Form 1040-NR the 30 percent flat rate applies to the net gains, with losses reducing the gains but without the excess-loss deduction and carryover that residents get on Schedule D. An excess loss doesn't reduce other income the way it would on a resident return. That's a real difference that can affect how much you owe.

Don't overlook what the ETF actually holds, because that can matter. Some ETFs hold assets that produce income characterized as dividends or interest, not pure capital gain. Dividends paid to nonresident aliens are generally subject to 30 percent withholding, and that may already have been withheld by your broker. Check your 1099-B and any 1099-DIV your broker sent. The tax treatment isn't uniform across all ETF distributions.

Maya C.

Author

I do have a 1099-DIV as well, I hadn't connected that to this question. The withholding amount is on there. So that might already be handled but I need to reconcile it on the 1040-NR.

Form 8843 is not optional for F1 students. You file it every year you're in the US on F1 status, even years where you have zero income. It's the document that establishes you're an exempt individual under the substantial presence test.

Had to explain this to a friend last year. She thought 8843 was only needed if you owed money. The IRS instructions for Form 8843 are clear that it's required for every year of F1 presence regardless of income.

I'd double-check whether your broker reported your transactions correctly assuming you're a resident. Some brokers don't flag F1 accounts differently and the cost basis and character of gain on the 1099-B may be reported as if you're filing a standard 1040. That doesn't change the rules but it means you can't just drop the 1099-B numbers into 1040-NR without thinking through how they translate.

My broker did exactly that. 1099-B showed everything as short-term and long-term like a resident return. Had to reclassify when filing 1040-NR because the rate and reporting structure is different for nonresidents.

To be direct: if you've been in the US for 183 or more actual days in the tax year you're asking about and you have no treaty protection, your capital gains on ETF sales as a nonresident alien are taxed at 30 percent flat on the Form 1040-NR. You report those gains on Schedule NEC of the 1040-NR, not on a Schedule D equivalent.

Schedule NEC on the 1040-NR is what threw me off the first time. I kept looking for a Schedule D equivalent and couldn't find it. The 30 percent rate income goes on the NEC schedule, which is laid out differently from anything on the resident forms.

Maya C.

Author

This is useful. I was actually looking for Schedule D on the 1040-NR instructions and not finding it. Now I understand why.

The loss situation is genuinely different from what people expect. As a nonresident alien under the 30 percent flat rate structure, your US-source capital losses do offset your US-source capital gains, but any excess loss can't be deducted against other income or carried forward. So if you had one ETF go up and one go down during the year, the loss reduces the gain taxed at 30 percent, but a net loss just disappears instead of giving you the deduction it would on a resident return.

That's a real hit if someone had a volatile year with a net loss. Important to know going in rather than after you've already filed assuming the resident loss deduction and carryover apply.

Your passport entry and exit stamps are the primary record if you aren't certain about your actual day count. If you didn't get stamps (some land borders and some airports are inconsistent), airline records or credit card statements showing purchases from your home country can help establish the dates. Keep that documentation if the IRS ever questions your nonresident filing position.

If your situation involves a significant amount of gains, I'd recommend working with a CPA or enrolled agent who handles international student tax returns specifically. The nonresident alien rules have enough nuance, especially with no treaty, that getting it wrong can mean either overpaying or filing incorrectly. It's not an area where guessing is worth the risk.

Maya C.

Author

That's where I'm leaning. I want to understand the structure first so I can have an informed conversation with whoever I work with, but for the actual filing I'll probably use someone who knows the 1040-NR well.

I looked up the IRS page on this when I was going through it. The digital assets and investment income pages at irs.gov cover resident rules well but the nonresident treatment is in the 1040-NR instructions and in Publication 519, which covers US tax guide for aliens. That pub lays out the two 183-day tests separately which made it much clearer for me.

Publication 519 is the right reference for this. The instructions for Form 1040-NR are also specific about which income goes on Schedule NEC versus the main 1040-NR form as effectively connected income and how the rates apply.

My year looked similar to yours. Ended up over 183 actual days in the tax year because I stayed through the summer for research. My net gains after subtracting my losses got hit at 30 percent flat, and I had to report on Schedule NEC. The 1099-B from my broker showed short and long term columns that I basically couldn't use in the same way.

The short-term versus long-term distinction mostly doesn't matter for nonresident alien capital gains taxed at the flat rate. The character still matters for other reasons but the preferential long-term rate that residents get doesn't apply in the same way when you're under the 30 percent structure.

Update from my end: I counted my actual days in the tax year and I was under 183. So my ETF gains as a nonresident alien should not be subject to US tax under the NRA rules, but I still need to file 1040-NR and attach Form 8843. I'm going to get a preparer who handles international student returns to confirm and actually file, but at least now I understand why the answer is what it is. Thanks for all the detail here.