How to calculate hours between two times
To find the hours between two times of day, convert both to minutes after midnight, subtract, and convert back. A 12-hour time first needs its AM or PM resolved: 12 AM is midnight (0 minutes), times from 1 AM to 11 AM keep their hour, 12 PM is noon, and 1 PM to 11 PM add 12 hours. If the end time is earlier than the start time, the shift crossed midnight, so 24 hours (1,440 minutes) is added.
If minutes < 0, add 1,440
Decimal hours = minutes ÷ 60
Worked examples
A standard day shift
8:30 AM is 510 minutes after midnight and 5:30 PM is 1,050 minutes. The difference is 540 minutes, which is exactly 9 hours. If you took a 30-minute unpaid lunch, enter 30 in the break box and the worked time becomes 8 hours 30 minutes, or 8.5 hours.
An overnight shift
From 10:15 PM to 6:40 AM: 10:15 PM is 1,335 minutes and 6:40 AM is 400 minutes. The end is earlier, so add 1,440: 400 + 1,440 − 1,335 = 505 minutes, or 8 hours 25 minutes. As decimal hours that is 505 ÷ 60 = 8.42 hours.
Across several days
From January 15, 2026 at 8:30 AM to January 18, 2026 at 5:45 PM is 3 days, 9 hours and 15 minutes. In hours alone that is 81 hours 15 minutes, or 81.25 decimal hours, which is 4,875 minutes.
Converting minutes to decimal hours
Payroll systems and invoices usually want decimal hours. Divide the minutes by 60. The table shows common values.
| Minutes | Decimal hours | Minutes | Decimal hours |
|---|---|---|---|
| 5 | 0.08 | 35 | 0.58 |
| 10 | 0.17 | 40 | 0.67 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.33 | 50 | 0.83 |
| 25 | 0.42 | 55 | 0.92 |
| 30 | 0.50 | 60 | 1.00 |
Daylight saving time
These results use wall-clock time. On the night clocks spring forward, a shift from 11:00 PM to 7:00 AM shows 8 hours even though only 7 hours actually elapsed; on the night clocks fall back, 9 hours elapse. If you need elapsed time across a clock change, adjust the result by one hour, or check your employer's timekeeping policy, since US wage rules count hours actually worked.
About the hour
The hour is 60 minutes, or 3,600 seconds. Dividing the day into 24 hours traces back to ancient Egypt, where daylight and darkness were each split into 12 parts that changed length with the seasons. Equal-length hours became standard with mechanical clocks in medieval Europe. Today the second is defined atomically, and the hour is simply 3,600 of them.
Related tools
For a full week of clock-in and clock-out times with overtime and pay, use the time card calculator. For durations that include seconds, or between times on different dates down to the second, use the time duration calculator.
Hours in common periods
| Period | Hours | Minutes |
|---|---|---|
| Standard workday | 8 | 480 |
| Standard workweek | 40 | 2,400 |
| One day | 24 | 1,440 |
| One week | 168 | 10,080 |
| Full-time year (52 weeks × 40 hours) | 2,080 | 124,800 |
The 2,080-hour figure is the usual basis for converting between an hourly wage and an annual salary: a $25 hourly rate works out to about $52,000 per year before overtime or unpaid time off.
Entering times
Type the clock time as hours and minutes separated by a colon, such as 8:30 or 11:05, and choose AM or PM from the list next to it. A bare hour such as 9 is read as 9:00. Noon is 12:00 PM and midnight is 12:00 AM. If you are working from a 24-hour schedule, 13:00 to 21:00 corresponds to 1:00 PM to 9:00 PM.