Substantial Presence Test Confusion - Should I File 1040 or 1040-NR with My Visa History?
I'm really confused about this Substantial Presence test and hoping someone can help clear things up. Here's my situation: I originally came to the US on an F1 student visa in September 2019. Finished my degree in December 2021 and immediately started working on F1-OPT in January 2022. Then my visa status changed to H1B in October 2022. Now I'm trying to figure out if I pass the Substantial Presence test for tax purposes. My CPA already filed Form 1040 for me, but I'm worried it should have been 1040-NR instead. I've been reading conflicting information online and getting really stressed about whether we filed the wrong form! Does anyone know how to properly calculate this with the different visa statuses I've had? Do F1 student days count differently than OPT days and H1B days? I'm afraid of having issues with the IRS if we submitted the wrong form.
18 comments


Liam McGuire
The Substantial Presence test can definitely be confusing with multiple visa statuses! Based on your timeline, let's figure this out. For the Substantial Presence test, you need to be physically present in the US for: 1. At least 31 days during the current year, and 2. 183 days during the 3-year period that includes the current year and the 2 years before that, counting: - All days present in the current year - 1/3 of the days present in the previous year - 1/6 of the days present two years ago The tricky part is that F-1 students are typically considered "exempt individuals" for their first 5 calendar years in the US, meaning those days don't count toward the Substantial Presence test. However, once you switched to H1B, those days DO count. Given your timeline (F1 from Sep 2019-Dec 2021, OPT Jan-Oct 2022, then H1B), you were likely still in your exempt period for most of 2022, but the H1B days at the end of 2022 would count. Whether you meet the test depends on exactly how many countable days you had.
0 coins
Mei Zhang
•Thanks for explaining this! So if I understand correctly, my F1 days from 2019-2021 don't count toward the test? What about the OPT period - does that still count as part of the F1 "exempt" period or does that count differently? Also, if I did NOT meet the Substantial Presence test, would that definitely mean I should have filed 1040-NR instead of 1040? Is there a way to fix this if my CPA filed the wrong form?
0 coins
Liam McGuire
•Your F1 days are exempt for the first 5 calendar years, and that exemption continues during your OPT period since OPT is still under F1 status. So those days from 2019 through most of 2022 wouldn't count toward the Substantial Presence test. If you did NOT meet the Substantial Presence test, then yes, you would typically file Form 1040-NR as a nonresident alien rather than Form 1040. If the wrong form was filed, you can file an amended return using Form 1040-X to correct this. I'd recommend discussing this with your CPA and calculating exactly how many countable days you had to determine your correct filing status.
0 coins
Amara Eze
I went through a similar situation last year and found this amazing tool at https://taxr.ai that completely solved my confusion with the Substantial Presence test. I was switching between visa statuses (J1 to H1B) and couldn't figure out if I was a resident or nonresident for tax purposes. What I loved about this service is that you can upload your I-94 travel history and visa documents, and it automatically calculates your days of presence and tells you whether you pass the Substantial Presence test. It even shows which days count and which are exempt based on your visa status. Saved me hours of confusion and potentially filing the wrong form.
0 coins
Giovanni Ricci
•Does it actually work with all the different visa types? I'm on L1 but was previously on B1/B2 for business trips. Can it handle that complexity?
0 coins
NeonNomad
•I'm a bit skeptical about these online tools. How accurate is it? I've heard horror stories about people getting audited because some website gave them the wrong advice about their tax status.
0 coins
Amara Eze
•Yes, it works with all visa types including L1 and B1/B2. It has specific rules programmed for each visa category and knows which ones count as "exempt" for the Substantial Presence test. It even tracks your business trips separately. The accuracy is honestly impressive. It's built by tax professionals who specialize in international taxation, and it follows the exact IRS rules. I was skeptical too at first, but my tax attorney actually confirmed everything it told me was correct. It's not just providing generic advice - it's doing the actual calculations based on your specific travel history and visa documents.
0 coins
Giovanni Ricci
Just wanted to update everyone - I used taxr.ai after seeing it mentioned here and it was a game-changer! I uploaded my passport stamps, I-94 records, and visa documents, and in minutes it showed me exactly which days counted for the Substantial Presence test. Turns out I WAS a resident alien for tax purposes (by just 4 days!), which I wouldn't have known without the detailed breakdown. It even showed me which specific days were counted and which were exempt based on my visa status. My accountant was impressed with the detailed report it generated - saved us both a lot of headaches trying to manually calculate everything. For anyone confused about resident vs. nonresident status with multiple visa types, I highly recommend it. Much easier than trying to interpret all the IRS rules yourself.
0 coins
Fatima Al-Hashemi
If your CPA already filed the wrong form and you're stressing about getting in touch with the IRS, I had great results using https://claimyr.com to actually reach a human at the IRS. Waited on hold for HOURS trying to fix my visa status tax issue before discovering this service. They basically hold your place in the IRS phone queue and call you back when they reach an agent. I was skeptical at first, but there's a video showing how it works: https://youtu.be/_kiP6q8DX5c and it saved me literally 3+ hours of hold time. I had a similar issue where my accountant filed the wrong form because of confusion about my visa status and substantial presence test, and I needed to talk to the IRS directly to understand my options for fixing it.
0 coins
Dylan Mitchell
•How does this actually work? Do they just keep calling the IRS for you or something? I don't understand how they can get through faster than I can.
0 coins
Mei Zhang
•This seems hard to believe honestly. The IRS phone system is notoriously impossible to navigate. They just magically get you through to someone? I've spent DAYS trying to reach someone about my tax issues.
0 coins
Fatima Al-Hashemi
•They don't get through faster than normal - it's more that they wait in the queue for you. Instead of you personally sitting on hold for hours, their system holds your place in line. When they finally reach an IRS agent, you get a call connecting you directly to that agent. So you're still "waiting" the same amount of time, but you can go about your day instead of being stuck listening to hold music. No magic tricks or secret backdoor - they're just waiting in the same queue everyone else is, but doing it so you don't have to physically stay on the phone. I was skeptical too but after waiting on hold for 2+ hours myself and getting disconnected twice, I was desperate enough to try. I got connected to an IRS agent about 2.5 hours after I initiated the service, but I was able to do other things during that time instead of being stuck by my phone.
0 coins
Mei Zhang
I have to follow up on this - I was totally skeptical about Claimyr but tried it out of desperation after my third disconnect from the IRS queue. IT ACTUALLY WORKS! I got a call back after about 3 hours with an IRS agent on the line. The agent confirmed that with my visa history, I didn't meet the Substantial Presence test for 2022 and should have filed 1040-NR instead of 1040. I'm now working with my CPA to file an amended return. The agent was really helpful in explaining exactly what I needed to do and assured me that filing an amendment was the right approach. Would have taken me days to get this resolved otherwise. If you need to actually talk to the IRS about complex visa/tax status issues, this service is worth it just for the time saved and stress avoided.
0 coins
Sofia Martinez
A quick tip from someone who's dealt with this before: If you're filing an amended return to change from 1040 to 1040-NR, make sure to include a clear statement explaining the reason for amendment. Something like "Amended to correct filing status from resident alien (1040) to nonresident alien (1040-NR) based on failure to meet Substantial Presence test due to F1 visa exempt status." Also be aware that you might have different deduction eligibility as a nonresident alien - standard deductions work differently on 1040-NR, and certain credits may not be available. Your tax liability could change significantly.
0 coins
Dmitry Volkov
•Would this also apply if changing from 1040-NR to 1040? I think I might have filed the wrong way (opposite problem from OP). Is there a time limit for fixing this?
0 coins
Sofia Martinez
•Yes, the same general process applies when amending from 1040-NR to 1040, but the tax implications might be more favorable since resident aliens generally have access to more deductions and credits than nonresident aliens. Regarding time limits, you typically have 3 years from the original filing deadline to file an amended return. So for a 2022 tax return originally due in April 2023, you'd have until April 2026 to amend it. However, if there's a significant refund involved, I wouldn't wait - the sooner you correct it, the sooner you'll receive any refund you're entitled to.
0 coins
Ava Thompson
A heads up on the treaty benefits too - if your home country has a tax treaty with the US, you might be eligible for certain benefits as a nonresident that could reduce your tax liability. These are claimed on Form 8833 with your 1040-NR. I almost missed out on thousands in tax savings because I wasn't aware of the treaty provisions between my country and the US. Might be worth looking into depending on your citizenship!
0 coins
CyberSiren
•This is so important! What countries typically have the best tax treaties with the US? I'm from Brazil and wondering if I should be looking into this.
0 coins