Hours Calculator
Fill in start, end and break for each day of the week. The total comes out as hours and minutes and as decimal hours, ready for a timesheet.
https://flxcode.com/hours-calculator/
Break in minutes (30) or h:mm (0:30). An end earlier than the start runs past midnight.
Example Total hours
- Total hours, h:mm
- Decimal hours (2 decimals)
- Days worked
- Average per day worked
- Each day is rounded to 2 decimals on its own. The total is rounded from the exact total, so the daily decimals can differ from it by 0.01.
How it was worked out
- Mon: 5:30 PM - 9:00 AM = 8:30, minus a 30-minute break = 8:00
- Tue: 5:30 PM - 9:00 AM = 8:30, minus a 30-minute break = 8:00
- Wed: 5:00 PM - 8:30 AM = 8:30, minus a 45-minute break = 7:45
- Thu: 5:30 PM - 9:00 AM = 8:30, minus a 30-minute break = 8:00
- Fri: 3:45 PM - 9:00 AM = 6:45
- Total: 38:30 = 38.50 decimal hours
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
Quick start
- Pick AM / PM or the 24 hour clock.
- For each day you worked, type the start, the end and the break in minutes (or h:mm). Leave days off empty.
- Each row shows its hours as h:mm and as a decimal. The total is under the table.
- Use Copy Monday to Tue to Fri when the weekdays are the same, then change the days that differ.
Worked examples, one day each
| Start | End | Break | Hours | Decimal | Note |
|---|---|---|---|---|---|
| 9:00 AM | 5:00 PM | 30 | 7:30 | 7.50 | A standard day with a half hour lunch |
| 8:15 AM | 4:45 PM | 45 | 7:45 | 7.75 | Three quarters of an hour for lunch |
| 7:00 AM | 3:30 PM | none | 8:30 | 8.50 | No break taken |
| 10:00 PM | 6:30 AM | 30 | 8:00 | 8.00 | A night shift past midnight |
| 12:00 PM | 4:20 PM | none | 4:20 | 4.33 | A short afternoon, 20 minutes is 0.33 h |
| 06:45 | 15:10 | 0:20 | 8:05 | 8.08 | A 24 hour clock with a break as h:mm |
Minutes as decimal hours
Timesheets and payroll programs usually want 7.75 and not 7:45. The minutes are divided by 60.
| Minutes | Decimal hours |
|---|---|
| 5 | 0.08 |
| 10 | 0.17 |
| 15 | 0.25 |
| 20 | 0.33 |
| 25 | 0.42 |
| 30 | 0.50 |
| 35 | 0.58 |
| 40 | 0.67 |
| 45 | 0.75 |
| 50 | 0.83 |
| 55 | 0.92 |
Rule used here: the value is rounded to 2 decimals, half up. 7 hours 52 minutes 30 seconds is 7.875, which shows 7.88. This page works in whole minutes, so you will mostly meet 0.33, 0.67 and 0.83, which are thirds and sixths rounded.
From hours to pay
The week in the tool at the top has a total of 38:30 h, which is 38.50 decimal hours. At $18 an hour that is 38.50 x 18 = $693.00. Multiply the decimal hours, not the h:mm figure: 38:30 x 18 would be wrong.
How a day is worked out
- Each time becomes minutes after midnight. 5:30 PM is 17 x 60 + 30 = 1,050.
- Hours worked is the end minus the start. If the end is earlier, 24 hours (1,440 minutes) is added first, because the shift crossed midnight.
- The break is subtracted. A break longer than the shift is flagged as an error and not counted.
- Days are added up as exact minutes. The decimal is made from the total, not from the rounded daily figures.
Numbers this uses
- 60 minutes in an hour, 24 hours (1,440 minutes) in a day.
- Decimal hours: 2 decimals, rounded half up (7:50 is 7.83).
- Same start and end time counts as 0 hours, not 24.
- A time typed with AM or PM is always read that way. Without them the 24 hour clock reads it as is, and the AM / PM clock guesses: the start as AM, the end as the first reading after the start.
- Seven rows, Monday to Sunday. Hours and minutes only, with no seconds.
- Overtime: none is calculated. US federal law counts overtime after 40 hours in a workweek (FLSA), and states and contracts can differ.
Common mistakes
- Using h:mm as a decimal. 7:30 is 7.5 hours, not 7.30.
- Forgetting the break, or typing it in hours. The box wants minutes: 30, or 0:30 for the h:mm form.
- Typing 12:00 for midnight. 12:00 AM is midnight and 12:00 PM is noon.
- Starting a night shift on one row and ending it on the next. Put the whole shift on the day it started.
Limits
- One week at a time. For a pay period of two weeks, calculate each week and add the totals, or use the Time Calculator to add them.
- No pay, overtime, rounding rules or holidays. For the gap between two exact dates and times, use the Time Duration Calculator.
Nothing you type is uploaded. We count events without cookies (details).
FAQ
How do I calculate hours worked with a lunch break?
Take the end time minus the start time, then subtract the break. 9:00 AM to 5:00 PM is 8 hours, and a 30 minute lunch leaves 7 hours 30 minutes. Enter the break in minutes in the last box of the row and the tool does the subtraction.
How do I turn hours and minutes into decimal hours?
Divide the minutes by 60 and add them to the hours. 7 hours 45 minutes is 7 + 45/60 = 7.75. The table on this page lists every 5 minutes. The tool rounds to 2 decimals, half up, so 7 hours 50 minutes shows 7.83.
How do I calculate hours when the shift goes past midnight?
Type the real start and end, for example 10:00 PM and 6:30 AM. When the end is earlier than the start, the tool counts the shift to the next day and adds 24 hours, so this one is 8 hours 30 minutes.
What if I type a time without AM or PM?
On the AM / PM clock, a start such as 9 is read as 9:00 AM and an end such as 5 is read as 5:00 PM, because that is the first reading later than the start. A note under the result says what it assumed. On the 24 hour clock, 17:00 is 5:00 PM and you need no letters.
Why does my weekly total differ by 0.01 from the sum of the days?
Each day is rounded to 2 decimals on its own, but the total is rounded from the exact total. Five days of 7 hours 50 minutes are 39 hours 10 minutes, which is 39.17. Each day alone is 7.83, and 5 times 7.83 is 39.15. Use the total in h:mm to check.
Does it round to the nearest quarter hour?
No, it counts exact minutes. Some US employers round punches to the nearest 5 minutes, tenth or quarter of an hour, which the Department of Labor accepts when it averages out in the employees' favour over time (29 CFR 785.48). If your employer does that, round your start and end times before you type them.
Does it work out overtime or pay?
No. It gives the hours. In the US, federal overtime starts after 40 hours in a workweek, but many states and contracts differ, so check your own rule. To get pay from the total, multiply the decimal hours by the hourly rate. The example on this page does that.
Are my hours saved or uploaded?
No. The sums run in your browser. Nothing you type is put in the address bar, stored or counted. We only count that a week was calculated and which clock you used.
More from FLXCode
Time CalculatorNew
Add and subtract hours, minutes and seconds, or add a duration to a time of day to get the end time.
Time Duration CalculatorNew
Find the time between two times or between two dates with times, in days, hours, minutes and seconds, and decimal hours.
Military Time ConverterNew
Convert 12 hour time to military 24 hour time and back, with a table of all 24 hours and how each one is said.
Date CalculatorNew
Add or subtract days, weeks, months and years from a date, or only business days. Shows the weekday and the steps.