If you move between countries, the number of days you spend in each one can decide where you are tax resident. Many residence tests start with a day count, and a tax authority can ask you to prove your figures years later. A clear day log, backed by evidence, is the simplest way to track days for tax residency.
The hard part is that there is no single rule. The United States counts any part of a day. The United Kingdom counts the days you are in the country at midnight. Spain counts more than 183 days in a calendar year and can include short trips abroad. This guide explains how these rules differ, what to record and which mistakes cause the most trouble.
Key takeaways
- Countries count days in different ways: some count any part of a day, others count where you are at midnight, and some add short absences back in.
- The period also differs: calendar year, tax year, or a weighted average over several years.
- One travel day can count as a day in two countries at the same time.
- A day log is only as strong as the evidence behind it, such as boarding passes, card statements and accommodation records.
- Day counts are rarely the whole test. Homes, family, work and other ties can make you resident even with a low day count.
Why day counts matter for tax residency
Most countries use physical presence as one test of tax residence. The figure people know best is 183 days, but it is a starting point, not a universal rule. Our guide to the 183-day rule explains why falling under 183 days in a country does not by itself mean you are not resident there.
Day counts also feed into other tests. The UK uses them together with ties to the country. Treaties between countries may use them when both countries claim you as a resident. And immigration rules, such as the Schengen 90/180 limit or the presence conditions on some residence permits, use their own counts. One clean log can serve all of these purposes.
How different countries count a day
The table compares three well-documented systems. Each country has more detail and exceptions than a table can show.
| Country | What counts as a day | Period measured | Notable exceptions |
|---|---|---|---|
| United States (substantial presence test) | Any part of a day you are physically present | Current year plus a weighted share of the two prior years | Transit of less than 24 hours, regular commuters from Canada or Mexico, certain medical conditions, some visa categories |
| United Kingdom (Statutory Residence Test) | A day on which you are in the UK at the end of the day (midnight) | UK tax year, 6 April to 5 April | Qualifying transit days; a deeming rule can add days without a midnight |
| Spain | Days present in Spain, with sporadic absences counted unless you prove tax residence elsewhere | Calendar year, test is more than 183 days | Narrow carve-outs for certain unpaid cultural or humanitarian work |
The US substantial presence test
According to the IRS, a non-US citizen meets the substantial presence test if they are present in the US on at least 31 days in the current year and on at least 183 days over three years. That three-year figure counts all days in the current year, one-third of the days in the prior year and one-sixth of the days in the year before that.
Here is a simple example. Someone who spends 120 days in the US in each of three consecutive years counts 120 + 40 + 20 = 180 days for the third year, so they do not meet the test that year. With 130 days in each year, the count is 130 + 43.3 + 21.7 = 195 days, and they meet it. Any part of a day counts, so a morning arrival and a late-night departure are both full days.
The UK Statutory Residence Test
HMRC’s manual states that you spend a day in the UK if you are in the UK at the end of the day, meaning midnight. A day spent passing through can be excluded if you arrive and leave the next day as a passenger, on the way between two other countries, and do nothing substantially unrelated to the journey.
The UK also has a deeming rule. It applies if you were UK resident in at least one of the three previous tax years, have at least three UK ties in the current year, and are in the UK on more than 30 days without being there at midnight. In that case, those extra days beyond the first 30 also count. Our guide to the UK Statutory Residence Test covers the full test.
Spain’s 183-day rule
Spain’s income tax law, Article 9 of Law 35/2006, treats you as resident if you stay in Spain for more than 183 days in a calendar year. When the authority counts those days, it includes sporadic absences unless you prove tax residence in another country. Spain also treats you as resident if your main economic interests are in Spain, and it presumes residence, unless shown otherwise, if your spouse (not legally separated) and dependent minor children live there.
How to build a day log that holds up
A good log is boring and consistent. The method below works with a spreadsheet, an app or a notebook.
- Record every day, not only travel days. Write the country where you were at midnight, and every other country you were in that day.
- Log arrival and departure times. Times let you apply both the any-part-of-a-day rule and the midnight rule from the same record.
- Note the reason for unusual days. Medical delays, cancelled flights and pure transit can matter under some rules.
- Attach evidence as you go. Save the boarding pass, hotel invoice or lease reference next to the date.
- Reconcile every month. Compare the log with card statements and your calendar while the details are fresh.
- Keep the records for years. Tax authorities can look back several years, and some tests, like the US one, look at three years at once.
Evidence that supports your day count
A log on its own is a claim. Evidence turns it into a record. Use several types so that each one covers the gaps of the others.
| Evidence | What it shows | Weak spots |
|---|---|---|
| Boarding passes and e-tickets | Date and route of each flight | Do not prove you took the flight unless scanned |
| Card and bank statements | Where you spent money each day | Online purchases can show the wrong location |
| Accommodation invoices and leases | Where you slept | Long leases do not show days away |
| Phone location history | Detailed daily movement | Can be patchy or switched off |
| Border records | Official entry and exit dates | Not always available to you on request |
| Work records | Meetings, logins and client sites | Remote work rarely shows location |
Border records have changed in Europe. Since 10 April 2026, the EU’s Entry/Exit System has replaced passport stamps for non-EU short-stay visitors at the external borders of 29 European countries, so many travelers no longer get stamps to point to. Our guide to EES and ETIAS explains what the system records.
Tools for tracking days
A spreadsheet with one row per day is enough for many people. Apps that use phone location can fill the log automatically, but it is wise to check their output against tickets and statements, because location data can drift or drop out.
Nomad Layer offers a free day counter that adds up days per country across a period. One option some nomads also look at is a low-presence tax residency, such as Honduras tax residency through Próspera, which requires 7 days per year inside the zone. Low-presence programs make an accurate log more important, not less, because you may need to show both that you met the presence condition and how many days you spent elsewhere. Whether you stop being resident in a previous country always depends on that country’s own rules.
Common counting mistakes
These are the errors that tend to cause problems when an authority reviews a return.
- Counting a travel day only once. A flight from New York to London on a Tuesday evening can count as a US day (any part of a day) and, if you land before midnight, a UK day (midnight rule). Both countries can count the same date.
- Ignoring time zones. Midnight means local time where you are. A late arrival across several time zones can land on a different date than you expect.
- Treating 182 days as safe. A day count under 183 does not prevent residence if other tests, such as a home, family or center of interests, point to that country.
- Using the wrong period. The UK tax year runs from 6 April to 5 April, not January to December.
- Forgetting long layovers. Leaving an airport, or staying overnight, can turn a transit into a counted day.
- Rebuilding the log years later. A log written at the time, with evidence attached, carries more weight than one reconstructed from memory.
When two countries count you as resident
Sometimes two countries each treat you as resident under their own rules. Where a tax treaty applies, its tie-breaker test looks at your permanent home, center of vital interests, habitual abode and nationality, in that order. Day counts often matter for the habitual abode step. Our guides to tax residency ties and the perpetual traveler idea explain why being resident nowhere rarely works in practice.
Frequently asked questions
Does a travel day count as a full day for tax residency?
It depends on the country. The US counts any part of a day spent in the country. The UK counts a day only if you are in the UK at midnight, with special rules for transit and a deeming rule for some people. Other countries have their own methods.
Does an airport layover count as a day?
Often not, but the rules are narrow. The US excludes days in transit of less than 24 hours between two places outside the US. The UK excludes qualifying transit days where you leave the next day and do nothing substantially unrelated to the journey.
How long should I keep my day-count records?
There is no single answer, because look-back periods differ by country. Many people keep travel evidence for at least as long as their tax returns can be reviewed, and longer when a multi-year test like the US one applies.
Do I need to count days if I am far below 183 days?
A log is still useful. Other tests, such as the UK’s ties-based test or Spain’s center-of-interests test, can make you resident with fewer days, and immigration rules have their own limits.
Can tax authorities see my travel data?
Authorities can request information from you and may hold border records of their own. Since April 2026, the EU’s Entry/Exit System records entries and exits of non-EU short-stay visitors at most European borders.
Important: This article is general information, not tax, legal or financial advice. Rules change often and depend on your personal circumstances. Speak with a qualified professional in each relevant country before you act.
