Hours between two times
Type a start and an end time, in 12-hour or 24-hour format: the duration appears as you type, with any break taken off, for free. Add more slots to total a split day, a babysitting schedule or a rota.
Free, no sign-up, no limit Runs in your browser: your text and files are never sent or saved.
Hours between two times
For example 8:30 AM, 5.45pm or 17:45. Without AM/PM, the time is read on a 24-hour clock.
Total time
Enter a start and an end time, or try the example: the duration appears here.
How to use it
- Enter the start and end times: 8:30 AM, 8.30pm, 20:30 or 830 all work.
- If needed, enter a break to subtract, in minutes (30) or as a duration (0:45, 1h).
- Add a slot for each part of the day, for example morning and afternoon: the total adds them up.
- Read the total in hours and minutes, in decimal hours and in minutes, then copy it.
Example
Input
8:30 AM to 12:15 PM, then 1:30 PM to 5:50 PM with a 10-minute break
Output
7:55 = 7.92 h = 475 min
Good to know
- Without AM or PM, a time is read on a 24-hour clock: 1:00 means 1 AM. An end time earlier than the start time is counted on the next day, and the slot is flagged.
- A slot lasts less than 24 hours. Identical start and end times are refused rather than read as a full day.
- Durations are calculated on 24-hour days: daylight saving time changes are not taken into account.
- Decimal hours are rounded to the hundredth: 7:55 gives 7.92 h. The pay is calculated on the exact minutes, then rounded to the cent.
Frequently asked questions
How do you calculate the hours between two times?
Convert both times to a 24-hour clock and subtract: 8:30 AM to 5:15 PM is 17:15 − 8:30 = 8 h 45 min, or 8.75 hours. If the end time is earlier than the start, add 24 hours first. The calculator does both and takes off any break.
How do I calculate hours worked with a lunch break?
Enter the start and end times, then the break in minutes: 8:00 AM to 4:30 PM with a 30-minute lunch gives 8 hours. For a split shift, add a slot for each part of the day instead; the total adds them up.
How do I count hours across midnight?
Enter the times as they are: an end time earlier than the start is counted on the next day, so 10:00 PM to 6:00 AM gives 8 hours. The slot is flagged so you can check it was intended. Each slot must be shorter than 24 hours.
How do I calculate the hours between two times in Excel?
With the start in A2 and the end in B2, =(B2-A2)*24 gives decimal hours, and =B2-A2 formatted as h:mm gives hours and minutes. For shifts past midnight, use =MOD(B2-A2,1)*24. Take off a break with -TIME(0,30,0).
How do I turn the result into decimal hours for payroll?
Divide the minutes by 60: 7 h 55 min is 7 + 55 ÷ 60 = 7.92 hours. The calculator shows the decimal total next to the h:mm one, rounded to the hundredth, ready to multiply by an hourly rate.
What if I type times without AM or PM?
Without AM or PM, a time is read on a 24-hour clock, so 1:00 means 1 AM and 1:00 to 5:00 counts 4 hours. Add “pm” (1pm, 5:30 PM) or type 24-hour times such as 13:00 to avoid surprises.