Quick answer
How do I calculate the hours between two times?
Enter a start and an end time and the calculator shows the duration in hours and minutes and in decimal hours. Add a break in minutes to take off lunch. If the end time is earlier than the start, it counts as an overnight shift, so 22:00 to 06:00 is 8 hours.
How to calculate the time between two times
- Enter the start time and end time.
- Enter any unpaid break in minutes.
- Read the duration in hours and minutes, and in decimal hours.
If the end time is earlier than the start time, the calculator treats it as the next day, so an overnight shift from 22:00 to 06:00 is 8 hours.
Working out hours for a timesheet
For a 9:00 to 17:30 shift with a 30-minute lunch, the duration is 8 hours, or 8.00 in decimal hours. Multiply decimal hours by your hourly rate to estimate pay, or add each day's total in the Time Calculator.
Common uses
- Daily work hours and shift lengths.
- How long a trip, meeting or event lasted.
- Sleep duration from bedtime to wake time.
- Billable hours for freelancers.
Shift and timesheet examples
| Start | End | Break | Hours worked | Decimal |
|---|---|---|---|---|
| 09:00 | 17:30 | 30 min | 8 h 00 min | 8 |
| 08:45 | 17:15 | 45 min | 7 h 45 min | 7.75 |
| 07:30 | 15:50 | none | 8 h 20 min | 8.33 |
| 22:00 | 06:00 | none | 8 h 00 min | 8 |
| 13:00 | 21:30 | 30 min | 8 h 00 min | 8 |
12-hour to 24-hour time
| 12-hour | 24-hour |
|---|---|
| 12:00 AM (midnight) | 00:00 |
| 1:00 AM | 01:00 |
| 9:30 AM | 09:30 |
| 12:00 PM (noon) | 12:00 |
| 1:00 PM | 13:00 |
| 5:45 PM | 17:45 |
| 11:59 PM | 23:59 |
For PM times after noon, add 12 to the hour. For 12 AM, use 00.
From hours to pay
Payroll uses decimal hours. Multiply the decimal result by the hourly rate: 7.75 hours at $15 an hour is 7.75 × 15 = $116.25. To total a whole week, add each day in the time calculator.
Frequently asked questions
How many hours is 9 to 5?
8 hours, or 7.5 hours with a 30-minute lunch break.
Is 12 PM noon or midnight?
12 PM is noon. 12 AM is midnight, the start of the day.
How many hours is 7 AM to 7 PM?
12 hours.
Does it work for overnight shifts?
Yes. When the end time is earlier than the start time, it is counted as the next day.
How do I convert the result to decimal hours?
It is shown under the result. For example, 7 hours 45 minutes is 7.75 hours.
Can I calculate durations longer than 24 hours?
This tool covers up to 24 hours. For longer spans, use the Date Calculator or add several durations in the Time Calculator.
Does it use 12-hour or 24-hour time?
It follows your device settings, so you may see AM and PM or a 24-hour clock.