Home  /  Helpful Guides  /  IRS Guides Summarized  /  Publication 519
IRS Publication Summary

Publication 519 Summarized — U.S. Tax Guide for Aliens

This page is a plain-English working summary of IRS Publication 519 — U.S. Tax Guide for Aliens. It is written for nonresident aliens, resident aliens, and anyone trying to understand how the U.S. determines tax residency and what that means for filing obligations. The purpose is not to replace the official IRS material, but to explain what the publication covers and how it is usually used in real tax work.

IRS Publication 519: Main points

  • The entire structure of a non-citizen’s U.S. tax return depends on whether they are classified as a resident alien or a nonresident alien — and the rules for determining that are more mechanical than most people expect.
  • The green card test and the substantial presence test are two separate paths to resident alien status, and meeting either one is sufficient to trigger worldwide income taxation.
  • Dual-status years — when a taxpayer is both a nonresident and a resident within the same calendar year — create filing complications that standard software often cannot handle correctly without manual adjustment.
  • Treaty-based positions can override the default rules, but they require proper disclosure on the return and careful coordination with the residency determination.

Common Mistakes to Avoid

  • Assuming that not having a green card means the taxpayer is automatically a nonresident alien — the substantial presence test can independently trigger resident status.
  • Failing to count days correctly under the substantial presence formula, which uses a weighted three-year lookback rather than just current-year days.
  • Filing a standard Form 1040 during a dual-status year when a dual-status statement and restricted return are actually required.
  • Taking treaty positions without filing Form 8833, which can result in the treaty benefit being disallowed even if the taxpayer otherwise qualifies.

Section-by-Section Summary

How the U.S. determines whether an alien is a resident or nonresident for tax purposes

Publication 519 opens with the foundational classification question: is this person a resident alien or a nonresident alien? This matters because resident aliens are taxed on worldwide income (like U.S. citizens), while nonresident aliens are generally taxed only on U.S.-source income and income effectively connected with a U.S. trade or business. The publication walks through two primary tests — the green card test and the substantial presence test — and explains when each applies. For more on how tax residency shapes the return, see our detailed guide.

How the green card test works

The green card test is straightforward in concept: if a person has been a lawful permanent resident of the United States at any time during the calendar year, they are treated as a resident alien for tax purposes. For IRS Publication 519, the residency start date is generally the first day of physical presence in the U.S. while holding the green card. The publication explains that this test does not require a minimum number of days in the country — holding the card alone can be sufficient. It also explains what happens when a green card is abandoned or revoked, and when the cessation of residency occurs for tax purposes.

How the substantial presence test works and what exemptions exist

The substantial presence test uses a day-counting formula: a person must be physically present in the U.S. for at least 31 days during the current year and at least 183 days over a three-year period using a weighted formula (all current-year days, plus one-third of prior-year days, plus one-sixth of the year before that). The publication details several exemptions from the count, including days present as an exempt individual (certain students, teachers and foreign government-related individuals). It also explains the closer connection exception, which allows someone who meets the test to remain classified as a nonresident if they maintain a tax home in and closer connection to a foreign country.

Why dual-status years create special complications

A dual-status year occurs when a taxpayer is a nonresident alien for part of the year and a resident alien for the rest of the same year. The publication explains that during the nonresident portion, the taxpayer is taxed only on U.S.-source income, while during the resident portion, worldwide income applies. Dual-status returns cannot use the standard deduction, cannot file jointly (with limited exceptions), and require a special statement attached to the return. These are among the most error-prone returns in individual taxation because most software defaults assume full-year residency status.

How nonresident aliens are taxed differently from resident aliens

Nonresident aliens file Form 1040-NR and are taxed on two categories of U.S. income: income effectively connected with a U.S. trade or business (taxed at graduated rates) and fixed, determinable, annual, or periodical (FDAP) income from U.S. sources (typically taxed at a flat 30% rate or a lower treaty rate). The publication explains which income types fall into each category, how deductions are limited for nonresidents, and why certain credits and filing options (such as the standard deduction and joint filing) are generally unavailable. For more on the difference between Form 1040 and Form 1040-NR, see our guide.

What treaty-based positions can change the analysis

Tax treaties between the U.S. and other countries can modify many of the default rules in Publication 519. A treaty may reduce the withholding rate on FDAP income, exempt certain types of income (such as pension income or teaching compensation), or change the residency determination itself through tie-breaker rules. The publication explains that claiming a treaty benefit generally requires disclosing the position on Form 8833 and that failing to do so can result in penalties. For a broader look at U.S. tax treaties and how they interact with domestic law, see our treaty guide.

How Publication 519 works with Publication 54 and Publication 901

Publication 519 is the primary reference for aliens determining residency and filing obligations. Publication 54 covers U.S. citizens and resident aliens living abroad — so once an alien is classified as a resident, Publication 54 becomes relevant if they are also working overseas. Publication 901 provides a country-by-country overview of treaty provisions. In practice, these three publications are often used together by international taxpayers. Publication 519 answers the classification question, Publication 901 identifies relevant treaty articles, and Publication 54 applies if the taxpayer qualifies for the foreign earned income exclusion. See also our guide to Form 6166 and certificates of coverage.

How readers should use the publication to determine their filing status before preparing a return

The most important thing Publication 519 does is help the reader determine their correct filing status before preparing any return. A taxpayer who skips this step and begins filling out the wrong form will produce a return that is fundamentally incorrect — not just in the numbers, but in the form itself, the income reported, the deductions claimed, and the credits taken. The publication’s classification sections should be read first, and the filing guidance should follow only after the residency question is resolved. For taxpayers who receive Form 1042-S, Publication 519 is also essential for understanding how those withholding amounts relate to the return.

How to Use This Publication

Start with the residency determination sections. If you do not know whether you are a resident alien or nonresident alien, nothing else in the publication will be applied correctly. Once your status is established, move to the sections that explain how your category of income is taxed and which form to file. If treaty benefits may apply, read the treaty sections and be prepared to file Form 8833.

In practice, Publication 519 is often the first publication international taxpayers need and the last one they think to read. Practitioners use it as the classification engine that drives every other decision on the return — from form selection to income sourcing to credit eligibility.

For related context, see our guides on tax residency, U.S. tax treaties, Form 6166 and certificates of coverage, and Form 1042-S reporting.

Official IRS source: Publication 519 — U.S. Tax Guide for Aliens
Last updated: April 2026. This is a general summary. The official IRS publication contains complete rules, examples and exceptions. Readers should review it directly and seek professional advice where facts are complex.

Frequently Asked Questions

What is Publication 519 and who actually needs to read it?

Publication 519, U.S. Tax Guide for Aliens, is the IRS handbook for noncitizens who have to deal with the U.S. tax system. The word “alien” here is just the legal term the tax code uses for someone who is not a U.S. citizen. It carries no judgment. If you came to the United States on a work visa, a student visa, a green card, or any other status, this is the guide written for your exact situation. It walks through how the IRS decides whether you owe tax at all, how much of your income counts, which deductions you can take, and which return you are supposed to file. For a lot of people, it is the first IRS document that actually speaks to their circumstances instead of assuming they were born here.

The whole document turns on one question: are you a resident alien or a nonresident alien for tax purposes? That phrasing matters more than it looks. Your tax residency is not the same thing as your immigration status, and it is not the same as where you “feel” you live or where your family is. The IRS runs its own tests, and the answer changes how the rest of your year gets taxed. Publication 519 u.s. tax guide for aliens spends most of its pages helping you sort out that single classification, because almost everything else on your return flows from it.

Here is why it carries so much weight. A resident alien is taxed almost exactly like a U.S. citizen. That means your worldwide income gets reported, the rental flat back home, the dividends sitting in your old brokerage account, the freelance work you did before you ever boarded the plane, all of it lands on a U.S. return. A nonresident alien is taxed only on income that comes from U.S. sources or that is effectively connected to a U.S. trade or business. Two people doing the same job for the same company can end up with very different tax bills depending purely on which side of that residency line they fall.

The guide also handles the in-between cases that real life produces. People who arrive partway through the year, or pack up and leave partway through, often have a dual-status year, where they are nonresident for one stretch of the calendar and resident for the rest. It explains tax treaties, which can lower or wipe out U.S. tax on certain types of income for residents of specific countries. It also gets into withholding, because a nonresident often watches a flat 30 percent get pulled out of certain U.S. payments before the money ever reaches their account.

If you are reading this and feeling unsure where you land, that is normal and you are in good company. The resident vs nonresident alien question trips up smart, careful people every single filing season, and getting it wrong can mean a refund you never claimed or a notice from the IRS showing up a year later. Our team handles these returns all the time, and you can read about our individual tax return service if you would rather have a person look at your facts than guess from a forum post. Before you file anything, the smart move is to settle your residency status first. One point worth making up front: this guide is not only for people who think of themselves as immigrants. A visiting executive on a short assignment, a graduate student on a one-year exchange, a contractor flown in for a single project, and a retiree splitting the year between two countries can all find their tax answer inside it. The status rules do not care about your intentions or how long you plan to stay. They care about the green card you hold and the days you spent on U.S. soil. Everything else follows from that one answer, and the next section breaks down the two tests the IRS actually uses to reach it.

How does the IRS decide if I am a resident or nonresident alien?

The IRS uses two tests, and you only need to pass one of them to be treated as a resident alien for the year. Publication 519 lays both out in detail. The first is the green card test. If you are a lawful permanent resident at any point during the year, meaning you hold a green card, you are a resident alien, full stop. That one is simple and rarely causes confusion. The second test is where most people get tangled up, because it counts days, and the counting has a twist that catches even careful filers off guard.

The second test is the substantial presence test. To meet it you need to be physically present in the United States for at least 31 days during the current year, and at least 183 days under a weighted three-year count. The weighting is the part people miss. You count all of your days in the current year, plus one-third of your days from last year, plus one-sixth of your days from the year before that. Add those three numbers together. If the total reaches 183 and you also cleared 31 days this year, you pass, and you are a resident alien.

A worked example makes it concrete. Say you spent 120 days in the U.S. this year, 150 days last year, and 150 days the year before that. The math runs like this: 120 from this year, plus 50 (one-third of 150) from last year, plus 25 (one-sixth of 150) from the year before. That adds up to 195 days. You cleared the 31-day floor this year and you cleared 183 on the weighted count, so you meet the substantial presence test and you are a resident alien, even though you were physically present only 120 days in the current year. People look at that 120, compare it to 183, and assume they are safe. The prior-year days are what pull them over the line.

Not every day counts, though, and this is where many returns get rescued. Certain people are treated as exempt individuals, which means their days in the country do not get counted at all toward the test. This usually covers students on F visas, and teachers, trainees, or researchers on J visas, within the time limits the rules set. An exempt individual can spend a full calendar year inside the United States and still stay a nonresident alien for tax purposes. To claim that treatment you generally file Form 8843, which tells the IRS who you are and why your days should be excluded. Skip that form and you risk the IRS counting days it should have ignored, which can flip your whole status.

The most common mistake we see is people miscounting under the substantial presence test. They forget the prior-year fractions entirely, or they count days that an exempt status should have removed, or they assume a visa type by itself settles the question. It does not. Your status can flip from one year to the next based on nothing more than how much you traveled. If you are not certain how your days add up, our tax strategy consulting can run the count with you before a return ever goes out the door. The full rules, including the edge cases for medical conditions that stranded you here, sit inside Publication 519. There is also a closer-connection exception for some people who pass the day count but can show their real home and stronger ties are in another country, though it comes with its own form and conditions. Run your own day count now, while you still have room to plan around the result, because once the calendar year closes the days are locked and there is nothing left to adjust.

Which form do I file, the 1040 or the 1040-NR?

Your residency status picks the form, so settle that first and the rest gets easy. A resident alien files Form 1040, the same return a U.S. citizen uses. A nonresident alien files Form 1040-NR. The two look similar at a glance, and the tax software you downloaded may not stop you from grabbing the wrong one, but they treat your income very differently. Filing the wrong return is one of the easier ways to create a real problem for yourself, and it is a problem that usually surfaces months after you thought you were done.

Start with the resident alien on Form 1040. You report worldwide income, which means every dollar you earned anywhere on the planet during the year. Wages from a U.S. employer, sure, but also interest from a bank account in your home country, capital gains from selling property abroad, and any side income you brought in before or after the move. The upside is that you get the same toolkit a citizen gets. You can take the standard deduction, choose from the full range of filing statuses including married filing jointly, and claim credits like the child tax credit when you qualify for them.

The nonresident alien on Form 1040-NR plays by tighter rules. You only report U.S.-source income and income that is effectively connected to a U.S. trade or business. Your foreign income generally stays off the return entirely, which sounds great until you see the trade-offs. Nonresident aliens usually cannot take the standard deduction, and their filing-status choices are limited. Income that is not connected to a U.S. business, like certain dividends or other passive payments, often gets hit with a flat 30 percent tax collected through withholding rather than running through the graduated brackets that would normally lower the rate.

There is one narrow exception worth naming so nobody overreaches. Students and business apprentices from India can claim the standard deduction on Form 1040-NR under a specific article of the U.S.-India treaty. That is the exception, not the rule. If you are a nonresident from almost any other country, the standard deduction is simply off the table, and trying to take it anyway is the single most common error on these returns.

Here is that mistake spelled out, because we see it every year. Someone arrives on an F visa, works a campus job, gets a W-2, and files a plain Form 1040 because that is the form everyone around them talks about. They take the standard deduction, the software accepts it without complaint, and the refund on the screen looks generous. Months later the IRS sends a notice, because as a nonresident that person was never entitled to the standard deduction and filed the wrong return entirely. Now they are amending, paying back part of the refund, and possibly owing interest on top. The fix would have cost nothing up front: file the correct form the first time.

Dual-status filers, people who switched residency mid-year, sometimes file pieces of both returns together. The mechanics for that, along with line-by-line guidance, live in the Form 1040-NR instructions and in Publication 519. If your year had an arrival or a departure in it, do not assume one form covers the whole thing. One more practical note: most mainstream consumer tax software is built for citizens and resident aliens, and it often does not support Form 1040-NR at all. A nonresident who downloads the popular do-it-yourself program and files what it produces has almost certainly filed the wrong return without realizing it. The program never asks the day-count question, so it never learns the filer is a nonresident in the first place. Check your status first, match the form to it, and your filing season turns out a lot quieter than it would otherwise.

What is a dual-status year and how do treaties change my tax?

A dual-status year happens when you are a nonresident alien for part of the calendar year and a resident alien for the other part. It almost always shows up in the year you arrive in the United States or the year you finally leave for good. Publication 519 u.s. tax guide for aliens devotes real space to this scenario, because the rules for the two periods do not blend into one average. They stack. You apply nonresident rules to the nonresident months and resident rules to the resident months, then combine the results on a single return.

Picture someone who moves to New York in July on a work visa and meets the substantial presence test for the back half of the year. Before the move, they were a nonresident, so for those early months only U.S.-source income gets taxed. After the move, they became a resident, so worldwide income gets taxed for the rest of the year. The return splits the calendar into two parts and applies the matching set of rules to each. You do not get the standard deduction on a dual-status return, and your filing-status options narrow, which catches people off guard when they expected resident-style treatment for the entire twelve months.

Tax treaties are the other lever, and they can make a genuine dollar difference. The United States has income tax treaties with many countries, and these agreements often reduce or eliminate U.S. tax on specific kinds of income for residents of the treaty country. A common example is a graduate student or visiting researcher whose scholarship or wages are partly or fully exempt under their home country’s treaty. Another is a reduced withholding rate on certain payments, where the flat 30 percent that would normally apply drops to a lower negotiated figure, sometimes all the way to zero.

Run the numbers on a treaty benefit and you see why it is worth the effort. Suppose a visiting researcher earns 40,000 dollars in U.S. wages, and their home country’s treaty exempts the first 10,000 dollars of that compensation. Without the treaty, all 40,000 dollars is taxable. With it, only 30,000 dollars is. If their effective rate on that exempted slice would have been around 22 percent, the treaty just saved them roughly 2,200 dollars. That is money they keep simply by claiming a benefit they were already entitled to, usually by attaching the right disclosure statement to the return so the IRS knows what they are doing and why.

The common mistake here cuts both ways. Some filers never claim a treaty benefit they fully qualify for and quietly overpay year after year. Others claim a benefit they do not actually qualify for, often because they misread the treaty article or blew past the time limit baked into it, and the IRS pushes back later with a bill. Treaties are specific documents. They name the income type, the dollar cap, the number of years the benefit lasts, and the conditions you have to meet. You cannot apply one in spirit or by analogy.

Both the dual-status rules and the treaty tables are spelled out in Publication 519, and the disclosure mechanics tie back to your Form 1040-NR filing. If your year had a move in it, or if your country has a treaty with the United States, this is worth getting right instead of approximating. Our tax strategy consulting can read your specific treaty article and tell you what you actually qualify for. One detail people overlook: a treaty benefit you claimed in a prior year does not renew itself automatically, and some benefits have a hard cap on how many years they last. A student who relied on a treaty exemption for three years may find it simply runs out, and the income that was free before becomes fully taxable the next year. Treat the treaty as a precise tool, find the article that names your income, and claim exactly what fits and nothing more.

What records should I keep and how can a CPA help with an alien tax return?

Good records are what make a clean alien return possible, and they start long before tax season. The single most important thing to track is your travel. Keep a running log of every date you entered and left the United States, because the substantial presence test lives or dies on that count. Passport stamps, boarding passes, and official entry records are your backup if the IRS ever asks you to prove the number. People who guess at their day count in April are the same people who end up getting a residency determination wrong, and that one error reshapes the entire return underneath it.

Beyond travel, hold onto your income documents from every country, not just the U.S. ones. A resident alien reports worldwide income, so that bank interest statement from home, the brokerage summary, the foreign wage records, and any rental income from a property abroad all matter for the return. Keep your visa paperwork, your green card if you have one, and any I-94 arrival and departure records. If you are an exempt individual, save proof of your status so you can support the days you excluded on Form 8843. Treaty claimants should keep documentation of their country of residence and the exact treaty article they are relying on, because that is the first thing the IRS asks about if it questions the claim.

A worked situation shows where all of this pays off. Two people arrive in the same year on the same campus. One is a researcher on a J visa who tracked her dates carefully, filed Form 8843 on time, and correctly stayed a nonresident filing Form 1040-NR. The other never logged his travel, assumed he was a resident because he had been here “basically the whole year,” filed a plain Form 1040, and took the standard deduction he was not allowed to take. She gets her refund and moves on with her life. He gets a notice, amends his return, and pays interest. The only real difference between them was records and knowing which test applied to whom.

This is where a CPA earns the fee. The hard part of an alien return is rarely the data entry. It is the judgment calls underneath it: settling resident vs nonresident alien status, deciding whether a dual-status split applies, reading a treaty article correctly the first time, and figuring out which foreign income belongs on the return and which stays off. Get those upstream decisions right and the form mostly fills itself in. Get them wrong and no amount of careful typing on the page will save you. We do this work every filing season, and our individual tax return service is built for exactly these situations.

If you run a business or do freelance work alongside your visa status, clean books matter even more, because the IRS wants to see clearly which income is effectively connected to a U.S. trade or business and which is not. Sorting that out month by month, rather than reconstructing a year of receipts from a shoebox in April, is the difference between a smooth return and a stressful one. Our bookkeeping service can keep that record straight throughout the year so the picture is already clear when filing time arrives.

The authoritative source for all of this stays Publication 519, and it is worth at least skimming even if you plan to hand the whole return to a professional. A short call before tax season often saves far more than it costs, because catching a status or treaty issue in January is cheap and fixing it after a notice arrives is not. Start your travel log today, drop this year’s income documents into one folder as they arrive, and your next filing season will be far less of a scramble than it would have been if you waited.

Contact Us