Foreign Earned Income Exclusion Qualification Tracker

JJ Ben-Joseph headshot JJ Ben-Joseph

Trips back to the United States (reduces qualifying days)

Add each period spent in the United States. Use inclusive dates. Remove an entry if it was cancelled.

Enter your travel dates to evaluate Foreign Earned Income Exclusion eligibility.
Best Physical Presence Windows
# Window start Window end Foreign days U.S. days Cushion above 330 Day 330 achieved

Why tracking Foreign Earned Income Exclusion days matters

The Foreign Earned Income Exclusion (FEIE) is one of the most consequential tools available to U.S. citizens and resident aliens living abroad. By allowing eligible taxpayers to exclude a significant portion of foreign earned income from U.S. taxation, the FEIE can unlock large reductions in annual tax bills, reduce exposure to estimated tax penalties, and simplify the coordination of foreign tax credits. Yet the statutory tests for qualifying remain strict. You must either establish bona fide residence in a foreign country or spend at least 330 full days outside the United States during any twelve-month period. For globally mobile professionals, aid workers, traveling entrepreneurs, and digital nomads whose itineraries rarely align with the calendar year, monitoring day counts becomes a logistical project in its own right. This calculator is designed to ease that burden by evaluating every possible twelve-month window between the dates you specify, subtracting U.S. travel days, and highlighting whether you satisfy the physical presence requirement or how far you fall short.

Because the FEIE depends on full days spent in foreign countries, you cannot simply subtract the duration of a project from 365 and assume the remainder qualifies. Mid-contract trips to the United States for conferences, family visits, or unexpected emergencies all interrupt the streak of qualifying days. Additionally, a qualifying twelve-month period does not need to begin on January 1. You can shift the window forward or backward to capture the most favorable stretch of travel, and you can even claim an exclusion for income earned before you hit day 330 if the window later fills in with enough foreign days. The tracker therefore accepts an entire range of dates—perhaps spanning two or three calendar years—and lets you record each visit to U.S. soil. Once you submit the information, the script scans every continuous 365-day span and records the number of foreign days to determine which windows meet or exceed the 330-day threshold.

To provide meaningful feedback, the tracker surfaces the top windows that offer the largest cushion above the statutory minimum. It also identifies the exact date on which you would hit the 330th qualifying day inside each window. That detail is especially useful for taxpayers who must decide whether to file an extension, adjust payroll withholding, or accelerate assignments. The optional “maximum gap” input gives you a quick way to flag months when you might be pushing the limits. If any single U.S. trip exceeds the threshold you set, the result panel will call it out so you know which travel plans might jeopardize qualification.

How the calculator applies the physical presence formulas

The heart of the computation is a day-by-day analysis within each 365-day stretch. After subtracting U.S. presence, the number of qualifying days is computed according to the simple identity Q=N-U, where N is the length of the window in days and U represents the number of full days spent in the United States. This tracker assumes a 365-day window for simplicity, though you can note in the limitations that leap years may extend a qualifying period to 366 days. To handle the calculations efficiently, the script constructs a prefix sum of qualifying days so that it can evaluate every potential window in linear time rather than recomputing totals from scratch. That makes it fast enough to cover multi-year assignments without lag.

Each U.S. visit you record is treated as inclusive of both arrival and departure dates, matching the IRS interpretation that any day spent on U.S. soil is disqualified unless a limited exception applies. When a visit overlaps the boundaries of the test period, the calculator trims it so that it only subtracts days within the evaluation range. The prefix sum approach can be summarized as S(k)=i=1xi, where the sequence xi 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 a to b can be found with Q=S(b)-S(a-1). This design keeps the interface simple while staying faithful to the statutory formula.

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 splitting time between three regions

Consider an American consultant who spent most of 2023 and 2024 executing projects in Singapore, Germany, and the United Arab Emirates. She established a foreign tax home on February 1, 2023 and expects to maintain it through August 31, 2024. During that span she returned to the United States for three stints: ten days in May 2023 for a family event, seventeen days over December 2023 for holidays, and twenty-eight days in June 2024 for client meetings. She wants to know which twelve-month period gives her the most cushion above 330 days so she can confidently claim the FEIE and coordinate with her tax advisor.

She enters February 1, 2023 as the earliest date and August 31, 2024 as the latest. She adds the three U.S. visits with inclusive dates and keeps the maximum gap warning at thirty days. Upon submission, the tracker generates 547 daily records—one for each day in the range—and evaluates 183 overlapping twelve-month windows. The best window runs from March 6, 2023 through March 5, 2024, capturing 344 full days abroad and only 21 U.S. days. Within that window her 330th qualifying day lands on January 29, 2024. The tool reports a fourteen-day cushion, signaling she could tolerate two unexpected weeks in the United States before losing eligibility for that specific period. It also highlights that her June 2024 trip lasted twenty-eight days, falling just below the maximum gap she set.

Armed with those results, the consultant can plan accordingly. She might choose to file an extension and wait to claim the exclusion until she has conclusively reached the 330-day mark. She could also use the CSV export to share the day counts with her accountant, who can cross-check them against travel logs and passport stamps. If she anticipates an extended stay in the United States later in 2024, she can rerun the analysis with revised dates to see how much of a cushion remains.

Comparison table: shifting windows to maintain eligibility

The following table summarizes how different twelve-month windows could affect our consultant’s ability to claim the FEIE. Each scenario assumes the same three U.S. visits but shifts the start date to illustrate the trade-offs.

Scenario Window start Window end Foreign days Cushion above 330 Comments
Best case Mar 6, 2023 Mar 5, 2024 344 14 days Includes only two short U.S. trips
Calendar 2023 Jan 1, 2023 Dec 31, 2023 332 2 days Still qualifies but leaves little slack
Late 2023 to late 2024 Oct 1, 2023 Sep 30, 2024 322 -8 days Fails without reducing future U.S. travel

By experimenting with different start dates, she can visualize when eligibility is at risk. The ability to copy results into a spreadsheet or download the CSV enables more detailed forecasting—perhaps layering in compensation schedules, home leave policies, or foreign housing cost exclusions that depend on the same day counts.

Limitations and assumptions

This tracker focuses on the physical presence test and does not attempt to determine whether you meet the bona fide residence test, which involves a more holistic examination of your ties to a foreign country. It also assumes a 365-day window; in a leap year, a twelve-month period could encompass 366 days. You can mimic that behavior by slightly extending the evaluation range and checking whether the calculator still reports a 330-day cushion. Additionally, the tool treats every day spent in the United States as fully disqualifying, even though the IRS provides limited exceptions for transit through the country or presence in international waters. Users should consult the Form 2555 instructions to determine whether any of their travel qualifies for those exceptions and adjust the input accordingly.

The calculator cannot verify whether you maintained a foreign tax home or whether you intend to return to the United States, both of which influence eligibility. Nor can it resolve questions about what constitutes a full day abroad when crossing time zones or the International Date Line. The results should therefore be treated as planning guidance rather than definitive proof. Keeping original travel records, tickets, and passports remains essential for an audit trail. Finally, the day-count analysis does not consider income allocation rules for partial years. Once you identify a qualifying window, you must still prorate the exclusion based on foreign-earned income inside the period. Even with those limitations, the tracker provides a transparent, defensible framework for managing one of the most important tax benefits available to globally mobile Americans.

Related Calculators

U.S. Naturalization Physical Presence Tracker

Calculate physical presence days, monitor continuous residence, and spot risky trips when preparing a U.S. naturalization application.

naturalization physical presence calculator us citizenship day counter n-400 trip tracker

Earned Income Tax Credit Calculator - Estimate EITC Amount

Estimate your Earned Income Tax Credit for 2023 by entering filing status, number of children, and earned income. See how the credit phases in and out as income changes.

earned income tax credit calculator eic calculator EITC 2023 tax credit estimator

QSBS Exclusion Timeline and Cap Calculator

Model holding period, lifetime caps, and tax savings from the Qualified Small Business Stock (QSBS) exclusion. Check Section 1202 eligibility and export a timeline.

qsbs calculator section 1202 exclusion qualified small business stock gain exclusion