Time Duration Calculator

Find the hours and minutes between two times — with breaks, overnight shifts and decimal hours.

If the end time is earlier than the start time, it is counted on the next day (overnight shift).

Duration8 h 0 minafter a 30-minute break
Decimal hours8.00480 minutes

How to calculate the time between two times

Convert both times to minutes after midnight, subtract, and convert back. If the end is earlier than the start, add 24 hours (the shift ends the next day). Subtract any unpaid break.

Example: 9:00 AM to 5:30 PM = 17:30 − 9:00 = 8 hours 30 minutes; minus a 30-minute lunch = 8 hours (8.00 decimal hours).

Decimal hours for timesheets

Payroll often needs decimal hours: divide the minutes by 60. 7 h 45 min = 7.75 hours; 8 h 20 min = 8.33 hours.

More date & time calculators

Frequently asked questions

How do I calculate hours between two times?

Subtract the start time from the end time; if the result is negative, add 24 hours. Then subtract unpaid breaks.

How many hours is 9 to 5?

8 hours. With a 30-minute unpaid lunch, 7.5 hours.

How do I convert minutes to decimal hours?

Divide by 60: 15 min = 0.25 h, 30 min = 0.5 h, 45 min = 0.75 h.