What is a Time Duration Calculator?
A Time Duration Calculator finds how much time has elapsed between a starting point and an ending point. Enter two times to find the difference in hours, minutes, and seconds, or use the date and time mode when the duration spans multiple calendar days.
For example, the duration from 9:15 AM to 5:45 PMis 8 hours 30 minutes. If a 30-minute break is deducted, the final duration becomes 8 hours.
How to calculate the duration between two times
The basic calculation is:
Duration = End time - Start time
Hours, minutes, and seconds can first be converted into seconds. After subtracting the start value from the end value, the result can be converted back into days, hours, minutes, and seconds.
How overnight time is calculated
A common problem occurs when the end time is after midnight. For example, a shift may start at 10:00 PMand finish at 6:00 AM.
Because 6:00 AM appears earlier on a clock than 10:00 PM, this calculator treats the end time as occurring on the following day. The result is therefore 8 hours.
Gross duration vs. duration after breaks
Gross duration is the complete elapsed time between the start and end. If you enter a break, the calculator subtracts that break from the gross duration to produce the final duration.
For example:
- Start: 9:00 AM
- End: 5:30 PM
- Gross duration: 8 hours 30 minutes
- Break: 30 minutes
- Final duration: 8 hours
Time duration in decimal hours
The same duration can also be represented as a decimal number of hours. Minutes are divided by 60 before being added to the hour value.
- 15 minutes = 0.25 hours
- 30 minutes = 0.5 hours
- 45 minutes = 0.75 hours
- 8 hours 30 minutes = 8.5 hours
Decimal hours can be useful for billing, project tracking, study logs, or comparing durations. For payroll-specific rounding and time-card conversion, use a dedicated decimal time or timesheet calculator because payroll policies can use different rounding rules.
Time duration examples
- 8:00 AM → 12:30 PM: 4 hours 30 minutes
- 9:15 AM → 5:45 PM: 8 hours 30 minutes
- 10:00 PM → 6:00 AM: 8 hours
- 11:30 PM → 1:15 AM: 1 hour 45 minutes
Common uses for a time duration calculator
- Calculate the hours between two times
- Find the length of a meeting, class, workout, or event
- Calculate an overnight shift that crosses midnight
- Subtract lunch or other break time
- Find total minutes or seconds between two times
- Convert elapsed time into decimal hours
- Calculate durations spanning multiple dates
Time Duration Calculator vs. Decimal Time Converter
These tools solve different problems. A time duration calculator starts with two points in time and calculates how much time passed between them. A decimal time converter converts an already-known duration, such as 8 hours 30 minutes, into a decimal value such as 8.5 hours or converts decimal hours back into hours and minutes.
Frequently Asked Questions
- Q. How many hours are between 9 AM and 5 PM?A. There are 8 hours between 9:00 AM and 5:00 PM. If you need to exclude a lunch or rest break, enter the break separately and it will be subtracted from the elapsed time.
- Q. How long is 9:30 AM to 5:00 PM?A. The duration is 7 hours 30 minutes, which is also 7.5 decimal hours.
- Q. Can the calculator handle times after midnight?A. Yes. In Time only mode, when the end time is earlier than the start time, the calculator automatically treats the end time as occurring on the following day. For example, 10 PM to 6 AM is calculated as 8 hours.
- Q. Can I calculate more than 24 hours?A. Yes. Select Date & time mode and enter the full starting and ending dates. The result can span multiple days and is also shown as total hours, minutes, and seconds.
- Q. Are 8 hours 30 minutes and 8.30 hours the same?A. No. 30 minutes is half of an hour, so 8 hours 30 minutes equals 8.5 decimal hours. A decimal value of 8.30 hours represents 8 hours and 18 minutes.
- Q. Does this calculator calculate payroll?A. It calculates elapsed time and can subtract breaks, but it does not apply employer-specific payroll, overtime, or rounding rules. Use a payroll or time-card calculator when those rules need to be applied.


