Most F-1 and J-1 students are nonresident aliens for tax purposes during their first 5 calendar years in the US. During those years, each student, and each spouse or child in F-2 or J-2 status, files Form 8843 every year even with no income, and students with taxable US income such as wages also file Form 1040-NR, not Form 1040. Pay from on-campus jobs, CPT and OPT is subject to federal income tax but generally not to Social Security and Medicare taxes while you are a nonresident.
Why you are probably a nonresident
For tax purposes, a student on an F, J, M or Q visa who substantially complies with the visa is an "exempt individual." That doesn't mean exempt from tax. It means your days in the US don't count toward the substantial presence test, the 183-day formula that otherwise decides whether a visitor is a resident for tax purposes. Any part of a calendar year counts as one of your 5 years. After 5 calendar years as a student, teacher or trainee, your days start counting unless you can show you don't intend to live in the US permanently.
J-1 researchers and teachers who aren't students follow a shorter rule: generally 2 years of exempt status in any 6. Our guide to US tax residency for immigrants explains the full tests.
Hypothetical example: Arjun arrived on an F-1 visa in August 2022. Even though he was here only part of 2022, it counts, so 2022 through 2026 are his 5 exempt calendar years. Starting January 1, 2027, his days count. If he stays in the US all of 2027, he will meet the substantial presence test and be a resident for 2027, unless he can show he doesn't intend to live in the US permanently and still qualifies as exempt. As a resident he would file Form 1040 and, for most jobs, pay Social Security and Medicare taxes.
Form 8843: file it every year, even with no income
Form 8843 is how you tell the IRS you are excluding your days as a student. If you file Form 1040-NR, attach it. If you don't have to file a return, mail Form 8843 by itself to the Department of the Treasury, Internal Revenue Service Center, Austin, TX 73301-0215, by the Form 1040-NR due date, which for someone with no wages is June 15. For the 2026 tax year, that's June 15, 2027.
A Form 8843 is needed for each family member in the US who is excluding days, including a spouse and children in F-2 or J-2 status, because the residency test applies to each person separately. File it on time each year, because it is your record of why your days don't count toward the substantial presence test.
Form 1040-NR: what is taxed
There is no minimum income that triggers a filing requirement for a nonresident student. You must file Form 1040-NR if you have:
- Wages, including from on-campus jobs, CPT and OPT.
- A taxable scholarship or fellowship. If you are a degree candidate, a scholarship used for tuition, required fees, and required books, supplies and equipment is not taxable. Amounts for room and board are. Taxable scholarship income for F, J, M and Q students is generally subject to 14% withholding, or a lower treaty rate.
- Income that a tax treaty makes partly or fully exempt. You still report it.
You don't have to file if your only income is from outside the US, interest from a US bank or credit union, or a scholarship that is entirely tax-free. Even then, you still file Form 8843.
If you had wages subject to income tax withholding, Form 1040-NR for 2026 is due April 15, 2027. Otherwise it's due June 15, 2027. Nonresidents generally can't take the standard deduction. The exception is students and business apprentices who qualify under Article 21(2) of the US-India tax treaty. When you start a job, complete Form W-4 using the special instructions for nonresidents in IRS Notice 1392.
Social Security and Medicare (FICA)
Nonresident students in F-1, J-1 or M-1 status are exempt from Social Security and Medicare taxes on pay for work that USCIS allows and that fits the purpose of the visa. That includes on-campus jobs, off-campus work allowed by USCIS, and practical training on or off campus, such as CPT and OPT. The exemption does not cover spouses and children in F-2, J-2 or M-2 status, work your status doesn't allow, or students who become resident aliens or change to a status that isn't exempt.
A separate rule exempts any student, resident or not, who works for the school where they are enrolled at least half-time, if the job is incidental to studying. Off-campus jobs don't qualify for that rule.
If your employer withheld these taxes by mistake, ask the employer to refund them. If you can't get a full refund that way, file Form 843 with Form 8316 and supporting documents to claim it from the IRS.
Hypothetical example: Lin, an F-1 student from China in her third calendar year in the US, earns $12,000 from an on-campus job in 2026. As a nonresident student she owes no Social Security or Medicare tax on it; at the 7.65% employee rate (6.2% plus 1.45%), that's $918 she keeps. The US-China treaty lets an eligible student exclude up to $5,000 a year of pay for personal services. If she qualifies, she gives her employer Form 8233 to claim the exemption from withholding, and $12,000 minus $5,000 = $7,000 of her wages is taxable. She files Form 1040-NR with Form 8843 by April 15, 2027.
Tax treaties
Many US tax treaties exempt some student income, such as scholarships or a limited amount of wages, often for a limited time. To have less tax withheld from wages, you give your employer Form 8233 with the treaty statement for your country; Appendix A of IRS Publication 519 has the statements for students. You then report the exempt amount on your return. Some treaty benefits continue even after you become a resident; Publication 519 gives the example of the US-China treaty's student article. Check the exact article for your country, because the rules and dollar limits differ.
Mistakes to avoid
- Filing Form 1040 as a nonresident. If you filed the wrong form, correct it with Form 1040-X. Attach the correct Form 1040-NR, with the "Other" box at the top checked and "Amended" written on its entry line.
- Claiming credits you can't take. A Form 1098-T from your school doesn't mean you can claim the American opportunity or lifetime learning credit. Nonresidents generally can't claim education credits or the earned income tax credit.
- Skipping Form 8843 because you had no income, or forgetting your family members' forms.
- Not getting a taxpayer number. If you are eligible for a Social Security number, use it. If you aren't eligible for one but need a number, for example for a taxable scholarship or a treaty claim, apply for an ITIN.
- Forgetting state tax. States have their own rules for students and nonresidents. See our guide to state income taxes.
For free help, some IRS-sponsored VITA sites have volunteers certified to prepare returns for foreign students and scholars. Some situations are outside what those volunteers handle, including dual-status years, and for those you may need a paid tax professional. If you also keep accounts in your home country, you may need to report them once you become a resident; see our guide to foreign bank accounts, FBAR and FATCA.
Spotted something wrong or out of date? Report a correction and include this page’s address.
