Skip to content

Private tax preparation service. Not the IRS.

USTAX
GuideInvestment income · 9 min read

US tax on dividends and capital gains for nonresident aliens

Last reviewed

The short answer

For a nonresident alien whose investments are not connected with a US business, the IRS taxes US dividends at a flat 30% of the gross amount, or a lower treaty rate. The payer generally withholds it, and a valid Form W-8BEN on file is how you claim a treaty rate. US bank deposit interest is generally excluded from income, and portfolio interest is not subject to the 30% withholding. Gains on selling shares are generally not taxed if you were in the United States for less than 183 days in the year. With 183 days or more, net US-source gains are taxed at 30% or a lower treaty rate.

Key facts

US dividends
30% of the gross amount, or a lower treaty rate
Treaty rate
Claimed on Form W-8BEN given to the payer
Share gains
Generally not taxed under 183 days in the US in the year
Year-end form
Form 1042-S, due to you by March 15
Return
Form 1040-NR only if a filing condition applies, or for a refund

Nonresident alien tax: business income and investment income

The IRS page on the taxation of nonresident aliens divides a nonresident alien's US income into two groups:

  • Effectively connected income (ECI): income connected with a US trade or business. It is taxed after allowable deductions, at the graduated rates that apply to US citizens and residents.
  • FDAP income ("fixed, determinable, annual or periodical"): US-source income such as dividends, interest, rents and royalties that is not connected with a US business. It is taxed at a flat 30%, or a lower treaty rate, and no deductions are allowed.

This guide covers the second group, for a person outside the United States who holds US shares or funds through a broker. Publication 519, chapter 4 says that if your only US business activity is trading in stocks or securities for your own account through a US broker or agent, you are not engaged in a US trade or business. That rule does not apply to a dealer, or to someone with a US office through which the trades are carried out. For business income, see effectively connected income.

Nonresident alien dividend tax: 30% or a treaty rate

Publication 519, chapter 2 says dividends from US corporations are in most cases US-source income. The Form W-8BEN instructions say foreign persons are taxed at 30% on US-source dividends, interest and similar income, that the tax is on the gross amount paid, and that it is generally collected by withholding. The IRS page on NRA withholding says a reduced rate, including exemption, may apply under the tax code or a tax treaty with your country of residence. The FDAP income page adds that no deductions or netting are allowed against this income.

Dividends from US funds

Publication 519, chapter 3, lists two kinds of dividend from a US mutual fund (a regulated investment company) that may have no 30% tax: interest-related dividends, and certain short-term capital gain dividends. The fund designates them in writing. The relief for short-term capital gain dividends does not apply if you were in the United States for 183 days or more in the year.

Interest: bank deposits and portfolio interest

Interest is FDAP income, but Publication 519, chapter 3 lists important exclusions for interest not connected with a US business:

  • Bank deposit interest. Interest on deposits (including certificates of deposit) with persons in the banking business, and on deposits with savings institutions such as credit unions, is excluded from income.
  • Portfolio interest. Interest that qualifies as portfolio interest is not subject to the 30% withholding under chapter 3 of the tax code (the usual withholding on payments to foreign persons). It generally must be paid on a debt issued after July 18, 1984, in registered form, with documentation that the beneficial owner is not a US person. Contingent interest and interest paid to certain related persons do not qualify. Publication 519 adds that such interest may still be subject to chapter 4 (FATCA) withholding if no exception applies.

Whether a particular bond or note qualifies depends on its terms.

Nonresident alien capital gains tax: the 183-day rule

Gains on selling shares are not FDAP income. Publication 519, chapter 4 and the IRS FDAP income page state the rule for US-source capital gains that are not connected with a US business:

  • Less than 183 days in the United States during the tax year: capital gains are not taxed, except gains connected with a US business and a few listed types (such as gains on original issue discount obligations and certain patent and timber gains).
  • 183 days or more during the tax year: your net gain (US-source capital gains minus US-source capital losses) is taxed at 30% or a lower treaty rate, even if some of the sales happened while you were outside the United States.

Publication 519 also says gain from selling personal property (property that is not real property) generally has its source in the United States only if you have a tax home there.

This 183-day count is not the substantial presence test

The FDAP page says this 183-day test is not the same as the 183-day test in the substantial presence test. The IRS page on the capital gains of nonresident students, scholars and foreign government employees explains why it matters: an exempt student or diplomat can remain a nonresident under the substantial presence test and still be taxed at 30% on US-source capital gains in a year with 183 days or more in the United States.

US real property is different

These rules do not apply to US real property interests. A sale of US real property by a foreign person falls under FIRPTA withholding, explained on the IRS FIRPTA withholding page. See FIRPTA withholding for foreign sellers.

US tax treaty rates and Form W-8BEN

The IRS tax treaty tables summarize which income may be exempt or taxed at a reduced rate for residents of each treaty country. They are a summary, not the full treaty. To look up a rate:

  1. Check that a treaty exists. Table 3 lists the countries with an income tax treaty with the United States and the dates the treaty and its protocols take effect.
  2. Find the income type. Table 1 lists rates for interest, dividends, royalties and other income, using the same income codes as Form 1042-S (for example, code 06 is dividends paid by US corporations, general).
  3. Read the article. The table cites the treaty article. The IRS says you must meet all of the treaty's requirements before the lower rate applies.
  4. Claim it on Form W-8BEN. Line 9 names the country where you are resident for treaty purposes. The instructions say line 10 is generally not needed for dividend or interest articles, except dividends with a rate based on ownership.

Which rate applies to you depends on the treaty and your facts. The W-8BEN instructions say that without the form, the payer may have to withhold at 30% or at the backup withholding rate. The form also tells a broker you are an exempt foreign person for broker proceeds, if you meet the conditions, which include not being in the United States for 183 days or more in the year. See how to fill out Form W-8BEN, or have your W-8BEN completed for you.

Form 1042-S and when Form 1040-NR is needed

What Form 1042-S shows

The Form 1042-S instructions say the payer (the withholding agent) must give you Form 1042-S by March 15 of the year after the payment. It shows the income code (box 1), the gross income (box 2), the chapter 3 tax rate (box 3b) and the US tax actually withheld (box 7a). See the Form 1042-S guide.

When withholding is the end of it

The Form 1040-NR instructions say a nonresident alien not engaged in a US trade or business must file Form 1040-NR if they had US-source income reportable on Schedule NEC (such as dividends) and not all of the tax owed was withheld. If the right amount was withheld and no other condition in the instructions applies, no return is required for that income.

You should still file if you can get money back. The instructions give an example: a nonresident whose only US income was dividends, where the payer withheld at 30% instead of 15% on one payment, can file Form 1040-NR to claim the refund. Gains taxed under the 183-day rule are also reported on Schedule NEC. We prepare Form 1040-NR for non-residents, including refund claims.

Summary: US tax rules for a nonresident alien investor

US tax rules for a nonresident alien investor
Type of incomeUS tax rule for a nonresident alien (not connected with a US business)Source
Dividends from US corporations30% of the gross amount, or a lower treaty rate, generally withheld at paymentW-8BEN instructions
Interest-related and certain short-term capital gain dividends from US fundsMay have no 30% tax, as designated by the fundPub. 519, ch. 3
US bank deposit interestExcluded from incomePub. 519, ch. 3
Portfolio interestNot subject to chapter 3 withholding; chapter 4 may still applyPub. 519, ch. 3
Gains on shares, under 183 days in the USGenerally not taxedIRS: FDAP income
Gains on shares, 183 days or more in the USNet US-source gain taxed at 30% or a lower treaty rateIRS: FDAP income
US real propertySeparate rules (FIRPTA)IRS: FIRPTA withholding

Common mistakes

  • Not giving the broker a Form W-8BEN. The payer may then withhold at 30% or at the backup withholding rate.
  • Claiming a treaty rate without reading the article. Every condition of the treaty must be met.
  • Mixing up the two 183-day counts. The capital gains count is not the substantial presence test.
  • Ignoring Form 1042-S. If too little was withheld, a return is required; if too much, a return is how you claim it back.
  • Assuming real estate follows the share rules. US real property has its own rules.

Have it prepared and filed for you

  • Form W-8BEN / W-8BEN-E Completed for You

    The right W-8 form completed for you, ready to sign and give to the payer.

    Not included: tax returns and other IRS filings (ordered separately); any tax the payer withholds from your payments; forms W-8ECI, W-8IMY and 8233, which need a review of your facts first.

    $49per form, for one person or one company

    View service
  • Form 1040-NR Non-Resident Tax Return

    Your US non-resident return prepared and e-filed by a credentialed preparer.

    Not included: state income tax return ($99 each); applying for a US taxpayer number, if you do not have one; tax due to the IRS.

    from $249per person, per tax year

    View service

Questions and answers

What is the US dividend tax rate for a nonresident alien?

30% of the gross dividend, unless a tax treaty or the tax code gives a lower rate and you meet its conditions. Source: IRS: taxation of nonresident aliens.

Do nonresident aliens pay US tax on stock trading gains?

Generally not, if the gains are not connected with a US business and you were in the United States for less than 183 days in the tax year. With 183 days or more, net US-source gains are taxed at 30% or a lower treaty rate.

What withholding rate applies with a W-8BEN?

The form does not set a rate. It shows the payer you are a foreign person and states any treaty benefit you claim. The general rate is 30%; a lower rate applies only if the treaty or the tax code gives one and its conditions are met.

Is US withholding a final tax for a nonresident alien?

If you were not engaged in a US trade or business and the correct tax was withheld, the Form 1040-NR instructions do not require a return for that income. If too little was withheld, you must file; if too much, you can file to claim a refund.

When do I get Form 1042-S from my broker?

The payer must give it to you by March 15 of the year after the payment. For income paid in 2026, that is March 15, 2027. See the Form 1042-S guide for how to read it.

Can you help with the forms?

Yes. We can complete your Form W-8BEN for your broker, and prepare Form 1040-NR when you need to file or want a refund of over-withheld tax.

Official sources used in this guide

This guide explains general rules. It is not advice for your situation. Tax results depend on your facts, and a preparer reviews them before anything is filed. Check the linked official sources for the current rules.

Sign here

Find out what you need to file. It takes two minutes.

Answer four questions about your company. You see which filings you need, the deadlines and the fixed price for each.