Tools
FEIE 330-day calculator
Enter your US trips. See full foreign days, your best 12-month window, and how many US days you have left. Stored in your browser, nothing leaves your device.
The FEIE Physical Presence Test requires 330 full days in a foreign country during any period of 12 consecutive months. A full day runs from midnight to midnight, any day with US presence fails, and the 12-month window can start on any date, which means the window you pick matters. This calculator finds your best 12-month window from the trips you enter and keeps the result only in your browser.
Result is informational. Verify with your travel records before making travel or filing decisions. Border officials use their own records.
12 months ending on your reference date
365 / 330 full foreign days
US days you can still take
35 days
Window
12 Aug 2025 → 11 Aug 2026 (365 days)
Days in the US
0
Days lost to transit / partial days
0
Want this without the data entry?
This calculator checks the dates you remember. The app records the ones you forget.
DaysAbroad logs your country day by day from your phone's location, keeps multi-year history, and exports a day-by-day file your CPA can open.
Days that break your count
Enter every period you were in the US, plus any travel day you did not spend fully abroad. Every other day is treated as a full foreign day, so your list must be complete. Stored locally in your browser only.
Nothing entered yet. Add your US trips below.
Planning a trip to the US?
Enter the dates to see what the trip does to your windows.
Reference: the Physical Presence Test needs 330 full days in a foreign country during any period of 12 consecutive months. A full day runs from midnight to midnight, and any day with US presence is not a full foreign day. This tool is a planning aid, not tax advice, confirm your position with a CPA and the IRS Physical Presence Test page.
How the test works (short version)
The Physical Presence Test is a counting test. You need 330 full days outside the United States in any 12 consecutive months. Nothing else about your life matters for this test, not your visa, not your residence permit, not where your family lives.
The common mistake is to treat it as a tax-year rule. It is not. Because the window can start on any date, two people with identical travel can get opposite answers depending on which 12 months they choose. That is why this tool searches every possible start date instead of only checking the calendar year.
The second common mistake is the full-day rule. A day is only foreign if you spent all of it, midnight to midnight, outside the US. Arrival and departure days usually do not count. Four US trips of one week each can quietly cost you more than 30 days.
If you fail the Physical Presence Test, the Bona Fide Residence Test is the other route to the FEIE. It is an evidence test, not a day count, and it needs an uninterrupted period that includes a full tax year.
Physical Presence vs Bona Fide Residence
Both tests lead to the same exclusion. You need only one of them.
| Physical Presence Test | Bona Fide Residence Test | |
|---|---|---|
| What it measures | A day count | Facts, intent, and evidence |
| Threshold | 330 full days abroad | No day threshold |
| Period | Any 12 consecutive months | An uninterrupted period that includes a full tax year |
| Who can use it | US citizens and resident aliens | US citizens, and resident aliens from a US tax treaty country |
| Effect of US trips | Every US day reduces the count directly | A trip home does not automatically break residence |
| Main evidence | Travel log, passport stamps, boarding passes | Residence permit, lease, local bank, healthcare, tax registration |
| Best for | People who move often and rarely visit the US | People settled in one country with a full-year life there |
If your travel is close to the 330-day line, the Bona Fide Residence Test is worth discussing with your CPA before you file.
What to keep as evidence
A day count is only as good as the record behind it. If the IRS asks, you want boarding passes, passport stamps, a lease or residence permit, and a day-by-day location record that matches your return. Reconstructing three years of travel from memory and photos is the part people regret.
FEIE calculator FAQ
What exactly is the 330-day rule?
To qualify for the Foreign Earned Income Exclusion under the Physical Presence Test, you must be physically present in a foreign country or countries for at least 330 full days during any period of 12 consecutive months. The 12-month period can start on any day, it is not tied to the tax year.
What counts as a "full day"?
A full day is a complete 24-hour period that runs from midnight to midnight. If you were in the United States for any part of a calendar day, that day is not a full day abroad. The day you fly out of the US and the day you fly back both usually fail the full-day test.
What about a short layover in a US airport?
There is an in-transit exception: if you pass through the US for less than 24 hours while travelling between two foreign points, that time is generally not treated as US presence. This calculator does not model the exception, so it gives the conservative answer. If a short US layover decides your count, ask your CPA.
Do flights over international waters count?
Travel time between two foreign countries counts as foreign time only if the trip does not pass over the US. If you travel over international waters and the trip takes 24 hours or more, those days do not count as full days in a foreign country. A crossing under 24 hours does not break the day, so an ordinary long-haul flight still counts. Only enter the long ones as transit days here.
Is this the same as the Bona Fide Residence Test?
No. The Bona Fide Residence Test is a separate route to the FEIE. It asks whether you were a bona fide resident of a foreign country for an uninterrupted period that includes a full tax year, and it is decided on facts and evidence, not a day count. This calculator only checks the Physical Presence Test.
Does the FEIE cover all my income?
No. The Foreign Earned Income Exclusion applies to foreign earned income, pay for services you perform abroad. It does not cover investment income, capital gains, pensions, or US-source income. Talk to a CPA about your specific mix.
Is the data I enter sent anywhere?
No. Everything stays in your browser localStorage. Nothing is sent to DaysAbroad servers or anywhere else.