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.
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
| Start | End | Duration | Decimal hours |
|---|---|---|---|
| 09:00 | 17:00 | 8h 0m | 8.00 |
| 08:30 | 17:15 | 8h 45m | 8.75 |
| 07:00 | 15:30 | 8h 30m | 8.50 |
| 22:00 | 06:00 | 8h 0m | 8.00 |
| 12:00 | 20:20 | 8h 20m | 8.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.
More date & time tools
Related tools
Countdown Timer
Set a target date and time and see a live countdown of the time remaining.
Open toolTime Zone Converter
Convert a time from one time zone to another using the IANA time zone database.
Open toolBusiness Days Calculator
Count working days between two dates, excluding weekends and optional holidays.
Open toolMilitary Time Converter
Convert military time (24-hour) to standard 12-hour AM/PM time and back, with a full military time chart.
Open tool