Skip to content

Form 1040-NR and Nonresident Aliens

Do nonresidents pay U.S. tax on capital gains from U.S. stocks?

Short answer

Usually, a nonresident alien’s gains from ordinary U.S. stock investments are not subject to U.S. federal income tax when the gains are not effectively connected with a U.S. trade or business and the special 183-day rule does not apply. Important exceptions can change that result. Dividends follow different rules and are generally subject to U.S. withholding.

Who this applies to: Nonresident individuals buying and selling U.S. securities for their own investment accounts.

A U.S. stock is not automatically a taxable gain

For an ordinary nonresident investor, using a U.S. broker or selling shares of a U.S. company does not by itself make every gain taxable in the United States. Personal property sourcing rules generally look to the seller’s tax residence, with exceptions. Trading stocks or securities for your own account can also qualify for a U.S. trade or business safe harbor, including when a broker executes trades. Dealers and activities beyond ordinary investing need separate analysis; an account label alone does not establish the result.

Do not confuse the two 183-day concepts

A nonresident physically present in the United States for 183 days or more during the tax year can face a special 30% tax on certain net U.S.-source capital gains, subject to treaty rules. This is not the weighted three-year substantial presence test used to determine residency. Both actual presence and the source of the gain matter, including tax-home rules relevant to sourcing. Someone can remain a nonresident under special residency rules yet still need this separate capital-gains analysis.

Business income and real estate interests are different

Gains effectively connected with a U.S. trade or business are generally taxed under the net-income rules rather than the ordinary nonresident investment treatment. Stock in certain U.S. real property holding corporations and some real-estate-related investments can fall under special real property rules. Partnership interests, including some publicly traded investments, may carry their own tax and withholding consequences. Do not extend the usual rule for ordinary corporate shares to every product listed on a U.S. exchange.

Dividends and estate tax are separate questions

Ordinary dividends paid by U.S. corporations to nonresident beneficial owners are generally U.S.-source income subject to 30% withholding or an eligible reduced treaty rate. Give the broker appropriate Form W-8BEN documentation and review its reporting. Stock ownership can also raise U.S. estate tax questions that are independent of whether a sale produces taxable income. Finally, exemption from U.S. income tax does not mean the investor’s country of residence exempts the same gain.

Practical example

Hypothetically, Elena lives abroad, spends no days in the United States and sells ordinary U.S. corporate shares in her personal brokerage account. Her gain is generally not subject to U.S. federal income tax, but dividends from those shares generally face withholding.

Common mistakes

  • Treating dividends and capital gains as the same type of income.
  • Using the weighted residency formula for the separate capital-gains presence rule.
  • Assuming every exchange-traded investment is ordinary corporate stock.

Filing requirements

  • Review Form 1040-NR filing requirements when gains are taxable or a refund is requested.
  • Keep trade confirmations, travel records and valid foreign-status documentation with the broker.

Potential penalties

  • Unreported taxable gains or unpaid tax can result in interest and penalties.

Related IRS forms

What to consider next

  • Confirm your tax residency, physical-presence days and tax home.
  • Identify whether holdings include real estate interests or partnerships.
  • Ask Chirino USA to review exceptions before a significant sale.

Discuss your situation with Chirino USA

Every situation depends on its facts. If you would like a professional to review yours, message us on WhatsApp, email us, or request a consultation — in English or Spanish.

General information, not tax advice

This page provides general educational information about U.S. federal tax rules. It is not individualized tax, legal or accounting advice, and it does not create a client relationship. Results depend on each taxpayer's specific facts.

Written by Roger I. Chirino, founder of Chirino USA Accountants & Advisors P.A.

Supported by licensed CPAs, IRS Enrolled Agents (EAs), and experienced U.S. tax professionals focused on cross-border compliance and planning.