Time duration calculator

Two tools: find the hours and minutes between two times, or add and subtract time from a clock time.

1.Time between two times

-

2.Add or subtract time

The time will be

-

How time differences are worked out

duration = end time − start time (+ 24 hours if it passes midnight)

Both times are turned into minutes after midnight, subtracted, and turned back into hours and minutes. If the end is earlier on the clock than the start, the period crossed midnight, so a day (1,440 minutes) is added. Any break is taken off at the end.

Examples

ExampleDurationDecimal
Office day9:15 am to 5:45 pm8:308.50 h
Shift with a 30-minute break8:00 am to 4:30 pm, minus 30 min8:008.00 h
Night shift10:00 pm to 6:30 am8:308.50 h
Short meeting1:20 pm to 2:05 pm0:450.75 h

Hours and minutes vs decimal hours

Payroll and timesheets often want decimal hours, where the part after the point is a fraction of an hour, not minutes. To convert, divide the minutes by 60:

MinutesDecimal hours
5 min0.08
6 min0.10
10 min0.17
15 min0.25
20 min0.33
30 min0.50
40 min0.67
45 min0.75
50 min0.83

The classic mistake is reading 7.30 as 7 hours 30 minutes. As a decimal it's 7 hours 18 minutes; 7 hours 30 minutes is 7.50. Going the other way, multiply the decimal part by 60: 0.75 hours is 45 minutes.

Adding up hours and minutes

Add the hours and the minutes separately, then carry every 60 minutes over as an hour. 3:45 + 2:30 is 5 hours 75 minutes, which is 6:15. Converting to decimal hours first (3.75 + 2.50 = 6.25) avoids the carry. To total a whole week of shifts and work out the pay, use the time card calculator.

12-hour and 24-hour times

The hour after midnight and the hour after noon are where most mix-ups happen:

12-hour24-hour
12:00 am (midnight)00:00
12:30 am00:30
6:00 am06:00
12:00 pm (noon)12:00
12:30 pm12:30
1:00 pm13:00
6:45 pm18:45
11:59 pm23:59

12 am is midnight at the start of the day and 12 pm is noon. To avoid any doubt in a rota or a booking, use the 24-hour time, or write "midnight" and "noon".

Night shifts when the clocks change

The calculator works on clock times, so it assumes no daylight saving change during the period. On the night the clocks change, a shift really is an hour longer or shorter than the clock difference. A 10 pm to 6 am shift is 8 hours on the clock, but 9 hours when the clocks go back overnight and 7 hours when they go forward.

Rounding on timesheets

Some employers round clock-in and clock-out times, often to the nearest 5 or 15 minutes, so a timesheet can differ a little from the exact duration. In the US, federal rules allow rounding to the nearest 5, 6 or 15 minutes only if, over time, it doesn't leave employees underpaid. Check your employer's policy if your hours don't match.

Questions people ask

How do I calculate the time between two times?

Subtract the start time from the end time. From 9:15 am to 5:45 pm is 8 hours 30 minutes. If the end time is earlier on the clock, the period crossed midnight, so add 24 hours to the end time first.

How do I turn hours and minutes into decimal hours?

Divide the minutes by 60 and add them to the hours. 8 hours 30 minutes is 8.5 hours; 7 hours 45 minutes is 7.75 hours.

How many hours is 9 to 5?

8 hours. With an unpaid one-hour lunch it's 7 hours of paid work, or 35 hours over a five-day week.

Is 7.30 hours the same as 7 hours 30 minutes?

No. 7.30 as a decimal is 7 hours 18 minutes. 7 hours 30 minutes is 7.50 hours. Timesheets mix the two up all the time, so check which one a system expects.

What time is it 8 hours from now?

Use the "add or subtract" tool: it starts at the current time. Times that pass midnight show the next (or previous) day.

Also in the notebook