Hours Between Times Calculator

Hours between—
Hours and minutes—
Total minutes—

How Hours Between Times Calculator is calculated: Hours = end time minus start time, in minutes, divided by 60. When the overnight box is ticked and the end time is earlier, 24 hours are added first.

What is a hours between times calculator?

A hours between times calculator measures the gap between two clock times and gives you the answer in hours, in hours and minutes, and in total minutes. Type a start time and an end time, and it tells you how long passed between them — 09:00 to 17:30 is 8.5 hours, shown as 8h 30m and 510 minutes. It is the tool for shifts, sessions, journeys, and anything else measured from one clock time to another.

The gap between two clock times is a duration, and durations are what timesheets, pay, and schedules are built from. A shift that starts at 09:00 and ends at 17:30 is 8.5 hours of work, and that number is what the pay is worked out from. Doing the subtraction by hand is easy when the minutes line up and error-prone when they do not — 09:45 to 17:20 is 7 hours 35 minutes, and most people get the minutes wrong on the first try.

It runs entirely in your browser. Nothing is uploaded, nothing is stored, and there is no account to create. Shift times and work hours are personal, and a counting tool has no business collecting them.

How hours between two times are worked out

The method is to convert both times to minutes since midnight, subtract, and divide by 60. 09:00 is 540 minutes since midnight, 17:30 is 1,050 minutes, and the difference is 510 minutes. 510 divided by 60 is 8.5 hours, shown as 8h 30m — the whole hours are 8, and the leftover 30 minutes are the remainder.

The overnight case adds 24 hours first. A shift from 22:00 to 06:00 the next day is 1,320 minutes minus 360 minutes, which is negative — so the calculator adds 1,440 minutes (24 hours) to get 480 minutes, which is 8 hours exactly. The overnight box tells the calculator that the end time belongs to the next day, and without it the same two times would read as zero, because the end time is earlier than the start.

The formula is simple — hours = (end minus start) divided by 60 — but the midnight crossing underneath it is not, and the calculator handles it for you. A time converter changes the result between units afterwards, if you want the gap in seconds instead of minutes.

The overnight box: the input people get wrong

The overnight box is the input that decides whether a night shift works. A shift from 22:00 to 06:00 is 8 hours, but only if the calculator knows the 06:00 is the next day. Without the box ticked, the end time is earlier than the start time, and the calculator returns zero — not because the maths failed, but because it has no way to know the end time belongs to tomorrow.

The second error is the 24-hour clock itself. 17:30 is 5:30 in the evening, and typing 5 instead of 17 for the end hour turns an 8.5-hour shift into a negative number. The boxes take 0 to 23, so evening times need their 24-hour hour — 17 for 5 pm, 22 for 10 pm, 0 for midnight. If the answer looks wrong by 12 hours, the hour is the first thing to check.

The third error is the minutes. 09:15 to 17:45 is 8.5 hours, but 09:45 to 17:15 is 7.5 hours, and the two look alike at a glance. Type the minutes exactly as they are on the clock, in the minute boxes, and let the calculator do the subtraction. A overtime pay calculator takes the hours from here and turns them into pay.

A worked example: a day shift, a night shift, and a short gap

Run the default example. Start 09:00, end 17:30, overnight off. In minutes that is 1,050 minus 540, which is 510 minutes. 510 divided by 60 is 8.5 hours, shown as 8h 30m, and the total minutes row reads 510. That is a standard working day with a half-hour lunch inside it, or 8 hours of work if the lunch is unpaid.

Now try a night shift. Start 22:00, end 06:00, overnight on. In minutes that is 360 minus 1,320, which is negative, so 1,440 minutes are added to give 480 minutes — 8 hours exactly, shown as 8h 0m. Without the overnight box the same two times would read zero, which is why the box matters more than any other input on the page.

A third case shows a short gap. Start 14:15, end 14:45, overnight off. The difference is 30 minutes, which is 0.5 hours, shown as 0h 30m. Short gaps are where hand subtraction fails most often, because the minutes are the whole answer — and a hourly wage calculator turns even half an hour into an exact pay figure.

Who uses a hours between times calculator, and why

Workers use it the most, for shifts and timesheets. A shift from 09:00 to 17:30 is 8.5 hours, and that number is what the pay is worked out from. An overtime pay calculator then turns the hours past eight into overtime pay, and an hourly wage calculator works out what the whole shift is worth. The hours between tool is the first step in that chain, and it has to be exact.

Students use it for study sessions and exams. A revision block from 14:15 to 14:45 is 30 minutes, and a mock exam from 09:00 to 12:00 is 3 hours — and knowing the length before you start is what makes the session honest. A stopwatch timer measures the session live, and this calculator checks the plan against the clock.

Then there are the everyday uses: how long a journey took, how long a film runs, how long until a shop closes, how long a baby slept. A sleep calculator plans the night around the same idea — the gap between bedtime and waking — and this tool measures any gap the same way.

Hours between calculator vs time duration calculator

These two tools look similar but answer different questions. The hours between calculator measures the gap between two clock times — 09:00 to 17:30 is 8.5 hours. The time duration calculator adds or subtracts two lengths of time — 2 hours 30 minutes plus 1 hour 15 minutes is 3 hours 45 minutes. One measures a gap, the other adds durations.

Use this calculator when you have a start time and an end time and want the gap: a shift, a journey, a session. Use the duration calculator when you have two durations and want their total: two shifts, two study blocks, two video lengths. The two agree with each other, because a gap is a duration — 09:00 to 17:30 is a duration of 8 hours 30 minutes.

The difference shows in the inputs. This calculator asks for two clock times and an overnight box. The duration calculator asks for hours, minutes, and seconds twice, and a mode. Pick the tool that matches the numbers you already have, and the answer will be the same either way.

Common hours between mistakes

The biggest mistake is forgetting the overnight box. A night shift from 22:00 to 06:00 reads as zero without it, because the end time is earlier than the start time and the calculator has no way to know the end belongs to the next day. Tick the box for every shift that crosses midnight, and check it first when a night shift reads zero.

Second: the 12-hour clock. Typing 5 instead of 17 for a 5 pm end time makes the gap 12 hours short, and typing 12 instead of 0 for midnight makes it 12 hours long. The boxes take 0 to 23, so use the 24-hour hour. Third: the minutes. 09:45 to 17:15 is 7.5 hours, not 8.5, and the minutes are the whole difference.

Fourth: counting the lunch break as work. 09:00 to 17:30 is 8.5 hours on the clock, but if lunch is an unpaid half hour, the paid time is 8 hours — and the calculator gives the clock gap, not the paid gap. Subtract the break yourself. Fifth: rounding too early. 510 minutes is 8.5 hours exactly, and rounding it to 8 or 9 before the pay is worked out costs real money over a month.

How to use this hours between times calculator

Using it takes a few seconds. The start is set to 09:00 and the end to 17:30, overnight off, so the worked example shows at once. Change the start and end hours and minutes, tick the overnight box if the end time is the next day, and the answer appears: the hours, the hours and minutes, and the total minutes.

If the answer reads zero and you expected a night shift, the overnight box is the cause — tick it and the gap appears. If the answer is 12 hours out, an hour was typed in 12-hour form instead of 24-hour form, and the fix is to add 12 to the evening hour.

Everything runs in your browser, so nothing you enter is uploaded or stored. One practical tip: for a timesheet, write down the start and end times as well as the gap. The gap is what the pay is worked out from, but the times are what prove it — and a timesheet with both is much harder to dispute than one with only the total.

Frequently Asked Questions

8.5 hours, which is 8 hours 30 minutes or 510 minutes. 17:30 is 1,050 minutes since midnight and 09:00 is 540 minutes, so the difference is 510 minutes, and 510 divided by 60 is 8.5 hours.

Tick the overnight box. 06:00 the next day is 8 hours after 22:00 — 480 minutes. Without the box, the end time is earlier than the start time and the calculator returns zero, because it has no way to know the end time belongs to the next day.

Nothing — they are the same length written two ways. 0.5 hours is 30 minutes, because an hour has 60 minutes. 8.5 hours is the decimal form used for pay, and 8 hours 30 minutes is the clock form. This calculator shows both, so you can use whichever form the next step needs.

Yes — the total minutes row gives the gap in minutes, and 14:15 to 14:45 reads as 30 minutes. For a tool built around minutes, the minutes between calculator on this site gives minutes as its main answer, with hours as the secondary row.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.