Can You Invest in Stocks, Crypto & 401(k) on OPT?
You are earning a US salary on OPT. Can you invest it in the stock market, cryptocurrency, or your employer's 401(k)? Yes—but the tax rules are different for nonresident aliens.

You just received your first US paycheck on OPT. After paying rent and groceries, you want to start investing. The good news: F-1 students on OPT are 100% legally allowed to invest in US stocks, bonds, ETFs, mutual funds, cryptocurrency, and even real estate. But the tax treatment is dramatically different from what US citizens and residents face.
Nonresident Alien (NRA) vs. Resident Alien: Why It Matters
Most F-1 students on OPT are classified as Nonresident Aliens (NRA) for tax purposes during their first 5 calendar years in the US. This classification changes everything about how your investment income is taxed:
- NRA: You file Form 1040-NR. Capital gains from stocks are generally not taxed (unless you are in the US for 183+ days in the calendar year). Dividends are taxed at a flat 30% (unless a tax treaty reduces it).
- Resident Alien: After passing the Substantial Presence Test (usually year 6+), you file Form 1040 just like a US citizen. Capital gains are taxed at normal rates.
Stocks & ETFs
You can open a brokerage account at any major US firm (Fidelity, Charles Schwab, Vanguard, Robinhood) using your SSN. Buy and sell stocks freely. As an NRA:
- Capital Gains: Generally exempt from US tax. You only pay tax on US-source capital gains if you are physically present in the US for 183+ days in the tax year and you have a "tax home" in the US.
- Dividends: Taxed at 30% (or a reduced treaty rate). Your broker will automatically withhold this.
Cryptocurrency
Crypto is treated as property by the IRS. When you sell Bitcoin, Ethereum, or any crypto for a profit, it is a capital gains event. As an NRA on OPT, the same capital gains exemption generally applies. However, crypto-to-crypto trades (e.g., swapping ETH for SOL) are also taxable events.
FBAR Warning for Crypto
If you hold cryptocurrency on a foreign exchange (e.g., Binance, not Binance.US), and the total value of all your foreign financial accounts exceeds $10,000 at any point during the year, you must file an FBAR (FinCEN Form 114) by April 15. Failure to file can result in penalties of $10,000 or more per violation.
401(k) Retirement Plans
If your OPT employer offers a 401(k) plan, you are eligible to participate. Here is why you should seriously consider it:
- Employer Match: If your employer matches 4% of your salary, that is literally free money. Contribute at least enough to get the full match.
- Tax Deferral: Traditional 401(k) contributions are pre-tax, reducing your current taxable income.
- Portability: If you leave the US, you can keep the 401(k) account open and let it grow. You can also roll it into an IRA.
What If You Leave the US?
If you eventually leave the US permanently, you can withdraw your 401(k) funds. The withdrawal will be subject to a mandatory 30% NRA withholding (unless reduced by a tax treaty). You will also owe a 10% early withdrawal penalty if you are under 59½. It's usually better to leave the money invested until retirement.
Stay Compliant While You Invest
Investing is smart, but do not let financial planning distract you from your OPT compliance obligations. TrackMyOPT keeps your unemployment counter, SEVIS reporting, and employer updates on autopilot so you can focus on building wealth instead of worrying about deportation.
Key Tax Forms to Know
- Form 1040-NR: Your annual income tax return as a Nonresident Alien.
- Form 8843: Must be filed even if you earned $0. It declares your exempt individual status.
- FBAR (FinCEN 114): Required if your foreign accounts exceed $10,000 at any point.
- Form 1099-B: Sent by your broker showing stock/crypto sales.
- Form 1099-DIV: Sent by your broker showing dividend income.
Invest in Your Future—and Your Status
Building wealth on OPT starts with staying compliant. Use TrackMyOPT to monitor your employment deadlines, SEVIS reporting, and unemployment days while you grow your portfolio.