Skip to main content
IRS Form 2555 · 330-Day Rolling Window Optimizer

330-Day Physical Presence Test Calculator

Enter your move dates and US visits to find your optimal consecutive 12-month window and exact pro-rated 2026 ($132,900) or 2027 ($137,300) FEIE limit.

Tax Year & Move Dates

US Visits & Non-Foreign Travel Days

Per IRS Pub 54, both departure and arrival travel days do NOT count as full 24-hour foreign days.

Rolling 12-Month Window Advantage: Even if you moved abroad mid-year (e.g., July 1), our engine slides every consecutive 365/366-day window across 2025–2027 to find the highest pro-rated 2026 FEIE limit allowed on Form 2555. Keep airline boarding passes and passport stamps to substantiate travel days.

Qualifies for 2026 FEIE

339 full foreign days found (9-day safety buffer above 330).

Optimal 12-month window2026-01-01 → 2026-12-31
Full foreign days in window339 / 365
Qualifying days in 2026365 / 365
2026 calendar foreign days339 days
2026 full-year FEIE cap$132,900
Your pro-rated 2026 FEIE max$132,900

Borderline on 330 Days?

If you are close to 330 days, need a Form 2350 filing extension to finish your 12-month window, or want to compare FEIE vs Form 1116 FTC, speak with our IRS Enrolled Agent.

Book Free 15-Min EA Call
HA

Updated November 29, 2026 · Reviewed by Harsh Agarwal, EA (#00158482)

How the IRS Counts 330 Full Days Under Form 2555

The Physical Presence Test is the primary way first-year expats, remote workers, and digital nomads qualify for the Foreign Earned Income Exclusion (Form 2555). Unlike the Bona Fide Residence Test — which requires living abroad for an entire January 1 to December 31 calendar year and proving foreign residency intent — the Physical Presence Test is purely mathematical: you must be physically inside one or more foreign countries for at least 330 full 24-hour days during any consecutive 12-month period, AND maintain your tax home abroad.

ScenarioCounts as Full Foreign Day?IRS Pub 54 Rule
Midnight-to-midnight inside a foreign countryYesQualifies as 1 full day (even if you cross into another foreign country directly)
Day you fly from London to New York (or vice versa)NoPartial days in the US or over international waters fail the 24-hour midnight rule
3-hour connecting layover in Miami between two foreign countriesNo (unless <24h in transit exception applies)Only direct foreign-to-foreign transit under 24 hours in US territory avoids breaking a day — document itineraries carefully
Days in Puerto Rico, USVI, or GuamNoUS territories are not foreign countries for Form 2555
Cruise ship in international waters (>24 hours)NoInternational waters and Antarctica are not foreign countries

How Sliding the 12-Month Window Saves Thousands of Dollars

Most expats mistakenly believe they must test January 1 through December 31. Suppose you moved from Chicago to Lisbon on August 1, 2026 and stayed abroad continuously through August 2027 (taking only 14 days in the US for the holidays). On a calendar-year basis, you only had ~139 foreign days in 2026 — failing the 330-day bar completely.

Instead, by filing Form 2350 to extend your 2026 return until August 2027, you can select the sliding 12-month window July 12, 2026 – July 11, 2027 (which starts up to ~20 days before you even landed abroad, since you only need 330 of 365 days inside the window!). That pushes your 2026 overlap from 153 days up to 173 days, boosting your pro-rated 2026 FEIE cap from $55,709 to $62,991! Our sliding-window optimizer above runs this exact calculation automatically across all 365 possible start dates.

Physical Presence Test vs Substantial Presence Test (Don't Confuse Them!)

Expats and foreign nationals frequently mix up two similarly named IRS day-count tests:

  • Physical Presence Test (this calculator — 330 days abroad): Used by US citizens and Green Card holders living overseas to exclude up to $132,900 (2026) / $137,300 (2027) of foreign earned income on Form 2555.
  • Substantial Presence Test (183 weighted days in the US): Used by non-US citizens (such as Canadian snowbirds or visa holders) to determine whether they have triggered US tax residency and need Form 8840 or Form 1040.
Free 2027 Expat Tax Checklist

Get the 2027 US Expat Deadlines & FEIE ($137,300) Checklist

Key IRS filing dates (April 15, June 15, Oct 15, Dec 15), 2026–2027 FEIE limits ($132,900 / $137,300), FBAR/FATCA thresholds, and PFIC red flags. Instant on-screen access plus IRS deadline alerts — unsubscribe anytime.

Frequently Asked Questions

What counts as a 'full day' under the IRS 330-day Physical Presence Test?
Under IRS Publication 54 and Form 2555 instructions, a full day is a continuous 24-hour period starting at midnight (12:00 a.m.) and ending at the following midnight spent entirely inside one or more foreign countries. Therefore, the calendar day you fly from a foreign country back to the US AND the calendar day you fly back from the US to a foreign country generally do NOT count as full foreign days.
Can I travel between multiple foreign countries and still pass the 330-day test?
Yes — digital nomads and traveling expats frequently qualify by combining full days across multiple foreign countries. However, if a flight between two foreign countries passes over international waters for 24 hours or includes a US airport layover, any calendar day spent in US territory or 24+ hours over international waters does not count as a full foreign day.
What if I moved abroad mid-year and won't hit 330 days until next year?
You can still qualify for a pro-rated FEIE in your move year using a sliding 12-month window that starts on your arrival date abroad and ends 12 months later in the following year. File IRS Form 2350 (Application for Extension of Time to File US Income Tax Return) before your filing deadline to delay filing your return until 30 days after you complete the 330-day period.
How does a rolling 12-month window affect my 2026 or 2027 FEIE maximum?
Your maximum Form 2555 exclusion is prorated by the number of days in your chosen 12-month qualifying period that fall inside that specific tax year. For example, if 200 days of your qualifying 12-month window fall in 2027, your maximum 2027 FEIE is $137,300 × (200 / 365) = $75,233 (for 2026, $132,900 × 200 / 365 = $72,822).
Are there any exceptions if I had to return to the US for an emergency or illness?
There is NO personal medical, family-emergency, or work-travel exception to the 330-day rule — even 329 full foreign days fails the Physical Presence Test automatically. The sole narrow statutory waiver (IRC §911(d)(4)) applies only when the IRS formally designates a country for war, civil unrest, or similar adverse conditions (published annually in an IRS Revenue Procedure). If you miss 330 days, evaluate the Bona Fide Residence Test or Form 1116 Foreign Tax Credits instead.
Does a day working remotely from a US visit count as foreign earned income?
No. Even if you pass the 330-day Physical Presence Test overall, wages or freelance earnings attributable to workdays physically performed inside the United States are US-source income and cannot be excluded on Form 2555. You must allocate total earned income based on foreign workdays divided by total workdays.

Official IRS References & Next Steps

Ready to Get Started?

Free 15-minute call with a licensed Enrolled Agent who specializes in your exact situation. No obligation.

Need immediate assistance? Call us at +1 (409) 916-8209