Free · No sign-up · Private

Time Difference Calculator

Calculate the duration between two times in hours and minutes.

Quick answer

To find the time between two times, subtract the start time from the end time; if the end is earlier, add 24 hours because it is the next day. From 9:00 to 17:30 is 8 hours 30 minutes, and from 22:00 to 6:00 is 8 hours. Enter both times to see the duration.

Time Difference CalculatorRuns in your browser
Duration
8h 30m

510 total minutes.

Step by step

How to use the Time Difference Calculator

01

Enter a start and end time.

02

See the elapsed hours and minutes.

Worked examples

Common shift lengths

StartEndDurationDecimal hours
09:0017:008h 0m8.00
08:3017:158h 45m8.75
07:0015:308h 30m8.50
22:0006:008h 0m8.00
12:0020:208h 20m8.33

Good to know

Turning the result into decimal hours

Timesheets and payroll often need hours as a decimal. Divide the minutes by 60 and add them to the hours: 8 hours 45 minutes is 8 + 45 ÷ 60 = 8.75 hours. The time to decimal calculator converts any time this way.

Breaks and overnight shifts

The calculator gives the gap between two clock times. Subtract unpaid breaks yourself. Shifts that cross midnight are handled automatically, but shifts longer than 24 hours need the date difference calculator.

FAQ

Frequently asked questions

How many hours is 9 to 5?

8 hours, from 9:00 to 17:00.

Does it work with military time?

Yes. The inputs use the 24-hour clock in most browsers; the military time converter explains the format.