Free tool
UK Statutory Residence Test day counter
Count the days you spent in the UK in a tax year under the midnight rule, and see where they sit against the SRT’s automatic thresholds.
Your UK stays
Enter the date you arrived in the UK and the date you left. Each stay counts departure minus arrival: the midnights you spent in the UK.
Runs entirely in your browser. Nothing you enter is stored or sent anywhere, and it keeps working offline once the page has loaded.
How SRT day counting works
The Statutory Residence Test (SRT) decides whether you are UK resident for a tax year, which runs from 6 April to 5 April. The number of days you spend in the UK is central to it, and HMRC defines a day simply: you spend a day in the UK if you are here at the end of it, at midnight.
So for each stay, the days that count are the arrival day and every following day up to, but not including, the departure day. That is the departure date minus the arrival date. A stay from 10 to 20 April counts 10 days. This counter applies that rule and counts only midnights inside the tax year you choose; overlapping stays are counted once.
Three adjustments in HMRC’s guidance are not applied here: transit days (arriving as a passenger and leaving the next day without doing anything unrelated to the journey), up to 60 days a year of exceptional circumstances beyond your control, and the deeming rule, which can count days you were in the UK but not at midnight if you have three or more UK ties, were UK resident in one of the previous three tax years and have more than 30 such days.
The day-count thresholds
- Fewer than 16 days: within the day limit of the first automatic overseas test, for people who were UK resident in one or more of the previous three tax years.
- Fewer than 46 days: within the day limit of the second automatic overseas test, for people who were not UK resident in any of the previous three tax years.
- 183 days or more: meets the first automatic UK test, so you are UK resident for the year.
There is also a third automatic overseas test, for full-time work abroad, and further automatic UK tests based on your home and on full-time work in the UK. If your count falls between these thresholds, your residence depends on your ties to the UK under the sufficient ties test: family, accommodation, work, 90-day and country ties, with fewer days needing more ties. The Midnightly app works through the ties and the other tests with its questionnaire.
Worked example
Press Load the example to try this. In the 2025–26 tax year you were in the UK from 10 to 20 April 2025 (10 midnights), 1 July to 31 August 2025 (61) and 20 December 2025 to 3 January 2026 (14). That is 85 UK days: more than 16 and 46, fewer than 183. Whether you were UK resident that year depends on your ties and the other tests.
The tax year boundary matters. A stay from 1 to 10 April 2026 counts 5 midnights (1 to 5 April) in 2025–26 and 4 (6 to 9 April) in 2026–27.
Common mistakes
- Counting the departure day, or counting both travel days as for Schengen. The SRT counts midnights.
- Using the calendar year. The UK tax year starts on 6 April.
- Assuming fewer than 183 days means non-resident. With enough UK ties, far fewer days can make you resident.
- Using the wrong overseas threshold. Whether 16 or 46 applies depends on your residence in the previous three tax years.
This is an estimate, not tax or legal advice. It counts UK midnights from the dates you enter. It does not apply the transit, exceptional circumstances or deeming rules, the work-based or home-based tests, the sufficient ties test or split-year treatment. Check your position with a qualified adviser.
Frequently asked questions
Does the day I arrive in the UK count?
Usually, yes. Under the Statutory Residence Test a day counts if you are in the UK at the end of it (midnight). If you arrive during the day and are still in the UK at midnight, that day counts. The day you leave does not, because you are not in the UK at its midnight.
Does a same-day trip to the UK count?
Not under the basic midnight rule, because you are not in the UK at midnight. The deeming rule can still count such days for some people with UK ties (see above), and this counter does not apply it.
Which threshold applies to me, 16 or 46 days?
The 16-day limit is in the first automatic overseas test, for people who were UK resident in one or more of the previous three tax years. The 46-day limit is in the second, for people who were not UK resident in any of the previous three tax years.
I have fewer than 183 days. Am I non-resident?
Not necessarily. Between the automatic overseas thresholds and 183 days, your status depends on the other automatic UK tests (such as having your only home in the UK) and on the sufficient ties test. The Midnightly app works through this with its questionnaire.
What about the year I move to or leave the UK?
Split-year treatment can divide a tax year into a UK part and an overseas part if you meet one of its cases. It is applied after you are found UK resident for the year, and this counter does not assess it.
Is my data sent anywhere?
No. The counter runs entirely in your browser. Nothing you type is stored, uploaded or shared.
Source: HMRC, RDR3: Statutory Residence Test (SRT). Other free tools: Schengen 90/180 calculator and 183-day rule calculator. Also: US Substantial Presence Test calculator, Spain 183-day and Beckham law calculator and UK FIG regime checker.
Track this automatically every day
Midnightly counts every rule at once, shows its working and exports a signed evidence pack your adviser can verify.
- The full UK SRT: day counts, ties and every automatic test worked through with a short questionnaire.
- UK SRT, US Substantial Presence, Schengen 90/180, US state and 183-day rules in one engine, verified against 58 official worked examples.
- Your record stays on your iPhone. No account.
Free to download.