Time Difference Calculator
Calculate the duration between two times of day in hours and minutes, entered in simple 24-hour HH:MM format.
Inputs
24-hour format, HH:MM
24-hour format, HH:MM
Result
Fill in the fields to see your result.
Formula
Both times are converted to minutes since midnight, then the start is subtracted from the end. If the result is negative, a full day (1440 minutes) is added to account for crossing midnight.
duration = (end_minutes − start_minutes + 1440) mod 1440Step-by-step
- 1
Enter the start time
Use 24-hour HH:MM format, such as 09:00.
- 2
Enter the end time
Also in 24-hour HH:MM format, such as 17:30.
- 3
Read the duration
The calculator shows the elapsed time in hours and minutes, plus the total minutes.
Examples
Standard workday
- start Time
- 09:00
- end Time
- 17:30
8h 30m (510 total minutes)
Overnight shift
- start Time
- 22:00
- end Time
- 06:00
8h 0m (480 total minutes), assuming the end time is the next day