The physical presence test requires 330 full days in a foreign country or countries in a qualifying 12-month period. “Outside the US” alone is insufficient: international-water travel and special transit rules matter. Check foreign tax home and eligible earnings separately from the day count.
This guide walks through the IRS’s actual counting rules for the physical presence test — one of two ways to qualify for the FEIE, alongside the separate bona fide residence test — and the mistakes that most often trip up freelancers. It draws directly on the IRS’s published guidance on the physical presence test and IRS Publication 54. That guidance is cross-checked here against how expat tax preparers describe the same rules in practice.
As of August 2026, the underlying test has not changed. The maximum FEIE amount for the 2026 tax year is $132,900 per qualifying person. Even so, it is worth double-checking current guidance on the IRS’s foreign earned income exclusion page before filing.

What the Physical Presence Test Actually Requires
To start, according to the IRS, you meet the physical presence test if you are present in a foreign country for 330 full days. That window is any 12 consecutive months that includes some part of the tax year at issue. Those 330 days do not need to be consecutive.
You can count time spent abroad for any reason, including vacation. The main condition is that your tax home sits in a foreign country. The IRS adds one exception: days in a foreign country in violation of US law do not count, and income earned there during that period does not qualify as foreign earned income.
You also get to choose whichever 12-month window produces the largest exclusion. That window does not have to match the calendar year. It can start on any day of the month, and windows can overlap. Picking the right window is one of the most underused parts of the test.
Why “Full Day” Trips People Up
The IRS defines a full day as a complete 24-hour period, midnight to midnight, spent entirely inside a foreign country. If you land in Lisbon at 2 p.m., the hours before midnight do not count. Your first full day is the next calendar day.
Do not delete every departure day automatically. The IRS distinguishes travel to or from the US from travel between foreign countries. Under its change-of-location rule, a foreign-to-foreign journey lasting less than 24 hours can preserve full days. Classify the complete itinerary before applying a midnight-to-midnight count.
Record actual departure and arrival times, including the local dates and any date-line crossing. A planned ticket is supporting evidence, but a delay can change the actual journey. Mark uncertain travel days for review rather than counting every date on which a passport was stamped.
Flight Days: What Counts as a Foreign Day
One rule the boarding-pass math often misses: per the IRS, time spent on or over international waters while leaving or returning to the US does not count as time in a foreign country. The table below applies the IRS wording to common travel days.
| Situation | Counts toward 330? |
|---|---|
| Full midnight-to-midnight day in a foreign country | Yes |
| Day you land abroad mid-afternoon | No (not a full day) |
| Departure from a foreign country | Depends on the journey: apply the foreign-to-foreign change-of-location rule where relevant. |
| Day spent in the US, even a few hours | No |
| Connection between two non-US points with under 24 hours in the US | Not treated as US presence, but not foreign time either |
| Time over international waters on a trip to or from the US | Not foreign time |
Quick checklist: log arrival and departure times, mark every US day, pick the best 12-month window, and keep boarding passes for the same period. Departure-day classification corrected on 8 November 2026 using the linked IRS guidance.
The Mistakes That Cost Nomads the Exclusion
The most common failure point is a single unplanned US trip, for a family emergency or a wedding, that pushes total US days over the line. Because the 330-day threshold is fixed, the IRS treats a bereavement trip the same as a vacation for counting purposes. There is no general exception simply because the trip was for a family emergency, wedding, illness, or vacation. The IRS does allow a separate waiver of the minimum time requirement for someone who must leave a foreign country because of war, civil unrest, or similar adverse conditions, but that waiver is unrelated to personal circumstances and applies only to the specific countries and date ranges the IRS designates each year.
Also, a second common mistake involves US connections. If you are in transit between two points outside the US and are physically in the US for less than 24 hours, the IRS says you are not treated as present in the US. But the IRS also says that time counts as travel outside any foreign country, not as foreign time. Under the IRS’s change-of-location rule, travel that is not within a foreign country and takes 24 hours or more costs you full days, while shorter trips lose none. It is the time physically spent in the US, and the total length of the non-foreign stretch, that matter, not the label on the connection.
A longer stop in the US can break the transit exception and count as US presence for the test instead. That distinction surprises nomads who assume all layovers are automatically free, so it is worth recording actual arrival and departure times rather than treating every US connection the same way.
A third mistake is applying the wrong 12-month window. Since the window is flexible, sticking rigidly to a calendar year can make someone appear to fail. A different 12-month period might have passed comfortably instead.
What a Miscounted Test Actually Costs You
Failure of one proposed period does not determine the final tax bill. Check another valid period, bona fide residence and any applicable waiver. If FEIE is unavailable, eligible foreign tax credits and other return items can still reduce income tax. The exclusion amount itself is not the additional tax owed.
Because the stakes are that high, treating day-counting as an afterthought is a costly habit to keep. A single overlooked US layover or an extra week home for a family event is a small event in the moment. On a tax return, though, it can be the difference between a full exclusion and none at all.
How to Track Your Days So the Math Holds Up
Keep a log of location, actual travel times, proposed qualifying treatment and evidence references. Reconcile tickets with actual arrivals and flag US connections and long non-foreign journeys. Test your spreadsheet against the IRS travel examples before trusting its annual total.
The IRS does not publish an official day-counting spreadsheet, so most nomads build their own. Whatever tool you use, the midnight-to-midnight rule has to be applied by hand or by a formula you wrote and tested, because many travel apps count any day you touched a country as a full day.
However, no app files your taxes for you, and none apply IRS rules perfectly out of the box. Treat any app’s day count as a draft to double-check, not a final answer. Updating the log within a day or two of each border crossing is the habit most likely to prevent a costly miscount.
Physical Presence Test vs. Other Tax Rules
For clarity, it helps to separate the physical presence test from two rules nomads often mix up with it. The 330-day test is specifically about qualifying for the Foreign Earned Income Exclusion.
That is different from the 183-day rule. Many countries use that separate rule to decide tax residency instead, a topic our guide to digital nomad tax residency covers on its own.
Meeting this test also does not exempt self-employment tax. Freelancers still owe that portion even with a full FEIE exclusion, a distinction covered in our self-employment tax guide. Because tax situations vary by citizenship and filing status, treat this guide as a starting point, not a substitute for a qualified expat tax preparer.
As a practical starting point, build a day-count log now, even mid-year, by working backward through boarding passes and passport stamps. That beats trying to reconstruct a year of travel from memory next April.

Frequently Asked Questions
Do weekends and holidays count toward the 330 days?
Yes, in fact. The physical presence test counts any full day spent in a foreign country toward the 330-day total, regardless of whether it was a workday, weekend, or holiday. The test cares about physical location for each full 24-hour period, not what you were doing that day.
What happens if I fall just short of 330 days?
Falling short, even by a single day, means you do not qualify for the exclusion under this test for that period. Some nomads instead qualify under the bona fide residence test, which has different requirements. That option is worth discussing with a tax preparer if you expect to land close to the 330-day line.
Can I use a different 12-month period than the calendar year?
Yes. The period must contain 12 consecutive months and include part of the claimed tax year. After identifying a passing period, calculate the exclusion for qualifying days in that tax year. Passing the test does not always award the full annual maximum.
Related Reads
- US Digital Nomad Taxes 2026: How FEIE Really Works — the broader FEIE overview this day-counting guide builds on.
- FEIE vs Foreign Tax Credit: When the Credit Wins in 2026 — what to consider if you fall short of 330 days or earn in a higher-tax country.
- US Estimated Taxes for Digital Nomads: 2026 Deadlines & Penalties — what to do about quarterly payments once your exclusion is figured out.
- FBAR for Digital Nomads: Do You Need to File in 2026? — another filing requirement that runs alongside the FEIE for many nomads.
Sources
- Internal Revenue Service — Physical Presence Test (official)
- Internal Revenue Service — Figuring the Foreign Earned Income Exclusion (official)
- Internal Revenue Service — Publication 54, Tax Guide for U.S. Citizens and Resident Aliens Abroad (official)
- Internal Revenue Service — Instructions for Form 2555, waiver of time requirements for war, civil unrest, or similar adverse conditions (official)
- 2026 exclusion amount of $132,900: IRS Revenue Procedure 2025-32 (inflation adjustments for tax year 2026)




