How to use this time duration calculator
- Between: type a start and an end time to see how long it is. If the end is earlier than the start the calculator treats it as the next day, which handles night shifts; add days if the gap is longer than 24 hours.
- Add / subtract: type a start time, choose Add or Subtract and type a duration to get the resulting time and whether it lands on another day.
- Total: list durations and read the sum. Start an entry with a minus sign to subtract it.
Times work in 12-hour (9:15 am) or 24-hour (17:45) style. Everything is calculated in your browser.
Time between two times
The duration is the end time minus the start time, worked out in seconds so that minutes and hours carry correctly (60, not 100, to the next unit). With the default times:
- Duration = end − start = 17:45:00 − 9:15:00 = 8:30:00.
- Decimal hours: 8:30:00 is 8.5 hours.
That is 8 h 30 min, or 8.5 h as a decimal, which is the form timesheets and invoices usually need. For a shift that crosses midnight, such as 10:00 pm to 6:00 am, the end is on the next day: From 10:00 PM to 6:00 AM (next day) is 8 h. A day shift of 8:00 to 17:30 is 9 h 30 min.
If you also need to take unpaid breaks off a working day, use the hours calculator, which is built for timesheets; this page is for general durations.
Adding and subtracting time
To find a finishing time, add the duration to the start time. If the result passes midnight the clock wraps and the calculator tells you how many days later it is: 10:30 PM plus 3 h 15 min is 1:45 AM (+1 day). Subtracting works the same way in the other direction, and it also wraps: 1:15 AM minus 2 h is 11:15 PM (−1 day).
Durations can be written as h:mm or h:mm:ss, in words (2h 30m, 2 hours 30 minutes), as decimal hours (1.5h) or as plain minutes (90). A plain number counts as minutes because that is how most people write short durations.
Adding up a list of durations
Adding times by hand goes wrong because minutes carry at 60. Add the entries in seconds and convert back instead. For example 1:45 + 2:30 + 0:50 comes to 5 h 5 min (5:05:00), not 4:125. Mixed formats work too: 1.5h + 45m + 2:10:30 − 0:20 comes to 4 h 5 min 30 s. This suits workout logs, video running times, study time, project tracking and invoices.
Minutes to decimal hours
Payroll and billing often want hours as a decimal. Divide the minutes by 60:
| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 5 | 0.0833 | 35 | 0.5833 |
| 10 | 0.1667 | 40 | 0.6667 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.3333 | 50 | 0.8333 |
| 25 | 0.4167 | 55 | 0.9167 |
| 30 | 0.5 | 60 | 1 |
So 7 h 45 min is 7.75 hours, not 7.45. The calculator shows the decimal value for every result.
Common mistakes
- Treating minutes as base 10: 1 h 75 min is 2 h 15 min, and 1.75 hours is 1 h 45 min.
- Mixing up 12 am and 12 pm: 12:00 am is midnight and 12:00 pm is noon.
- Forgetting that an end time earlier than the start means the next day.
- Ignoring daylight saving time. This calculator works on clock times and durations only, so a night when the clocks change can be an hour longer or shorter in real life than the arithmetic says.
Related calculators and converters
Time duration calculator FAQ
How do I calculate the time between two times?
Subtract the start time from the end time, in hours and minutes. From 9:15 am to 5:45 pm: 17:45 − 9:15 = 8 hours 30 minutes. If the end is on the next day, add 24 hours first.
How do I calculate time that crosses midnight?
Treat the end as the next day by adding 24 hours: from 10:00 pm to 6:00 am is 6:00 + 24:00 − 22:00 = 8 hours. This calculator does it automatically when the end is earlier than the start.
How do I add hours and minutes together?
Add the minutes and carry every 60 into the hours. 1:45 + 2:30 = 3 h 75 min = 4 h 15 min. Use the Total tab to do it for a list: 5 h 5 min for 1:45, 2:30 and 0:50.
How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add them to the hours. 8 h 30 min is 8 + 30÷60 = 8.5 hours. The calculator shows the decimal hours for every result.
Can I subtract a duration from a time?
Yes. Choose Subtract in the Add / subtract tab. 1:15 AM minus 2 h is 11:15 PM (−1 day).
What formats can I type?
Times: 9:15 am, 9pm, 17:45, 0915. Durations: 2:30, 2:30:15, 2h 30m, 2 hours 30 minutes, 1.5h, 90m, 45s. A plain number in a duration counts as minutes.
Does it account for daylight saving time?
No. It works on clock times and durations only. On the night clocks change, the real elapsed time can differ by an hour from the arithmetic.