Can F1 Students Invest in Stocks? Rules, Taxes, and Crypto

Yes, F1 students can invest in stocks. Federal tax law contains a safe harbor that treats trading securities for your own account as passive investment rather than a U.S. trade or business, and immigration rules do not classify dividends or capital gains as employment. What changes for an F1 student is the tax treatment: as a nonresident alien, you face a flat 30% withholding on U.S. dividends and, in most cases, a flat 30% on net capital gains, with no distinction between short-term and long-term holding periods.

Why It’s Legal

The F1 visa requires a full course of study and restricts off-campus work to authorized categories such as Curricular Practical Training and Optional Practical Training.1U.S. Citizenship and Immigration Services. Students and Employment USCIS defines unauthorized “employment” by whether someone is performing services or labor. Collecting dividends and selling appreciated shares doesn’t involve performing services for anyone, so it sits outside the employment restrictions.

Federal tax law backs this up. Under 26 U.S.C. § 864(b)(2), trading stocks or securities for your own account is explicitly excluded from the definition of a “trade or business within the United States,” whether you execute the trades yourself, use a broker, or have someone handle them for you.2Office of the Law Revision Counsel. 26 U.S. Code 864 – Definitions and Special Rules IRS Publication 519 puts it plainly: if your only U.S. business activity is trading stocks for your own account, you are not engaged in a trade or business in the United States.3Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens

Where Day Trading Becomes a Problem

Passive investing is safe. Executing dozens of trades a day, spending hours monitoring charts, and treating trading income as your primary support is a different picture. USCIS could characterize highly frequent, systematic trading as unauthorized self-employment. The agency looks at how frequently and systematically you trade, how much time you devote to it, and whether the activity resembles a business rather than personal investing.

There is no bright-line number of trades per week that triggers a problem. The distinction is about how the activity looks from the outside. A student who buys a few stocks each month and reinvests dividends isn’t raising any flags. A student who runs algorithmic strategies eight hours a day is doing something that looks like work. Keep your investing clearly secondary to your studies.

The tax safe harbor is more forgiving on this point. Even high-frequency personal trading remains outside the definition of a U.S. trade or business under § 864(b)(2), as long as you’re trading for your own account and you’re not a dealer in securities.2Office of the Law Revision Counsel. 26 U.S. Code 864 – Definitions and Special Rules Passing the IRS test does not automatically mean you pass the USCIS test. The two agencies evaluate the activity independently.

Opening a Brokerage Account

Broker-dealers must run a Customer Identification Program before opening any account. For non-U.S. persons, they must collect your name, date of birth, residential address, and at least one of the following: a taxpayer identification number, a passport number with country of issuance, an alien identification card number, or another government-issued document showing nationality or residence with a photograph.4eCFR. 31 CFR 1023.220 – Customer Identification Programs for Broker-Dealers

Practically, that means your passport, your U.S. address, and either a Social Security Number or an Individual Taxpayer Identification Number. An SSN generally requires authorized employment, which many first-year F1 students don’t have. Without one, you can apply for an ITIN using IRS Form W-7 filed with a federal tax return.5Internal Revenue Service. About Form W-7, Application for IRS Individual Taxpayer Identification Number Some larger brokerages, including Interactive Brokers and Charles Schwab, have historically accepted nonresident aliens with a passport and ITIN rather than an SSN. Requirements vary by firm, so ask before applying.

You’ll also need proof of your U.S. address, such as a utility bill, lease, or bank statement, and you may be asked about funding sources under anti-money laundering rules. Personal savings, family support, and scholarship funds are all legitimate. Keep documentation in case the brokerage asks for transfer records.

How Dividends Are Taxed

Dividends paid to nonresident aliens by U.S. companies are taxed at a flat 30%, withheld automatically by your brokerage before the money reaches your account.6Office of the Law Revision Counsel. 26 U.S. Code 871 – Tax on Nonresident Alien Individuals The rate applies regardless of how long you’ve held the stock or how much you earned. You’ll see it deducted on your account statements.7Internal Revenue Service. 2025 Instructions for Form 1040-NR

The 30% rate drops if your home country has a tax treaty with the United States. Many treaties lower dividend withholding to 15%, and some go further. To claim the lower rate, file Form W-8BEN with your brokerage before dividends are paid, listing your name, permanent home-country address, and country of treaty residence.8Internal Revenue Service. About Form W-8 BEN, Certificate of Foreign Status of Beneficial Owner for United States Tax Withholding and Reporting (Individuals) Without the W-8BEN, your broker withholds the full 30% regardless of any treaty. Submitting it when you open the account is one of the easiest ways to keep more of your returns.

How Capital Gains Are Taxed

Capital gains work very differently for nonresident aliens than for U.S. citizens. Because trading for your own account is not a U.S. trade or business under § 864(b)(2), your capital gains are not “effectively connected” income.3Internal Revenue Service. Publication 519 (2025), U.S. Tax Guide for Aliens A special rule based on physical presence then takes over:

  • Present fewer than 183 days during the tax year: your net capital gains from U.S. sources are exempt from U.S. income tax.
  • Present 183 days or more during the tax year: your net capital gains from U.S. sources are taxed at a flat 30%, or a lower treaty rate if one applies.

The 183-day threshold comes from 26 U.S.C. § 871(a)(2).6Office of the Law Revision Counsel. 26 U.S. Code 871 – Tax on Nonresident Alien Individuals Most F1 students spend well over 183 days in the country because the academic calendar alone runs roughly nine months, so most will owe the flat 30% on net capital gains. Holding period doesn’t matter under this rule. Short-term and long-term gains are taxed identically. Report them on Schedule NEC (Form 1040-NR), not Schedule D.7Internal Revenue Service. 2025 Instructions for Form 1040-NR

Losses offset gains. Only the excess of gains over losses is taxed, so keep careful records of purchase prices and sale dates for every transaction.

Crypto and Other Digital Assets

Cryptocurrency, NFTs, and other digital assets follow capital-gains rules when held as personal investments. If you sell, exchange, or otherwise dispose of a digital asset in 2026, you must report it, and the IRS requires you to indicate digital asset activity on your return.9Internal Revenue Service. Instructions for Form 1040-C (Rev. January 2026) Use Form 8949 to calculate the gain or loss.

The 183-day rule applies to crypto gains the same way it applies to stock gains. Present 183 or more days: flat 30% on net gains, or a lower treaty rate. Present fewer: exempt when the gains aren’t effectively connected to a U.S. business. The passive-versus-active distinction also transfers over. Casually buying and holding crypto is passive; running a trading operation raises the same unauthorized-employment concerns as aggressive stock day trading.

What Changes After Five Years

F1 students are “exempt individuals” for the IRS substantial presence test during their first five calendar years in the United States. During those years, days in the country don’t count toward the test that would otherwise make you a resident alien for tax purposes.10Internal Revenue Service. Tax Residency Status Examples That’s why F1 students are generally taxed as nonresident aliens under the rules above.

The exemption ends permanently after those five calendar years. If you remain in the U.S. and meet the substantial presence test in year six, you become a resident alien for tax purposes starting January 1 of that year. The consequences are significant. Resident aliens are taxed on worldwide income, the same as U.S. citizens. Investment gains in foreign accounts, interest from overseas banks, and dividends from non-U.S. companies all become taxable. You’d switch from Form 1040-NR to Form 1040, and capital gains would move from the flat 30% to the graduated short-term and long-term rates that citizens pay.

If you’re approaching year six, that shift should shape your investing decisions. When to sell, whether to repatriate funds, and how to structure accounts all look different once you’re taxed as a resident.

Filing Your Tax Return

Nonresident alien F1 students with U.S.-source investment income file Form 1040-NR. Dividends and capital gains not connected to a U.S. trade or business go on Schedule NEC (Form 1040-NR); any effectively connected income goes on the main form.7Internal Revenue Service. 2025 Instructions for Form 1040-NR

The filing deadline depends on your other income. If you also receive wages subject to U.S. income tax withholding, such as an on-campus job, the return is due April 15. If you have only investment income and no wages subject to withholding, the deadline is June 15.11Internal Revenue Service. Taxation of Nonresident Aliens Interest still accrues on any unpaid balance from April 15 regardless.

Your brokerage will issue Form 1042-S showing income paid and tax withheld. If your broker withheld more than you owed, because you were entitled to a lower treaty rate for example, the 1040-NR is how you claim a refund. If you’re applying for an ITIN, attach Form W-7 to the front of your 1040-NR and submit them together.12Internal Revenue Service. How to Apply for an ITIN

Foreign Account Reporting

FBAR (FinCEN Form 114) applies to “U.S. persons,” which the IRS defines as citizens, resident aliens, and domestic entities.13Internal Revenue Service. Report of Foreign Bank and Financial Accounts (FBAR) An F1 student who is still a nonresident alien is generally not a U.S. person and does not have an FBAR obligation. Once you cross the five-year threshold and become a resident alien, you become a U.S. person, and FBAR applies for any year the combined value of your foreign financial accounts exceeds $10,000 at any point.

Form 8938, which covers specified foreign financial assets, follows the same pattern. It’s required from “specified individuals,” and nonresident aliens fall into that category only if they elect to be treated as resident aliens for purposes of filing a joint return.14Internal Revenue Service. Do I Need to File Form 8938, Statement of Specified Foreign Financial Assets Most F1 students in their first five years won’t need either form, but the obligation can appear unexpectedly after you shift to resident alien status.

What Goes Wrong If You Get It Wrong

The IRS charges penalties for late filing, late payment, and underreporting. Failing to file Form 1040-NR when you owe tax adds a failure-to-file penalty plus interest running from the original due date. Underreporting is treated the same for nonresident aliens as for citizens, and if it looks intentional the IRS can pursue fraud penalties or refer the matter for criminal investigation.

Immigration consequences can be worse than the financial ones. USCIS reviews tax compliance when you apply for a change of status, OPT, or any future visa benefit. A pattern of unreported income creates a mismatch between your immigration and tax records that invites questions. If USCIS decides your trading amounted to unauthorized employment, consequences range from denial of future benefits to visa revocation. Tax mistakes can be fixed with amended returns and penalty payments. An adverse USCIS finding on unauthorized employment is much harder to undo.