Hours Calculator
Enter when you started, when you stopped and how long your unpaid break was. The calculator gives the total as hours and minutes and as decimal hours, and can turn it into pay.
Type 9, 930 or 5p. AM/PM is guessed from the shift; add a or p to set it.
How to use the hours calculator
- Add one row per shift. Give it a label if you like, then enter Start, End and Break (unpaid minutes).
- Type times the way you would say them:
9,930,9:30,5p,5:30 pm,17:30,noon. - If you leave out AM or PM, the calculator picks the reading that gives the shortest positive shift. Entering 9 and 5 means 9:00 AM to 5:00 PM, not 20 hours. Switch to the 24-hour display if you want to enter times without guessing.
- Shifts that run past midnight work without any extra step: 10:00 PM to 6:00 AM counts as 8 hours.
- Optionally enter an hourly rate to see gross pay. The total is shown as h:mm, as decimal hours and as minutes.
You can share the result as a link, print it, or download a CSV file. Everything is calculated in your browser. Your times and rates are not sent to a server.
Worked examples
| Start | End | Unpaid break | Hours worked | Decimal |
|---|---|---|---|---|
| 9:00 AM | 5:00 PM | 30 min | 7:30 | 7.50 |
| 7:30 AM | 3:30 PM | 45 min | 7:15 | 7.25 |
| 10:00 PM | 6:00 AM | 30 min | 7:30 | 7.50 |
| 7:55 AM | 4:05 PM | 30 min | 7:40 | 7.67 |
At $18.50 per hour, the first row (7:30, or 7.50 decimal hours) is $138.75 gross. The last row shows why the decimal column matters: 7 hours 40 minutes is 7.67 hours, not 7.40.
Rounding time punches
Some employers round start and end times. The federal rule at 29 CFR 785.48(b) allows rounding to the nearest 5 minutes, one-tenth of an hour (6 minutes) or quarter hour, as long as the practice averages out so employees are fully paid for the time they work. The calculator offers the same three steps and rounds each punch separately.
| Punch | Nearest 5 min | Nearest 6 min | Nearest 15 min |
|---|---|---|---|
| 8:07 AM | 8:05 AM | 8:06 AM | 8:00 AM |
| 8:08 AM | 8:10 AM | 8:06 AM | 8:15 AM |
| 8:52 AM | 8:50 AM | 8:54 AM | 8:45 AM |
| 8:53 AM | 8:55 AM | 8:54 AM | 9:00 AM |
With 15-minute rounding, the 7:55 AM to 4:05 PM shift above becomes 8:00 AM to 4:00 PM and shrinks from 7:40 to 7:30 after the break. Rounding that always goes against the worker is not what the rule allows. This is general information, not legal advice.
Tips
- Enter only unpaid break minutes. A paid break stays inside the shift.
- For a full week with overtime rules, use the time card calculator.
- To convert a result for payroll software that wants decimals, see the minutes to decimal chart.
- To add durations that are not clock times, such as 2h 15m plus 1:50, use the time calculator.
Frequently asked questions
How do I calculate hours worked with lunch?
Subtract the end time from the start time, then subtract the unpaid lunch. From 9:00 AM to 5:00 PM is 8 hours; with a 30-minute unpaid lunch that is 7 hours 30 minutes, or 7.5 hours. If your lunch is paid, enter 0 in the Break field.
What is 7 hours 45 minutes in decimal?
7.75 hours. Divide the minutes by 60: 45 / 60 = 0.75, then add the 7 whole hours.
How do I calculate hours worked overnight?
Enter the start and end as usual. If the end time is earlier than the start time, the calculator counts through midnight. A shift from 10:00 PM to 6:00 AM with a 30-minute break comes to 7 hours 30 minutes.
How many hours is 9 to 5 with a 30-minute lunch?
7.5 hours (7:30). The span from 9:00 AM to 5:00 PM is 8 hours and the unpaid 30 minutes come off.
Does the calculator know whether I mean AM or PM?
It guesses. Without AM or PM it chooses the reading that gives the shortest positive shift, so 9 to 5 becomes 9:00 AM to 5:00 PM. Add a or p (for example 10p to 6a) or switch to 24-hour time to be exact.
Can I round my hours to the nearest quarter hour?
Yes. The calculator can round each start and end punch to the nearest 5, 6 or 15 minutes. Federal rules at 29 CFR 785.48(b) permit this if the rounding does not, over time, leave worked time unpaid. Your state or employer may set stricter rules.
More calculators
- Time Card CalculatorFill in one week of punches and unpaid break minutes.
- Time Clock CalculatorPress Clock in when you start and Clock out when you finish.
- Timesheet CalculatorChoose a pay period and a start date, enter start, end and break for each day, and get total hours, overtime and gross pay for the whole period.
- Overtime CalculatorWork out your overtime rate and total pay in seconds, or enter your hours day by day to see how much counts as regular, overtime and double time under your rule.
- Hourly to Salary CalculatorEnter an hourly wage or a salary and see it as hourly, daily, weekly, biweekly, semi-monthly, monthly and annual pay before taxes.
- Time CalculatorBuild a list of durations with plus and minus signs and see the result as hours, minutes and seconds, as decimal hours and as days and hours.