This time duration calculator works out how long it is between two clock times, in hours and minutes. Use it for class timings, study sessions, work shifts, exam duration or travel time. It can also add or subtract time from a clock time.
How to use the time duration calculator
Time between two times
- Enter the start time and the end time.
- Optional: enter a break in minutes, such as a 45-minute lunch.
- Read the result in hours and minutes, total minutes, decimal hours and HH:MM.
Add or subtract time
- Choose Add or subtract time.
- Enter the start time and the hours and minutes.
- Click Add or Subtract and read the new time and day.
Hours between two times: the method
Minutes after midnight = Hours × 60 + Minutes (24-hour clock)
Duration = End − Start
If End is earlier than Start, add 24 × 60 = 1,440 minutes
Hours = Duration ÷ 60 (whole part), Minutes = Duration mod 60
Example: 9:30 AM to 5:45 PM with a 45-minute break.
| Step | Working | Result |
|---|---|---|
| Start in minutes | 9 × 60 + 30 | 570 |
| End in minutes | 17 × 60 + 45 | 1,065 |
| Duration | 1,065 − 570 | 495 minutes = 8 h 15 min |
| Minus break | 495 − 45 | 450 minutes = 7 h 30 min |
| Decimal hours | 450 ÷ 60 | 7.5 hours |
Common mistake: A common mistake is writing 8 hours 15 minutes as 8.15 hours. In decimal hours it is 8.25, because 15 minutes is a quarter of an hour. Writing 8.15 on a timesheet loses 6 minutes.
Time difference across midnight
When a shift starts at night and ends the next morning, the end time looks smaller than the start. The calculator adds a day:
| Start | End | Duration |
|---|---|---|
| 10:00 PM | 6:30 AM | 8 hours 30 minutes |
| 11:45 PM | 12:15 AM | 30 minutes |
| 6:00 PM | 2:00 AM | 8 hours |
Add and subtract time
| Start | Change | Result |
|---|---|---|
| 9:15 PM | + 2 h 45 min | 12:00 AM, next day |
| 1:00 AM | − 1 h 30 min | 11:30 PM, previous day |
| 10:00 AM | + 3 h 20 min | 1:20 PM, same day |
Minutes to hours conversion
| Minutes | Hours and minutes | Decimal hours |
|---|---|---|
| 15 | 0 h 15 min | 0.25 |
| 30 | 0 h 30 min | 0.5 |
| 45 | 0 h 45 min | 0.75 |
| 90 | 1 h 30 min | 1.5 |
| 150 | 2 h 30 min | 2.5 |
Time calculations in code
Converting times to minutes and using the remainder (mod) operator is a classic beginner exercise, the same idea as splitting seconds into minutes and seconds. For whole dates rather than clock times, use the days calculator, and for years of work from joining and leaving dates, the experience calculator.
Pro tip: Planning study time? Find how long a chapter takes with the reading time calculator, then use this tool to fit sessions between your classes.
Times stay in your browser. Nothing is sent or saved.
