Skip to content

Nonresident Alien

A nonresident alien is an individual who is neither a US citizen nor a US resident for tax purposes. The United States taxes a nonresident alien only on US-source income, and it uses two very different methods depending on whether that income is connected to a US business.

Last reviewed by Steven Fox, CFP®, EA on

Quick Summary

  • The definition is residual. Internal Revenue Code section 7701(b)(1)(B) says a nonresident alien is anyone who is neither a US citizen nor a resident alien, so the question is always answered by first testing residency.
  • US-source investment income that is not connected to a US business is taxed at a flat 30 percent of the gross amount, with no deductions, usually collected by withholding at the source.
  • Income effectively connected with a US trade or business is taxed instead at the ordinary graduated rates on net income, with deductions allowed.
  • Nonresident aliens file Form 1040-NR, get no standard deduction, cannot file a joint return, and cannot use head of household.
  • A tax treaty can reduce or eliminate the 30 percent rate, and the payer applies it only if the recipient certifies status and treaty eligibility, usually on Form W-8BEN.

Definition

A nonresident alien is an individual who is neither a citizen of the United States nor a resident of the United States for federal tax purposes. Internal Revenue Code section 7701(b)(1)(B) states it as a residual: "An individual is a nonresident alien if such individual is neither a citizen of the United States nor a resident of the United States (within the meaning of subparagraph (A))." Because it is defined by exclusion, the status is never determined directly. You test residency first, using the green card test, the substantial presence test and the first-year election in section 7701(b)(1)(A), and a non-citizen who fails all three is a nonresident alien.

The label is a tax classification, not an immigration one. Someone can hold a valid US visa, work in the United States for months, and still be a nonresident alien; someone can be outside the country all year and still be a resident alien because they hold a green card. Immigration status feeds into the tax tests but does not decide them.

Advanced Explanation

The two tax regimes, and why the difference is so large. Section 872(a) limits a nonresident alien's gross income to two buckets: US-source income that is not effectively connected with a US trade or business, and income that is effectively connected. Section 871 then taxes them on completely different principles.

The first bucket is taxed under section 871(a)(1) at a flat 30 percent of the gross amount received, on a list that begins "interest, dividends, rents, salaries, wages, premiums, annuities, compensations, remunerations, emoluments, and other fixed or determinable annual or periodical gains, profits, and income." Tax practice shortens that to FDAP. Gross is the operative word: section 873(a) allows deductions only against effectively connected income, so no expense, no loss and no basis reduces a FDAP amount. A $1,000 US dividend produces $300 of tax whether the recipient is wealthy or destitute.

The second bucket is taxed under section 871(b)(1) "as provided in section 1 or 55" on taxable income that is effectively connected with the conduct of a US trade or business. That means the ordinary graduated brackets, and it means deductions connected with that income are allowed. Section 873(b) adds three deductions allowed regardless of connection: casualty and theft losses on property located in the United States, charitable contributions, and the personal exemption allowed by section 151. The third is currently worth nothing to anyone: section 151(d)(5) sets the exemption amount at zero for tax years beginning after 2017, so in practice the exception carries the first two.

Withholding is the collection mechanism, and it is set at the statutory rate. Section 1441(a) requires any person with control or custody of a US-source FDAP payment to a nonresident alien to "deduct and withhold from such items a tax equal to 30 percent thereof." The payer, not the recipient, carries that duty, which is why a US broker withholds on dividends before they reach a foreign account. A recipient claiming a lower treaty rate has to certify foreign status and treaty eligibility to the payer, for an individual on Form W-8BEN, Certificate of Foreign Status of Beneficial Owner for United States Tax Withholding and Reporting. Without the certificate the payer withholds at the full rate.

Capital gains are the strange case, and the rule surprises people. A nonresident alien is generally not taxed by the United States on gains from selling US stock. But section 871(a)(2) imposes the 30 percent tax on net US-source capital gains for "a nonresident alien individual present in the United States for a period or periods aggregating 183 days or more during the taxable year." So the same trade is untaxed for someone who visited briefly and taxed at 30 percent for someone who spent most of the year in the country without becoming a resident. Gains on US real property interests are governed by a separate regime and are not covered by this rule.

The portfolio-interest exemption removes most US-source interest from the tax. Section 871(h) disapplies the section 871(a) tax for interest that meets its conditions. The interest must be paid on an obligation in registered form, and the payer must generally receive a statement that the beneficial owner is not a US person. The exemption does not reach interest received by a 10-percent shareholder of the issuer. This is the reason foreign investors can hold US bonds without a 30 percent haircut on the coupons while foreign investors in US stocks cannot avoid withholding on dividends the same way.

US rental income has an election attached to it. Rent is FDAP, so by default a nonresident alien landlord is taxed on 30 percent of the gross rent with no deduction for the mortgage, the property tax, repairs or depreciation. Section 871(d) lets the individual elect to treat income from US real property held for the production of income as effectively connected, in which case it "shall be taxable as provided in subsection (b)(1) whether or not such individual is engaged in trade or business within the United States." That moves the rent to the net-basis, graduated-rate regime with deductions. The election stays in effect for later years unless the Secretary consents to a revocation, and section 871(d)(2) then bars a new election before the fifth taxable year beginning after the first year for which the revocation took effect, absent the Secretary's consent.

The filing consequences are a short list of hard bars. Section 63(c)(6)(B) sets the standard deduction at zero for a nonresident alien. Section 6013(a)(1) provides that "no joint return shall be made if either the husband or wife at any time during the taxable year is a nonresident alien." Section 2(b)(3)(A) provides that a taxpayer is not head of household "if at any time during the taxable year he is a nonresident alien." The return itself is Form 1040-NR, US Nonresident Alien Income Tax Return. A treaty can override individual pieces of this, and there is a separate route for a couple in which one spouse is a nonresident alien to elect resident treatment for both, which belongs to the resident alien side of the line.

Status can change mid-year, and the two halves are taxed separately. Section 7701(b)(2) sets residency starting and ending dates, so a person who arrives or leaves partway through a year is a nonresident alien for part of it and a resident for the rest. That produces a dual-status year, in which the nonresident portion is taxed under section 871 and the resident portion under the ordinary rules.

How to Remember

Two regimes, one dividing line. Money that merely comes from the United States is taxed on the gross at a flat rate. Money made by doing business in the United States is taxed on the net at ordinary rates.

Used in a Sentence

“Because Kenji was a nonresident alien for the whole year, his US broker withheld a flat 30 percent from every dividend rather than reporting the income for him to settle on a return.”

How It Works

The sequence is: test residency under section 7701(b); if the individual is a nonresident alien, sort each item of US-source income into effectively connected income or FDAP; apply graduated rates on the net for the first and 30 percent on the gross for the second; check whether a treaty reduces the FDAP rate; and file Form 1040-NR if a return is required, claiming credit for amounts already withheld.

A hypothetical example. Kenji lives in Osaka, is not a US citizen and holds no green card. He spends 40 days in the United States during the year and had no US presence in either of the two preceding years, so his weighted three-year count is 40 and he does not meet the substantial presence test. He is a nonresident alien. He has two US-source items.

US dividends of $8,000. These are FDAP, not connected to any US business, so section 871(a)(1)(A) taxes them at 30 percent of the gross: $8,000 × 0.30 = $2,400. His broker withholds that under section 1441 and remits it. No expenses reduce it. If Kenji files a valid Form W-8BEN and a treaty reduced the dividend rate to 15 percent, the withholding would instead be $8,000 × 0.15 = $1,200, a saving of $1,200. The 15 percent here is illustrative; the rate depends on the specific treaty.

A US rental property producing $30,000 of gross rent, against $22,000 of mortgage interest, property tax, insurance, repairs and depreciation. By default rent is FDAP too, so the tax would be $30,000 × 0.30 = $9,000, with none of the $22,000 deductible. If Kenji makes the section 871(d) election, the rent becomes effectively connected income taxed on the net: $30,000 − $22,000 = $8,000 of taxable income at graduated rates. At a 12 percent marginal rate that is $960, against $9,000 without the election.

The comparison is why the election exists, and why a nonresident alien who buys US rental property and never makes it can pay several times the tax a US owner would on the same building.

Pros and Cons

Pros

  • The US tax base is narrow. Foreign-source income of a nonresident alien is outside the US system entirely, which is the opposite of the worldwide taxation a US citizen faces.
  • Gains on US securities are generally not taxed by the United States for a nonresident alien who is not present 183 days or more in the year.
  • The portfolio-interest exemption removes US tax on most US-source interest paid on registered obligations to foreign individual investors.
  • Withholding at the source means most nonresident aliens with only investment income have no US return to file.

Cons

  • The 30 percent FDAP tax is on the gross. No deduction, no basis, no loss offset, and it applies at the same rate regardless of the recipient's circumstances.
  • The standard deduction is zero, and most personal deductions are unavailable because section 873(a) limits deductions to those connected with effectively connected income.
  • A joint return is barred where either spouse was a nonresident alien at any time in the year, and head of household is barred outright.
  • Default treatment of US rental income on the gross is punitive, and the section 871(d) election that fixes it is easy to overlook and hard to revoke.
  • Treaty benefits are not automatic. Miss the certification to the payer and the full statutory rate is withheld, leaving a refund claim as the only remedy.

People Also Asked

Answers to the most frequently asked questions.

What is the difference between a nonresident alien and a resident alien?
A resident alien is a non-citizen who meets one of the three tests in Internal Revenue Code section 7701(b)(1)(A): holding a green card at any time in the year, meeting the substantial presence test, or making the first-year election. A nonresident alien is everyone else who is not a US citizen. The consequence is the size of the tax base. A resident alien is taxed like a citizen on worldwide income and files Form 1040; a nonresident alien is taxed only on US-source income, in two separate regimes, and files Form 1040-NR.
How is a nonresident alien taxed on US dividends and interest?
Dividends that are not connected with a US trade or business are taxed under section 871(a) at a flat 30 percent of the gross amount, collected by the payer through withholding under section 1441, with no deductions allowed. A tax treaty can reduce that rate, but only if the recipient certifies foreign status and treaty eligibility to the payer, normally on Form W-8BEN. Most US-source interest is different: section 871(h) exempts qualifying portfolio interest on registered obligations from the tax entirely.
Can a nonresident alien file a joint return with a US citizen spouse?
Not under the ordinary rules. Section 6013(a)(1) bars a joint return if either spouse was a nonresident alien at any time during the taxable year, and section 2(b)(3)(A) separately bars head of household for anyone who was a nonresident alien at any time in the year. There is a separate election under which a couple can choose to treat the nonresident spouse as a US resident for the whole year, which makes a joint return possible but also brings that spouse's worldwide income into the US tax base.
Does a nonresident alien pay US tax on capital gains?
Usually not on securities, with one significant exception. Gains from selling US stock are generally outside the US tax base for a nonresident alien. But section 871(a)(2) imposes the 30 percent tax on net US-source capital gains where the individual was present in the United States for 183 days or more during the taxable year. Gains on US real property interests are handled under a different set of rules and are taxed regardless of days present.
Which form does a nonresident alien file?
Form 1040-NR, US Nonresident Alien Income Tax Return. It is required where the individual has effectively connected income, or where tax on FDAP income was not fully satisfied by withholding, or to claim a refund of over-withheld amounts or a treaty benefit not applied at source. A nonresident alien whose only US income was FDAP correctly withheld on at the right rate often has nothing to file.

Sources

AdviceOnly maintains high editorial standards to improve the quality and accuracy of our educational content. Content is written with the assistance of artificial intelligence tools following a rigorous quality assurance process, and periodically reviewed by credentialed and experienced human financial advisors. References used include government data, academic papers, interviews with industry experts, and reputable primary sources. You can learn more about our efforts to produce accurate content in our editorial policy.

  1. U.S. Code. "26 U.S.C. § 7701 — Definitions."
  2. U.S. Code. "26 U.S.C. § 871 — Tax on nonresident alien individuals."
  3. U.S. Code. "26 U.S.C. § 872 — Gross income."
  4. U.S. Code. "26 U.S.C. § 873 — Deductions."
  5. U.S. Code. "26 U.S.C. § 1441 — Withholding of tax on nonresident aliens."
  6. Internal Revenue Service. "Form 1040-NR, U.S. Nonresident Alien Income Tax Return."
  7. Internal Revenue Service. "Form W-8BEN, Certificate of Foreign Status of Beneficial Owner for United States Tax Withholding and Reporting (Individuals)."

Have a question a definition can't answer?

Advice-only advisors answer questions like this for a transparent flat fee — no products, no commissions, no asset management.

Find an Advisor