Estimate Tax

UK Statutory Residence Test day-count tool

Midnight Rule for UK Tax Residence

Calculate which UK visits normally count as residence days, screen transit and exceptional-circumstance exclusions, and add qualifying same-day visits under the statutory deeming rule.

UK Midnight Day Counter

Indicative SRT counted-day calculation

Core midnight rule You normally spend a day in the UK for the Statutory Residence Test when you are present in the UK at the end of that day—midnight. Transit, exceptional circumstances and the deeming rule can alter the final count.

Do not count the same date in both fields. Same-day visits normally do not count as ordinary UK days, but days above the first 30 may be deemed UK days in certain cases.

Transit requires a genuine passenger journey with no substantially unrelated activity. Exceptional days are capped at 60 and must satisfy the statutory conditions.

Confirm exclusions before calculating
Indicative UK presence calculation
—

Ordinary midnight days—
Days ignored—
Deemed days added—
Final counted days—

Results are estimates based on the information you enter and the Statutory Residence Test rules for the tax year shown. This is not tax advice; check HMRC guidance or a qualified adviser for complex cases. It does not check whether each exclusion or deemed day is valid.

Midnightnormal point for counting a UK day
30 daysfirst qualifying same-day visits before deeming
60 daysmaximum potentially ignored as exceptional
183 daysautomatic UK residence threshold

The basic rule

What Is the Midnight Rule for UK Tax Residence?

For most Statutory Residence Test calculations, a day is spent in the UK when you are physically present in the UK at midnight at the end of that day. The length of the visit before midnight is normally irrelevant.

The midnight rule is the starting method for counting days under the UK Statutory Residence Test. If you are in the United Kingdom at the end of a calendar day, that date normally counts as one day spent in the UK. A person who arrives at 11:50pm and remains after midnight can therefore count the arrival date even though only ten minutes were spent in the country before the end of the day. By contrast, a person who arrives at 6:00am and leaves at 11:30pm normally does not count that date as an ordinary midnight day.

This rule makes travel times important. Two trips of the same length can create different day counts because one traveller departs before midnight while another remains until the next morning. It is therefore unsafe to count only hotel nights, calendar dates between flight bookings or the number of days shown by a travel app. The calculation should identify the country in which you were physically present at every midnight from 6 April to the following 5 April.

The midnight rule is not the complete residence test. A UK day count is used within the automatic overseas tests, the 183-day automatic UK test, the sufficient ties test, the country tie and some split-year cases. A person can be resident with fewer than 183 days because of a UK home, full-time UK work or sufficient ties. Another person can remain non-resident with a relatively high day count where an automatic overseas test is satisfied.

Three major qualifications must be reviewed. First, a qualifying overnight transit can prevent a midnight from counting where the traveller is merely passing through and undertakes no substantial activity unrelated to the journey. Second, a limited number of days caused by exceptional circumstances may be disregarded for specified SRT tests. Third, the deeming rule can add certain days on which a person was in the UK but left before midnight.

The output is a day-count screen, not a final legal residence decision.

Arrival and departure timing

Which Travel Dates Count Under the Midnight Rule?

The ordinary rule follows your location at midnight rather than the number of hours spent in the UK during the date.

Travel patternOrdinary midnight resultFurther issue
Arrive Monday morning and stay until Thursday morningMonday, Tuesday and Wednesday normally count: 3 UK days.Thursday departure date normally does not count if you leave before midnight.
Arrive Monday at 11:50pm and remain overnightMonday normally counts because you are in the UK at midnight.The ten minutes before midnight are enough for the ordinary rule.
Arrive and leave on Monday before midnightMonday normally does not count as an ordinary UK day.It may later be added as a qualifying day under the deeming rule.
Leave the UK Monday at 10:00pmMonday normally does not count because you are outside the UK at midnight.The date can be relevant to deeming if the statutory conditions are met.
Flight departs before midnight but aircraft remains over the UKThe physical location at midnight must be established from the facts.Do not assume airport departure time alone proves you were outside the UK.
Arrive from abroad, sleep near the airport and leave next day for another countryThe midnight normally counts unless the statutory transit exception applies.Passenger status, onward destination and unrelated activity must be reviewed.

Ordinary counting examples

How to Count a UK Visit Correctly

Count the midnight at the end of each date, not every calendar date touched by the trip.

1

One-Night Business Trip

You arrive on Tuesday morning, attend meetings, stay Tuesday night and leave Wednesday afternoon. Tuesday counts because you are in the UK at Tuesday midnight. Wednesday normally does not count because you leave before Wednesday midnight. The trip creates one ordinary UK day.

4

Long Weekend

You arrive Thursday afternoon and leave Monday morning. The counted midnights are Thursday, Friday, Saturday and Sunday. Monday normally does not count. The trip creates four ordinary UK days even though it touches five calendar dates.

0

Same-Day Visit

You arrive at 7:00am and leave at 9:00pm. There is no ordinary midnight day. However, repeated same-day visits can become qualifying days for the deeming rule, and a day of more than three hours' UK work can still be a UK workday even without an overnight stay.

Exceptional circumstances

When a UK Midnight May Be Ignored

Some days spent in the UK can be disregarded where exceptional circumstances beyond your control prevent you from leaving and you intend to leave as soon as those circumstances permit. Examples can include sudden or life-threatening illness, serious injury, natural disaster, civil unrest or other events that genuinely remove the practical ability to depart.

The legislation provides a maximum of 60 potentially disregarded days in a tax year. This is a ceiling, not a routine entitlement and not an additional travel allowance. If one event causes 45 qualifying days and another causes 25, the combined maximum remains 60. Any excess days continue to count.

Evidence should demonstrate both causation and intention: the event prevented departure, it was beyond your control, and you planned to leave promptly when it ended. Medical records, cancelled transport, official restrictions and contemporaneous communications can be important.

Limits of the exception

Exceptional Days Do Not Vanish Everywhere

Exceptional circumstances are not taken into account in the same way for every Statutory Residence Test provision. HMRC guidance identifies tests for which the ordinary day-count exception is unavailable or operates differently. For example, the country tie is based on the greatest number of midnights and has separate treatment.

Events that merely make travel inconvenient, expensive or undesirable are not automatically exceptional. Foreseeable circumstances or voluntary decisions generally do not qualify. Returning to the UK because of an event abroad is also not the same as being prevented from leaving the UK after arrival.

The calculator deducts entered exceptional days only when the confirmation box is selected, caps the deduction at 60 and never permits more excluded days than total entered midnights. The legal validity of each day must still be established outside the calculator.

The anti-avoidance adjustment

How the Deeming Rule Adds Same-Day UK Visits

Leaving before midnight does not always keep a date outside your Statutory Residence Test count.

1

Previous Residence Condition

You must have been UK resident in at least one of the three tax years immediately before the year being tested. A person non-resident in all three prior years does not meet this deeming condition.

3

At Least Three UK Ties

You must have at least three relevant UK ties for the current year. The available ties include family, accommodation, work, 90-day and, for recent residents, country tie.

30

More Than 30 Qualifying Days

You must have more than 30 qualifying days on which you were present in the UK but not at midnight. The first 30 are not added. Every later qualifying day is treated as a day spent in the UK.

Example: 44 ordinary counted midnights plus 52 qualifying same-day visits. If all deeming conditions apply, 22 visits above the first 30 are added. The relevant total becomes 66 days.

Midnight versus other SRT rules

Not Every “Day” Test Uses the Same Measurement

The word day appears throughout the SRT, but the legal question can differ between provisions.

SRT issueMeasurementWhy it matters
Ordinary UK day countPresence in the UK at midnight, subject to adjustmentsUsed for the 183-day test and sufficient-ties bands.
UK workdayMore than three hours of UK workCan count without a UK midnight and can create a work tie.
Presence in a UK homeAny physical presence in the home during the day can be relevantThe automatic home test does not require being in the property at midnight for every presence day.
Accommodation useAt least one night, or 16 nights for a close relative's homeDifferent from counting every UK midnight for the annual SRT total.
Country tieCountry with the greatest number of midnightsRequires a country-by-country midnight comparison.
Exceptional circumstancesOnly specified tests permit qualifying days to be ignoredA day disregarded for one calculation may remain relevant elsewhere.

Worked calculations

Midnight Rule for UK Tax Residence Examples

These examples focus on day counting. Full residence also depends on automatic tests, ties and surrounding facts.

Example 1 — Arrival and departure: Aisha arrives on 10 June at 9:00am and leaves on 14 June at 6:00pm. She is in the UK at midnight on 10, 11, 12 and 13 June. Her ordinary count is four days, not five.
Example 2 — Late arrival: Bilal arrives at 11:55pm on 1 August and remains until the following afternoon. The five minutes before midnight are enough for 1 August to count. If he leaves before midnight on 2 August, the visit creates one ordinary UK day.
Example 3 — Same-day commuting: Claire enters the UK every Tuesday morning and leaves Tuesday evening for 35 weeks. She has no ordinary midnight days from those trips. If she is a recent resident with at least three ties and each visit is a qualifying day, five days above the first 30 may be deemed UK days.
Example 4 — Airport transit: Daniel arrives from Singapore, sleeps at an airport hotel and departs the following day for New York without carrying out unrelated activities. The midnight may be excluded as qualifying transit. His following departure day must still be reviewed for the deeming rule.
Example 5 — Transit with social activity: Elena arrives from Madrid, meets friends for dinner and attends a concert before flying to Toronto the next day. The activity is substantially unrelated to her passage, so the midnight can count.
Example 6 — Exceptional illness: Faisal intends to leave after 75 counted days but a sudden serious illness prevents travel for 40 additional midnights. If every condition is met, those 40 days may be ignored for relevant tests. Medical evidence and proof of prompt departure are needed.
Example 7 — More than 60 exceptional days: Grace is prevented from leaving for 78 potentially qualifying days. The statutory maximum is 60. At least 18 days continue to count even if all other conditions are satisfied.
Example 8 — Deeming changes the ties result: Hamza records 40 ordinary days and 55 qualifying same-day visits. He was UK resident in a prior year and has three ties. Twenty-five visits above the first 30 are added, producing 65 counted days. Under the recent-resident sufficient ties table, three ties can make him resident from day 46.

Common errors

Hidden day-count risks

Why a Travel App May Be Insufficient

Automated travel logs often count calendar dates touched, hotel nights or full 24-hour periods. The SRT instead needs end-of-day location plus separate records for same-day visits, work hours, transit and exceptional events.

Flight schedules can also be misleading where delays change the country occupied at midnight. Record actual movement rather than only booked times. Preserve boarding passes, delay messages and location evidence.

Finally, counted days must be mapped to the correct tax year. A trip from 3 April to 10 April crosses two UK tax years and needs two separate calculations because the tax year ends on 5 April.

Frequently asked questions

Midnight Rule for UK Tax Residence FAQs

Answers about arrival days, departure days, flights, transit, same-day visits, exceptional circumstances and residence thresholds.

Does a few minutes before midnight count as a full UK day?+

Yes, under the ordinary rule. The test asks whether you are present at the end of the day rather than how many hours you spent in the UK before midnight.

Does a same-day UK visit count?+

It normally does not count as an ordinary midnight day. However, it may count as a UK workday and may be added under the deeming rule where you are a recent resident, have at least three UK ties and exceed 30 qualifying non-midnight days.

Does an overnight airport connection count?+

It normally counts because you are in the UK at midnight, unless the transit exception applies. You must arrive as a passenger from abroad, leave the next day as a passenger for another country and avoid activity substantially unrelated to your journey.

How many exceptional days can be ignored?+

No more than 60 days in one tax year can potentially be ignored. This is a cap, not an automatic allowance, and every day must satisfy the legal conditions.

Is being in my UK home during the day the same as a midnight day?+

No. Presence in a home can be relevant even without being there at midnight. The automatic home test and accommodation tie use different presence and availability rules from the ordinary annual midnight count.