DATE & TIME CALCULATOR
Time Duration Calculator
Calculate the amount of time between two times in hours, minutes, total minutes, and decimal hours.
How Does the Time Duration Calculator Work?
Enter a start time and an end time to calculate the amount of time between them. The result is shown as hours and minutes, total minutes, and decimal hours.
The calculator also handles durations that cross midnight. For example, entering 10:00 PM as the start time and 2:00 AM as the end time produces a four-hour duration.
How to Calculate Time Duration
To calculate the duration between two times, subtract the start time from the end time.
Duration = End Time − Start Time
If the end time occurs after midnight, the calculator treats the end time as occurring on the following day.
Time Duration Example
Suppose you start work at 9:00 AM and finish at 5:30 PM.
The duration is:
8 hours 30 minutes
This is equivalent to 510 total minutes or 8.5 decimal hours.
Calculating Time Across Midnight
Some activities begin on one day and finish after midnight. For example, a work shift might begin at 10:00 PM and finish at 6:00 AM.
The calculator recognizes that the end time is on the following day and calculates a duration of:
8 hours
Decimal Hours vs. Hours and Minutes
Decimal hours express a duration as a number instead of separating it into hours and minutes.
For example, 2 hours and 30 minutes equals 2.5 decimal hours.
This can be useful when entering time into payroll, billing, scheduling, or timesheet systems.
Converting Minutes to Hours
To convert total minutes into hours, divide the number of minutes by 60.
For example:
150 ÷ 60 = 2.5 hours
Therefore, 150 minutes is equal to 2 hours and 30 minutes.
Frequently Asked Questions
How many hours are between 9 AM and 5 PM?
There are 8 hours between 9:00 AM and 5:00 PM.
How many hours are between 9 AM and 5:30 PM?
There are 8 hours and 30 minutes between 9:00 AM and 5:30 PM.
Can this calculator calculate overnight shifts?
Yes. If the end time is earlier than the start time, the calculator assumes the duration crosses midnight.
What is 2 hours and 30 minutes in decimal hours?
2 hours and 30 minutes equals 2.5 decimal hours.
How many minutes are in 8 hours?
Eight hours contains 480 minutes.
Can I use this for work hours?
Yes. It can be used to calculate the duration of work shifts, appointments, study sessions, travel, or other activities.