Time Duration Calculator — Hours Between Two Times

A shift that starts at 9:47 and ends at 4:23 is not 6.76 hours, and it is not 7 hours either. It is 6 hours 36 minutes, and this page does the conversion so you don’t have to. Enter a start time and an end time, and you get the gap in hours, minutes, and seconds, including overnight spans that cross midnight.

Enter your numbers

Leave blank for a single block.

Leave blank for a single block.

Result

The minute trick

Convert both times to minutes since midnight, then subtract. If the end time is earlier, add 24 hours (1,440 minutes) first. Duration = End minus Start (same day). Overnight duration = End + 24:00 minus Start. Decimal hours = Total minutes ÷ 60.

FormatExampleUse it for
Hours : minutes6 h 36 minEveryday reading: shifts, trips, cooking
Total minutes396 minutesAdding blocks, comparing spans
Decimal hours6.6 hoursTimesheets, billing, payroll

Three spans, three answers

Same day. From 9:47 AM to 4:23 PM: 9:47 AM is 587 minutes after midnight, and 4:23 PM is 983 minutes. 983 − 587 = 396 minutes. 396 ÷ 60 = 6 hours with 36 minutes left over. Result: 6 hours 36 minutes (396 minutes, 6.6 decimal hours).

Overnight. From 10:30 PM to 6:15 AM: 10:30 PM is 1,350 minutes, and 6:15 AM next day is 375 + 1,440 = 1,815 minutes. 1,815 − 1,350 = 465 minutes. Result: 7 hours 45 minutes (465 minutes, 7.75 decimal hours).

A shift with a break. 8:00 AM–12:00 PM (4 h) plus 1:00 PM–5:30 PM (4 h 30 min) = 8 hours 30 minutes of work, with the 1-hour lunch break excluded. For overnight spans, set the end datetime to the next day. Use the Block 2 start and end datetime fields to total a shift with breaks.

Adding up a week of shifts

A single shift is easy. The fiddly job is the whole week, when every day starts and finishes at a different time, some days have a break and some do not. The add-blocks mode above handles it: enter each day as its own block, using two blocks on any day where an unpaid break splits the shift, and the total at the end is your week.

A worked week. Monday to Thursday each include a 30-minute unpaid lunch; Friday is a short day with no break.

  • Monday: 8:00 AM to 4:30 PM, minus 30 minutes = 8 h 0 min.
  • Tuesday: 8:00 AM to 4:30 PM, minus 30 minutes = 8 h 0 min.
  • Wednesday: 9:00 AM to 5:00 PM, minus 30 minutes = 7 h 30 min.
  • Thursday: 8:30 AM to 5:00 PM, minus 30 minutes = 8 h 0 min.
  • Friday: 8:00 AM to 2:00 PM, no break = 6 h 0 min.
  • Week total: 37 hours 30 minutes, which is 2,250 minutes, or 37.5 in the decimal hours a timesheet wants.

Adding the days in minutes, as the calculator does, is what keeps this honest. Hours and minutes added in your head tend to go wrong exactly where Wednesday’s half hour meets Thursday’s different start time. Once the week is totalled, the Salary to Hourly Calculator turns the same hours into pay, if you need the money side of the week as well.

Decimal hours trip almost everyone up

6 hours 36 minutes is 6.6 hours, but 6 hours 30 minutes is 6.5 hours, because minutes divide by 60. See How to Calculate Time Duration for the full decimal-hours treatment.

Three more cautions. The calculator assumes both times are in the same time zone. Flights and calls across zones need the zone difference added separately. Daylight-saving changes can make one day 23 or 25 hours long, so spans crossing a clock change may be off by an hour. And breaks are not deducted automatically: add time blocks separately for shifts with unpaid breaks.

The usual uses are a work shift (9 to 5 with lunch), overnight sleep duration, adding durations as a sum of several blocks, and minutes to decimal hours conversion.

Questions

How do I calculate the time between two times?

Subtract the start time from the end time. If the end time is earlier (the span crosses midnight), add 24 hours to the end time first. The calculator above does both cases.

How do I handle a time span that crosses midnight?

Treat the end time as belonging to the next day. Add 24 hours to it, then subtract. From 10:30 PM to 6:15 AM that gives 7 hours 45 minutes.

What is 6 hours 36 minutes in decimal hours?

6.6 hours. Divide the minutes by 60 (36 ÷ 60 = 0.6) and add the hours: 6 + 0.6 = 6.6.

Can I add two durations together?

Yes. Enter the second span in the Block 2 start and end datetime fields. Add each span in minutes, then convert back to hours and minutes. A 4-hour morning plus a 4-hour-30-minute afternoon is 8 hours 30 minutes.

How do I add up hours for a whole week?

Enter each day as its own block in the add-blocks mode, splitting days at unpaid breaks, and read the total at the end. The worked week above comes to 37 hours 30 minutes across five shifts, which is 37.5 decimal hours.

Can I total a week where every day has different times?

Yes. Each block takes its own start and finish time, so a 9-to-5 day and an 8:30-to-5 day can sit in the same total. Adding the blocks in minutes means the differences between days take care of themselves.

How do I turn a weekly total into decimal hours for a timesheet?

Divide the minutes part by 60 and add it to the hours. 37 hours 30 minutes becomes 37.5 hours, because 30 divided by 60 is 0.5. Payroll systems usually want the decimal form, not hours and minutes.

Other pages that pair with this one

Adding days to a date is the Date Calculator. Counting the gap between two dates is the Days Between Dates Calculator. Average speed from distance and time is the Speed Calculator, and exact age from a date of birth is the Age Calculator. All Everyday Calculators · All Calculators