Find the hours and minutes between two times or two dates, take off unpaid breaks and get decimal hours for timesheets and payroll.
With two times, an end time earlier than the start time is treated as the next day, so overnight shifts work. Results don't adjust for daylight saving time changes.
The hours calculator finds the time between a start time and an end time, takes off any unpaid break and gives the answer in hours and minutes and in decimal hours. A shift from 9:00 AM to 5:30 PM is 8 hours 30 minutes, or 8.50 hours. With a 30-minute unpaid lunch break, it’s 8 hours, or 8.00 hours. Overnight shifts work too: 10:00 PM to 6:30 AM is 8 hours 30 minutes.
For longer periods, switch to Two dates and times to count the hours between, say, 8:00 AM on Wednesday and 5:15 PM on Friday, which is 57 hours 15 minutes. The decimal figure is the one most payroll systems, invoices and timesheets need.
The calculator converts both times to minutes after midnight, subtracts the start from the end and then subtracts the break.
When the end time is earlier than the start time, the shift must finish the next day, so the calculator adds 24 hours to the end time. For 10:00 PM to 6:30 AM: 6:30 AM is 390 minutes after midnight, plus 1,440 minutes for the next day gives 1,830. Subtracting the start of 1,320 minutes leaves 510 minutes, or 8 hours 30 minutes. If the start and end times are the same, the calculator assumes a full 24-hour period.
In the dates and times mode, the calculator measures from the start date and time to the end date and time. From Wednesday 18 November 2026 at 8:00 AM to Friday 20 November 2026 at 5:15 PM is 2 days, 9 hours and 15 minutes, which is 57 hours 15 minutes or 57.25 hours.
Payroll and billing software usually needs hours as a decimal number, not hours and minutes. To convert, divide the minutes by 60 and add the result to the whole hours.
| Minutes | Decimal | Minutes | Decimal |
|---|---|---|---|
| 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 |
For example, from 8:15 AM to 12:40 PM is 4 hours 25 minutes. Since 25 ÷ 60 = 0.4167, that’s 4.42 hours to two decimal places. The most common mistake is writing 4 hours 25 minutes as 4.25 hours, which underpays by 10 minutes.
Multiply the decimal hours by the hourly rate. At $18.50 an hour, an 8-hour shift pays 8 × 18.50 = $148.00, and 4.42 hours pays about $81.77. Always use the decimal figure, never the hours-and-minutes figure, when you multiply. To total a full week with several shifts, overtime and pay, the time card calculator is quicker.
Only unpaid breaks should be entered in the break box. Many employers pay short rest breaks, such as a 10- or 15-minute coffee break, and don’t pay meal breaks of 30 minutes or more. In the United States, federal law generally treats short breaks of about 5 to 20 minutes as paid working time, while bona fide meal periods of 30 minutes or more, when the employee is fully relieved of duties, don’t need to be paid. Rules differ by state and country, so check your contract or local labour law.
Once you know the length of a typical shift, it’s easy to scale up. Five 8-hour shifts make a 40-hour week, and five shifts of 9:00 AM to 5:30 PM with a 30-minute unpaid lunch also come to 40 hours. A 40-hour week over 52 weeks is 2,080 hours a year, which is the figure often used to turn an hourly rate into an annual salary and back again. Divided by 12, that’s about 173.33 hours a month.
Many full-time jobs in the UK and elsewhere are 37.5 hours a week: five days of 7.5 hours, such as 9:00 AM to 5:00 PM with a 30-minute unpaid break. Over 52 weeks that’s 1,950 hours. Part-time contracts are usually expressed the same way, so a 0.6 role on a 37.5-hour week is 22.5 hours. Holidays and public holidays reduce the hours actually worked, so check whether a contract counts them when comparing jobs.
In Excel or Google Sheets, subtract the start time cell from the end time cell to get the time worked. For overnight shifts, use MOD(end - start, 1), which adds a day when the end is earlier than the start. Multiply the result by 24 to get decimal hours, and subtract a break by taking off its minutes divided by 1,440. A few checks against this calculator will confirm your formulas give the same totals.
Hours and minutes use base 60, while money uses base 10, so they can’t be multiplied together directly. Converting to decimal hours puts time into the same base as pay rates and prices. That’s why timesheets and invoices almost always show hours such as 7.75 or 37.50 rather than 7:45 or 37:30, and why getting the conversion right matters for both workers and employers.
Two other tools work well alongside this one: the time duration calculator, to find the time between two clock times, and the time calculator, to add and subtract days, hours, minutes and seconds.
Subtract the start time from the end time, then take off any unpaid break. For example, 9:00 AM to 5:30 PM with a 30-minute break is 8 hours.
9:00 AM to 5:00 PM is 8 hours. With a 30-minute unpaid lunch break, it's 7.5 hours of paid work.
Enter the start and end times as normal. When the end time is earlier than the start time, the calculator treats it as the next day, so 10:00 PM to 6:30 AM is 8 hours 30 minutes.
Divide the minutes by 60 and add the result to the hours. For example, 7 hours 45 minutes is 7 + 45 ÷ 60 = 7.75 hours.
15 minutes is 0.25 hours. 30 minutes is 0.5 hours and 45 minutes is 0.75 hours.
Enter only unpaid breaks in the break box. Paid breaks count as time worked, so leave them in.
Choose Two dates and times and enter the start and end dates as well as the times. For example, 8:00 AM Wednesday to 5:15 PM Friday is 57.25 hours.
Multiply the decimal hours by the hourly rate. For example, 8.5 hours at $20 an hour is $170.
Because 25 minutes is 25/60 of an hour, which is about 0.42. So 4 hours 25 minutes is about 4.42 hours.
No. It assumes every hour on the clock is a real hour. If a shift crosses a clock change, add or subtract one hour.
Yes. In the Two times mode, enter the same start and end time and the calculator counts a full 24 hours. For longer periods, use the dates and times mode.