On this page
Formula
Decimal hours = (End − Start − Break) ÷ 60
- End
- the end time in minutes after midnight, plus 1,440 (24 hours) if the shift ends the next day
- Start
- the start time in minutes after midnight
- Break
- unpaid break time in minutes
Hours between a start and end time
The hours calculator converts both times to minutes after midnight and subtracts the start from the end. For a shift from 9:00 to 17:30, that is 1,050 − 540 = 510 minutes, or 8 hours 30 minutes. Any unpaid break is then subtracted to give the time worked.
Times are entered on a 24-hour basis, although your browser may display the field in 12-hour format with AM and PM. Midnight is 00:00 and noon is 12:00.
| 12-hour clock | 24-hour clock |
|---|---|
| 12:00 AM (midnight) | 00:00 |
| 6:30 AM | 06:30 |
| 12:00 PM (noon) | 12:00 |
| 1:00 PM | 13:00 |
| 5:45 PM | 17:45 |
| 11:59 PM | 23:59 |
How to calculate hours worked by hand
The same steps work on paper. Take a shift from 9:20 to 18:05 with a 40-minute unpaid lunch.
- Convert each time to minutes after midnight. 9:20 is 9 × 60 + 20 = 560. 18:05 is 18 × 60 + 5 = 1,085.
- Subtract the start from the end. 1,085 − 560 = 525 minutes, which is 8 hours 45 minutes.
- Take off the unpaid break. 525 − 40 = 485 minutes, or 8 hours 5 minutes.
- Convert to decimal hours. 485 ÷ 60 = 8.0833…, which rounds to 8.08 hours.
An alternative is to borrow an hour when the end minutes are smaller than the start minutes: 18:05 becomes 17:65, and 17:65 − 9:20 = 8:45. Both methods give the same answer.
Working out hours with a lunch break
Enter an unpaid lunch or other break in minutes, and it is taken off the time between clocking in and clocking out. A 7:30 to 16:00 shift is 8 hours 30 minutes on the clock. With a 30-minute unpaid lunch, the time worked is 8 hours, or 8.00 decimal hours. If you take two unpaid breaks, add them together and enter the total. Paid rest breaks stay in the total, so leave them out of the break field.
Overnight shifts
When a shift crosses midnight, the end time is a smaller number than the start time. Subtracting would give a negative answer, so the calculator adds 24 hours to the end time first. A shift from 23:00 to 07:00 becomes 07:00 + 24 h − 23:00 = 8 hours. A note under the result tells you when this has happened.
By hand, split the shift at midnight. From 21:40 to midnight is 2 hours 20 minutes, and from midnight to 05:10 is 5 hours 10 minutes, for a total of 7 hours 30 minutes, or 7.5 hours.
If you clock in and out at exactly the same time, the hours calculator reads this as a full 24-hour shift rather than zero.
Converting hours and minutes to decimal hours
Payroll systems and timesheets usually record time as decimal hours, because hourly pay is hours multiplied by a rate. To convert, divide the minutes by 60.
| Minutes | Exact decimal | Rounded to 2 places |
|---|---|---|
| 0 | 0 | 0.00 |
| 5 | 0.0833… | 0.08 |
| 10 | 0.1666… | 0.17 |
| 15 | 0.25 | 0.25 |
| 20 | 0.3333… | 0.33 |
| 25 | 0.4166… | 0.42 |
| 30 | 0.5 | 0.50 |
| 35 | 0.5833… | 0.58 |
| 40 | 0.6666… | 0.67 |
| 45 | 0.75 | 0.75 |
| 50 | 0.8333… | 0.83 |
| 55 | 0.9166… | 0.92 |
| 60 | 1 | 1.00 |
A common mistake is to read 7 hours 30 minutes as 7.30. In decimal form it is 7.5 hours, and paying it as 7.3 hours would short the worker 12 minutes.
Adding up a week
For a weekly total, run each day through the calculator and add the results. Here is an example week with unpaid breaks already deducted:
| Day | Start | End | Unpaid break | Time worked | Decimal hours |
|---|---|---|---|---|---|
| Monday | 08:00 | 16:30 | 30 min | 8 h 00 min | 8.00 |
| Tuesday | 08:10 | 17:05 | 30 min | 8 h 25 min | 8.42 |
| Wednesday | 07:55 | 16:20 | 30 min | 7 h 55 min | 7.92 |
| Thursday | 08:00 | 18:15 | 45 min | 9 h 30 min | 9.50 |
| Friday | 08:05 | 14:00 | none | 5 h 55 min | 5.92 |
The total is 2,385 minutes, which is 39 hours 45 minutes or exactly 39.75 hours. Adding the rounded daily figures instead gives 39.76, because each day’s rounding adds a little. For the most accurate total, add the minutes first and convert to decimal once at the end. If you need to see what share of a target the total represents, such as hours against a 40-hour week, the percentage calculator can help.
Rounding, breaks and overtime
Many employers record clock times to the nearest 5 minutes, tenth of an hour (6 minutes) or quarter hour (15 minutes). US federal rules allow this kind of rounding only if, over time, it doesn’t result in employees being underpaid for the time they actually worked. With quarter-hour rounding, a common approach is to round 1 to 7 minutes down and 8 to 14 minutes up, so a 7:53 clock-in is recorded as 8:00 and an 8:07 clock-in is also recorded as 8:00.
Federal law doesn’t require meal or rest breaks, but many states do, and short rest breaks are generally treated as paid time under the Fair Labor Standards Act. Overtime under federal law starts after 40 hours in a workweek, and some states also have daily limits. These rules vary by state, industry and contract, so use the calculator for the arithmetic and check the rules that apply to you. The guide to how to calculate hours worked covers timesheets and these rules in more depth. Nothing on this page is payroll or legal advice.
Tips and common mistakes
- Mixing up 12 AM and 12 PM. 12 AM is midnight and 12 PM is noon. Getting them backwards adds or removes 12 hours.
- Writing minutes as decimals. 8 hours 20 minutes is 8.33 hours, not 8.20.
- Deducting paid breaks. Only enter unpaid time in the break field.
- Daylight saving time. The calculator doesn’t model clock changes. A night shift on the night the clocks go forward or back is an hour shorter or longer in real time than the clock times suggest.
- Overnight entries on paper. Note the date on both ends of a shift that crosses midnight so the hours are assigned to the right day or workweek.
Glossary
- Decimal hours. Time written as a decimal number of hours, such as 7.75 for 7 hours 45 minutes.
- Unpaid break. Time off duty that isn’t counted as hours worked, usually a meal period.
- Workweek. Under US federal law, a fixed, recurring period of 168 hours, or seven consecutive 24-hour periods. It need not start on a Monday.
- Overnight shift. A shift whose end time is on the next calendar day.
To count calendar days rather than clock hours, use the days between dates calculator.
Worked examples
A day shift with a lunch break
A shift from 8:45 to 17:15 with a 30-minute unpaid lunch.
Inputs: Start time = 08:45; End time = 17:15; Unpaid break = 30 min
17:15 − 08:45 = 8 h 30 min; − 30 min break = 8 h 00 min
Answer: 08:45 to 17:15 minus 30 min break: 8 h 00 min (8.00 hours).
An overnight shift
A night shift from 22:00 to 06:30 the next morning, with no break.
Inputs: Start time = 22:00; End time = 06:30; Unpaid break = 0 min
06:30 − 22:00 (+24 h) = 8 h 30 min
Answer: 22:00 to 06:30: 8 h 30 min (8.50 hours).
A 12-hour shift with a 45-minute break
A long day shift from 07:30 to 19:45 with a 45-minute unpaid meal break.
Inputs: Start time = 07:30; End time = 19:45; Unpaid break = 45 min
19:45 − 07:30 = 12 h 15 min; − 45 min break = 11 h 30 min
Answer: 07:30 to 19:45 minus 45 min break: 11 h 30 min (11.50 hours).
A short afternoon shift
A part-time shift from 12:10 to 16:55 with no break and start and end times that are not on the hour.
Inputs: Start time = 12:10; End time = 16:55; Unpaid break = 0 min
16:55 − 12:10 = 4 h 45 min
Answer: 12:10 to 16:55: 4 h 45 min (4.75 hours).
Assumptions and limitations
- If the end time is the same as or earlier than the start time, the shift is treated as ending the next day. A start and end time that are equal therefore count as 24 hours.
- The calculator handles one shift of up to 24 hours. For longer periods, add separate shifts together.
- The break is subtracted in full as unpaid time. Paid breaks should be left out of the break field.
- Decimal hours are rounded to 2 decimal places. Employers often round clock times to the nearest 5, 6 or 15 minutes, which can give a slightly different total.
- This is a time calculation, not payroll or legal advice. Rules on rounding, paid breaks and overtime vary by country, state and employment contract.
Frequently asked questions
How do I convert minutes to decimal hours?
Divide the minutes by 60. 15 minutes is 0.25 hours, 30 minutes is 0.5, 45 minutes is 0.75 and 20 minutes is about 0.33. So 7 hours 45 minutes is 7.75 hours, not 7.45.
How do I calculate hours for a shift that goes past midnight?
Enter the start and end times as they appear on the clock. The calculator sees that the end time is earlier than the start and adds 24 hours to it, so a shift from 23:00 to 07:00 is 8 hours. A single span can be up to 24 hours; split anything longer into separate shifts and add the totals.
Should breaks be deducted from hours worked?
Only unpaid breaks. Under the US Fair Labor Standards Act, short rest breaks of about 20 minutes or less are usually counted as work time, while bona fide meal periods, typically 30 minutes or more with no duties, generally are not. State law and contracts can add other rules.
How do I convert decimal hours back to hours and minutes?
Keep the whole hours and multiply the decimal part by 60. 6.4 hours is 6 hours plus 0.4 × 60 = 24 minutes, so 6 hours 24 minutes. 8.08 hours is about 8 hours 5 minutes, because 0.08 × 60 is 4.8 and the 2-decimal figure has been rounded.
How do you calculate hours worked?
Subtract the clock-in time from the clock-out time, then take off any unpaid breaks. A shift from 8:15 to 17:00 is 8 hours 45 minutes; minus a 30-minute lunch it is 8 hours 15 minutes, or 8.25 decimal hours. For a week, add up each day's minutes and convert to hours once at the end.
How do you calculate pay from hours worked?
Multiply the decimal hours by the hourly rate. 38.5 hours at $18.40 an hour is $708.40 before taxes and deductions. Use decimal hours rather than hours and minutes, because 38 hours 30 minutes is 38.5 hours, not 38.3. The calculator does not apply overtime rates or work out pay.
Does the calculator work out overtime?
No. It totals time only. Under the federal Fair Labor Standards Act, covered nonexempt employees earn overtime for hours over 40 in a workweek, but state laws and contracts can set different thresholds, including daily overtime in some states.
Sources
- Fact Sheet #22: Hours Worked Under the Fair Labor Standards Act (FLSA) — U.S. Department of Labor, Wage and Hour Division. Checked October 4, 2026.
- Fact Sheet #21: Recordkeeping Requirements under the Fair Labor Standards Act (FLSA) — U.S. Department of Labor, Wage and Hour Division. Checked October 4, 2026.
- Breaks and Meal Periods — U.S. Department of Labor. Checked October 4, 2026.
- Overtime Pay — U.S. Department of Labor, Wage and Hour Division. Checked October 4, 2026.
- 29 CFR § 785.48 — Use of time clocks — Legal Information Institute, Cornell Law School. Checked October 4, 2026.