SimpleStub. Back to home
All guides

Resident or nonresident for tax? The F-1 five-year rule

F-1 students are generally nonresident aliens for their first five calendar years in the US. Here is what that means for your taxes and pay stub.

Your tax residency as an F-1 student starts as nonresident alien (NRA) and can shift to resident alien after five calendar years. That single switch changes what appears on every paycheck. Here is how to read the rule, what triggers the change, and what it means for withholding.

SimpleStub makes pay stubs. It does not file taxes or give legal or tax advice. Use these facts as a starting map; confirm your specific situation with a tax professional or your university's international student office.

Are F-1 students nonresident aliens for tax?

Yes, generally for the first five calendar years. The IRS treats F-1 students as exempt individuals for purposes of the substantial presence test during those years, which means days in the US on F-1 status do not accumulate toward the 183-day threshold that would make you a resident alien. The first five calendar years of F-1 presence you are a nonresident alien for federal tax.

This is a tax classification, not an immigration one. Your visa stays F-1 regardless of which side of the line you are on.

What is the substantial presence test?

The substantial presence test is the IRS formula that determines when a person who is not a US citizen or green-card holder becomes a resident alien for tax. It counts physical days in the US over three years: every day in the current year, plus one-third of days from the prior year, plus one-sixth of days from two years ago. Hit 183 or more (and be present at least 31 days in the current year) and you meet the test.

For F-1 students, days during the first five calendar years of F-1 status are excluded from this count entirely. You are an exempt individual for those years. Starting in the sixth calendar year, your days count, and if the formula reaches 183 you become a resident alien for that tax year.

A concrete example: if you arrived in September 2021, your exempt years are 2021, 2022, 2023, 2024, and 2025. In 2026 your days start counting. If you are present substantially all of 2026, you likely meet the substantial presence test and are a resident alien for 2026.

What changes on your paycheck when you become a resident alien?

The biggest line-item change is FICA. F-1 students who are nonresident aliens are exempt from Social Security and Medicare on F-1-authorized work under IRC 3121(b)(19). Once you cross to resident alien, that exemption is gone and your employer withholds FICA like any other employee.

ItemF-1 nonresident alienF-1 resident alien
Social Security (employee)Not withheld (NRA exempt)6.2% withheld
Medicare (employee)Not withheld (NRA exempt)1.45% withheld
Employer Social Security matchNot owed6.2% owed
Employer Medicare matchNot owed1.45% owed
Federal income taxWithheld per W-4 (NRA rules apply)Withheld per W-4 (standard rules)
Massachusetts income tax5.0% flat, withheld5.0% flat, withheld
FUTA (employer-only)Generally not owed (IRC 3306(c)(19))Owed

FICA adds up quickly. On a $60,000 salary, the employee share is $3,720 in Social Security plus $870 in Medicare, a difference of $4,590 per year from what you saw as an NRA.

What are the W-4 differences for a nonresident alien?

While you are an NRA, the IRS Notice 1392 rules govern your W-4. In general: you must claim single filing status regardless of your actual marital status, you may need to write "NRA" on a specific line, and certain adjustments available to resident aliens are off-limits. These rules produce a different withholding calculation, so filling out the standard W-4 without following Notice 1392 can result in underwithholding.

Once you are a resident alien, you complete the standard W-4 with no NRA restrictions.

What does the pay stub look like on each side of the line?

While you are a nonresident alien, a correct stub has no Social Security or Medicare lines. Federal income tax, Massachusetts income tax (5.0% flat), and the employee MA PFML contribution appear as usual. Social Security and Medicare are simply absent.

After you cross to resident alien, the stub looks like any other employee's: Social Security 6.2%, Medicare 1.45%, federal income tax, Massachusetts income tax, and PFML all appear with current and year-to-date totals.

Massachusetts also requires every stub to carry employer name, employee name, pay-period dates, hours worked, rate of pay, and all deductions under M.G.L. c. 149, s. 148. That requirement applies regardless of visa or residency status.

What should you do in the year of the transition?

Two things matter. First, count your calendar years carefully. The five-year exemption is counted in calendar years, not academic years or months. A student who arrived on December 28, 2021 counts 2021 as year one, even though they were only present a few days. Second, tell your employer. Once you know you are (or will become) a resident alien for the tax year, your employer needs to start withholding FICA and you need to complete a new W-4 under standard rules. Running as an NRA past the transition point means FICA is withheld in error, which requires a correction process involving Form 843 and Form 8316 to reclaim.

If you are uncertain which category applies to you for a given year, the IRS substantial presence test page and your university's international student tax resources are the right first stops. A tax professional familiar with F-1 situations can run the numbers with you.

Straight answers

Am I a nonresident alien or a resident alien for tax on F-1?

You are generally a nonresident alien for your first five calendar years of F-1 presence in the United States. After that, the IRS substantial presence test applies and can make you a resident alien. Your immigration status (F-1) does not change; only your tax residency classification shifts. Count your calendar years carefully, not your enrollment years.

What changes when I become a resident alien for tax?

The biggest paycheck change is that Social Security (6.2%) and Medicare (1.45%) are withheld from that point forward. You are also taxed on worldwide income, not just US-source income, and the special nonresident-alien W-4 rules under IRS Notice 1392 no longer apply.

What is the substantial presence test?

It counts days physically present in the United States over a three-year window: all days in the current year, plus one-third of days in the prior year, plus one-sixth of days in the year before that. If the total reaches 183 and you were present at least 31 days in the current year, you meet the test and are a resident alien for that year. F-1 exempt years do not count toward this total.

Do I owe FICA while I am still a nonresident alien on F-1?

No. F-1 students who are nonresident aliens for tax are exempt from Social Security and Medicare on F-1-authorized work, including OPT and STEM OPT, under IRC 3121(b)(19). The exemption ends the year you become a resident alien.

How do I know which year I crossed from NRA to resident alien?

Count the calendar years you were present in the US in F-1 status. The first five are generally exempt from the substantial presence test (the exempt-individual rule). Starting in the sixth calendar year, your days start counting. Run the substantial presence calculation for that year to confirm. If you are unsure, a tax professional familiar with international student rules can walk you through it.

Pay stubs, not payroll.

SimpleStub generates compliant pay stubs in minutes, with Federal, Massachusetts, and F-1 / FICA handling built in.

Figures reflect tax year 2026. SimpleStub is a document tool, not tax, accounting, or legal advice.