Practical iPhone guides
The 183-day rule: what counts as a day and how to count yours
The calendar-year count, the US substantial presence test, the UK Statutory Residence Test and the treaty rule each count days differently. See what counts, then keep a dated record you can check.
Short answer: what “the 183-day rule” usually means
There is no single 183-day rule. “183 days” is shorthand for several different tests, each with its own counting period, its own idea of what a “day” is and its own exceptions. The ones people usually mean are a plain calendar-year count, the US substantial presence test, the UK Statutory Residence Test and the 183-day condition in tax treaties.
Which one applies depends on the country and the question you are asking, so first work out which test you are facing, then count the days that test counts. This guide is a count, not tax or legal advice: reaching or missing 183 days does not settle where you are tax resident. See a qualified adviser for your own case.
The 183-day tests people mean
| Test | Window | What counts as a day | What else matters | Primary source |
|---|---|---|---|---|
| Calendar-year count | 1 January to 31 December. This is a tally, not a legal test by itself. | Whatever the rule you are checking counts. The days-in-country calculator counts each local date with recorded presence. | The US test below is applied by calendar year; the UK uses a tax year that ends on 5 April. Check which year your test uses. | IRS, Substantial Presence Test; HMRC RDR3 |
| US substantial presence test | Three years: the current year, the year before and the year before that. | Days present in the US, weighted: all days this year, one third of last year’s and one sixth of the year before. Generally any part of a day counts, with listed exceptions. | You also need at least 31 days in the current year, and the total must reach 183. The closer connection exception and treaties can change the outcome. Exact decimals matter: there is no rounding up. | IRS, Substantial Presence Test; Publication 519; 26 U.S.C. §7701(b) |
| UK Statutory Residence Test | A UK tax year (6 April to 5 April). | A day counts if you are in the UK at midnight at the end of the day, subject to HMRC’s transit and exceptional-circumstances rules. | The SRT has several tests that work together, including ties to the UK and days in the UK. 183 days is one of them, not the whole test. | HMRC RDR3, Statutory Residence Test |
| Treaty employment-income rule | Any 12-month period commencing or ending in the fiscal year concerned. | Days of presence in the other country. The treaty you rely on and the tax authority’s guidance say how a day is counted. | The OECD Model also requires that the employer is not resident in the other country and that a permanent establishment there does not bear the pay. Each treaty can differ from the Model. | OECD Model Tax Convention, Article 15(2) |
Citizenship counts are a different test again: for US naturalization, use the physical presence calculator. For UK immigration (ILR and naturalisation), absences are counted in whole days, not midnights: use the UK ILR absence calculator. Other countries have their own rules, and this guide only covers those it can source: the US, the UK and the OECD Model.
What counts as a day
United States: any part of a day
For the substantial presence test, Publication 519 treats you as present in the US on any day you are physically there at any time during the day (IRS Publication 519). The IRS lists days you do not count (IRS, Substantial Presence Test):
- days you commute to work in the US from a residence in Canada or Mexico, if you regularly commute from there;
- days you are in the US for less than 24 hours while in transit between two places outside the US;
- days you work as a crew member of a foreign vessel;
- days you could not leave because of a medical condition that developed while you were in the US;
- days you are an exempt individual.
Excluding exempt-individual or medical-condition days involves filing Form 8843; see the calculator’s notes on days that are not counted.
United Kingdom: present at midnight
For the UK Statutory Residence Test, a day counts if you are in the UK at the end of the day, which is midnight (HMRC RDR3). A day on which you are in the UK for part of the day but not at midnight does not count on this basis. HMRC’s guidance has its own rules for passing through the UK in transit and for days spent here because of exceptional circumstances beyond your control. Read RDR3 for the conditions before leaving any day out. To count UK midnight days by tax year from your own dates, use the UK statutory residence test day counter.
Travel days can count in two countries
Under an “any part of a day” rule, a day you fly from one country to another can be a day in both. Under a midnight rule it counts only where you are at midnight. That is why the same trip can give a different total under different tests.
What Whereday counts
Whereday’s Country Days counts every local date with recorded presence in a country, at country level only. That is similar to an “any part of a day” count, and a travel day can count in both countries. It is not a midnight count, so a UK total from Country Days needs recounting under the midnight rule; the UK day counter infers the end-of-day country for each date and asks you to pick where it cannot. It also does not know your visa, your exempt-individual status or any transit exception, and it counts countries, not US states. How Whereday counts days explains how dates, time zones and gaps are handled.
A worked example, counted three ways
These dates are invented. They are not a real person’s trip. Suppose a traveller spent these periods in the US, and was nowhere else in the US on any other date:
- 1 September to 29 November 2024: 90 days
- 1 June to 28 September 2025: 120 days
- 1 March to 28 July 2026: 150 days
Every date from the first to the last date of a stay is counted, as in the calculators. The three counts below use the same stays.
| Count | Arithmetic | Result |
|---|---|---|
| Calendar year 2026 | 1 March to 28 July 2026 = 31 + 30 + 31 + 30 + 28 = 150 days | 150 days, below 183 |
| US weighted formula for 2026 | 150 + (120 ÷ 3) + (90 ÷ 6) = 150 + 40 + 15 = 205.00 | 205.00 weighted days, and 150 is at least 31, so the two conditions of the formula are both met |
| Most days in any 365-day window | 1 June 2025 to 31 May 2026: 120 days in 2025 + 92 days (1 March to 31 May 2026) = 212 | 212 days, above 183 |
One trip, three different numbers. The calendar-year count is under 183 while the weighted formula and the rolling window are over it, because each looks at a different slice of the same dates. That is why you should know which test you are answering before you read the total.
You can reproduce this. In the substantial presence test calculator, add the three stays as US stays and pick 2026: it shows 150, 120 and 90 days and a total of 205.00. In the days-in-country calculator, add the same stays, keep the window length at 365 and read the calendar-year table and the rolling-window check. A window can start on several dates and still hold the same maximum, and the calculator reports one of them.
The numbers say nothing about residence. Whether any of these counts matters depends on the rules that apply to the traveller, including the exceptions in the next section.
Why 183 days doesn’t settle residency
Reaching 183 days, or staying under it, does not settle whether you are a tax resident. This is a count, not tax or legal advice, and the following are examples of what else can matter:
- Closer connection exception. Someone who meets the US substantial presence test may still be treated as a nonresident if they qualify for the closer connection exception, claimed on Form 8840. One condition is being in the US fewer than 183 days in the year, and others concern a tax home and closer connection to a foreign country (IRS, closer connection exception; About Form 8840).
- Treaty tie-breakers. When two countries each treat a person as resident, a tax treaty can decide between them. In the OECD Model, the tie-breaker looks at a permanent home, the centre of vital interests, habitual abode and nationality (OECD Model Tax Convention, Article 4).
- Ties. The UK test combines days with ties to the UK, so the same number of days can lead to a different answer for different people (HMRC RDR3). Many countries also look at your home, family and work, and each defines its own days and exceptions.
Treat your day count as evidence to take to a qualified tax or immigration adviser, not as the answer.
US states set their own rules
US states set their own residency rules, and some of them use day counts that differ from the federal tests above. Check your state’s tax department. Whereday counts countries, not states, so its Country Days cannot give you a state count.
Keep a record you can check
- Record before you travel. Start recording before your trip. Whereday only has dates for the time it was recording. Read the first-recording guide for permissions.
- Review Country Days. Open Timeline → Country Days, pick this year, the last 365 days or all time, and open a country to see the dates behind its total.
- Add what is missing. Use Add stay for a trip that was not recorded. For past trips, find your travel history from official and personal records.
- Export the CSV. The file has
country_code,local_dateandsourcecolumns. Viewing the counts and adding manual stays are free. From version 1.8, new users retain exports after tracking access expires; existing free users keep their previous export-unlock requirement. - Run it through the calculators. Load the CSV into the substantial presence test calculator for the US weighted formula, or the days-in-country calculator for calendar-year totals and rolling windows. Both run in your browser.
A country-date CSV is a summary, not a backup of every visit and point. Keep the underlying records with the backup checklist. Check the result against your tickets and official travel records, and fix any date that looks wrong before you rely on a total. For the UK, recount the midnight days with the UK statutory residence test day counter.
FAQ
Is it 183 or 184 days?
It depends on how the test is worded. The US substantial presence test needs a weighted total of at least 183 (IRS). The closer connection exception requires fewer than 183 days in the US in the year. The OECD Model’s employment rule refers to periods not exceeding 183 days in aggregate, so 183 days is within that limit and 184 would exceed it. Read the wording of your test.
Does the arrival day count?
Under the US test, any part of a day in the US counts (Publication 519), so the arrival day generally counts. Under the UK test, a day counts if you are in the UK at midnight at the end of it (HMRC RDR3), so the arrival day counts if you are still there at midnight, and a day you leave before midnight does not.
Does a layover count?
Under the US test, days in the US for less than 24 hours while in transit between two places outside the US are not counted (IRS). A longer stay is a different case. HMRC has its own transit rule with conditions, which you can read in RDR3. Whereday does not apply transit exceptions.
Is 183 days over a year or a calendar year?
It depends on the test. The US formula uses calendar years, weighted over three years. The UK uses a tax year. The OECD Model’s employment rule uses any 12-month period commencing or ending in the fiscal year concerned (OECD Model Tax Convention). The days-in-country calculator shows both a calendar-year and a rolling-window count.
Keep a dated record of the countries you’re in.
Record your days as you travel, then check an exported CSV with the substantial presence test calculator or the days-in-country calculator.
Download free for iPhoneWritten November 28, 2026 from the IRS, HMRC and OECD pages linked above, and from Whereday’s published Country Days guide. The worked example is invented. Its US figure and the rolling-window figure were checked against the calculators on this site. This is a count, not tax or legal advice; rules change, so check the linked sources for your tax year.