Work hours calculator
How many hours did you work? Enter a start time, an end time and your unpaid break, for one shift or several.
Hours worked
Total (h:mm)
7:30
Decimal hours
7.50
Everything is calculated in your browser. Nothing you enter is stored or sent anywhere.
Never type these in again
DoneThat reconstructs your hours from what you actually worked on, without timers, then shows them per day and per project and exports them as CSV.
Desktop app for Windows, macOS and Linux. 14-day free trial.
How to calculate hours between two times
The work hours calculator answers one question quickly: how long was I at work, and how much of that was paid? Put in when you started, when you finished and how long your unpaid break was. It does three steps:
- Put both times on a 24-hour clock. 8:00 AM stays 8:00, and 5:00 PM becomes 17:00.
- Subtract the start from the end. 17:00 − 8:00 = 9 hours. If the end is earlier than the start, the shift ran past midnight, so add 24 hours first.
- Take off the unpaid break. 9 hours minus a 30-minute lunch is 8 hours 30 minutes, or 8.5 decimal hours.
Add more rows for a second job, a split shift or a few days in a row, and the total updates as you type. It works as a plain hours calculator too, for anything with a start and an end.
How many hours is a typical shift?
The questions people search most are about common shift times. Here are the answers, before and after the two usual lunch breaks:
| Shift | On the clock | 30-minute lunch | 1-hour lunch |
|---|---|---|---|
| 8 to 5 | 9:00 | 8:30 | 8:00 |
| 7:30 to 4:30 | 9:00 | 8:30 | 8:00 |
| 9 to 5 | 8:00 | 7:30 | 7:00 |
| 7 to 3:30 | 8:30 | 8:00 | 7:30 |
| 6 to 2:30 | 8:30 | 8:00 | 7:30 |
| 7 to 7 (12-hour shift) | 12:00 | 11:30 | 11:00 |
| 10 PM to 6 AM | 8:00 | 7:30 | 7:00 |
You can type times the way you would say them. In 12-hour mode, “8” and “5” are read as 8 AM to 5 PM, because a 21-hour shift is much less likely than a normal day; the calculator rewrites the times when you leave the field so you can see how it read them. It also takes 830, 8:30, 8:30pm, 20:30 and 8.5 (decimal hours, so 8:30). In 24-hour mode nothing is guessed, and 8 to 5 is an overnight shift.
Overnight shifts
A shift that starts before midnight and ends after it has an end time that looks earlier than the start. The calculator treats that as the next day: 11:00 PM to 7:30 AM is 8 hours 30 minutes, and with a 30-minute break, 8 hours. On a 24-hour clock that is 23:00 to 07:30, and the sum is (24:00 − 23:00) + 7:30.
For federal overtime, the workweek is a fixed period of 168 hours that can start on any day and at any hour (US Department of Labor, overtime pay). A night shift that crosses the start of your employer’s workweek can fall partly in one week and partly in the next when overtime is worked out, so check when yours starts. A shift longer than 24 hours cannot be entered as one row; split it into two.
Rounding to the quarter hour
Many time clocks round each punch instead of recording the exact minute. For federal enforcement, the US Department of Labor accepts recording times to the nearest 5 minutes, tenth of an hour (6 minutes) or quarter hour, as long as over time it does not leave employees unpaid for the time they actually worked (29 CFR 785.48(b)). Rounding to the quarter hour is often called the 7-minute rule:
- 8:07 AM becomes 8:00 AM: 7 minutes past, so it rounds down.
- 8:08 AM becomes 8:15 AM: 8 minutes past, so it rounds up.
- 4:52 PM becomes 4:45 PM: 7 minutes past the quarter, so down.
- 4:53 PM becomes 5:00 PM: 8 minutes past the quarter, so up.
Choose 5, 6 or 15 minutes above the result to round each start and end time the same way. The calculator rounds the punches, not the total, because that is what a time clock does. Rounding that keeps landing in the employer’s favour does not meet that condition, and state law can differ. This is arithmetic, not legal advice.
From hours to pay
Add an hourly rate and the calculator multiplies it by the decimal hours: 8 hours 30 minutes at $18 an hour is 8.5 × $18 = $153.00 before tax. It does not add overtime, because overtime depends on the whole workweek. For a full week with overtime, use the timesheet calculator, which splits regular and overtime hours.
Written and maintained by the DoneThat team. The examples match the calculator code, and the rounding rule was last checked against its source on 3 November 2026.
Frequently asked questions
How many hours is 8 to 5?
8 AM to 5 PM is 9 hours on the clock. With a one-hour unpaid lunch it is 8 hours of work, and with a 30-minute lunch it is 8 hours 30 minutes, or 8.5 hours.
How many hours is 7:30 to 4:30?
7:30 AM to 4:30 PM is 9 hours. Take off a 30-minute unpaid lunch and you worked 8 hours 30 minutes (8.5 hours); take off an hour and it is exactly 8.
How do I calculate hours for a shift that goes past midnight?
Add 24 hours to the end time before you subtract. 10 PM to 6 AM is 22:00 to 30:00 in that sense, which is 8 hours. The work hours calculator does this for you whenever the end time is earlier than the start.
What is the 7-minute rule?
It is how rounding to the nearest quarter hour works: 1 to 7 minutes past a quarter rounds down, 8 to 14 minutes rounds up. The US Department of Labor accepts rounding like this as long as, over time, it does not leave employees unpaid for time they actually worked.
How do I work out the hours and minutes between two times?
Write both times on a 24-hour clock, subtract the start from the end and borrow 60 minutes if the minutes come out negative. 9:45 AM to 5:15 PM is 17:15 minus 9:45, which is 7 hours 30 minutes.
How many hours is 9 to 5 with a 30-minute lunch?
7 hours 30 minutes, or 7.5 hours. 9 AM to 5 PM is 8 hours on the clock, minus the 30-minute unpaid lunch.
More free tools
- Timesheet calculatorAdd up a week of time cards with lunch breaks, split shifts, overtime and pay.
- Overtime calculatorSplit your hours into regular time, overtime and double time, and see the pay.
- Time duration calculatorThe time between two clock times, in hours and minutes.
- Hours to decimal converterTurn hours and minutes into decimal hours for payroll, and back again.
- Military time converterConvert between 24-hour military time and 12-hour am and pm time.
- Business days calculatorCount the working days between two dates, without weekends.
- Time zone meeting plannerLine up time zones and find meeting times inside everyone's working hours.
- Office space calculatorDesks, square feet and rent for a hybrid team, by office days per week.
- Meeting cost calculatorWhat a meeting costs from the people in it, their pay and its length.
- Commute cost calculatorThe yearly hours and money your commute takes, and what a remote day gives back.
- Time value calculatorFive questions that put a number on what an hour of your time is worth.
- Team time value calculatorEstimate what an hour of team time is worth, and what saving some of it pays back.