F1 student capital gains tax on selling RSUs and foreign mutual funds — what do I actually owe?

I'm on an F1 visa, third year, and my employer gave me RSUs that vested last spring. I sold them a few months after vesting, and I also sold units in a mutual fund based in my home country. My university's tax office just told me F1 students are nonresident aliens for the first few years, so the rules might be completely different from what my coworkers told me. I've been reading Publication 519 but it keeps referencing treaties and I don't know if one applies to me. My 1099-B shows proceeds for the RSUs. I don't have any US form for the foreign fund — just a statement from the foreign broker. Do I report both on Form 8949? Is the RSU gain taxed the same way as for a resident? And does the foreign fund even show up on a US return?

44 comments

Which country are you from? That's the first thing that changes the whole answer. The US has tax treaties with some countries that give students a specific exemption or reduced rate on certain income, and those treaty benefits are claimed on Form 8833 and noted on the return. Without knowing the country nobody can tell you whether a treaty applies.

Ben L.

Author

I'd rather not say the country publicly but I'll check the treaty table in Publication 519. If there is a treaty, do I still fill out Form 8949 for the RSU sale or does the treaty override that completely?

No, the treaty doesn't erase the Form 8949 requirement for income that's US-source. It may reduce the rate or exempt part of it, but you still report the sale. The treaty adjustment typically goes on Schedule OI inside Form 1040-NR and you attach Form 8833 to claim it.

Are you filing Form 1040-NR or the regular 1040? Because if your university said you're a nonresident alien, you should be on 1040-NR, not the standard 1040. The RSU income at vesting goes on that return as wages — your employer should have withheld on it — and then the subsequent sale of shares is a separate capital gain event reported on Form 8949.

Ben L.

Author

Yes I'm on 1040-NR. The vesting income did show up in my W-2 which surprised me, I thought it would be separate. So the cost basis for the shares I sold is the fair market value at vesting, right?

Exactly right. The FMV at vesting that was included in your W-2 wages becomes your cost basis in the shares. When you sell, proceeds minus that basis is your capital gain or loss. If you held more than a year after vesting it's long-term; a year or less is short-term. The holding period starts the day after vesting, not the grant date.

The foreign mutual fund piece is the part that really tripped me up on my own return last year — I had a similar setup. I uploaded my foreign broker statement and my 1040-NR draft to taxr.ai and it flagged that the fund could be classified as a PFIC under US rules, which would change the tax calculation entirely from normal capital gains treatment. Worth checking before you assume it's just a regular Schedule D item.

Ben L.

Author

I hadn't heard of PFIC before. So the foreign fund might not go on Form 8949 at all?

It depends. If it's a PFIC and you don't make a QEF or mark-to-market election, gains and certain distributions get computed on Form 8621 using an interest charge method. It can result in a much higher effective tax than regular long-term rates. The IRS digital assets page won't help you here — look at the Form 8621 instructions directly.

Are you sure your employer's payroll treated you as a nonresident alien when they withheld? Some payroll systems get this wrong for F1 employees and withhold as if you're a resident. If that happened you may have had too much withheld or the wrong treaty exemptions applied, and it would flow into the W-2 figures incorrectly.

Ben L.

Author

I honestly don't know. The W-2 has the full RSU vesting amount in box 1 and there's withholding in box 2. Is there a way to tell from the W-2 itself?

Not definitively from the W-2 alone. You'd need to compare the withholding to what a nonresident alien withholding calculation would produce for your income. If it looks off, talk to payroll now rather than waiting — corrected W-2s (W-2c) get harder to get after a certain point in the year.

Something worth knowing: for nonresident aliens, US-source capital gains are generally not taxed by the US unless you were present in the US for 183 days or more during the tax year under a specific test in the tax code. The RSUs sold through a US broker are US-source, so whether you hit that 183-day threshold matters a lot. Did your university mention that test?

Ben L.

Author

They mentioned the substantial presence test for residency but not this specific 183-day rule for capital gains. So if I was here all year on F1, does that mean my RSU gains are taxable?

Yes, F1 students are exempt from counting days under the substantial presence test for a limited period, but that exemption is for determining residency status — it doesn't automatically exempt you from the 183-day capital gains rule under IRC 871(a)(2). Those are two separate tests. Your university tax office should be able to confirm how many days you count.

The PFIC question the other member raised is real and I'd take it seriously. When I had foreign funds on my return I gave Taxr my broker statement and the draft 8949 I had started, and it identified which fund characteristics pointed toward PFIC status and drafted a list of the information I'd need to complete Form 8621 properly — things I wouldn't have known to gather. Saved me from filing something that would have needed amending.

How do you even know if a foreign mutual fund is a PFIC? Is there a list somewhere?

No official IRS list. The general rule is that a foreign corporation is a PFIC if 75% or more of its gross income is passive, or if 50% or more of its assets produce passive income. Most foreign mutual funds meet that test easily. The fund itself might tell you, or you check the Form 8621 instructions for the definition.

Did the foreign broker send you anything like a 1099-B equivalent from their country? Some countries produce a similar gains statement. Even if it doesn't match IRS format you can use the figures to reconstruct cost basis and proceeds for Form 8949, converting to USD at the exchange rate on the transaction dates.

Ben L.

Author

Yes, they sent a statement with purchase price and sale price in the foreign currency. So I convert each transaction date's amounts to USD using the actual exchange rate that day?

Yes, spot rate on the transaction date is the standard approach. The IRS accepts rates from the Federal Reserve or other recognized sources. Keep records of which rate you used for each transaction in case of questions later.

Does it make a difference whether the RSU shares were sold through the same US broker who handled the grant, versus if the company transferred them to a different account first? I'm asking because I had a situation where the cost basis on my 1099-B was listed as zero and I had to do a column (g) adjustment on Form 8949.

Yes, that zero-basis issue is common with RSUs. The broker sometimes doesn't have the vesting FMV because it came from payroll, not from a purchase. You enter the proceeds in column (d) as shown, enter the basis exactly as the 1099-B shows it (zero) in column (e), and enter a negative adjustment in column (g) for the correct basis (the W-2 FMV amount), since the correct basis is higher than what the 1099-B shows. Box A or D gets checked and code B goes in column (f).

Ben L.

Author

This is exactly my situation. The 1099-B shows zero basis. So I put the zero basis from the 1099-B in column (e), put the W-2 FMV as a negative number in column (g) to correct it, and check box A since the broker reported it to the IRS. Got it.

Has anyone here dealt with a state return on top of this? Some states don't follow federal nonresident alien rules and may treat you as a resident for state purposes depending on how long you've been there.

Yes, state residency rules are entirely separate from federal immigration or tax status. Some states use their own domicile or day-count tests. You'd need to check the specific state's rules — the IRS has nothing to do with that part.

Ben L.

Author

I'm in a state with no income tax so I think I'm okay there, but good to know for anyone else reading this.

Going back to the PFIC question — if someone makes the mark-to-market election on a PFIC, does that mean they report gains and losses every year even without selling? Just trying to understand the trade-off.

Yes, mark-to-market means you treat the fund as if you sold it at year-end FMV each year. Any increase is ordinary income, and losses are allowed only to the extent of prior mark-to-market gains. It avoids the punishing interest charge method but requires consistent annual reporting on Form 8621.

No, that sounds like a lot of annual work for a small fund. I can see why people don't realize this until they've already sold.

Are the RSU dividends paid before the sale also a separate reporting issue? Nonresident aliens are generally subject to 30% withholding on US-source dividends unless a treaty reduces it, and that shows up on Form 1042-S, not 1099-DIV.

Ben L.

Author

I did get a Form 1042-S actually. I didn't realize it was connected to the RSUs. So where does that go on the 1040-NR?

Form 1042-S income goes on Schedule NEC of Form 1040-NR for income not effectively connected with a US trade or business. The withholding credit from box 7 of the 1042-S offsets tax owed. If a treaty reduces the rate below 30%, Form 8833 is attached to claim the lower rate.

One thing that's easy to miss: the holding period for capital gains on Form 8949 uses the trade date, not settlement date, for securities traded on established markets. So if you sold near year-end and the settlement fell in the next year, you still report it in the year of the trade.

Ben L.

Author

Good to know. My sale settled two days after I placed the order but both were in the same tax year so it doesn't affect me. But I could see that mattering for someone who sold in late December.

Is there a situation where an F1 student's capital gains would be effectively connected income rather than the fixed/determinable type? I know ECI is taxed at regular rates with deductions allowed, while FDAP income gets the flat withholding rate.

Generally capital gains on securities sold through a US broker by a nonresident alien are not ECI unless the gains are attributable to a US business; meeting the 183-day test mentioned earlier makes them taxable at the flat 30% (or treaty) rate on Schedule NEC, not ECI. ECI from a US trade or business is a different analysis and usually requires a CPA or enrolled agent familiar with international tax to sort out correctly if you're in that territory.

For the foreign fund, don't forget that you might also have a foreign bank account reporting obligation if the account holding the fund exceeded certain thresholds. That's separate from the tax return and goes through FinCEN, not the IRS.

Ben L.

Author

I do have an account at the foreign broker. I hadn't thought about that at all. Where would I look for the threshold rules?

The FBAR rules are on fincen.gov and the FATCA rules attach to your tax return on Form 8938. The thresholds differ between the two and differ by filing status and whether you live in the US or abroad. Worth checking both — the penalties for missing these are significant.

Pulling the PFIC thread together with the RSU thread: if the original poster has both a PFIC gain on Form 8621 and a capital gain on Form 8949, those flow to Schedule D separately. The PFIC interest charge, if applicable, goes on Schedule 2 as an additional tax, not on Schedule D at all.

Correct, and that's the part that makes PFIC reporting so disruptive to an otherwise simple return. The interest charge is computed inside Form 8621 Part IV and then transfers to Schedule 2 line 17. It's not a capital gains rate — it's computed using the underpayment rate.

Realistically, with RSUs, a potential PFIC, Form 1042-S income, possible treaty claims on Form 8833, and foreign account reporting, this return is complex enough that an enrolled agent or CPA with international tax experience is worth consulting. Not every preparer handles 1040-NR with PFIC exposure routinely — ask specifically about that before engaging someone.

Ben L.

Author

Yeah, I think I'm going to need professional help for at least this first year. I'll use what I learned here to have an informed conversation with whoever I find. Thank you everyone — this thread gave me a real roadmap of what forms are involved even if the final numbers need a pro.