Edge cases · Partial days

Tax Residency Edge Cases: Do Layovers, Partial Days & the Midnight Rule Count?

Whether a layover counts as day tax residency depends on the rule. New York counts any part of a day; the IRS and UK midnight rule are kinder. Full guide.

10 min read

In most jurisdictions, a layover or a partial day does count as a full day of presence, the common standard is that any part of a day spent in a place is a day. The big exceptions are the UK, which uses a midnight rule (you only count a day if you're present at midnight), and a narrow IRS carve-out for travelers merely transiting between two foreign points. Because the rules differ, the same trip can count as zero, one, or two days depending on which country is asking.

These edge cases matter because day-counting tests are won and lost at the margins. Crossing a threshold by a single day can flip you from non-resident to resident, and most of those marginal days are travel days, layovers, and arrivals just before or after midnight. This guide walks through how the major regimes treat partial days, and where the traps hide.

Two philosophies: 'any part of a day' vs the midnight rule

Almost every day-counting test falls into one of two camps. Understanding which camp a country is in tells you immediately how to treat your travel days.

  • 'Any part of a day', if you set foot in the jurisdiction for any portion of a calendar day, it counts as a full day. Used by New York, California, most US states, the US substantial presence test, Canada, and many others. A 9 a.m. arrival and a 9 a.m. departure the next morning is two days, not one.
  • The midnight rule, a day counts only if you are physically present at the end of the day (midnight). The clearest example is the UK Statutory Residence Test. Arrive at 2 p.m. and leave at 11 p.m. the same night and, generally, no day is counted at all.

Why it matters: under an 'any part of a day' rule, a same-day round trip can still add a day. Under a midnight rule, you can spend a full working day in-country and count zero, as long as you're gone before midnight.

Do airport layovers count?

This is the single most common edge-case question, and the answer is jurisdiction-specific.

ScenarioTypical treatment
Layover where you stay airside, just changing planes (US federal SPT)Excluded, transit days where you're in the US for less than 24 hours in transit between two foreign points don't count
Layover or stopover in New York (e.g. JFK, LGA)Generally counts, NY uses an 'any part of a day' rule, though a narrow exception can apply to days spent solely traveling through the state
UK connection where you don't pass midnight in the UKGenerally doesn't count under the midnight rule; a separate transit-day rule also helps
You clear immigration, leave the airport, then fly outCounts almost everywhere, you've entered the jurisdiction
Schengen: a connecting flight where you stay airsideGenerally not an entry; clearing Schengen border control starts a counted day

The federal rule is the friendliest: for the substantial presence test, the IRS does not count a day on which you're in the United States for less than 24 hours while in transit between two places outside the country, provided you don't engage in business during the layover. New York, by contrast, counts any part of a day in the state, so a connection through a New York airport can be a New York day even when it isn't a US 'day' under federal rules. Run real numbers on either with the 183-day calculator.

The UK midnight rule (and its deeming traps)

The UK Statutory Residence Test generally counts a day only if you are in the UK at the end of that day, midnight. So the day you leave usually doesn't count, and a same-day visit often counts as nothing. That sounds generous, but two refinements catch people out:

  • The deeming rule. If you have several UK ties and a recent history of UK residence, days where you're present in the UK but leave before midnight can still be 'deemed' to count once you pass a threshold number of such days in a year. The midnight rule is not an unlimited free pass.
  • Transit days. A day spent only passing through the UK between two non-UK points can be ignored even if you're present at midnight, but only if you don't engage in activities substantially unrelated to your passage through the country (so a layover spent in meetings or working may not qualify).
  • Exceptional circumstances. Days you're stuck in the UK beyond your control (illness, a grounded flight) may be disregarded up to an annual cap.

Don't assume 'the UK uses midnight, so travel days are free.' If you're a frequent UK visitor with ties, the deeming rule can quietly convert your evening departures into counted days. Track every entry and exit.

Travel days: arrival, departure, and double-counting

The trap that costs people the most days isn't the layover, it's double-counting at both ends of a trip. Under 'any part of a day' rules, your arrival day and your departure day are each full days. Two countries can also each claim the same calendar day:

  • You fly from London to New York on the same date. The UK may not count that day (you left before midnight), but New York counts it in full. The single calendar day is a UK non-day and a New York day.
  • A red-eye that departs at 11 p.m. and lands the next morning can put you 'present' in two jurisdictions across the date line in a way neither country forgives.
  • Crossing back and forth across a state border in one day, common for commuters near NY/NJ or DC/MD/VA, can generate a counted day in each state for the same date.

The practical defense is a contemporaneous, timestamped log of every border you cross. After the fact, you'll misremember which side of midnight you were on, and an auditor's reconstruction from card swipes and cell towers will win that argument. See our snowbird tracking guide for how the day count gets reconstructed in an audit.

Pilots, yacht crew, and the perpetually mobile

People who live in transit, airline pilots and cabin crew, superyacht and merchant-marine crew, cruise staff, face the hardest version of these rules because they're rarely 'present' anywhere long enough to feel resident, yet days still accrue.

  • Layovers are working presence. A pilot's overnight layover in a city is unambiguous presence, and because crew layovers usually cross midnight, even midnight-rule countries like the UK will count them.
  • International waters aren't a tax home. Days at sea outside any country's territorial waters generally aren't counted by any single jurisdiction, but they also don't establish residence anywhere, which can leave crew with no treaty home and exposure to flag-state or domicile claims. See treaty tie-breaker rules.
  • Base and roster matter. Where your tours start and end, your home base, often anchors residence more than raw day counts, especially under aircrew-specific treaty articles.
  • The 'nowhere resident' myth. Being constantly on the move does not make you tax-resident nowhere. Your domicile and closest connections follow you until you formally establish a new home.

How to handle the edge cases in practice

You can't change how a country counts days, but you can control your records and your margin. Three habits cover almost every edge case:

  • Know each country's rule before you book. 'Any part of a day' vs midnight changes whether a same-day trip is free. Check the rule page for each jurisdiction you touch, e.g. New York or the UK.
  • Log entries and exits with times, not just dates. The midnight question and the layover question both turn on the hour, not the day.
  • Build a buffer. Treat your threshold as a few days lower than the legal limit, because a misjudged travel day or a deemed day can erase your margin.

Tax Days applies the right counting rule per jurisdiction automatically, 'any part of a day' for New York and the SPT, the midnight rule for the UK, the airside-transit exclusions where they apply, and warns you before a single travel day pushes you over. See pricing.

FAQ

Frequently asked questions

Does a layover count as a day for tax residency?

It depends on the country. For the US substantial presence test, a layover under 24 hours while in transit between two foreign points is excluded. New York and most US states count any part of a day, so a layover at a New York airport can be a New York day. The UK generally won't count it unless you're present at midnight.

Does the day I arrive and the day I leave both count?

Under 'any part of a day' rules (New York, California, the US SPT, Canada, and many others), yes, arrival and departure days are each full days. Under a midnight rule like the UK's, the departure day usually doesn't count because you're not present at the end of the day.

What is the midnight rule in tax residency?

The midnight rule counts a day only if you're physically present in the country at midnight (the end of the day). The UK Statutory Residence Test is the best-known example, though deeming rules can still count some pre-midnight departure days for frequent visitors with ties.

Can the same day count in two different countries?

Yes. Because countries use different rules and time zones, a single calendar day can be a counted day in one place and a non-day in another, or counted in both. A flight that crosses midnight or the date line can create presence in two jurisdictions for what feels like one day.

How do tax residency days work for pilots and yacht crew?

Layovers that cross midnight are counted presence even in midnight-rule countries. Days in international waters generally aren't counted anywhere, but they don't establish residence either, so domicile and home base often determine where crew are resident. Keeping a dated log of every layover and base return is essential.

Do days in transit through an airport count for the substantial presence test?

No, not if you're in the US for less than 24 hours while in transit between two places outside the United States and you don't conduct business during the layover. You can confirm with the substantial presence test calculator at /tools/substantial-presence-test-calculator.

Sources & further reading

Every rule on this page is drawn from primary sources. Verify the current law before making a residency decision.

  1. [1]Substantial Presence TestIRS
  2. [2]Publication 519, U.S. Tax Guide for AliensIRS
  3. [3]RDR3: Statutory Residence Test guidanceHMRC
  4. [4]Nonresident Audit GuidelinesNY Dept. of Taxation & Finance