GuideTax residency
The 183-day rule: how tax residency day counts work
Under the 183-day rule, you generally become tax resident in a country once you spend 183 days or more there during its counting period. In many countries that period is the calendar or tax year; in others it is any rolling 12 months. Most countries count any day of physical presence as a full day.
What is the 183-day rule?
The 183-day rule is the most common test countries use to decide whether you are a tax resident. Spend 183 days or more in a country during its counting period and it will generally treat you as resident, which usually means it can tax your worldwide income, not just what you earned locally. The number matters because 183 is just over half of 365.
The stakes are high. Tax residency reaches your salary, freelance income, dividends, capital gains and crypto disposals, wherever they arise. It can also bring filing obligations, wealth declarations, and exit taxes when you later leave. For anyone splitting the year across two or three countries, the day count is the first number that decides everything else.
Note that the 183-day rule governs tax residency, not the right to be in a country at all. Immigration limits such as the Schengen 90/180 rule run on separate clocks, and it is entirely possible to be immigration-compliant while stumbling into tax residency, or the reverse.
Is it a calendar year or any 12 months?
It depends on the country. Spain counts days within the calendar year. Portugal counts 183 days in any 12-month period. The United Kingdom uses its own Statutory Residence Test rather than a simple day count, and the United States applies a weighted three-year formula called the Substantial Presence Test. Germany works with a six-month continuous stay concept. Check the specific rule before relying on the number 183.
The distinction has teeth. Under a calendar-year rule you can reset by straddling two years: six months at the end of one year plus five at the start of the next never reaches 183 in either. Under an any-12-months rule, that same pattern crosses the threshold. Here is how five common destinations compare:
| Country | Threshold | Counting period | What else applies |
|---|---|---|---|
| Spain | 183 days | Calendar year | Economic interests and family ties can make you resident with fewer days |
| Portugal | 183 days | Any 12 months | A habitual home there can trigger residency below 183 days |
| Germany | 6-month stay | Continuous | Habitual abode: short interruptions do not break the stay |
| United Kingdom | Varies | UK tax year (6 Apr to 5 Apr) | Statutory Residence Test: ties can make you resident from as few as 16 days |
| United States | 183 weighted | 3-year formula | Substantial Presence Test: this year + 1/3 of last year + 1/6 of the year before |
Do partial days count?
In most countries, yes. Any day where you are physically present at any moment usually counts as a full day, so arrival and departure days both count. Some jurisdictions carve out exceptions, such as pure airport transit, and the United Kingdom counts days by where you are at midnight. The safe default is to assume a partial day counts until you confirm otherwise.
Watch the edge cases: a delayed flight that pushes departure past midnight can add a day, and a land-border day trip adds a full presence day in most systems. If your total for the year is anywhere near 170, these single days are worth tracking precisely.
Does 183 days automatically make me tax resident?
Not by itself, in either direction. Crossing 183 days usually makes you resident, but many countries can also claim you with fewer days through other tests, such as a permanent home, your center of vital interests, or habitual abode. Staying under 183 days is necessary in most systems but not always sufficient.
Spain, for instance, can treat you as resident if your spouse and minor children live there, regardless of your own day count. The UK Statutory Residence Test scales the day threshold down to 16 days for people with strong ties. Treat 183 as the ceiling everyone agrees on, not as a safe harbor.
Two worked examples with real dates
Spain, calendar year: two days from a very different tax bill
A German remote worker spends the spring in Valencia, from 15 January to 30 April 2026, then returns for the autumn from 1 September with a flight home booked for 14 November.
| Stay | Dates | Days |
|---|---|---|
| Spring | 15 Jan to 30 Apr 2026 | 106 (17 + 28 + 31 + 30) |
| Autumn | 1 Sep to 14 Nov 2026 | 75 (30 + 31 + 14) |
| Total in 2026 | 181 of 183 |
At 181 days she stays under the Spanish threshold. Then the 14 November flight is cancelled and she rebooks for 16 November. Those two extra days, 15 and 16 November, take her to exactly 183, and Spain can treat her as tax resident for all of 2026, with her worldwide income in scope. Because Spain counts the calendar year, the count resets on 1 January 2027; under an any-12-months rule it would not.
The US Substantial Presence Test: resident without ever hitting 183
A British consultant spends 90 days in the US in 2024, 150 days in 2025 and 120 days in 2026. No single year comes close to 183. The Substantial Presence Test still catches him, because it weighs three years together:
| Year | Days present | Weight | Counted |
|---|---|---|---|
| 2026 | 120 | x 1 | 120 |
| 2025 | 150 | x 1/3 | 50 |
| 2024 | 90 | x 1/6 | 15 |
| Total | 185 |
185 is over 183, and he was present at least 31 days in 2026, so he meets the test and is a US tax resident for 2026 unless an exception such as the closer-connection claim applies. To stay under the formula year after year, the practical ceiling is about 120 days per year. You can run your own three-year numbers in the Substantial Presence Test calculator.
Count your days before the tax office does
The free 183-day calculator totals your presence days per country and shows how close you are to the threshold.
What happens if two countries both claim me?
It happens more often than you would think: one country claims you on days, another on your permanent home or family. Where a double-tax treaty exists, its tie-breaker article resolves the conflict in a fixed order. You are resident where you have a permanent home available. If that applies in both, where your center of vital interests lies, meaning your closest personal and economic ties. If still unresolved, where you have a habitual abode, then your nationality, and finally by mutual agreement between the two tax authorities.
Two warnings. First, the tie-breaker only works if a treaty exists between the two countries. Second, winning a tie-breaker does not erase the other country's filing obligations; you may still need to file there to claim the treaty position. Documentation of your day counts is what makes that claim stick.
How do I keep evidence of my days?
When a tax authority questions your residency, the burden of proof is usually on you, and it can arrive years after the travel happened. Keep records that place you in a specific country on specific days:
- Border records: passport stamps and, in Europe, your EU Entry/Exit System log.
- Transport: boarding passes, train tickets and booking confirmations.
- Accommodation: leases, hotel invoices and utility bills.
- Daily footprint: card statements and phone records that match your claimed location.
- A day log: a dated, per-country record of where you woke up, kept as you go rather than reconstructed later.
Staydays builds that last item automatically. It logs which country you are in each day using low-power background location, keeps the history on your iPhone and private iCloud, and exports a clean report you can hand to an accountant or attach to a residency claim.
Your day log, kept automatically
Staydays counts your days per country in the background and warns you before you cross a residency threshold.
This guide is general information, not legal or tax advice. Rules change and individual circumstances differ. Confirm details with official sources or a qualified advisor.
Last updated: 2026-07-13