Tax year 2026Checked

Stocks, Robinhood and crypto on an F-1 visa: how they are taxed

The 183-day rule for stock and crypto gains, why your exempt days still count, the IRS tax-home condition, how dividends are taxed and withheld, and which forms your broker sends.

In short

  1. If you were in the US fewer than 183 days in 2026, gains from selling stocks are generally not taxed for a nonresident alien.
  2. At 183 days or more, net gains are taxed at 30% on Schedule NEC if your tax home is in the US, and days as an F-1 or J-1 exempt individual count toward the 183.
  3. A student with a US job, OPT or a US-source scholarship usually has a US tax home; for a family-funded student present 183 days or more, two IRS pages disagree, so ask a tax professional.
  4. Dividends from US companies are taxed at 30% of the gross amount or a lower treaty rate (25% for India, 10% for China), usually withheld by your broker and reported on Form 1042-S.
  5. Crypto is property: a sale generally follows the same 183-day rule as stocks, and every 2026 Form 1040-NR filer must answer the digital asset question on page 1.
Contents, 12 sections

As an F-1 or J-1 nonresident alien, you generally owe no US tax on 2026 stock gains if you spent fewer than 183 days in the US in 2026. At 183 days or more, your net gains are taxed at a flat 30% if your tax home is in the US. It usually is if you work here or have a US-source scholarship.

Dividends from US companies are taxed at 30%, or a lower treaty rate, and your broker usually withholds that tax before paying you. Crypto is property in US tax law, and a crypto sale generally follows the same rules as a stock sale. The tax rules are the same at any US broker or app, Robinhood included. This page does not cover any broker's own account rules.

Do F-1 students pay tax on stock gains?

Whether you pay tax on 2026 stock gains depends on your number of days in the US in 2026 and on where your tax home is. A student who lives in the US all year and has a US job or US-source scholarship is likely to owe 30% on net gains.

Publication 519 states the two rules. Capital gains are tax exempt for a nonresident alien unless they are connected with a US trade or business. But at 183 days or more in the US during the tax year, Pub 519 says your net gain "is taxed at a 30% (or lower treaty) rate". For most students, the tax year is the calendar year, January 1 to December 31, 2026.

The 183-day count here is not the substantial presence test. The IRS says this rule "bears no relation" to that test (IRS capital gains page). The IRS volunteer guide, Publication 4011, counts all days of presence, including days you leave out of the substantial presence test as an exempt individual.

So being a nonresident alien does not mean you were in the US fewer than 183 days. A student who lived here all of 2026 was here more than 183 days, even in their first five calendar years.

Your 2026 situation Gains from selling stocks Source
In the US fewer than 183 days in 2026, for example you first arrived in August 2026 Generally not taxed Publication 519
183 days or more, with no US job and no US-source scholarship or fellowship Two IRS pages disagree on whether you have a US tax home; ask a tax professional IRS tax home and capital gains pages
183 days or more, with a US tax home (likely if you work on campus, on CPT or OPT, or have a US-source scholarship) Net US-source gains taxed at 30%, or a lower treaty rate Publication 519

The rate is a flat 30% however long you held the shares, so there is no lower long-term rate (26 U.S.C. 871(a)(2)). Your net gain is your US-source gains minus your US-source losses for the year. If losses are bigger, the net counts as zero, and you cannot carry the loss to a later year. Pub 519 adds that the rule applies even to sales made while you were outside the US.

Key facts

Stock gains, fewer than 183 days in the US in 2026
Generally not taxed
Stock gains, 183 days or more in the US
30% of the net US-source gain (or a treaty rate), if your tax home is in the US
Dividends from US companies
30% of the gross amount, or a lower treaty rate
Where they go
Schedule NEC (2025 edition): line 1a dividends, lines 16 to 18 and line 9 gains; total to Form 1040-NR line 23a (2026 draft)
Form 1099-B or 1099-DA for 2026 due to you
Tuesday, February 16, 2027
Form 1042-S for 2026 due to you
Monday, March 15, 2027
For
F-1, J-1, M-1 and Q students who are nonresident aliens for tax year 2026 and bought or sold stocks, funds or crypto, or received dividends, through a US broker or app.
Not for
Resident aliens for 2026, usually from the sixth calendar year in the US: they file Form 1040 and report gains from anywhere. Sales of US real estate also follow separate rules.

What is a tax home, and why does it matter for my gains?

Your tax home decides where a gain comes from. Publication 519 says gain from selling personal property, such as shares, generally has its source in the US if you have a tax home in the US.

If you do not, the gain is generally from sources outside the US, and only US-source gains are taxed under the 183-day rule. A student with an on-campus job, CPT, OPT or a US-source scholarship or stipend expected to last more than a year has a US tax home. The IRS tax home page and the IRS capital gains page agree on that.

For a student with no US job and no US-source scholarship, such as one whose family pays for everything, the two IRS pages disagree. The tax home page says that student "has not established a tax home in the U.S.". The capital gains page says most foreign students "have shifted tax homes to the U.S. on the day of their arrival", unless their program clearly ends within a year. It concludes that students who meant to stay more than a year are subject to the 30% tax in any year with 183 days or more.

If that is you and you were here 183 days or more, do not assume your gains are tax-free, and do not assume you owe 30%. Ask a tax professional before you file, and keep copies of both IRS pages with your records.

How are dividends taxed on an F-1 visa?

For a nonresident alien, ordinary dividends from US companies and US funds are taxed at 30% of the gross amount or a lower treaty rate (IRS withholding page). No deductions are allowed against them, and the 183-day rule does not apply.

Your broker normally withholds the tax before it pays you and reports the dividends on Form 1042-S (Publication 515). On your return, dividends go on line 1a of Schedule NEC (2025 edition), not on Form 1040-NR line 3b. The lower rates for qualified dividends do not apply on Schedule NEC.

A tax treaty can lower the rate. The US-India treaty caps tax on an individual's ordinary portfolio dividends at 25%. The US-China treaty caps dividends at 10%. You claim a treaty rate by giving the broker a Form W-8BEN that names your treaty country. A treaty rate is for a resident of that country, so check that you qualify before you claim it (tax treaty benefits by country).

If the broker withheld 30% instead of your treaty rate, you claim the difference back on Form 1040-NR (Pub 519). Some fund payouts follow different rules:

Payout How it is generally treated for a nonresident alien
Ordinary dividends from a US company, ETF or mutual fund 30% or a lower treaty rate, usually withheld
Capital gain distributions from a US fund Capital gains, so the 183-day rule applies, not the 30% dividend rule
Money market or bond fund payouts Dividends, but part can be exempt as "interest-related dividends" if the fund designates them that way
Dividends from a company based in your home country Generally foreign income, not on Form 1040-NR

The fund rules come from the tax code (IRC 852 and 871(k)), not from IRS student guidance. Check your Form 1042-S to see how your broker classified each payout. Interest from a US bank account is different again: it is generally not taxable for a nonresident alien (bank interest on an F-1 visa).

Is crypto taxed the same way as stocks?

The IRS treats crypto and other digital assets as property, not currency, so selling or exchanging them can produce a gain or loss (IRS: digital assets). For a nonresident, a gain on crypto held as an investment generally follows the same 183-day rule as stocks.

We found no IRS guidance on crypto written for nonresidents. The "generally" comes from applying the capital gains rules in IRC 871(a)(2) to property. If you trade crypto often, or earn staking or mining rewards, get advice from a tax professional. This page does not cover those rewards.

Crypto also has its own question on the return and its own forms:

  1. Every Form 1040-NR filer must answer the digital asset question. On the 2026 draft Form 1040-NR, it asks whether during 2026 you received a digital asset as a reward, award or payment, or sold, exchanged or otherwise disposed of one (IRS newsroom). The IRS says to check "No" if you only held digital assets, only bought them with US or other real currency, or only moved them between your own wallets or accounts without paying a fee in digital assets (IRS: digital assets).
  2. Crypto paid to you for work is ordinary income. If you do not report it elsewhere on your return, for example with your W-2 wages, it goes on line 8v of the 2026 draft Schedule 1, "Digital assets received as ordinary income not reported elsewhere".
  3. Crypto brokers report sales on Form 1099-DA. For 2026 sales they must report gross proceeds for all digital assets, but they must report your cost only for assets bought after 2025 in that account and kept there (Form 1099-DA instructions). For older coins the cost may be missing, so use your own purchase records.

Which forms will my broker send me?

A US broker can send a Form 1099-B for sales, a Form 1099-DIV or 1042-S for dividends, and a Form 1099-DA for crypto sales. None of these forms decides whether your gains are taxable: your days in the US do, together with your tax home.

Form What it reports What it means for a nonresident alien
1099-B Sales of stocks and funds You may get one even with a Form W-8BEN on file; your days and tax home decide whether the gain is taxable
1099-DA Sales of crypto and other digital assets The form does not by itself make the gain taxable
1042-S US dividends paid to a foreign person, and tax withheld Claim the tax withheld on Form 1040-NR line 25g (2026 draft)
1099-DIV Dividends Often a sign the broker has you on file as a US person; give it a Form W-8BEN

Brokers must send a 2026 Form 1099-B or 1099-DA by Tuesday, February 16, 2027 (Publication 1099). A Form 1099-DIV sent on its own is due by Monday, February 1, 2027. One that is part of the broker's combined (consolidated) statement can come with the 1099-B, by February 16. A Form 1042-S is due by Monday, March 15, 2027 (Treas. Reg. 1.1461-1(c); see Form 1042-S explained). Wait for every form before you file.

Brokers do not file a 1099-B for an "exempt foreign person" (Form 1099-B instructions). For an individual, the regulation behind those instructions adds a condition (26 CFR 1.6045-1(g)). Your Form W-8BEN must certify that you have not been in the US 183 days or more in each year it covers, and do not expect to be. A student who lives here most of the year cannot certify that, so may still get a 1099-B. The same rule applies to a crypto broker's Form 1099-DA.

Give each US broker a Form W-8BEN while you are a nonresident alien. Without a Form W-8BEN or Form W-9 on file, a broker can apply backup withholding of 24% to your sale proceeds (Form W-8BEN instructions; IRC 3406).

Watch out

Do not give a US broker a Form W-9 while you are a nonresident alien. Form W-9 is for US persons, so the broker will report your income as if you were one.

Where do stock gains and dividends go on Form 1040-NR?

Taxable stock and crypto gains and US dividends go on Schedule NEC, and its total goes to line 23a of Form 1040-NR (2026 draft). The 2026 Schedule NEC is not published yet, so the line numbers below are from the 2025 edition.

  1. List each sale, with its gain or loss, on line 16 (what you sold, the dates, the sale price and your cost), then net them on lines 17 and 18. A net loss is entered as zero.
  2. Copy the line 18 gain to line 9, and enter US dividends on line 1a, each in the column for its rate (usually 30%).
  3. Total each column on line 13, apply its rate on line 14, and enter the tax on line 15. That amount goes on Form 1040-NR line 23a.
  4. Enter tax withheld on a Form 1042-S on Form 1040-NR line 25g.

Do not use Form 1040-NR line 7a or Schedule D for these gains. Schedule NEC says Schedule D is for gains connected with a US business and for US real estate. Our Form 1040-NR guide covers the rest of the return. This page covers federal tax only, and state rules are separate (state income tax guide).

How much tax would I owe? A worked example

With 183 days or more and a US tax home, the tax is 30% of your net gain and of your US dividends, or lower treaty rates. That tax comes on top of the tax on your wages, and the example shows both on one return.

Worked example: Sofia, F-1 student, arrived August 2023

Sofia is an illustrative F-1 student who claims no tax treaty. 2026 is her fourth calendar year in the US, so she is still an exempt individual and a nonresident alien (IRS). She was in the US for 340 days in 2026. She has worked on campus since 2024, so by the IRS test above she probably has a US tax home.

Her broker's Form 1099-B shows three sales in 2026:

Sale Sale price minus cost
Stock A $3,000 minus $2,000 = $1,000 gain
Stock B $1,500 minus $1,900 = $400 loss
US ETF $2,200 minus $1,000 = $1,200 gain

Net gain: $1,000 plus $1,200 minus $400 = $1,800. Tax: 30% of $1,800 = $540.

She also received $250 of dividends from US companies. Her broker withheld 30%, which is $75, and reported it on Form 1042-S. Tax on the dividends: 30% of $250 = $75.

Schedule NEC (2025 line numbers) Amount
Line 1a, US dividends (30% column) $250
Line 9, capital gain from line 18 (30% column) $1,800
Line 13, total of the 30% column $2,050
Line 14, 30% of $2,050 $615
Line 15, total tax $615

The $615 goes on Form 1040-NR line 23a, and the $75 withheld goes on line 25g. So her investments add $540 of tax beyond what her broker withheld.

Her $16,000 of wages are taxed separately at the 2026 rates (IRS), with no standard deduction, because she is a nonresident and not from India: 10% of $12,400 = $1,240, plus 12% of $3,600 = $432, a total of about $1,672. The $400 loss does not reduce this. The 2026 Tax Table, not yet published, can differ by a few dollars.

If Sofia had no job and no US-source scholarship, two IRS pages would disagree on whether she has a US tax home, so she should ask a tax professional about the $1,800 gain. The $75 on her dividends would stay either way.

Does frequent trading make my gains business income?

No. For tax purposes, trading stocks or securities for your own account, even often, is not by itself a US trade or business, unless you are a dealer (26 U.S.C. 864(b)(2)). So your gains stay under the 183-day rule and are not taxed as business income.

We could not confirm whether the same rule covers crypto trading. Whether frequent trading, or being paid in crypto, is allowed under your F-1 status is an immigration question, not a tax one. We do not answer it here: ask your school's DSO or an immigration attorney.

What changes when I become a resident alien?

Once you are a resident alien, the rules on this page stop applying. A resident alien is taxed on worldwide income, including gains on investments in your home country, and a resident for the whole year files Form 1040.

For most F-1 students, residency starts in the sixth calendar year in the US (your sixth year on F-1). If it starts partway through a year, that year is a dual-status year, and these rules cover only the nonresident part. In the year you become a resident, give each US broker a Form W-9 to replace your Form W-8BEN. A resident's capital gains are taxed under the Form 1040 rules, which this page does not cover.

What to do next

  1. Count your days in the US in 2026, including your exempt days. Use your I-94 travel history and passport stamps.
  2. If you were in the US 183 days or more, decide whether you have a US tax home: a US job, CPT, OPT or a US-source scholarship points to one. If you have none of these, ask a tax professional, because two IRS pages disagree.
  3. Give each US broker and crypto exchange a Form W-8BEN, naming your treaty country if a treaty lowers the dividend rate.
  4. Collect your 2026 forms: Form 1099-B and any 1099-DA by Tuesday, February 16, 2027 (a 1099-DIV comes by then too, or by Monday, February 1, 2027 if sent on its own), and Form 1042-S by Monday, March 15, 2027.
  5. File Form 1040-NR with Form 8843. The deadline is Thursday, April 15, 2027 if you had wages subject to withholding, and Tuesday, June 15, 2027 if you did not (tax deadlines for 2027).
  6. If you had no income subject to US tax, for example only gains that are not taxed, file only Form 8843, by Tuesday, June 15, 2027 (Form 8843 guide).

F1TaxReturn does not take Form 1099-B, Form 1099-DA or Form 1042-S, so it cannot report stock or crypto sales or dividends shown on a 1042-S. If your gains are taxable, your dividends are on a 1042-S, or you sold or received crypto in 2026, you need another way to file, such as a tax professional. The software does take Form 1099-DIV, but it taxes capital gain distributions (box 2a) at 30% whatever your day count. That is too much unless you were in the US 183 days or more with a US tax home. For a return without sales, crypto or a 1042-S, the federal Form 1040-NR and Form 8843 are free. The software prepares 2026 returns once the IRS publishes the final 2026 forms (start a return).

Questions students ask

Do I pay tax on my Robinhood gains as an F-1 student?

The broker does not change the answer. If you were in the US fewer than 183 days in 2026, your gains are generally not taxed. At 183 days or more, net gains are taxed at 30% if your tax home is in the US, which it usually is if you have an on-campus job, CPT, OPT or a US-source scholarship. If you have none of these, two IRS pages disagree, so ask a tax professional.

Do my F-1 exempt days count for the 183-day capital gains rule?

Yes. The IRS says this 183-day rule bears no relation to the 183-day rule of the substantial presence test. Every day you are in the US counts, even the days you leave out of the substantial presence test as an exempt individual. So you can be a nonresident alien and still reach 183 days for capital gains.

My stocks lost money in 2026. Can I deduct the loss?

Only against other US-source capital gains from the same year. If your losses are bigger than your gains, the net counts as zero, and you cannot carry the loss to a later year. The loss also does not reduce the tax on your wages, because Schedule NEC is worked out separately.

Do I have to answer the digital asset question on Form 1040-NR?

Yes. Every Form 1040-NR filer must check Yes or No. On the 2026 draft form, the question asks whether you received a digital asset as a reward, award or payment, or sold, exchanged or otherwise disposed of one. The IRS says to check No if you only held digital assets, only bought them with US or other real currency, or only moved them between your own wallets or accounts without paying a fee in digital assets.

Is day trading allowed on an F-1 visa?

For tax, buying and selling stocks for your own account, even often, is not by itself a US trade or business, unless you are a dealer. Whether trading is allowed under your F-1 status is an immigration question, not a tax question. Ask your DSO or an immigration attorney.

I got a Form 1099-B. Does that mean I owe tax on my gains?

No. A Form 1099-B reports what you sold. Whether the gain is taxable depends on your days in the US and, the IRS says, on your tax home. A student who lives in the US most of the year may receive a 1099-B even after giving the broker a Form W-8BEN.

Sources

This guide is checked against these 24 documents, most recently on .

  1. Publication 519 (2025), U.S. Tax Guide for Aliens, IRS
  2. The taxation of capital gains of nonresident students, scholars and employees of foreign governments, IRS
  3. Nonresident alien students and the tax home concept, IRS
  4. Publication 4011, Foreign Student and Scholar Volunteer Resource Guide, IRS
  5. Federal income tax withholding and reporting on other kinds of U.S. source income paid to nonresident aliens, IRS
  6. Schedule NEC (Form 1040-NR), 2025, IRS
  7. Form 1040-NR (2026 draft), IRS
  8. Schedule 1 (Form 1040) (2026 draft), IRS
  9. Instructions for Form 1040-NR (2025), IRS
  10. Digital assets, IRS
  11. Taxpayers need to report crypto, other digital asset transactions on their tax return, IRS
  12. Instructions for Form 1099-DA (2026), IRS
  13. Instructions for Form 1099-B (2026), IRS
  14. Instructions for Form W-8BEN, IRS
  15. 26 CFR 1.6045-1, Returns of information of brokers and barter exchanges, eCFR (US National Archives)
  16. Forms for foreign beneficial owners, IRS
  17. Publication 1099 (2026), General Instructions for Certain Information Returns, IRS
  18. Publication 515 (2026), Withholding of Tax on Nonresident Aliens and Foreign Entities, IRS
  19. United States-India income tax treaty, IRS
  20. United States-China income tax treaty, IRS
  21. Working Families Tax Cuts: individuals and workers (2026 tax rates), IRS
  22. Exempt individual: who is a student, IRS
  23. 26 U.S. Code 871, Tax on nonresident alien individuals, Legal Information Institute, Cornell Law School
  24. 26 U.S. Code 864, Definitions and special rules, Legal Information Institute, Cornell Law School