Workdays, shifts, sleep, journeys, and opening hours are all described by two clock times: a start and an end. The question that follows is always the same: how long is the span between them? Subtracting clock times by hand is error-prone, because time is measured in base 60, and because spans that cross midnight need special handling. A shift from 22:00 to 06:00 is 8 hours, not a negative number, and a workday from 09:00 to 17:30 is 8 hours 30 minutes, not 8 hours 30 in decimal form. The Hours Between Times Calculator on FreeToolZones handles both cases. Enter a start time and an end time, and it shows the duration, the decimal hours, and the total minutes, treating an end time that is earlier than the start time as the next day.
This article explains how the Hours Between Times Calculator works, including its overnight rule, walks through realistic examples from work, sleep, travel, and study, and covers tips, limitations, and frequently asked questions. The tool has two time fields, a Calculate Hours button, and a Copy Result button.
What Is the Hours Between Times Calculator?
The Hours Between Times Calculator is a free online tool that finds the length of time between two clock times on the same 24-hour cycle, with overnight spans handled automatically. The start time field begins with 09:00 and the end time field begins with 17:30, the classic office day, so the most common question is answered with one click. You can change either time to any time of day, using the time picker or by typing the time.
The result shows three labeled figures. The first is the duration, written as hours and minutes, such as 8h 30m. The second is the decimal hours, shown to two decimal places, such as 8.50 hours, which is the form used for billing, payroll, and timesheets. The third is the total minutes, a whole number that is useful for further calculation and for logs that record minutes. A sentence below the figures explains the result: for a same-day span, it states the start time, the end time, and the duration; for an overnight span, it explains that the end time falls on the next day and that the span crosses midnight.
The overnight rule is the tool’s most important behavior, and it is stated in the hint under the End time field: if the end time is earlier than the start time, it is treated as the next day. In practice, the tool treats an end time that is earlier than or equal to the start time as belonging to the next day, so a span from 22:00 to 06:00 is 8 hours, and a span from 09:00 to 09:00 is 24 hours, a full cycle. This rule matches how shifts, sleep, and journeys are normally understood: the end time is the next occurrence of that clock time after the start time. If you need a zero-length span, this tool is not the right choice, because equal times are read as a full day.
The tool works with times only, not dates. It does not ask which calendar day the times fall on, and it cannot measure a span longer than 24 hours. A span from Monday 09:00 to Wednesday 17:00 is a question for the Date Difference Calculator or for a calculation that combines dates and times, not for this tool. Within its 24-hour scope, however, the tool is exact: it works in whole minutes, carries correctly across the hour boundary, and converts the result into the three forms people need.
How to Use the Hours Between Times Calculator
Follow these steps to find the span between two times.
- Find the two time fields, labeled Start time and End time. They begin with 09:00 and 17:30.
- Pick your start time. Use the time picker or type the time in hours and minutes. This is the time the span begins, such as the start of a shift, the time you went to sleep, or a departure time.
- Pick your end time. If the end time is on the same day and later than the start time, enter it directly. If the span crosses midnight, enter the end clock time as it appears on the clock, and the tool will treat it as the next day, as the hint explains.
- Click the Calculate Hours button. The result appears below as three figures, duration, decimal hours, and total minutes, followed by an explanatory sentence.
- Read the sentence to confirm whether the tool treated the span as same-day or overnight. The sentence states the case explicitly, so there is no doubt.
- Click Copy Result if you need the answer elsewhere. The copied text gives the duration and the decimal hours in one line.
Here is a same-day example. A workday runs from 09:00 to 17:30. Enter those times and click Calculate Hours. The duration is 8h 30m, the decimal hours figure is 8.50 hours, and the total minutes figure is 510. Note that 8 hours 30 minutes is 8.50 in decimal form, not 8.30, because 30 minutes is half an hour. The decimal figure does this conversion for you, which is where many manual errors occur.
Here is an overnight example. A night shift runs from 22:00 to 06:00. Enter 22:00 as the start time and 06:00 as the end time, and click Calculate Hours. The tool treats 06:00 as the next day and reports 8h 0m, or 8.00 hours, with a sentence explaining that the span crosses midnight. If you see an error message asking you to pick both a start time and an end time, one field is empty or unreadable. Fill in both fields and calculate again. The calculation runs in your browser with no sign-up, and the result is not saved.
Key Features of the Hours Between Times Calculator
The tool’s features center on correct minute arithmetic, the overnight rule, and results in the forms used by timesheets and logs.
Overnight spans handled automatically
An end time earlier than the start time is treated as the next day, with no extra checkbox or date field to manage. This matches the natural reading of a night shift, a sleep period, or an overnight journey, and it removes the need to add 24 hours by hand. The explanatory sentence confirms the overnight reading every time, so the result is never ambiguous.
Duration in hours and minutes
The main result is the duration in hours and minutes, the form people use in conversation and in notes. A result of 7h 45m is immediately understandable, and it is the form to quote when telling someone how long a span lasted.
Decimal hours for billing and payroll
The decimal hours figure, to two decimal places, is the form that timesheets, invoices, and payroll systems expect. Converting minutes to a decimal fraction of an hour is a common source of error: 45 minutes is 0.75 hours, 20 minutes is 0.33 hours, and 10 minutes is 0.17 hours. The tool performs the conversion, so the figure can be entered directly into a billing or payroll record.
Total minutes for further calculation
The total minutes figure is a whole number that feeds easily into further arithmetic, such as averaging several spans, summing a week of spans, or converting to seconds by multiplying by 60. It also serves as a check: a duration of 8h 30m must equal 510 minutes, and if the two figures disagree with your expectation, the inputs deserve a second look.
Clear explanatory sentence
The sentence below the figures states the start and end times and the duration, and for overnight spans it states that the end time falls on the next day. This sentence is the best defense against misreading, because it restates the inputs alongside the answer. The Copy Result button copies a compact version of the same information.
Practical Use Cases With Concrete Examples
Clock-time spans are everywhere in daily life. The examples below show the range, with numbers you can verify on the tool.
Work shifts, including night shifts
Day shifts are the simplest case: 08:30 to 16:30 is 8 hours, and 09:15 to 18:00 is 8 hours 45 minutes, or 8.75 decimal hours. Night shifts need the overnight rule: 23:00 to 07:00 is 8 hours, and 20:00 to 04:30 is 8 hours 30 minutes. In both cases, the decimal hours figure is the one to record on a timesheet. Remember that this tool measures the full span from start to end, including any breaks within it. To find working time excluding a break, subtract the break length from the result using the Time Duration Calculator, or subtract the break minutes from the total minutes figure.
Sleep tracking
Sleep is the most common overnight span. Going to bed at 23:15 and waking at 06:45 gives 7 hours 30 minutes of time in bed, or 7.50 decimal hours. A nap from 14:00 to 14:40 is 40 minutes. The tool measures time between the two clock times, not time actually asleep, so it cannot account for time spent awake during the night. For a sleep log, record the span alongside a note about quality or interruptions, and use the decimal hours figure if your log tracks sleep in decimal form.
Travel and journeys
Journey times are spans between departure and arrival clock times. A train leaving at 07:40 and arriving at 11:05 takes 3 hours 25 minutes. An overnight flight leaving at 21:30 and arriving at 06:15 takes 8 hours 45 minutes, with the overnight rule handling the midnight crossing. Note that the tool assumes both times are on the same clock, so for journeys across time zones, convert the arrival time to the departure time zone first with the Time Zone Converter, or the span will be wrong by the time zone difference.
Study sessions, classes, and opening hours
A class from 10:00 to 11:50 lasts 1 hour 50 minutes. A library open from 08:00 to 22:00 is open for 14 hours. A study session from 19:30 to 22:15 lasts 2 hours 45 minutes. Students adding up a day of classes can calculate each span with this tool and then total the durations with the Time Duration Calculator. The same approach works for opening hours, clinic hours, and customer service hours, where the question is how long a service is available.
Cooking, parking, and billed time
Parking charges, room hire, and equipment rental are often billed by the hour or part-hour, starting from clock times. A car parked from 09:20 to 13:50 has been parked for 4 hours 30 minutes. A hall hired from 18:00 to 23:30 has been hired for 5 hours 30 minutes. The decimal hours and total minutes figures make it easy to compare the span with a tariff, and the explanatory sentence provides a record of the times used.
Tips and Best Practices
- Check the overnight sentence every time the end time is earlier than the start time. The sentence confirms that the tool read the span as crossing midnight, which is the behavior you want for shifts, sleep, and overnight travel.
- Remember that equal times mean 24 hours. If you enter the same time in both fields, the tool reports a full day, because the end time is treated as the next occurrence of that time. Do not use this tool for a zero-length span.
- Use decimal hours for money. Enter the decimal hours figure on invoices and timesheets, not the hours-and-minutes figure, because billing systems expect decimals. The tool’s conversion removes the classic 8.30 versus 8.50 error.
- Subtract breaks separately. The tool measures the full span including breaks. If a shift includes a 30-minute unpaid break, subtract 30 minutes from the total minutes, or use the Time Duration Calculator to subtract the break duration from the span.
- Convert time zones before calculating journey spans. If departure and arrival times are in different time zones, the raw clock difference is not the journey time. Use the Time Zone Converter to put both times in one zone first.
- Double-check AM and PM when typing times. The time fields use the 24-hour format in most browsers, so 3:00 PM is 15:00. A 12-hour entry read as a 24-hour time can shift the result by 12 hours.
- Copy the result for records. The copied text gives the duration and decimal hours together, which is enough to reconstruct the calculation later alongside the two times.
Limitations to Know Before You Rely on the Result
The Hours Between Times Calculator measures spans within a single 24-hour cycle. It cannot measure spans longer than 24 hours, because it has no date fields, and it cannot distinguish a 26-hour span from a 2-hour span, because both would show the same pair of clock times. For multi-day spans, use the Date Difference Calculator for whole days, and combine the results if you need both days and hours.
The tool works in whole minutes and does not accept seconds, so spans measured to the second need a different approach. It does not handle time zones or daylight saving transitions: a span that crosses a clock change, when clocks go forward or back, will be off by the size of the change, because the tool treats the clock as continuous. It does not deduct breaks, exclude any part of the span, or know about working patterns. Finally, it does not save results. Use Copy Result to keep the answer, and record the two times alongside it.
Frequently Asked Questions
What happens if the end time is earlier than the start time?
The end time is treated as the next day, so the span crosses midnight. A span from 22:00 to 06:00 is 8 hours. The sentence under the result states this explicitly, so you can confirm the overnight reading.
What happens if both times are the same?
The result is 24 hours. Equal times are treated as a full cycle, because the end time is read as the next occurrence of that clock time after the start time. This tool cannot represent a zero-length span.
Does the tool deduct breaks?
No. It measures the full span from the start time to the end time, including any breaks. To find time excluding a break, subtract the break from the result, using the Time Duration Calculator or by subtracting minutes from the total minutes figure.
Why is 8 hours 30 minutes shown as 8.50 hours?
Because decimal hours express minutes as a fraction of 60. Thirty minutes is half an hour, or 0.50, so 8 hours 30 minutes is 8.50 decimal hours. The decimal figure is the one billing and payroll systems expect, and it is not the same as writing 8.30.
Can I measure a span longer than 24 hours?
Not with this tool, because it has no date fields. For spans over several days, use the Date Difference Calculator for the whole days, and add the within-day span from this tool if you need hours as well.
Does the tool handle time zones?
No. It assumes both times are read on the same clock. For journeys or calls across time zones, convert one time into the other’s zone with the Time Zone Converter before calculating the span.
Related Tools
These related tools on FreeToolZones cover neighboring time questions:
- Time Duration Calculator – add or subtract durations in hours, minutes, and seconds.
- Time Zone Converter – convert a date and time between time zones.
- Date Difference Calculator – measure the gap between two dates in years, months, days, and hours.
- World Clock – see the current time in major cities around the world.
- Time Converter – convert between units of time.