Who this is for
- Visa holders who filed Form 1040 but may have been nonresidents for that tax year
- F-1, OPT, or J-1 workers who may have had Social Security or Medicare tax withheld in error
Not covered here
- A full calculation of the date US tax residency begins or ends
- How to report nonresident business or LLC income
- Immigration consequences of a tax filing correction
- State-specific amendment instructions
Did my visa and days in the US make me a nonresident for the year I filed?
Your visa label alone does not decide your federal tax residence. For each year you filed, check whether you had a green card, met the substantial presence test after excluding eligible days, or made a valid choice to be treated as a resident. If you met the day-count test, check whether a closer connection exception or treaty tie-breaker changes your income-tax result (IRS: resident and nonresident aliens; IRS: treaty residence).
The substantial presence test requires at least 31 US days in the filing year and 183 weighted days across that year and the two prior years. Count all eligible days in the filing year, one-third of the prior year's days, and one-sixth of the second prior year's days. An eligible F-1, J-1, M-1, or Q-1 student excludes days as an "exempt individual"; that phrase means exempt from counting days, not exempt from income tax. Student days generally stop being excludable after five calendar years in which you were exempt as a student, teacher, or trainee. A student may still qualify by showing no intent to live permanently in the US, including closer foreign ties and no steps toward a green card. A J-1 teacher or trainee has a different limit, generally tied to exemption in two of the prior six calendar years (IRS: student rule; IRS: teacher and trainee rule).
The ordinary closer-connection exception requires fewer than 183 actual US days and Form 8840 by the Form 1040-NR due date, including extensions; a late form can forfeit the exception unless you meet the IRS's proof standard. The separate student exception after five exempt calendar years uses Form 8843 (IRS: closer connection; IRS: student exception).
Build a year-by-year record of entry and exit dates, visa categories, school or program documents, and any green card or residency election. OPT does not by itself end F-1 status or settle the day-count question. If residency began or changed during a year, see First year as a US tax resident before choosing the corrected form.
I filed Form 1040 but needed Form 1040-NR. How do I correct it?
If the original Form 1040 was joint, first check whether a resident-treatment election supported it. When one spouse was a US citizen or resident and the other a nonresident at year-end, both can elect full-year resident treatment by signing a statement with their joint return and reporting worldwide income. A new choice is unavailable if both were nonresidents at year-end, but an earlier choice may still apply if either spouse was a resident during that year. If both became residents during the year, a separate first-year joint election may apply. An amended nonresident-spouse election is generally due within three years after the original return was filed or two years after tax was paid, whichever is later. The IRS generally does not allow a joint return to become separate returns after the original due date (IRS: nonresident spouse; 26 U.S.C. § 6013(h); IRS: Form 1040-X instructions).
On a valid joint return, each spouse can owe the full tax, interest, and penalties under 26 U.S.C. § 6013(d)(3). The IRS generally has 10 years after assessment to collect, subject to extensions. A spouse who seeks relief can file Form 8857, generally within two years after the first IRS collection attempt; equitable relief for an unpaid balance can be requested during the collection period (IRS: Form 8857 instructions; IRS: collection period).
An eligible student from Barbados or Jamaica, or trainee from Jamaica, may also elect resident treatment under a treaty by filing Form 1040 with a signed election statement for the election year. Check the original statement before replacing that return; the election continues while the person qualifies (IRS: Publication 519; IRS: Publication 901).
After resolving any joint-return issue, if you should have filed Form 1040-NR, file a separate Form 1040-X for each affected year, with a complete corrected Form 1040-NR for that year. The IRS instructions expressly use Form 1040-X when someone filed Form 1040 but should have filed Form 1040-NR.
| Step | What to prepare |
|---|---|
| Rebuild the year | Use that year's Form 1040-NR instructions, income records, withholding forms, and treaty documents. Include Schedule OI and any required schedules (IRS: Form 1040-NR instructions). |
| Explain the change | Identify the original filing status, why you were a nonresident, and the entries that changed. Reconcile any IRS notice or adjustment before calculating the result (IRS: Form 1040-X instructions). |
| Submit the correction | On a paper Form 1040-X, enter identifying information on page 1 and the explanation in Part II on page 2; leave page 1 amounts and Part I blank. Sign it, write "Amended" on the corrected return, and attach that return. For an electronic filing, complete Form 1040-X in full (IRS: Form 1040-X instructions). |
Recheck income, deductions, credits, filing status, and withholding under the nonresident rules. The correction may result in more tax due or a refund; you owe any additional tax. Interest runs from the original due date. After the IRS demands payment of added tax, you normally have 21 calendar days, or 10 business days if the tax is at least $100,000; then the usual failure-to-pay penalty is 0.5% per month or part month, up to 25% (IRS: Form 1040-X instructions). A refund claim is generally due within three years after the original return was filed or two years after tax was paid, whichever is later. A claim made within the three-year period generally recovers only tax paid in the prior three years plus any filing extension; otherwise, only tax paid in the prior two years. Check filing and payment dates and any special postponement (IRS: Form 1040-X instructions).
What happens to credits or a recovery payment on the wrong return?
Remove any credit that the corrected return cannot support, and compare the new tax with refunds already received. A nonresident filing Form 1040-NR generally cannot claim an education credit; the IRS identifies limited resident-treatment elections that can change that result (IRS: education credits; IRS: Form 1040-NR instructions).
| Item on the original return | Correction to review |
|---|---|
| Education or earned income credit | A Form 1040-NR filer generally cannot claim these; check any valid resident-treatment choice before removing them (IRS: Form 1040-NR instructions). |
| Child tax credit or credit for other dependents | Check that year's Form 1040-NR rules and your country of residence. Under current law, the child tax credit needs qualifying Social Security numbers for both claimant and child; the other dependent credit needs timely issued taxpayer and dependent identification numbers. An amended return cannot cure numbers issued after the original due date, including extensions (26 U.S.C. § 24; IRS: Form 1040-NR instructions). |
| Recovery Rebate Credit claimed on a return for 2020 or 2021 | A nonresident cannot claim the credit merely by filing Form 1040. Reconcile the credit, any IRS adjustment notice, and the corrected return (IRS: 2020 eligibility; IRS: 2021 eligibility). |
| Economic Impact Payment issued separately | Keep the payment notice and the returns on which the IRS based it. The IRS says a payment based on an earlier year's eligibility is not repaid solely because the later year's credit is lower; whether a return used to obtain the payment was itself wrong needs a separate review (IRS: 2020 payments; IRS: 2021 payments). |
If the IRS already changed a credit and sent a notice, use the adjusted figures when preparing Form 1040-X. Do not submit a second change that duplicates the IRS adjustment (IRS: Form 1040-X instructions).
An excessive income-tax refund claim can bring a 20% penalty on the excessive amount unless you show reasonable cause (26 U.S.C. § 6676).
Did I also need Form 8843 for that year?
If you excluded days as an exempt student, teacher, or trainee, file Form 8843 for that year. Students complete Parts I and III; teachers and trainees complete Parts I and II. Attach it to the income tax return if you file one; if no return is required, send it separately (IRS: Form 8843).
Form 8843 is due by the Form 1040-NR deadline: normally April 15 for a calendar-year worker with wages subject to US income-tax withholding, or June 15 without such wages, including a standalone Form 8843. If it was late, check the filing-year instructions. The current form and Publication 519 limit loss of excluded days for late filing to athletes and medical-condition claims, while the IRS substantial-presence page states a broader warning. Filing it does not itself make wages tax-free or turn a resident into a nonresident.
Can I file Form 1040-NR and the correction electronically?
Form 1040-NR can be filed electronically, and Form 1040-X can generally be filed electronically for the current or two prior tax periods when the available filing method supports the return. Older amendments must be mailed; an original prior-year paper return may also require a paper amendment under the IRS's current processing rules (IRS: Form 1040-NR instructions; IRS: amended return questions).
Electronic filing of Form 1040-X requires the full form and all necessary corrected schedules. Paper filing has special abbreviated Form 1040-X entries when changing between resident and nonresident returns. Check the IRS instructions for the year being corrected and the current submission rules before filing (IRS: Form 1040-X instructions).
My F-1, OPT, or J-1 pay had Social Security and Medicare withheld. Was it exempt?
Wages for authorized work by a nonresident in F-1, J-1, M-1, or Q-1 status are generally exempt from Social Security and Medicare tax when the work carries out the purpose of admission. This can include J-1 teachers, researchers, trainees, and other exchange visitors as well as students. The exemption does not follow from the visa alone: tax residence, work authorization, the kind of work, and any status change matter (IRS: aliens employed in the US; IRS: foreign student liability).
| Situation | Payroll result to check |
|---|---|
| Nonresident F-1, J-1, M-1, or Q-1 worker doing authorized, qualifying work, including OPT or J-1 exchange-visitor work | Wages may be exempt from Social Security and Medicare tax. |
| Student who became a resident alien | The visa-based exemption generally ends; a separate student exemption may apply to qualifying work for the school. |
| Worker covered by a totalization agreement | A certificate of coverage from the home country's social security agency may support an exemption; give it to the US employer (IRS: totalization agreements). |
| Worker who switched to a nonexempt visa status | The visa-based exemption ends for work performed after the change. |
| Work outside the visa's permitted purpose, or dependent status | The visa-based exemption generally does not apply. |
Check each pay period if status or eligibility changed during the year. Federal income tax withholding on a W-2 is a different item and is reconciled on the income tax return. An income-tax election to treat a nonresident spouse as a resident does not by itself end the visa-based payroll exemption. A treaty tie-breaker can make you a nonresident for income tax while leaving you a resident for the visa-based payroll test; do not assume it creates a payroll refund (IRS: nonresident spouse; IRS: treaty residence; 26 U.S.C. § 3121(b)(19)).
How do I ask my employer for a refund if it withheld those taxes?
Ask the employer that withheld Social Security or Medicare tax to refund the amount withheld in error. If the employer will not give a full refund, claim it from the IRS on Form 843 with supporting records; this is separate from Form 1040-X (IRS: foreign student liability).
| Gather for the claim | Why it matters |
|---|---|
| W-2 and pay statements | Show the withheld amount and which pay periods were eligible. |
| Visa, I-94, and I-20 or DS-2019 | Support status and dates. |
| Work authorization, including an OPT employment authorization document when applicable | Supports the kind and period of work. |
| Employer refund statement, or your statement or Form 8316 if you cannot get one | Shows what the employer repaid or why it did not. |
The IRS document list in Publication 519 gives the attachments and the mailing address for Form 843. Keep a copy of the request to the employer and any reply. A payroll-tax refund claim is generally due within three years after the employment-tax return was filed or two years after the tax was paid, whichever is later; if filed or paid before April 15 of the next year, the law generally treats that date as April 15. Do not use your Form 1040 filing date (IRS: Form 843 instructions; 26 U.S.C. § 6511; § 6513(c)). Form 843 is not the way to reclaim Additional Medicare Tax withheld in error; Publication 519 directs that issue to the income tax return and Form 8959.
Might I need to amend the state return too?
Yes, if the corrected federal income, filing status, deductions, or credits change a state return, review that state's amendment rules. The IRS warns that changing a federal return may also require a state change (IRS: Form 1040-X instructions).
State residence and filing rules vary. Keep the original state return, the corrected federal return, state withholding records, and any state notice; then check the state where you filed or worked. A federal nonresident classification alone does not settle state tax residence.
Did filing the wrong form hide a treaty benefit I could claim?
Possibly. A corrected Form 1040-NR can report qualifying treaty-exempt income on Schedule OI. If you claim a treaty tie-breaker to be treated as a nonresident for income tax, file Form 8833 with Form 1040-NR; other treaty positions may also require it. Failure to disclose a required position can bring a $1,000 penalty. The treaty, your country of residence, the type of income, and its time limits decide whether a benefit applies (IRS: treaty residence; IRS: Form 8833; IRS: Form 1040-NR instructions).
Look for a treaty article covering your wages, scholarship, or other income, and gather Forms W-2 and 1042-S plus any withholding certificate. A treaty may also affect a deduction: eligible students and business apprentices under the US–India treaty may claim the standard deduction on Form 1040-NR (IRS: Form 1040-NR instructions). A treaty benefit is not automatic from the visa or from filing Form 1040-NR. The IRS instructions describe how treaty-exempt wages may be reported even when the employer withheld tax on them; check the treaty and the filing-year instructions before changing income or withholding (IRS: Form 1040-NR instructions).
Example
Illustrative US dollar amounts: An F-1 student who remained a nonresident filed Form 1040 showing $40,000 of US wages and a $1,000 education credit. The W-2 shows $2,480 of Social Security tax and $580 of Medicare tax withheld from authorized OPT wages: $3,060 total (IRS: withholding rates). The student prepares that year's Form 1040-NR, removes the ineligible education credit, and files Form 1040-X with Form 8843 if the student's days were excluded. The student separately asks the employer to refund the payroll tax; if the employer does not, the student reviews a Form 843 claim with the required supporting records. The final income tax balance and payroll refund depend on the actual records and eligibility.
Different for you?
- Your US tax residence began or changed during the year: use First year as a US tax resident to determine the correct return and period of residence.
- Your corrected return includes Form 1099-NEC or LLC income: see Nonresident return for business income for that income's filing rules.
- Your immigration application raises a tax-record question: see Tax returns for immigration applications; tax correction does not resolve immigration consequences, which call for immigration counsel.
- Your resident return also reported foreign income: see Foreign income on a US return to review the years in which you were a resident.
- Several years, a treaty position, a disputed credit, or an unrefunded payroll claim are involved: gather visas, travel dates, original returns, W-2s, Forms 1042-S, pay statements, and IRS or employer notices for individual tax help.
Figures on this page
| Figure | Value | Source |
|---|---|---|
| Added income tax threshold for shorter IRS notice payment period If added tax on Form 1040-X is at least this amount, payment is due within 10 business days after the notice and demand; otherwise it is due within 21 calendar days | $100,000 | IRS: Instructions for Form 1040-X Checked |
| General monthly failure-to-pay penalty rate Of unpaid tax for each month or part month the tax remains unpaid; special rates can apply in some cases | 0.5% | IRS: Failure to pay penalty Checked |
| General maximum failure-to-pay penalty rate Maximum percentage of unpaid tax | 25% | IRS: Failure to pay penalty Checked |
| Penalty on excessive income or employment tax refund claim Share of excessive claim unless the claimant shows reasonable cause | 20% | U.S. Code: 26 U.S.C. § 6676 Checked |
| Penalty for not disclosing a treaty-based return position Per failure, under section 6712; applies to taxpayers other than C corporations. | $1,000 | IRS: Form 8833 (Rev. December 2022) Checked |
Primary sources
- IRS: Topic 851, Resident and nonresident aliens
- IRS: Substantial presence test
- IRS: Closer connection exception
- IRS: Exempt individual, who is a student
- IRS: Exempt individuals, teachers and trainees
- IRS: Nonresident spouse election
- IRS: Instructions for Form 1040-X
- IRS: Form 8843 and instructions
- IRS: Instructions for Form 1040-NR
- IRS: Amended return frequently asked questions
- IRS: Education credits questions and answers
- IRS: Recovery Rebate Credit correction questions
- IRS: Recovery Rebate Credit eligibility fact sheet
- IRS: Recovery Rebate Credit eligibility for 2021
- IRS: Foreign student liability for Social Security and Medicare taxes
- IRS: Aliens employed in the US, Social Security taxes
- IRS: Instructions for Form 843
- IRS: Failure to pay penalty
- IRS: Form 8833
- IRS: Social Security and Medicare withholding rates
- IRS: Totalization agreements
- IRS: Publication 519, U.S. Tax Guide for Aliens
- U.S. Code: 26 U.S.C. § 6511
- U.S. Code: 26 U.S.C. § 6513
- U.S. Code: 26 U.S.C. § 6013
- IRS: Instructions for Form 8857
- IRS: Collection period
- IRS: Publication 901, U.S. Tax Treaties
- U.S. Code: 26 U.S.C. § 24
- U.S. Code: 26 U.S.C. § 6676
About this guide
Edited and reviewed by Di Lu, CPA on . It explains general rules for the tax year shown. It is not advice for your situation.
Changes
- : First published.