Tax year 2026Checked

Your sixth year on F-1: when you become a resident alien for tax

How to find your sixth calendar year, when residency starts, what changes on your return and paycheck, which treaty benefits continue, and how to stay a nonresident with Form 8843 line 12.

183 days in year 6 make you a resident, if earlier days were exempt

In short

  1. F-1, J-1, M-1 and Q students leave their days out of the substantial presence test for 5 calendar years, and any part of a year counts, so a student first here on December 28, 2021, and here every year since, is in year 6 in 2026.
  2. In year 6, a student whose earlier days were all exempt becomes a resident alien with at least 183 days in the US that year, unless the Form 8843 line 12 exception applies. For someone here all of 2026, the 183rd day is July 2.
  3. A resident alien for all of 2026 files Form 1040 instead of Form 1040-NR, reports worldwide income and takes the $16,100 standard deduction for a single filer.
  4. Once you are a resident alien, Social Security tax (6.2%) and Medicare tax (1.45%) apply to OPT pay from your residency start date. For a sixth-year student in the US on January 1, 2026, that date is January 1.
  5. A student past five calendar years can stay a nonresident alien by establishing that they do not intend to live in the US permanently: answer Yes on line 12 of Form 8843 and attach a statement with the facts.
Contents, 13 sections

F-1 students usually become resident aliens for tax in their sixth calendar year in student status, once they spend at least 183 days in the US that year. For tax year 2026, that generally means a student whose first year here as a student was 2021 and who has been here every year since.

The main way to stay a nonresident is the Form 8843 line 12 claim, for students who show they do not intend to live in the US permanently. Without it, a resident alien for all of 2026 files Form 1040, reports worldwide income, takes the $16,100 standard deduction and pays Social Security and Medicare tax on OPT pay. The substantial presence test guide covers the day count in more depth.

Note

As of October 14, 2026, the IRS had not published Publication 519 for 2026, the 2026 Form 1040-NR instructions or the final 2026 Form 8843. The rules below come from the 2026 draft Form 8843 and the 2025 Publication 519.

Which calendar year is my sixth year on F-1?

Your sixth year is the sixth calendar year you spent in the US as an F, J, M or Q student, or as a J or Q teacher or trainee. Any part of a year counts as a whole year, so arriving on December 28 still uses up that year.

First year in the US on an F, J, M or Q visa
  1. 20211 of 5: exempt, days do not count
  2. 20222 of 5: exempt, days do not count
  3. 20233 of 5: exempt, days do not count
  4. 20244 of 5: exempt, days do not count
  5. 20255 of 5: exempt, days do not count
  6. 20266th: days count

2026 is your 6th year: your days now count.

Most students who stay all year pass the 183-day test and become resident aliens: Form 1040, the standard deduction, and Social Security and Medicare tax on most pay (work for your own school while you are enrolled can stay exempt). Residency starts on the first day you were in the US this year. You stay exempt only if you show the IRS you do not intend to live in the US permanently (Form 8843, Part III).

The five exempt calendar years of a student who first arrived in 2021, and why 2026 is their sixth year. Any part of a calendar year counts as a whole one, and years on F, J, M or Q visas before this one count toward the five (IRC 7701(b)(5)(E)).

Student days stop being exempt once you have been exempt "for any part of more than 5 calendar years" (IRS: exempt individual, who is a student). IRS Publication 4152 calls them "any part of any 5 different calendar years", so they are a lifetime count, not five per visa. A J-1 exchange semester years ago uses up a year too. OPT, STEM OPT and CPT are part of F-1 status, so a year on OPT counts like any other.

This assumes you were here in student status every calendar year since you first came. We found no IRS text on whether a year spent entirely outside the US uses up one of the five, so ask a tax professional if that is your case.

Key facts

Exempt period for F, J, M and Q students
5 calendar years; any part of a year counts as a year
Days needed in year 6
183 in that year alone, if your earlier days were all exempt
183rd day if you are in the US all of 2026
July 2, 2026
When residency starts
Generally your first day in the US in the year you meet the test
2026 standard deduction, full-year resident
$16,100 (single)
Social Security and Medicare once you are a resident
6.2% on wages up to $184,500, plus 1.45% on all wages
For
F-1, J-1, M-1 and Q students, including students on OPT and STEM OPT, whose sixth calendar year in student status is 2026 or 2027.
Not for
J-1 researchers and scholars, who are usually exempt for 2 years, not 5; green card holders; and readers who need line-by-line help with Form 1040 or a dual-status return.

How many days in the US make me a resident in year 6?

If your earlier days were all exempt, you need at least 183 days in the US in your sixth calendar year alone. A student who is here every day of 2026 reaches the 183rd day on July 2, 2026.

The test for 2026 adds every day in 2026, one third of your days in 2025 and one sixth of your days in 2024 (IRS: substantial presence test). It also needs at least 31 days in 2026. Exempt days count as zero, and any part of a day in the US counts as a full day.

So in year 6 only your year 6 days count, because years 4 and 5 were exempt. In year 7 one third of your year 6 days are added, and from year 8 the full formula applies. Days as a tourist or on H-1B are never exempt, so count any in 2025 or 2024 at one third and one sixth.

When does my residency start in my sixth year?

Your residency generally starts on the first day you are in the US in the calendar year you meet the test, not on the 183rd day. A sixth-year student here on January 1, 2026 who reaches 183 days is a resident alien for all of 2026, unless the Form 8843 line 12 exception applies.

The IRS says the start date is "generally the first day you are present in the United States during that calendar year" (IRS: residency starting and ending dates).

Your sixth year is 2026, and your earlier days were all exemptYour status for 2026Your federal return
In the US on January 1 and 183 days or more in 2026Resident alien for the whole yearForm 1040
Abroad until January 10, then in the US for the rest of the yearNonresident January 1 to 9, resident from January 10: a dual-status yearForm 1040 marked "Dual-Status Return", with Form 1040-NR or a statement for the nonresident part
Fewer than 183 days in the US in 2026Nonresident alienForm 1040-NR if you had US income to report
You qualify for the Form 8843 line 12 exceptionNonresident alienForm 1040-NR with Form 8843, or Form 8843 alone if you had no income subject to US tax

A dual-status return gets no standard deduction, not even for the months you were a resident, and you generally cannot claim the education credits that year (Publication 519). The IRS page on dual-status taxpayers explains how the two parts of the return fit together.

Changing from OPT to H-1B in your sixth year does not change the start date, because your F-1 days already count. The H-1B date matters only inside your first five years (F-1 to H-1B guide). If you meet the test and then leave the US for good, your residency normally ends on December 31; the leaving the US checklist covers the exception.

What changes on my tax return as a resident alien?

A resident alien for all of 2026 files Form 1040, the return US citizens file, and is taxed on income from anywhere in the world. You take the $16,100 standard deduction for a single filer, may qualify for education credits, and no longer file Form 8843.

Years 1 to 5, as a nonresident alienYear 6, as a resident alien for all of 2026
Return you fileForm 1040-NR, with Form 8843 attachedForm 1040, without Form 8843
Income the US taxesYour US incomeYour worldwide income, including interest, rent and gains in your home country
Standard deductionGenerally none; students from India can take it under their treaty$16,100 for a single filer
Education creditsGenerally not allowedAllowed if you meet each credit's own rules
Social Security and Medicare on OPT payNot owed7.65%
Tax treaty benefitsAvailable if your country's treaty covers youMost end; some student articles, China's and India's among them, can continue under conditions
FBAR for foreign bank accountsNot filedFiled if your foreign accounts total more than $10,000 at any time

The $16,100 is the 2026 figure in Revenue Procedure 2025-32. If your home country also taxes interest or gains you earn there, read the Form 1040 instructions on the foreign tax credit.

A full-year resident may claim the American Opportunity or Lifetime Learning credit if they meet its rules (Publication 519). In August 2026, Treasury and the IRS proposed a rule and a new Schedule 3-A for the refundable part of the American Opportunity credit. Who loses that part is not settled, so read the 2026 Form 1040 instructions before you claim it. The Form 1098-T guide explains the credits.

If you filed Form 1040 in an earlier year while you were still a nonresident, read Filed Form 1040 instead of 1040-NR?.

Do I pay Social Security and Medicare tax on OPT after five years?

Yes, once you are a resident alien: from your residency start date, OPT pay owes Social Security and Medicare tax at 7.65%. The F-1 and J-1 exemption from these taxes covers only nonresident aliens (IRS: foreign student liability).

For 2026, Social Security tax is 6.2% of wages up to $184,500 (SSA), and Medicare tax is 1.45% of all wages. A tax treaty generally does not exempt pay from these taxes, even when it exempts the pay from income tax.

Pay from the school where you are enrolled and regularly attending classes can still be free of both taxes under a separate student FICA exception, whatever your residency. It never covers OPT or CPT with an outside company, or a full-time employee, and anyone whose normal schedule is 40 hours or more a week is one (Rev. Proc. 2005-11). At a public university, it does not apply if your state's Social Security (Section 218) agreement covers student workers (on-campus job guide).

Give your payroll office the calendar year you first came to the US as a student before your sixth year begins, so it starts withholding at the right time. If your line 12 claim holds, the exemption continues, and if payroll withholds anyway, the FICA refund guide shows how to ask for it back.

How much more tax does a sixth-year OPT worker pay?

For an illustrative STEM OPT worker paid $60,000 in 2026, becoming a resident alien cuts federal income tax by $2,892 but adds $4,590 of Social Security and Medicare tax. The total rises by $1,698.

$60,000

Nonresident alien, years 1 to 5

Federal income tax
$7,912
Social Security and Medicare
$0
Left
$52,088

Resident alien, year 6 on

Federal income tax
$5,020
Social Security and Medicare
$4,590
Left
$50,390

As a nonresident you keep $1,698 more of the same pay. Social Security and Medicare tax outweighs what the standard deduction saves.

The same $60,000 of 2026 OPT pay taxed as a nonresident alien in years 1 to 5 and as a resident alien in year 6, in Texas, which has no wage income tax. From the tax calculator: 2026 figures, single, no treaty, a full year in one state. A resident alien takes the $16,100 standard deduction and pays Social Security and Medicare tax. State payroll programs are not included.

Worked example: Mateo, F-1 student on STEM OPT in 2026

Mateo is an illustrative F-1 student. He first arrived on December 28, 2021 and has been in F-1 status in the US every year since. In 2026 he earns $60,000 on STEM OPT and is in the US every day. To keep the arithmetic simple, he has no other income anywhere, nothing to itemize and no tax treaty, and state tax is left out.

2026 is his sixth year, his 2025 and 2024 days were exempt, he was here on January 1 and he makes no line 12 claim, so he is a resident alien for all of 2026. The last column shows the same pay taxed as it was in his first five years.

2026 federal taxResident in year 6Same pay in years 1 to 5
Wages$60,000$60,000
Minus standard deduction$16,100$0
Taxable income$43,900$60,000
Income tax$5,020$7,912
Social Security, 6.2%$3,720$0
Medicare, 1.45%$870$0
Total$9,610$7,912

The brackets are the 2026 single-filer rates in Revenue Procedure 2025-32. We used the rate schedule; the IRS Tax Table, used below $100,000 of taxable income, can differ by a few dollars. Other income, a treaty or itemized deductions also change the numbers.

Do I need to file an FBAR or Form 8938 as a resident alien?

As a resident alien, you file an FBAR for 2026 if your foreign financial accounts together were worth more than $10,000 at any time in the year. A resident alien is a US person for the FBAR (FinCEN Form 114); a nonresident alien does not file one.

A savings account and a fixed deposit at home add together (IRS: FBAR). You file it online with FinCEN, not with your tax return, by Thursday, April 15, 2027, with an automatic extension to Friday, October 15, 2027.

Form 8938 is a separate form that goes with your Form 1040. An unmarried resident living in the US files it only if their specified foreign financial assets pass one of two amounts (Instructions for Form 8938). The amounts are more than $50,000 on December 31, or more than $75,000 at any time in the year. Filing one form does not take care of the other (IRS comparison). The FBAR guide covers both.

Do my tax treaty benefits continue after five years?

Usually not, because each treaty's saving clause ends most treaty benefits when you become a resident alien. But many treaties keep the student article for residents, under its own conditions and time limits.

China's Article 20 lets a Chinese student or trainee exclude up to $5,000 a year of US pay. It can keep applying after you become a resident (IRS: claiming treaty exemption). You must still be a student or trainee, within the time reasonably needed to finish your education or training. As a resident, you claim it by giving the payer Form W-9 with a statement (Form W-9 instructions), not Form 8233. China's exception has no green-card condition: the protocol to the treaty keeps only US citizens fully taxable (Publication 519).

India's Article 21 can also continue for a resident who is not a US citizen and has no green card (Treasury Technical Explanation). That explanation describes Article 21(1) as exempting payments from abroad for your maintenance, education or training. A full-year resident takes the standard deduction anyway, so that part of the article is the one that still matters.

On Form 1040, Publication 519 (2025) has you report the income as usual and enter the exempt amount in parentheses on Schedule 1, line 8z (2025 form). You also write "Exempt income", the treaty country and the article. Whether you must also attach Form 8833 is not settled. A Treasury regulation waives it for student and teacher treaty income, but an IRS training example attaches it to a resident scholar's Form 1040 (Publication 5876).

Many other treaties keep the student article for a resident who is not a US citizen and has no green card (IRS). In the treaty texts we read, that is true of every country in the treaty guide by country except Pakistan, but Canada's $10,000 employment rule does not continue.

A five-year article has usually run out by your sixth calendar year. So this matters most where students have no limit in years, as for Bangladesh, Belgium, Bulgaria, China, India, Malta and the Netherlands. It also matters where a full-time student gets extra time for a postgraduate or professional degree, as for Cyprus, Egypt, Slovenia and Venezuela. See the China treaty guide and the India treaty guide.

Can I stay a nonresident alien after five years?

Yes, if you can show that you do not intend to live in the US permanently. You answer Yes on line 12 of Form 8843 and attach a statement with enough facts to support your claim.

The IRS page on this exception for foreign students lists four conditions, and you must establish all of them:

  1. You do not intend to live in the US permanently.
  2. You have substantially complied with the terms of your visa.
  3. You have not taken steps to become a permanent resident.
  4. You have a closer connection to a foreign country than to the US.

Line 13 of the 2026 draft Form 8843 asks whether you applied for, or took steps toward, a green card in 2026, and a Yes there weighs against your claim. The IRS has published no list of documents that guarantees acceptance.

Do not use Form 8840 for this: it is a different exception that needs fewer than 183 days in the US in the year and a tax home abroad. If your line 12 claim holds, you stay a nonresident alien and keep your exemption from Social Security and Medicare tax. You attach Form 8843 and your statement to Form 1040-NR, or mail them alone if you had no income subject to US tax.

Am I also a resident of my state?

Becoming a resident alien for federal tax does not automatically make you a resident of your state. Each state applies its own residency tests, so your federal status does not decide your state status in either direction.

States usually start from your domicile, your permanent home. Some, such as New York, also count you as a resident if you keep a home there and spend enough days in the state (New York definitions). A state taxes residents on all their income, but nonresidents only on income from that state, which for most students means wages for work done there. The state income tax guide covers each state.

What to do next

  1. Find the calendar year you first came to the US in F, J, M or Q status, using the I-94 travel history and your passport, and count from there, including 2026.
  2. If 2026 is year 6 or later, count your 2026 days and note whether you were here on January 1. In year 6, 183 days or more makes you a resident alien unless line 12 fits you; from year 7, use the full formula.
  3. Tell your payroll office the year you first came as a student, and check that your pay stubs show 6.2% Social Security and 1.45% Medicare tax on OPT pay from your residency start date.
  4. If you are a resident for all of 2026, file Form 1040 by Thursday, April 15, 2027, without Form 8843. Check whether you need an FBAR, due the same day with an automatic extension to Friday, October 15, 2027.
  5. If you want to stay a nonresident, write your line 12 statement and gather the facts about your ties abroad before you file.
  6. If 2026 is still year 5 or earlier and all your days were in student status, file as a nonresident alien: Form 8843, with Form 1040-NR if you had US income to report (Form 1040-NR guide).

F1TaxReturn prepares Form 1040-NR and Form 8843 for free for students who are still nonresident aliens, once the IRS publishes the final 2026 forms and instructions. It does not prepare Form 1040 or dual-status returns. It answers No on Form 8843 line 12 and writes no statement, so a student who claims the line 12 exception needs another way to file. Create an account.

Questions students ask

Do I still file Form 8843 in my sixth year?

Not if you are a resident alien for all of 2026, because Form 8843 exists only to leave days out of the substantial presence test. If you claim the line 12 exception, you do file it: answer Yes on line 12 and attach your statement.

Will my OPT employer start taking out Social Security and Medicare by itself?

Do not assume it will. Give your payroll office the year you first came to the US in student status before your sixth year starts. From your residency start date, your pay stub should show Social Security tax (6.2%) and Medicare tax (1.45%).

Can I use TurboTax or other regular tax software in my sixth year?

If you are a resident alien for all of 2026, yes. You file Form 1040, the same return US citizens file, and that is what regular tax software prepares. If you are still a nonresident, or your year is dual-status, a regular Form 1040 is the wrong return.

I graduate and leave the US for good in May 2026, my sixth year. Am I a resident?

Probably not. If you were here from January 1 to May 31, 2026, that is 151 days, fewer than the 183 you need when your earlier days were all exempt. Unless you come back later in 2026, you stay a nonresident alien for 2026.

I am from China and still a PhD student. Can I keep the $5,000 treaty exemption?

Possibly. China's Article 20 can keep applying after you become a resident alien, as long as you are still a student and within the time reasonably needed to finish your degree. As a resident, you claim it by giving your employer Form W-9 with a statement, not Form 8233.

Sources

This guide is checked against these 25 documents, most recently on .

  1. Form 8843 (2026 draft), Statement for Exempt Individuals and Individuals With a Medical Condition, IRS
  2. Exempt individual: who is a student, IRS
  3. Substantial presence test, IRS
  4. Residency starting and ending dates, IRS
  5. The closer connection exception to the substantial presence test for foreign students, IRS
  6. Taxation of dual-status individuals, IRS
  7. Publication 519 (2025), U.S. Tax Guide for Aliens, IRS
  8. Publication 4152 (Rev. 9-2025), IRS
  9. Revenue Procedure 2025-32 (2026 inflation adjustments), IRS
  10. Foreign student liability for Social Security and Medicare taxes, IRS
  11. Student FICA exception, IRS
  12. Revenue Procedure 2005-11 (student exception safe harbor), IRS
  13. Contribution and benefit base, Social Security Administration
  14. Report of Foreign Bank and Financial Accounts (FBAR), IRS
  15. Comparison of Form 8938 and FBAR requirements, IRS
  16. Instructions for Form 8938, IRS
  17. Instructions for Form W-9, IRS
  18. Claiming tax treaty exemption for a scholarship or fellowship grant, IRS
  19. United States-China income tax treaty, with protocol, IRS
  20. Withholding certificates and exemptions for personal services and students, IRS
  21. 26 CFR 301.6114-1, Treaty-based return positions, eCFR
  22. Publication 5876 (Rev. 10-2024), VITA/TCE Foreign Student and Scholar Volunteer Training Guide, IRS
  23. Technical Explanation of the US-India income tax convention, US Treasury (published by the IRS)
  24. Treasury, IRS propose rules to protect refundable tax credits, IRS
  25. Definitions (resident, nonresident, part-year resident), New York State Department of Taxation and Finance