Time Calculator
Add and subtract hours and minutes, or find the time between two times.
This time calculator does the clock math that gets awkward by hand. Add two durations together, subtract one duration from another, or find how much time passes between a start time and an end time, including shifts that run past midnight. Results are shown in hours and minutes and as decimal hours, so 8 hours 30 minutes also reads as 8.50 hours, which is the format many timesheets and payroll systems use. Enter times in 24-hour format and durations in hours and minutes.
Result
This is an estimate for information only, not financial or medical advice.
How it works
Durations are converted to minutes, added or subtracted, and then converted back to hours and minutes. The decimal-hours figure is the total minutes divided by 60, so 45 minutes is 0.75 hours and 30 minutes is 0.50 hours. For the time between two times, both clock times are converted to minutes since midnight. If the end time is earlier than the start time, 24 hours are added to the end time, which is what makes an overnight span such as 22:30 to 02:15 come out as 3 hours 45 minutes instead of a negative number.
Total minutes = hours x 60 + minutes. Decimal hours = total minutes / 60. Time between = end minutes - start minutes (add 1,440 minutes if the end time is earlier).
Worked examples
| Problem | Result | Decimal hours |
|---|---|---|
| 2h 30m + 1h 45m | 4 hours 15 minutes | 4.25 hours |
| 5h 0m − 1h 30m | 3 hours 30 minutes | 3.50 hours |
| Between 09:00 and 17:30 | 8 hours 30 minutes | 8.50 hours |
| Between 22:30 and 02:15 (overnight) | 3 hours 45 minutes | 3.75 hours |
Frequently asked questions
How do I calculate the time difference in Excel?
In Excel, subtract the start time cell from the end time cell and format the result as hours and minutes. If the span crosses midnight, add 1 to the end time first. This page does the same calculation, including the overnight case, without a spreadsheet.
How long from one time to another?
Enter the start and end times in the between mode. The calculator gives the elapsed time in hours and minutes and in decimal hours, and it treats an earlier end time as the next day, so night shifts and overnight trips work.
What is double time on a time calculator?
Double time is a pay rate of twice the normal hourly rate, often used for holidays or overtime. This calculator works out durations only; multiply the decimal hours by your pay rate to get the pay for those hours.
How do I convert minutes to decimal hours?
Divide the minutes by 60. For example, 45 minutes is 45 / 60 = 0.75 hours, so 8 hours 45 minutes is 8.75 hours. The calculator shows this conversion automatically.