Skip to content

FEIE Physical Presence Test Calculator

By Quinn Moran, iReside co-founder. Rules last checked against official sources on .

The short answer

To pass the IRS physical presence test for the Foreign Earned Income Exclusion you need 330 full days in foreign countries within any 12 consecutive months. A full day runs midnight to midnight, so travel days touching the US or spent over international waters do not count. Enter your US days below and the calculator searches every 12-month window for the best one.

Runs entirely in your browser. 100% private.

Days in the US, or in transit

Add every period you were in the US, in transit, or over international waters. Everything else counts as a full day abroad.

1to

Qualifies with 365 full days abroad

Best 12-month window: 2026-01-01 to 2026-12-31. 365 full days abroad, 0 not counting, against the 330 required.

35 days of leeway left

The window that qualifies you often is not the calendar year. iReside records the days automatically so the evidence exists before you need it.

iReside counts this automatically every day

The 330-day count only works if you know exactly which days you were abroad. iReside records the country you are in every day from your iPhone's location, so the evidence exists before the IRS asks for it.

Download free on the App Store$34.99/year after free trial. Cancel anytime.
iReside dashboard for 2026 showing days by country (United Arab Emirates 191 days, Spain 56 days, Germany 25 days), a Schengen Tourist tracker at 81 of 90 days used with 9 left in any 180, and a UAE Golden Visa tracker at 191 days

In the iReside app

Days by country, counted for you

The dashboard shows the days you have spent in each country this year, counted from your iPhone's location, so your time abroad is on record without a travel diary.

The rule in the IRS's own words

You must be physically present in a foreign country or countries for at least 330 full days during a 12-month period.
Source: IRS: Physical Presence Test

The statute is 26 U.S.C. § 911(d)(1)(B). The 330 days do not have to be in a row, and the 12-month period can start on any day you choose, including a day in a different tax year, as long as the 12 months are consecutive.

How days are counted: full 24-hour days

A full day is a period of 24 consecutive hours, beginning and ending at midnight.
Source: IRS: Physical Presence Test

This is the strictest day definition of any rule we cover. The US Substantial Presence Test counts any part of a day; the FEIE counts only complete days abroad. The same trip home therefore costs you more days under the FEIE than it adds under the SPT.

RuleWhat counts as a day
FEIE physical presence testOnly full 24-hour days abroad, midnight to midnight, count. (IRS, Physical Presence Test)
US Substantial Presence TestAny part of a day in the US counts as a full day. (IRS, Substantial Presence Test)
US state 183-day rules (most states)Varies by state. New York counts any part of a day; Pennsylvania counts a day as outside the state only if it is a full day, midnight to midnight; Ohio counts contact periods; many states publish no partial-day rule. (Each state's statute (see the state guide))
UK Statutory Residence TestA day counts if you are in the UK at midnight, subject to the transit exception and the deeming rule. (HMRC, RFIG20710)
Schengen 90/180The day you enter and the day you leave both count as days of stay. (Schengen Borders Code, Art. 6(1) and 6(2))

Worked examples

SituationEffect on the 330-day count
Fly Lisbon to New York on 10 June, fly back overnight on 30 June, landing 1 July22 days lost: 10 June (part in the US), 11 to 29 June (in the US), 30 June (departure day) and 1 July (began over the ocean). The other 343 days of a 365-day window can still clear 330.
Overnight flight London to Stockholm, 11pm to 5amNo full days lost: the IRS treats travel between foreign countries of under 24 hours as continuous presence.
Calendar-year count comes to 320 days because of a long March trip homeTry a window starting after the trip: from 1 April to 31 March may clear 330.

FEIE and US expat guides

Frequently asked questions

What is the FEIE physical presence test?
It is one of two ways to qualify for the Foreign Earned Income Exclusion. You must be physically present in a foreign country or countries for at least 330 full days during any period of 12 consecutive months. It is a pure day count: your intentions and the type of visa you hold do not matter.
What counts as a full day?
A period of 24 consecutive hours beginning and ending at midnight, spent in a foreign country or countries. A day you spend partly in the US is not a full day abroad, and neither is a day that starts or ends over international waters.
Do the 330 days have to be consecutive?
No. The IRS says the 330 full days do not have to be consecutive. They only have to fall within one 12-month period.
Does the 12-month period have to be the calendar year?
No. It is any 12 consecutive months and it can start on any day. People often test only the calendar year, fail, and give up, when a window starting in March or June would have qualified. The calculator above checks every window.
How many days can I spend in the US and still qualify?
At most 35 days that are not full foreign days in a 365-day window (36 if the window includes 29 February). That budget covers US visits and the travel days around them, so two trips home can use most of it.
Do flights count as days abroad?
Time over international waters is not time in a foreign country. A flight between two foreign countries that takes less than 24 hours does not cost you a day, but a US trip costs the day you leave and the day you land back, as well as every day in between.
What if I had to leave because of war or civil unrest?
The IRS can waive the minimum time if you had to leave a foreign country because of war, civil unrest or similar adverse conditions. It publishes the qualifying countries and dates each year.
What if I do not pass the physical presence test?
The bona fide residence test is the other route to the same exclusion. It does not use a day count; it asks whether you are a genuine resident of a foreign country for an uninterrupted tax year.
Is there an app that tracks the 330-day rule?
Yes. iReside logs which country you are in every day from your iPhone's location, so your days abroad are recorded as you travel instead of being rebuilt from boarding passes at tax time. It does not give tax advice.

Official sources

Track your days automatically

Stop counting manually. iReside uses GPS to log your state every day in the background. Get alerts before you hit thresholds. Generate audit-ready reports with one click.

Download free on the App Store

$34.99/year after free trial. Cancel anytime.

This calculator is for informational purposes only and does not constitute tax, legal, or financial advice. Tax residency rules are complex and vary by jurisdiction. Consult a qualified tax professional for advice specific to your situation.