Filing Taxes When Married to a Non-US Citizen: Resident vs Nonresident Alien Status
I got married in September 2023 to my wife who's from Brazil. As a US citizen married to a non-citizen, I'm completely lost on how to handle our taxes for this year. I have several questions I hope someone can help with: Does my wife qualify as a resident alien or a nonresident alien for tax purposes? Am I allowed to claim her as a dependent on my return? Would filing jointly be the best option for us? My wife is Brazilian and we're currently going through the marriage-based green card process. She's been living in the US for about 6 years now. Initially she was here on a tourist visa, then switched to an F1 student visa. Her F1 visa expired on January 15, 2024. Throughout her time in the US, she hasn't had any taxable income. I'm trying to figure out what to expect when filing our 2024 taxes. Some specific visa information: Her tourist visa (B1/B2) was issued March 22, 2017 and expires March 20, 2027. Her F1 student visa was issued February 12, 2020 and expired January 15, 2024. According to her I-94, her most recent arrival was August 23, 2021, with F1 as the class of admission and D/S as the admit until date. I've read something about the 183-day rule to qualify as a resident alien, but calculating this is confusing me. From what I understand, days on a tourist visa DO count toward this total, but days on an F1 visa DON'T count. Is that right? Her I-94 has multiple entries and exits since 2018, and it doesn't always specify which visa was used for each one. I only know her first entry was on a tourist visa and her most recent was on her F1. Do I really need to count every single day she's been in the US over the past 6 years? Or is there an easier way to determine her tax status? This seems extremely complicated! Any advice would be hugely appreciated!
27 comments

Joy Olmedo
This area of tax law can definitely be confusing! Let me help clarify some things for you. For your wife's tax residency status, you're right about the 183-day rule, but it's actually more nuanced. There's something called the "Substantial Presence Test" which determines if someone is a resident alien for tax purposes. However, most F1 visa holders are considered "exempt individuals" for the first 5 calendar years they're in the US, meaning those days don't count toward the substantial presence test. Since your wife has been here 6 years total with some time on B1/B2 and then F1, we'd need to determine if she passes the substantial presence test by counting her B1/B2 days and potentially her F1 days from year 6 onward. Regarding claiming her as a dependent - if she's your spouse, you generally can't claim her as a dependent regardless of her alien status. Spouses are never dependents. For filing status, if your wife is deemed a nonresident alien, you normally can't file jointly UNLESS you make what's called a "Section 6013(g) election" to treat her as a resident for tax purposes. If she qualifies as a resident alien already, then you can file jointly without making this special election.
0 coins
Kingston Bellamy
AuthorThis is super helpful, thank you! I'm still confused about the Substantial Presence Test though. How exactly do I calculate it? Do I literally need to count every day she was in the US on her tourist visa? Also, since she's been here for 6 years total (some on B1/B2, some on F1), does that mean her F1 days in the 6th year DO count toward the test?
0 coins
Joy Olmedo
For the Substantial Presence Test, you need to be physically present in the US for at least 31 days during the current year AND 183 days during a 3-year period that includes the current year and the 2 years immediately before. But there's a weighted formula: count all days in the current year, 1/3 of days in the first preceding year, and 1/6 of days in the second preceding year. Yes, for F1 visa holders, after the 5-calendar-year exemption period, their days DO start counting toward the test. So if she's been here for 6 years and some of that was on F1, then her F1 days in the 6th year would count. You don't need to count every single day from all 6 years - just focus on the 3-year calculation with the weighted formula I mentioned.
0 coins
Isaiah Cross
After struggling with almost the exact same situation last year, I found this amazing service called taxr.ai (https://taxr.ai) that completely saved me. My husband is from Thailand on an F1 that expired last year, and we were confused about resident vs. nonresident status too. What's great about taxr.ai is you can upload your I-94 travel history and any visa documents, and their AI analyzes everything to determine the exact tax status based on the substantial presence test. It even calculated which days counted toward the 183-day requirement and which didn't. They explained that my husband's days on F1 didn't count for the first 5 calendar years but then started counting in year 6, which sounds similar to your situation. The service also helped us figure out whether to make that Section 6013(g) election to treat him as a resident for tax purposes. Totally eliminated our confusion!
0 coins
Kiara Greene
How accurate is this service? I'm in a similar situation with my husband from Korea who's been here 4 years (mix of tourist visa and now marriage-based green card process), and I'm stressing about messing up our taxes. Does it actually help with the forms too or just tell you what status to use?
0 coins
Evelyn Kelly
Did you still need to talk to a tax professional after using this? My wife is from Ukraine and has been here on a mix of visas for 7 years, and last time H&R Block charged us $400 just to look at our documents and then told us we needed a "specialist" who would charge even more. Would rather not waste money again if this actually works.
0 coins
Isaiah Cross
The accuracy was spot-on based on everything I researched. It correctly identified my husband's status and explained why certain days counted and others didn't. The substantial presence test is complicated with the weighted formula, and taxr.ai broke it down day by day. It doesn't prepare your actual tax return forms, but it gives you a detailed report explaining your spouse's tax status and the best filing options based on your specific situation. The report was incredibly helpful when we prepared our return using standard tax software. No, we didn't need a tax professional after using taxr.ai. We took the report they provided and used TurboTax to file ourselves. Saved us hundreds compared to what international tax specialists charge. I've heard too many horror stories about regular tax preparers giving incorrect advice on international situations, so having that detailed analysis beforehand made us much more confident.
0 coins
Evelyn Kelly
Just wanted to update everyone - I tried taxr.ai after seeing the recommendation here and it was seriously life-changing for our tax situation. My Ukrainian wife's visa history was a complete mess with multiple entries/exits, and I was dreading trying to figure out her tax status. Uploaded all her I-94 data and visa documents, and within minutes got a detailed breakdown showing exactly which days counted toward the substantial presence test. Turns out she qualified as a resident alien for 2024, but wouldn't have qualified in 2023 - something I never would have figured out on my own with all the exemption period rules for different visa types. The report explained our filing options in plain English and even pointed out potential deductions related to her foreign status that we would have missed. Just filed our taxes yesterday using their guidance and it was the least stressful tax season we've had in years. Definitely recommend it if you're dealing with the resident vs. nonresident alien confusion.
0 coins
Paloma Clark
If you're trying to reach the IRS directly for help with your spouse's alien status, good luck with that... I spent WEEKS trying to get through to someone who could actually help with my mixed-status marriage questions. Always busy signals or disconnects after waiting for hours. Finally found Claimyr (https://claimyr.com) which got me connected to an actual IRS agent in under 15 minutes. They have this service where they basically navigate the IRS phone tree for you and get you in the callback queue, then call you when it's your turn. You can see how it works in this video: https://youtu.be/_kiP6q8DX5c The IRS agent I spoke with was able to confirm my wife's tax status based on her visa history and explained exactly how to make the 6013(g) election to file jointly even though she was technically a nonresident alien. They also sent us the specific forms we needed. Saved me countless hours of frustration and probably prevented me from filing incorrectly.
0 coins
Heather Tyson
How exactly does this work? Do they just call the IRS for you? Seems like something I could do myself, but I've literally never gotten through no matter what time of day I call.
0 coins
Raul Neal
This sounds like a scam. Why would I pay someone else to call the IRS when I can just keep trying myself? And how do they magically get through when millions of people can't? The IRS doesn't have some special line for third parties.
0 coins
Paloma Clark
They don't just call for you - their system navigates the complicated IRS phone tree and gets you in the callback queue using some kind of technology that keeps redialing when lines are busy. When they secure your spot, they connect you directly with the IRS. You're the one talking to the IRS agent, not them. I thought the same thing at first - that I could just keep trying myself. But after 23 attempts over two weeks and never getting through (either busy signals or disconnected after waiting), I was desperate. They got me connected in about 12 minutes when I'd wasted hours trying myself. It's definitely not a scam. They don't ask for any personal tax information or pretend to be the IRS. They're just solving the problem of getting through the overwhelmed phone system. I was skeptical too until I tried it and finally got my questions answered by an actual IRS representative. When you're dealing with complicated international tax situations like mixed-status marriages, sometimes you really need to speak to someone official.
0 coins
Raul Neal
I need to apologize for my skeptical comment earlier. After another week of failed attempts to reach the IRS about my wife's resident alien status (she's from the Philippines with a complicated visa history), I broke down and tried Claimyr. In less than 15 minutes, I was talking to an actual IRS representative who specialized in international tax issues. They confirmed exactly how to handle our situation - turns out we needed to file Form 8840 (Closer Connection Exception Statement) along with making the Section 6013(g) election. The agent also discovered we'd been incorrectly filing for the past two years, but said we still had time to amend those returns before any issues arose. This literally saved us from potential penalties. I'm still shocked at how quickly they got me through when I'd spent weeks getting nowhere. For anyone dealing with international spouse tax questions, being able to actually speak with an IRS expert is invaluable. Worth every penny for the hours of frustration it saved.
0 coins
Jenna Sloan
One option nobody mentioned yet - you might qualify for what's called the "First-Year Choice" election (different from the 6013(g) election others mentioned). If your wife wasn't a resident alien last year but will be this year under the substantial presence test, you may be able to use this election to treat her as a resident for part of 2024. It's kind of complicated, but basically lets you start the resident status from the first day she was present in the US during 2024. This gets super technical though and I'd definitely recommend getting professional help. I went through this with my Cambodian husband last year and even with a CPA we almost filed incorrectly.
0 coins
Kingston Bellamy
AuthorThanks for mentioning this! I had no idea there was a "First-Year Choice" option. Would this be better than the Section 6013(g) election in some cases? And does making either of these elections affect her immigration process at all? That's my biggest worry.
0 coins
Jenna Sloan
The First-Year Choice (technically called the "First-Year Election" under Section 7701(b)(4)) can be better in some situations since it only applies to the specific tax year, while the 6013(g) election continues until you revoke it or certain terminating events occur. So it gives you more flexibility year to year. Making tax elections generally doesn't affect immigration processes negatively. In fact, filing taxes properly while on a non-immigrant visa can actually help demonstrate compliance with US laws during the green card process. My husband's immigration attorney actually recommended we make the appropriate tax elections to show financial integration as part of our marriage evidence. Just make sure you attach all the required statements explaining the election to your tax return - whether you choose the First-Year Election or the 6013(g) election. Documentation is critical with these special situations.
0 coins
Christian Burns
Something important nobody's mentioned - if you do make the election to treat your non-resident alien spouse as a resident for tax purposes, you have to include her WORLDWIDE income on your US tax return, not just US source income. This can be a big deal if she has income from Brazil (investments, rental property, etc.) even if she hasn't had US income. The benefit is usually that you get to file jointly which often has better tax rates, but the tradeoff is reporting global income. We made this mistake with my Japanese wife last year... we made the 6013(g) election but didn't realize we needed to report her Japanese rental property income. Had to file an amended return.
0 coins
Sasha Reese
This is so important! My wife is from Germany and has investment accounts there - we had no idea we needed to report those when we made the election to file jointly. Also had to file foreign bank account reports (FBARs) for her accounts over $10,000. The IRS doesn't make this clear at all.
0 coins
Dmitry Ivanov
This is exactly the kind of complex situation where getting expert guidance upfront can save you major headaches later. Based on your wife's visa history - 6 years total with tourist visa initially, then F1 student visa that expired in January 2024 - you're dealing with multiple moving pieces that affect her tax status. A few key points to consider: 1. Since her F1 expired in January 2024 and you're going through the marriage-based green card process, her current status likely affects how the substantial presence test applies for 2024. 2. The fact that she's had no taxable income simplifies things somewhat, but you still need to determine her correct status to choose the right filing approach. 3. Be very careful about the worldwide income reporting requirement if you make any election to treat her as a resident - this catches a lot of people off guard. Given the complexity with mixed visa types, the 5-year F1 exemption period, and the transition to marriage-based status, I'd strongly recommend getting a definitive determination of her tax status before making any elections. The consequences of filing incorrectly with international situations can be significant, and the rules around these elections have specific timing requirements and documentation needs. Have you been able to get copies of all her I-94 entry/exit records? That's usually the starting point for any accurate substantial presence test calculation.
0 coins
Elijah Jackson
As someone who went through a very similar situation with my spouse from Mexico, I want to emphasize how important it is to get this right from the start. The substantial presence test calculation with mixed visa types is genuinely complex, and the stakes are high. One thing I learned the hard way - even though your wife has no income, you still need to be absolutely certain about her tax status before making any elections. We initially thought the 6013(g) election was a no-brainer since my husband had no income either, but it turns out there can be unexpected consequences down the road. For example, once you make the 6013(g) election, it continues for all subsequent years until you revoke it or certain events terminate it. This means if her status changes again during the green card process, you're still locked into treating her as a resident for tax purposes until you formally revoke the election. Also, don't underestimate the importance of proper documentation. The IRS requires specific statements attached to your return explaining why you're making the election and confirming you understand the obligations. Missing these requirements can invalidate the election. Given that her F1 expired in January 2024 and she's been here 6+ years, definitely focus on getting an accurate substantial presence test calculation first. That will tell you whether you even need to make an election or if she already qualifies as a resident alien naturally. The calculation might be simpler than you think once you properly account for the F1 exemption period rules.
0 coins
Lilah Brooks
This is incredibly helpful, thank you! I'm definitely starting to understand why everyone keeps emphasizing getting the substantial presence test calculation right first. The point about the 6013(g) election continuing for subsequent years is something I hadn't considered - that could definitely impact us as her status changes through the green card process. One question about the documentation requirements you mentioned - are these specific IRS forms that need to be attached, or are we talking about written statements we prepare ourselves? I want to make sure we don't miss anything critical if we do end up needing to make an election. Also, you mentioned that the calculation might be simpler than I think once the F1 exemption rules are properly applied. Since she's been here 6+ years but most of that was on F1 status, am I right in thinking that only her days in 2024 (after F1 expired) plus any earlier tourist visa days would count toward the 183-day requirement? The F1 days from years 1-5 wouldn't count at all, and F1 days from year 6 onward would start counting? I'm trying to wrap my head around whether we're looking at a clear-cut resident alien situation or if it's more borderline and we'd need to make an election.
0 coins
Oliver Fischer
You're absolutely on the right track with your understanding! Let me clarify the documentation and calculation details: For the documentation requirements, you need to attach a written statement (not a specific IRS form) to your tax return. The statement should include language like "The taxpayer and spouse elect to be treated as U.S. residents for the entire tax year pursuant to Section 6013(g)" along with both spouses' signatures and confirmation that you understand the worldwide income reporting obligations. Regarding your substantial presence test calculation - yes, you've got the concept right! For someone here 6+ years with most time on F1 status, you'd typically count: - All days on tourist/B1/B2 visa (these always count) - F1 days starting from the 6th calendar year of presence (so if she first arrived in 2018, F1 days starting in 2024 would count) - Days in 2024 after F1 expiration while I-485 is pending (these count as authorized stay) The tricky part is that "calendar year" for the 5-year exemption means you count 2018, 2019, 2020, 2021, 2022 as the first five years, so 2023 and 2024 would be years 6-7 where F1 days start counting. Given this timeline and the fact that she's been in authorized stay status for most of 2024, there's a good chance she already meets the substantial presence test naturally without needing any election. But definitely get the exact day count done to be sure!
0 coins
Aliyah Debovski
You're absolutely on the right track with understanding the F1 exemption rules! Yes, for the substantial presence test calculation, you'd only count: 1. Her days in 2024 after her F1 expired (so from January 16, 2024 onward) 2. Any tourist visa (B1/B2) days from her earlier visits 3. Her F1 days from year 6 onward (so 2024 F1 days would count, but 2019-2023 F1 days would not) Since she arrived most recently in August 2021 on F1 status, and that was likely within her 5-year exemption period, most of her recent time here wouldn't count toward the test. Regarding documentation - you typically need to attach a written statement (not a specific IRS form) to your return explaining the election. The statement should include both spouses' names, SSN/ITIN numbers, a declaration that you're making the Section 6013(g) election, and confirmation that you understand the worldwide income reporting requirement. Some tax software can generate this automatically if you indicate you're making the election. Given her visa timeline, there's a good chance she might NOT meet the substantial presence test naturally, which would make her a nonresident alien requiring the election to file jointly. But definitely get that calculation done precisely - the weighted formula for the 3-year lookback can be tricky even when you know which days count.
0 coins
Aisha Hussain
You're absolutely on the right track with understanding the F1 exemption rules! Yes, for the substantial presence test calculation, her F1 days during the first 5 calendar years (not 5 full years, but 5 calendar years) don't count at all. Then starting in the 6th calendar year, her F1 days would begin counting toward the test. So if she first arrived in 2018, her exempt period would be 2018, 2019, 2020, 2021, and 2022. Her F1 days in 2023 and 2024 would count toward the substantial presence test, plus any tourist visa days from any year. For the documentation requirements, you'd prepare written statements yourself - there isn't a specific IRS form. The statement needs to include language like "The undersigned chooses to be treated as a U.S. resident" and must be signed by both spouses. You'd also include a statement explaining that you understand both spouses will be taxed on worldwide income. The exact wording requirements are in IRS Publication 519. Given your timeline (married Sept 2023, her F1 expired Jan 2024), if she passes the substantial presence test naturally for 2024, you might not need any election at all - she'd just be a resident alien and you could file jointly normally. That would actually be the simplest outcome! The key is getting that calculation right with her specific entry/exit dates.
0 coins
Kelsey Hawkins
You're thinking about this correctly! The F1 exemption period works exactly as you described - days during years 1-5 of F1 status don't count toward the substantial presence test, but days in year 6 and beyond do start counting. For the documentation requirements, you'll need to attach a written statement to your return (not a specific IRS form) that includes: (1) a statement that you're making the Section 6013(g) election, (2) confirmation that both spouses understand they'll be taxed on worldwide income, and (3) both spouses' signatures. The IRS provides specific language requirements in Publication 519. Given your wife's timeline, here's what likely counts toward the test: - Tourist visa days from 2017-2020 (before F1): COUNT - F1 days years 1-5 (roughly 2020-2024): DON'T COUNT - F1 days in year 6 (2024 before expiration): COUNT - Authorized stay days (Jan 2024-present): COUNT If she was physically present for 31+ days in 2024 and the weighted 3-year calculation exceeds 183 days, she'd already qualify as a resident alien without needing any election. This is actually pretty likely given her long presence here, especially counting those 2024 post-F1 days. I'd strongly suggest running the actual calculation with her I-94 data before deciding on any elections - you might find she's already a resident alien naturally!
0 coins
GalaxyGlider
You're absolutely correct about how the F1 exemption period works! For someone who's been in the US for 6+ years, only years 1-5 on F1 status are exempt from the substantial presence test. So in your wife's case: - Tourist visa days from any year: COUNT toward the test - F1 days from her first 5 calendar years in the US: DO NOT count - F1 days from year 6 onward: DO count - Days after F1 expired (2024 authorized stay): DO count For the documentation, you'll need to attach a written statement to your tax return (not a specific IRS form) that includes specific language. The statement must say you're making the election under Section 6013(g), that you understand both spouses will be treated as US residents for the entire tax year, and that you'll report worldwide income. There are sample statements in IRS Publication 519. Given her timeline (6+ years with most on F1), you might actually find she already qualifies as a resident alien for 2024 without needing any election at all. The substantial presence test calculation should be your first step - count her 2024 authorized stay days, plus 1/3 of her countable 2023 days, plus 1/6 of her countable 2022 days. If that hits 183, she's automatically a resident alien. This could save you from the complications of making an election that continues into future years!
0 coins
Maya Lewis
You're absolutely on the right track with understanding the F1 exemption period! Yes, for someone who's been here 6+ years mostly on F1 status, you're correct that: - Days 1-5 on F1 status don't count toward substantial presence test - F1 days starting in year 6 DO count - Tourist visa days count from day one (no exemption) - Days in 2024 after F1 expired (authorized stay pending I-485) also count For the documentation requirements, you'll need to attach a written statement to your tax return if you make the 6013(g) election. It's not a specific IRS form, but rather a statement you prepare that includes: - Both spouses' names and SSN/ITIN - A declaration that you're making the election under Section 6013(g) - Confirmation that you understand the obligations (including worldwide income reporting) - Signatures from both spouses The tricky part with your wife's situation is determining exactly when her "6th calendar year" started for the F1 exemption calculation. Since she had some tourist visa time initially, then switched to F1, you need to count calendar years of F1 presence specifically, not total years in the US. Given the complexity of mixed visa types and the mid-2024 status change, I'd really recommend using one of the services others mentioned (like taxr.ai) to get a definitive calculation before deciding on any elections. The timing requirements are strict and you can't undo these decisions easily.
0 coins