Time Duration Calculator
Enter a start time and an end time to get the hours and minutes between them, in decimal hours too. Shifts past midnight work.
How it works
The duration is the end time minus the start time. From 9:00 AM to 5:30 PM is 8 hours 30 minutes.
When the end time is earlier than the start time, the calculator assumes it is on the next day and adds 24 hours. 10:00 PM to 6:00 AM is 8 hours, not minus 16.
Decimal hours are minutes ÷ 60, which is what most payroll and timesheet systems want. 3 hours 25 minutes is 3 + 25 ÷ 60 = 3.42 hours.
An unpaid break is subtracted from the total. The calculator does not know about daylight saving time changes, so a night shift on the night the clocks change is one hour longer or shorter than shown.
Worked examples
| Question | Answer |
|---|---|
| 9:00 AM to 5:30 PM | 8 h 30 min = 8.5 hours |
| 9:15 AM to 5:45 PM with a 30-minute lunch | 8 h 0 min = 8 hours |
| 10:00 PM to 6:00 AM (night shift) | 8 h 0 min = 8 hours |
| 8:45 AM to 12:10 PM | 3 h 25 min = 3.42 hours |
| 7:00 AM to 7:00 PM with a 45-minute break | 11 h 15 min = 11.25 hours |
| 11:30 AM to 2:20 PM | 2 h 50 min = 2.83 hours |
Frequently asked questions
How do I calculate hours between two times?
Subtract the start time from the end time. If the minutes of the end time are smaller, borrow an hour: 5:15 PM minus 9:40 AM is 16:75 minus 9:40, which is 7 hours 35 minutes.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 15 minutes is 0.25 hours, 30 minutes 0.5, 45 minutes 0.75 and 20 minutes about 0.33.
How many hours is 9 to 5?
8 hours. With a one-hour unpaid lunch it is 7 hours of work.
Does this work for shifts that go past midnight?
Yes. If the end time is earlier than the start time, it is counted as the next day.
More calculators
- Percentage Calculator
- Age Calculator
- Days Between Dates Calculator
- BMI Calculator
- Tip Calculator
- Random Number Generator
- Password Generator
- Loan Calculator
- Mortgage Calculator
- Running Pace Calculator
- Cups to Grams Converter
- Compound Interest Calculator
- Discount Calculator
- GPA Calculator
- Fraction Calculator
- Basic Calculator
- Unit Converter
- Word Counter
- Character Counter