Hours Calculator
Find the hours and minutes between two times, add time to a clock time, or total a weekly time card with lunch breaks. Every result shows hours and minutes plus decimal hours for payroll.
Total time
8 h 0 min
8:00 (h:mm)
Decimal hours
8.00 hours
Total minutes
480
9:00 AM → 5:30 PM: 8 h 30 min, minus the break 8 h 0 min.
What this hours calculator does
There are four tools on this page. Between two times gives the hours and minutes from a start time to an end time, minus an unpaid break. Add or subtract moves a clock time forward or back by hours and minutes. Time card totals clock in and clock out for Monday through Sunday, splits out overtime and works out pay. Add durations sums a list like 2:45 + 3:30.
Type times as 9:30 and pick AM or PM, or type 17:30 in 24-hour style. In the time card you can type 9 am or 5:30pm straight into each box. Looking for the gap between two cities? The time difference calculator handles time zones, while this tool measures elapsed time in one place.
How to calculate hours between two times
Convert both times to 24-hour time, then subtract the start from the end. If the end minutes are smaller, borrow an hour as 60 minutes. For 8:45 AM to 5:15 PM: 5:15 PM is 17:15, which you can write as 16:75. 16:75 minus 8:45 is 8 hours 30 minutes.
Example: a shift with a 30 minute lunch
You clock in at 8:45 AM, clock out at 5:15 PM and take a 30 minute unpaid lunch. The span is 8 h 30 min, minus lunch leaves 8 h 0 min, or 8.00 decimal hours. Enter 30 in the break box and the calculator does the subtraction for you.
Federal law does not require lunch or coffee breaks. When an employer does give short breaks of about 5 to 20 minutes, the U.S. Department of Labor counts them as paid work time. Bona fide meal periods, usually 30 minutes or more, are not work time. So deduct the meal break, not the short rest breaks. Some states have their own break rules.
Overnight shifts that cross midnight
When the end time is earlier than the start time, the calculator treats it as an overnight shift. 10:00 PM to 6:30 AM is 8 hours 30 minutes. By hand, take the time to midnight (2 hours) and add the time after midnight (6 hours 30 minutes).
Adding or subtracting hours from a time
A job starts at 2:30 PM and runs 7 hours 45 minutes. 2:30 PM plus 7:45 is 10:15 PM, the same day. Start at 8:00 PM and add 6 hours 30 minutes and you land on 2:30 AM the next day, which the result flags. Subtracting works the same way: 3 hours before 1:00 AM is 10:00 PM the previous day.
To move by whole days instead, use the add days to a date calculator, and for days between two dates use the date difference calculator.
Converting minutes to decimal hours
Payroll systems usually want decimal hours, because you can multiply them by an hourly rate. Divide the minutes by 60: 7 hours 20 minutes is 7 + 20/60 = 7.33 hours. Common values:
| Minutes | Decimal hours |
|---|---|
| 10 min | 0.17 |
| 15 min | 0.25 |
| 20 min | 0.33 |
| 30 min | 0.50 |
| 40 min | 0.67 |
| 45 min | 0.75 |
| 50 min | 0.83 |
Time card example with overtime
Monday to Friday you work 9:00 AM to 5:30 PM with a 30 minute lunch: 8 hours a day, 40 hours for the week. On Saturday you add 9:00 AM to 1:00 PM, so the week comes to 44 hours.
Under the Fair Labor Standards Act, non-exempt employees must get at least one and a half times their regular rate for hours over 40 in a workweek. At $20 an hour that week pays 40 × $20 = $800 plus 4 × $30 = $120, or $920 gross. Set the overtime box to 40 and the rate to 20 to see the same split. For yearly pay from an hourly rate, try the salary to hourly calculator, and for overtime in more detail the overtime calculator.
Calculating hours in Excel or Google Sheets
Spreadsheets store a time as a fraction of a day. With the start in A2 and the end in B2, =B2-A2 gives the duration. For overnight shifts use =MOD(B2-A2,1) so the result does not go negative. Multiply by 24 to get decimal hours. When you total a week, format the cell as [h]:mm, otherwise 41 hours shows up as 17:00.