Foreign Earned Income Exclusion Qualification Tracker
Introduction: Why the FEIE 330-day test is hard to track manually
If you are trying to qualify for the Foreign Earned Income Exclusion, the hardest part is often not the tax return itself but proving that your travel history fits the 330-day physical presence test. The FEIE can reduce U.S. tax on foreign-earned income, yet it only applies when your day count and your tax-home facts line up with the rules. This tracker is built for people whose work takes them back and forth across borders: employees on long assignments, consultants with client visits, founders who split time between countries, and remote workers whose travel pattern changes every few weeks. Instead of forcing you to guess from a calendar summary, it reviews the date span you enter and looks for rolling 12-month windows that satisfy the foreign-day requirement.
The FEIE test is especially easy to misread when several short trips to the United States are scattered through the year. A departure to attend a family event, a conference, or an emergency trip home can shorten more than one candidate window, even if the trip feels brief on its own. The calculator therefore accepts your full date range and each inclusive U.S. visit, then checks every possible 365-day stretch inside that range to see where the 330-day line is crossed. That makes it much easier to compare one itinerary against another before you make travel decisions or speak with a tax professional.
The result area focuses on the windows that leave the most breathing room above the statutory minimum. It shows when the 330th qualifying day arrives, points out trips that exceed your chosen trip-length tolerance, and gives you a quick sense of whether your current schedule is comfortable or precarious. In other words, the tracker does not replace tax advice, but it does translate a complicated sequence of travel dates into something you can audit, compare, and explain.
How the FEIE 330-day formula is evaluated
The heart of the FEIE calculation is a rolling day-count check inside each 365-day stretch. After subtracting U.S. presence, the number of qualifying days is computed according to the simple identity , where is the length of the window in days and represents the number of full days spent in the United States. This tracker assumes a 365-day window for simplicity, and the underlying scan is fast enough to review long travel records without making you count each day by hand.
Each U.S. visit you enter is treated as inclusive of both arrival and departure dates, which is important because a single short trip can interrupt more than one candidate FEIE window. When a visit spills beyond the edges of the evaluation range, the calculator clips it so that only the days that fall inside the tested period are counted. The prefix sum approach can be summarized as , where the sequence equals 1 for foreign days and 0 for U.S. days. Once the cumulative totals are known, the qualifying days inside a window from index to can be found with . This design keeps the interface simple while staying faithful to the FEIE physical-presence test.
Beyond counting days, the tool also inspects the pattern of U.S. visits. When you supply a maximum acceptable gapโfor example, thirty daysโit checks each U.S. stay to see if it exceeds that threshold. Long trips home are not automatically disqualifying, but they do create risk because they leave little room for unexpected travel later in the year. The tracker therefore calls attention to any stay that exceeds your tolerance so you can revisit itineraries or adjust the evaluation window.
Worked example: a consultant balancing foreign assignments and U.S. return trips
Imagine a U.S. consultant who spends most of the year moving between Singapore, Germany, and the United Arab Emirates while trying to preserve FEIE eligibility. She has one long foreign assignment, but she also plans several returns to the United States for a family event and a pair of client meetings. Rather than guessing from a single annual total, she enters the full date span she wants reviewed and adds each U.S. visit as an inclusive arrival-and-departure pair. The calculator then checks every 365-day stretch in that span and shows which window gives her the strongest physical-presence position.
What matters in a case like this is not simply how long she was abroad overall, but whether the U.S. interruptions leave at least 330 qualifying foreign days inside some rolling window. A short domestic trip early in the period may be harmless if later foreign days fill the gap, while a longer return home near the middle of the year can weaken several adjacent windows at once. That is why FEIE planning usually works best when you compare more than one window instead of assuming a calendar year tells the whole story.
If her schedule changes, she can rerun the FEIE check with a revised end date or a different set of U.S. visits and see whether the safest window shifts. The CSV export can then be used as a neat travel log to compare against passport stamps, flight confirmations, and payroll notes before she speaks with a tax professional.
Comparison table: FEIE windows that help or hurt the 330-day count
The table below compares three common FEIE planning situations: one that leaves a comfortable cushion, one that barely clears the test, and one that falls short because too many days are spent back in the United States. The exact dates matter less than the pattern. Short, infrequent U.S. returns keep the foreign-day count healthy, while a long domestic stay can drag several windows below the line.
| Scenario | Window shape | FEIE result | What it suggests |
|---|---|---|---|
| Best case | A stretch with mostly foreign days and only brief U.S. interruptions | Comfortable qualifying margin | Usually the easiest window to rely on when filing Form 2555 |
| Borderline case | A year where travel back to the United States clusters near one side of the window | Qualifies, but only by a thin margin | Worth revisiting if more travel is likely before the filing date |
| Risk case | A window that includes a long domestic visit or several overlapping returns | Does not reach 330 foreign days | Signals that a different rolling window may be needed |
When you shift the window forward or backward, you can see how quickly the FEIE picture changes. That is why the tracker highlights the strongest windows first: a taxpayer with a flexible schedule may be able to preserve the exclusion simply by changing the tested period, while someone with fixed travel plans may need to rethink departure dates or leave room for a longer foreign stay later in the year.
FEIE physical-presence limitations and assumptions
This FEIE tracker is built to test the physical presence rule, not the bona fide residence rule, so it should be read as a planning tool rather than a full eligibility determination. It evaluates a rolling 365-day window and counts the days you report in the United States against that window. If your travel crosses unusual timing boundaries, review the output carefully against the Form 2555 instructions before you treat the result as final.
The calculator also cannot confirm your foreign tax home, your long-term intent, or whether a specific trip qualifies for one of the limited U.S. presence exceptions. It does not inspect visas, employer letters, or the reason you returned home, so those details still need human judgment and recordkeeping. Keep boarding passes, passport stamps, and itinerary records together, because the day-count output is only part of the evidence needed to support an FEIE claim. And even when the window qualifies, you still have to apply the exclusion to the correct foreign-earned income for that period, which may require prorating income that straddles the beginning or end of the qualifying stretch.
How to use this Foreign Earned Income Exclusion calculator
- Enter the earliest date you had a foreign tax home for the FEIE period.
- Enter the latest date you want checked, including any planned U.S. travel that could affect the window.
- Enter the longest single U.S. trip you are comfortable allowing before the FEIE cushion starts to feel too narrow.
- Run one FEIE travel pattern, then try a second version so you can see how much the 330-day margin changes.
Arcade Mini-Game: FE Foreign Earned Income Exclusion Qualification Tracker Calibration Run
Use this quick arcade run to practice separating useful scenario inputs from common planning mistakes before you rely on the calculator output.
Start the game, then use your pointer or arrow keys to catch useful inputs and avoid bad assumptions.
| # | Window start | Window end | Foreign days | U.S. days | Cushion above 330 | Day 330 achieved |
|---|
