Skip to main content

Pillar Guide

Expat and Nonresident Tax: Resident or Nonresident, 1040-NR, Treaties, and FIRPTA

The hardest question in inbound US tax is also the first one: are you a US resident or a nonresident for tax purposes? That single answer decides whether you are taxed on worldwide income or only US-source income, which form you file, what rate applies to your US dividends, and whether a treaty can cut your bill.

This guide is the inbound and nonresident counterpart to our International Tax for US Persons pillar. Where that guide covers US citizens and residents with foreign income and assets, this one covers nonresident aliens, new arrivals, visa holders, and foreign investors with US-source income. It walks through the residency tests, Form 1040-NR, the difference between effectively connected income and FDAP income, the flat 30% withholding regime and how treaties reduce it, FIRPTA on US real estate, totalization agreements, and dual-status returns for the year you arrive or leave.

Reviewed June 2026 by TS CPA

Who this guide is for

  • Nonresident aliens with US-source income (dividends, rent, US wages, or business income) filing Form 1040-NR
  • New arrivals on H-1B, L-1, or a green card navigating their first-year, dual-status, or first-year-choice return
  • Foreign students and scholars on F-1 or J-1 visas determining exempt-individual status and filing obligations
  • Foreign investors selling US real estate and facing FIRPTA withholding
  • Cross-border employees claiming treaty benefits or totalization-agreement relief from dual Social Security tax

Are you a US resident or a nonresident for tax purposes?

You are a US resident for tax purposes if you are a US citizen, hold a green card, or meet the substantial presence test (physically present at least 31 days in the current year and 183 days under a weighted three-year formula). Residents are taxed on worldwide income; everyone else is a nonresident alien taxed only on US-source income.

The weighted formula counts all of the current year’s days, one third of last year’s days, and one sixth of the days from the year before that. Even if it adds to 183 or more, a closer connection exception (Form 8840) or a tax treaty tie-breaker can preserve nonresident status when your real home and ties remain abroad.

Some people are "exempt individuals" whose US days do not count at all: foreign students on F-1 visas for their first five years, and teachers and trainees on J visas for two years, among others. They file Form 8843 to document the status and often remain nonresidents far longer than their day count alone would suggest.

What is the difference between Form 1040 and Form 1040-NR?

A US resident files Form 1040 and reports income from everywhere in the world. A nonresident alien files Form 1040-NR and reports only US-source income. The two returns also differ on deductions, filing status, and credits.

Nonresidents generally cannot take the standard deduction (with a notable treaty exception for students and apprentices from India), usually cannot file a joint return, and have limited access to credits and to claiming dependents. Itemized deductions on a 1040-NR are restricted to a short list tied to US-source income.

These limits are exactly why the resident-versus-nonresident determination matters so much: the same income can be taxed very differently depending on which return it belongs on, and electing residency (where available) can unlock the standard deduction and joint filing.

What is the difference between ECI and FDAP income?

Effectively connected income (ECI) is income connected to a US trade or business, including wages and business profits, and it is taxed at the same graduated rates a US resident pays, on a net basis after deductions. FDAP income is fixed, determinable, annual, or periodical passive income such as dividends, interest, rents, and royalties, and it is taxed at a flat 30% on the gross amount with no deductions.

The distinction controls both the rate and the mechanics. ECI is reported on Form 1040-NR and netted against expenses; FDAP is usually collected by withholding at the source and may not require a return at all if withholding fully satisfies the tax.

  • ECI: net, graduated rates

    Wages, business income, and gains effectively connected to a US trade or business. Deductions are allowed, and the income is taxed at the same brackets a resident pays.

  • FDAP: gross, flat 30%

    Dividends, interest, rents, and royalties from US sources. Taxed at a flat 30% of the gross amount, almost always collected through withholding at the payer.

  • Capital gains exception

    A nonresident generally owes no US tax on gains from selling US stocks, unless present in the US for 183 days or more that year or the asset is a US real property interest.

How does the 30% withholding work and how do treaties reduce it?

US payers must withhold 30% of FDAP income paid to a nonresident and remit it to the IRS. A tax treaty between the US and your home country often reduces this rate, commonly to 15% or 0% on dividends and interest. To claim the lower rate, you give the payer a Form W-8BEN certifying your foreign status and treaty eligibility.

The payer reports the income and withholding on Form 1042-S. If too much was withheld, you recover the difference by filing Form 1040-NR and claiming the treaty rate, often disclosed on Form 8833. The portfolio interest exemption can also eliminate withholding on most US bond and bank interest paid to nonresidents.

How does FIRPTA tax foreign sellers of US real estate?

Under FIRPTA (the Foreign Investment in Real Property Tax Act), the buyer must withhold 15% of the gross sale price when a foreign person sells a US real property interest, and remit it to the IRS. This is a collection mechanism, not the final tax; the seller files a US return to reconcile the actual gain and claim any refund.

The buyer is the withholding agent and reports on Form 8288 and 8288-A. A seller who expects the real tax to be far less than 15% of the price can apply for a withholding certificate on Form 8288-B before closing to reduce the amount held back. A limited residence exception removes withholding entirely when the price is $300,000 or less and an individual buyer will use the property as a residence, and the rate drops to 10% instead of 15% when an individual buyer will use it as a residence and the price is over $300,000 but not over $1,000,000.

Foreign owners who rent out US property can elect to treat the rental as effectively connected income, which lets them deduct expenses and pay tax on net rental income at graduated rates instead of 30% of gross rent.

What are totalization agreements and how do they prevent double Social Security tax?

A totalization agreement is a treaty between the US and another country that prevents workers from paying Social Security tax to both countries on the same earnings. The US has about 30 such agreements. A certificate of coverage from the country where you remain covered exempts you from the other country’s system.

This matters most for posted workers sent across borders by an employer and for self-employed people working abroad. A US self-employed expat normally still owes US self-employment tax even when claiming the Foreign Earned Income Exclusion, unless a totalization agreement assigns coverage to the foreign country. The agreements also let workers combine credits from both systems to qualify for benefits.

What is a dual-status return for the year you arrive or leave?

In the year you become or stop being a US resident, you usually file a dual-status return: nonresident for the part of the year before residency began and resident for the part after (or the reverse when you leave). You are taxed on worldwide income only for the resident portion and on US-source income for the nonresident portion.

Dual-status filers face restrictions: generally no standard deduction and no joint filing for the year. A first-year choice election, or a Section 6013(g) or 6013(h) election to be treated as a full-year resident with your spouse, can sometimes produce a better result by unlocking joint filing and the standard deduction. The right answer depends on the mix and timing of your income around the move.

How to reduce FIRPTA withholding on a US property sale

The default FIRPTA withholding is 15% of the gross sale price when a foreign person sells US real estate, which is usually far more than the real tax on the gain. A withholding certificate can cut it to the actual expected tax.

  1. Confirm FIRPTA applies

    FIRPTA withholding applies when a foreign person sells a US real property interest. The default is 15% of the gross sale price, withheld by the buyer as the withholding agent.

  2. Estimate the real tax on the gain

    Calculate the actual expected tax on the sale gain, which is usually far less than 15% of the gross price, especially for property with a high basis or a modest gain.

  3. File Form 8288-B by closing

    Apply for a withholding certificate on Form 8288-B to reduce the withholding to the actual expected tax. File it on or before the closing date.

  4. Hold the funds pending the certificate

    Until the IRS issues the certificate, the closing agent generally holds the withheld amount in escrow rather than remitting it, so the reduced amount can be released once the certificate is approved.

  5. File the US return to reconcile

    File the nonresident return for the year of sale to report the actual gain and claim a refund of any withholding that exceeded the real tax.

Common Mistakes

The patterns that cost taxpayers the most. Each is fixable, and each has a structured way to do it right.

  • Filing the wrong residency form

    Filing Form 1040 as a resident when you were a nonresident (or the reverse) misstates which income is taxable and usually either overpays or creates compliance exposure. The determination comes first, before anything else.

  • Counting exempt-individual days toward substantial presence

    F-1 and J-1 days do not count for a set number of years. Students and scholars frequently conclude they are residents when they are still nonresidents, and file the wrong return.

  • Skipping Form W-8BEN and overpaying withholding

    Without a valid W-8BEN on file, the payer withholds the full 30% even when a treaty would cut it to 15% or 0%. The fix is filing the form, and reclaiming over-withholding on a 1040-NR.

  • Ignoring FIRPTA until closing

    The 15% withholding is on the gross price, not the gain. Foreign sellers who do not apply for a Form 8288-B withholding certificate in advance can have far more held back than the actual tax.

  • Mishandling the arrival or departure year

    Claiming a full-year standard deduction or a filing status you are not entitled to is a common dual-status error. The year you move usually needs a dual-status or election analysis, not a standard resident return.

How TS CPA helps

The work we do with clients on this topic, packaged so each strategy is implemented correctly and integrated into your annual plan.

  • Determine your residency status precisely (substantial presence, exempt individual, closer connection, treaty tie-breaker) before preparing anything
  • Prepare Form 1040-NR with correct ECI and FDAP treatment and claim every treaty benefit you are entitled to
  • File Form W-8BEN and reclaim over-withheld tax through a nonresident return
  • Handle FIRPTA from both sides: buyer withholding compliance and seller withholding-certificate (Form 8288-B) reductions
  • Prepare dual-status and first-year-choice returns for the year you arrive in or leave the United States
Free Consultation

Free. No obligation. We respond the same day.

FAQ

Common Questions

Everything you need to know about this topic. Can't find your answer? Reach out directly.

Ask Us Anything