Use this free time calculator to add and subtract hours, minutes and seconds, to find the time between two times, and to convert between hours, minutes, seconds and decimal hours. Add up lengths of time and get the total as hours:minutes:seconds, decimal hours, minutes and seconds. Work out how long a shift is, with an unpaid break taken off and night shifts allowed for. Tables show how many hours common shifts like 9 to 5 are, minutes as decimal hours, how many seconds are in a day, and 24-hour time. It is free and instant, and your times stay in your browser.
How to add and subtract time
Enter each length of time in days, hours, minutes and seconds. The first line is your starting time. For every other line choose Add or Subtract. The calculator turns everything into seconds, adds them up and shows the total in a clear form.
9 h 6 min 15 sSeconds: 30 + 45 = 75, which is 1 minute 15 seconds. Minutes: 45 + 20 + 1 = 66, which is 1 hour 6 minutes. Hours: 5 + 3 + 1 = 9.
How to find the time between two times
Open the Time Duration tab, enter the start time and the end time, and add the dates if they are on different days. You can take off an unpaid break in minutes. The answer is the hours and minutes between the two times, with the same total as decimal hours, minutes and seconds. If the end is earlier than the start on the same date, it counts to the next day, so a night shift from 10:00 PM to 6:15 AM is 8 hours 15 minutes.
8 hours 15 minutes (8.25 hours)8:30 to 17:15 is 8 hours 45 minutes. Taking off the 30 minute break leaves 8 hours 15 minutes, which is 8 + 15 ÷ 60 = 8.25 decimal hours.
Carrying over by hand
Time does not work in tens, so you carry over at 60 seconds and 60 minutes, and at 24 hours for days. If you add by hand, add each column, then carry: every 60 seconds becomes 1 minute, and every 60 minutes becomes 1 hour. When you subtract and the number below is bigger, borrow 60 from the column to its left.
Negative results
If you subtract more than you started with, the answer is negative and is shown with a minus sign. For example, 1 hour minus 2 hours 30 minutes is −1 hour 30 minutes, or −1.5 decimal hours.
Decimal hours and minutes
The result also appears as decimal hours, decimal minutes and total seconds. To convert minutes to a decimal hour, divide by 60: 15 minutes is 0.25 hours and 45 minutes is 0.75 hours. Decimal hours are the form most payroll and invoicing systems ask for.
Converting hours, minutes and seconds
Use the Convert Time tab to change an amount of time from one unit to another: milliseconds, seconds, minutes, hours, days or weeks. 3 hours is 180 minutes or 10,800 seconds, and 105 minutes is 1.75 hours. Type a time such as 7:45 in the Amount box to see it as decimal hours (7.75). An hour has 60 minutes or 3,600 seconds, a day has 86,400 seconds and a week has 604,800 seconds.
How many hours is 9 to 5?
9 AM to 5 PM is 8 hours. With a 30 minute unpaid lunch it is 7.5 hours, and with a 1 hour lunch it is 7 hours. The table on this page lists common shifts such as 8 to 4, 8 to 5, 7 to 3 and 10 to 6, and an overnight shift from 11 PM to 7 AM, which is also 8 hours.
24-hour (military) time
A 24-hour clock counts the hours 0 to 23. For the hours after noon, subtract 12 to get the PM time: 15:30 is 3:30 PM and 1800 hours is 6:00 PM. 0000 is midnight and 1200 is noon. The 24-Hour Time to 12-Hour Time table on this page lists every hour.
Adding time in Excel and Google Sheets
In a spreadsheet, type the times as hours:minutes, such as 5:45 and 3:20, and add them with =A1+B1. Format the answer cell as a duration, or with the custom format [h]:mm, so totals over 24 hours are not cut off. Multiply the answer by 24 to get decimal hours.
Common uses
- Adding up the length of tasks, workouts, videos or journeys.
- Adding the hours you worked over several days.
- Taking a break or a delay off a total time.
- Working out lap times or a total running time.
To find what time it will be after some hours, use the Hours Calculator. To count the days between two dates use the Day Counter, and to add days or weeks to a date use the Date Calculator.

