document.documentElement.classList.add("cf-on");'; return; } ?>

Time Duration Calculator

Time Duration Calculator

Find the hours and minutes between two times, with breaks, overnight shifts and multi day spans.

Without dates, an end time earlier than the start time is treated as the next day, so 22:00 to 06:00 gives 8 hours.

Time duration
0 h 0 min
0decimal hours
0total minutes
00:00as h:mm
0 h 0 minbefore the break

Decimal hours are rounded to two places. Clock changes in spring and autumn are not adjusted for.

Want to know exactly how long a shift, journey or meeting lasted? This time duration calculator finds the time between two times in hours and minutes, takes off any break, and copes with overnight spans that cross midnight. It works with the 24 hour clock or 12 hour am and pm times, depending on your device settings.

Quick answer: A time duration calculator uses duration = end time − start time − break. If the end time is earlier than the start, 24 hours (1,440 minutes) is added, so 22:00 to 06:00 is 8 hours. For timesheets, decimal hours are the minutes divided by 60, so 7 hours 45 minutes is 7.75 hours.

Time duration calculator showing hours and minutes between two times
How the Time Duration Calculator works: start, end and break in, hours and minutes out.

What Is a Time Duration Calculator?

A time duration calculator works out the hours between times without the mental arithmetic. Counting from 08:45 to 17:20 in your head is fiddly because time runs in sixties, not tens. The calculator converts both times to minutes, subtracts one from the other and turns the answer back into hours and minutes.

The formula is duration = end time − start time − break. If the end time is earlier than the start, the span crosses midnight, so 24 hours (1,440 minutes) is added. For example, 22:00 to 06:00 is 6:00 + 24:00 − 22:00 = 8 hours. Decimal hours are the minutes divided by 60, so 7 hours 45 minutes is 7.75 hours.

How Do You Use the Time Duration Calculator?

Step 1: Enter the Start and End Times

You type or pick the start time and the end time, and if the end is earlier than the start, the calculator assumes it falls on the next day. Type or pick the start time and the end time. If the end is earlier than the start, the calculator assumes the end falls on the next day.

Step 1: enter the start and end times

Step 2: Enter Any Break

Add your unpaid break in minutes, such as 30 for a lunch break, or leave it at 0 for the full time between the two times. To total a whole week of shifts, the time card calculator adds up each day and works out your gross pay for the week.

Step 2: enter any break in minutes

Step 3: Add Dates for Longer Spans

Tick Add dates when the span runs over more than one day, such as a 36 hour event or a trip from Friday morning to Sunday evening. If you only need to count working days between two dates, the working days calculator skips weekends and UK bank holidays instead. Otherwise, enter the start and end dates and the total is worked out across all of them.

Step 3: add dates for multi day spans

Step 4: Read Your Results

You get the duration in hours and minutes, decimal hours for timesheets and invoices, total minutes, and the time before the break was taken off.

Step 4: read the duration in hours, decimal hours and minutes

How Do You Work Out the Time Duration Between Two Times?

StartEndBreakDurationDecimal hours
09:0017:3030 min8 h 0 min8.00
08:4517:2045 min7 h 50 min7.83
22:0006:000 min8 h 0 min8.00
07:1519:4560 min11 h 30 min11.50

A shift from 09:00 to 17:30 with a 30 minute break lasts 8 hours 0 minutes, or 8.00 decimal hours, and 08:45 to 17:20 with 45 minutes off is 7.83. To convert between formats, remember that 12 pm is midday and 12 am is midnight, as explained in this guide to the 12 hour clock. When a span crosses a clock change in March or October, add or take off one hour yourself.

Key Time Duration Calculator Terms Explained

These terms explain how the time duration calculator handles clocks, midnight and minutes, so you can trust the hours it returns for shifts, journeys and meetings.

Elapsed time
The amount of time that passes between a starting moment and an ending moment. It is found by subtracting the earlier time from the later one, after converting both to a common unit such as minutes.
Sexagesimal timekeeping
The base 60 system used for clocks, where 60 seconds make a minute and 60 minutes make an hour. Because of it, times cannot be subtracted like ordinary decimals, so 17:20 minus 08:45 needs borrowing an hour.
24 hour clock
A time format that numbers the hours of the day from 00 to 23, so 22:00 is 10 pm. It avoids confusion between morning and evening and makes it easier to spot spans that cross midnight.
Overnight span
A period that begins before midnight and ends after it, such as a night shift. To measure it correctly, one full day of 1,440 minutes is added to the end time before the start time is subtracted.
Daylight saving time
The seasonal practice of moving clocks forward one hour in spring and back one hour in autumn. A span that crosses one of these changes contains one hour more or less than a simple subtraction suggests.
</>Embed this calculator on your website

Add the free Time Duration Calculator to your own site or blog. Copy the code below and paste it into an HTML block. It resizes itself and works on phones.

How we checked this tool: the Tools Veria Editorial Team built this tool by hand, checked it against the official rules or published standards where they apply, and tested it against worked examples. Results are estimates for planning, not personal financial or tax advice. Read our editorial policy and disclaimer, or report an error.

Frequently Asked Questions

How do I calculate the time between two times?

Convert both times to minutes, subtract the start from the end, then divide by 60 for hours. The remainder is the minutes.

How do I calculate hours that go past midnight?

Add 24 hours to the end time before subtracting. For example, 22:00 to 06:00 is 30:00 minus 22:00, which is 8 hours.

How do I convert minutes to decimal hours?

Divide the minutes by 60. So 15 minutes is 0.25, 30 minutes is 0.5 and 45 minutes is 0.75 of an hour.

How many hours is 9am to 5pm?

9am to 5pm is 8 hours. With a 30 minute unpaid lunch break it is 7.5 hours of work.

Can I calculate a duration over several days?

Yes. Tick Add dates, enter the start and end dates with their times, and the calculator gives the total hours and minutes across the whole span.

Does the calculator use 12 or 24 hour time?

Both. The time boxes follow your device setting, so you will see am and pm or the 24 hour clock, and the result is the same either way.