XpatSet up your situation

IRS — Form 2555 (2026), lines 16, 18 and 37 to 40: the 12-month period, the trips and the exclusion by days

U.S. federal · published by irs.gov · Xpat's copy from Dec 4, 2026 · Covers tax year 2026 · checked for changes on Dec 4, 2026

What Xpat takes from it

Physical presence test: 330 full days

You meet the physical presence test for a tax year when you are in a foreign country or countries for at least 330 full days during some period of 12 consecutive months that includes part of that year. A full day is 24 hours from midnight to midnight spent in a foreign country or countries: time in the U.S. and time on or over international waters does not count, so the days you travel to or from the U.S. are usually not full days, and travel between countries that keeps you outside any country for 24 hours or more loses those days too. Separate stays are added up, and the 12 months can start on any day: you choose the period that gives the greatest exclusion. The exclusion's maximum is then taken in proportion to the days of that period that fall in the tax year (Form 2555, lines 37 to 40). The minimum can be waived for a person with a tax home in a foreign country who had to leave a country the IRS lists for war, civil unrest or similar adverse conditions, was there on or before the date the waiver starts and could reasonably have met the test otherwise; only the days actually spent there count.

Checked Dec 4, 2026

Xpat's days counter Simplified

Xpat counts the full days in a foreign country from the trips you enter: every day from the day you leave the country you live in to the day you are back there, both included, is not a full day in a foreign country, and the days of a trip to the U.S. are days in the U.S. It tries every 12-month period that includes part of the tax year, keeps those with at least 330 full days, and shows the one with the most days in the tax year, which gives the largest maximum exclusion. For the streamlined procedures it counts, for each year the non-residency test looks at, the full days outside the U.S. in that calendar year.

Xpat uses a simpler version of this rule. The full rule depends on details Xpat doesn't ask about.

Indicative. Days you do not enter count as full days in a foreign country, and the days before you moved outside the U.S., or from the day you moved back, as days in the U.S. Xpat counts both ends of every trip as lost days, so it does not apply the IRS exception for a flight that passes over a foreign country before midnight of the day you leave the U.S.: the count can only be too low, by at most one day a trip. A stop in the U.S. of less than 24 hours between two places outside it is not entered as a trip. Not modelled: the tax home test, the waiver for adverse conditions, days in a country in violation of U.S. law, and the bona fide residence test. Whether you had a U.S. abode is your answer, not a count.

Checked Dec 4, 2026

Xpat fetches every source again each month to spot changes, keeps each edition it reads, and re-reads each rule against its sources at least once a quarter. Use the tools to see how these rules apply to you: Taxes, Invest.