
Hours Calculator
Find the hours and minutes between two times, take off an unpaid break, and add or subtract durations. Night shifts that end after midnight work too.
Type 9, 930 or 1730. If the end is earlier than the start, it counts as the next day.
Add or subtract hours
Worked examples
- Day shift: 9:00 AM to 5:30 PM is 8 h 30 min on the clock. Minus a 30-minute lunch = 8:00, or 8.00 decimal hours.
- Night shift: 10:00 PM to 6:30 AM crosses midnight — 2 hours before it plus 6 h 30 min after = 8 h 30 min. Minus a 30-minute break = 8:00 (8.00 hours).
- Adding durations: 7:45 + 8:30 − 1:15 = 15:00 (15.00 decimal hours). Add hours and minutes separately and carry every 60 minutes into an hour.
Common shift lengths
Hours worked after an unpaid break, in hours:minutes and in decimal hours for payroll.
| Shift | Break | Hours | Decimal |
|---|---|---|---|
| 6:00 AM – 2:30 PM | 30 min | 8:00 | 8.00 |
| 7:00 AM – 3:30 PM | 30 min | 8:00 | 8.00 |
| 8:00 AM – 5:00 PM | 30 min | 8:30 | 8.50 |
| 8:00 AM – 5:00 PM | 60 min | 8:00 | 8.00 |
| 9:00 AM – 5:00 PM | 30 min | 7:30 | 7.50 |
| 9:00 AM – 5:30 PM | 30 min | 8:00 | 8.00 |
| 7:00 AM – 7:30 PM | 30 min | 12:00 | 12.00 |
| 3:00 PM – 11:00 PM | 30 min | 7:30 | 7.50 |
| 7:00 PM – 7:00 AM | 30 min | 11:30 | 11.50 |
| 10:00 PM – 6:30 AM | 30 min | 8:00 | 8.00 |
How to use the hours calculator
The top box answers one question: how long is it from one time to another? Type a start time and an end time, pick AM or PM if you use the 12-hour clock, and add an unpaid break in minutes if you had one. The result shows the time worked as hours:minutes, as decimal hours and in words.
You can type times quickly: 9 is 9:00, 930 is 9:30 and 1730 is 5:30 PM. If the end time is earlier than the start time, the calculator assumes the end is the next day, so overnight shifts need no special handling.
The second box, Add or subtract hours, is for durations rather than clock times. Use it to total several shifts, add travel time or subtract time you took off. Each line can be added or subtracted, and you can add as many lines as you need.
Clock times vs durations
These two are easy to mix up:
- A clock time is a point in the day, like 2:15 PM.
- A duration is an amount of time, like 2 hours 15 minutes.
You subtract clock times to get a duration. You add durations to get a bigger duration. Adding two clock times (2:15 PM + 3:00 PM) has no meaning, which is why the tool keeps the two jobs in separate boxes.
How the minutes are counted
The calculator turns each time into minutes after midnight. 8:45 AM is 525 minutes and 5:15 PM is 1,035 minutes. The difference is 510 minutes. If the end comes before the start, it adds 1,440 minutes (24 hours) to the end first. Then it takes off the break and converts back:
- Hours:minutes = 510 ÷ 60 = 8 hours, remainder 30 minutes, so 8:30.
- Decimal hours = 510 ÷ 60 = 8.50.
Decimal hours are what payroll uses. Your pay for the day is decimal hours x hourly rate. Hours and minutes are easier to read, but you cannot multiply them by a rate directly: 8:30 is not 8.30 hours.
A split day and a week of mixed shifts
A split day with an odd break. You start at 6:45 AM, finish at 3:20 PM and take a 35-minute unpaid lunch. On the clock that is 8 hours 35 minutes. After the break it is 8:00, or 8.00 decimal hours. At $19.25 an hour the day pays $154.00.
Totaling a week of different shifts. Your shifts this week were 6:50, 7:40, 8:15, 5:30 and 9:05. Add them in the second box. The hours add to 35 and the minutes to 140. 140 minutes is 2 hours 20 minutes, so the total is 37:20. In decimal, 20 minutes is 0.33, so 37.33 hours. At $17 an hour that is about $634.67 before taxes, depending on how your employer rounds decimal hours.
Slip-ups with clock times
- Writing minutes as decimals. 7 hours 45 minutes is 7.75 hours, not 7.45. The difference is 18 minutes of pay every time it happens. The minutes to decimal converter has a full chart.
- Subtracting a paid break. Rest breaks of about 5 to 20 minutes are generally paid time under federal rules. Only take off meal periods where you were fully relieved of duty. Some states also require paid rest breaks and meal periods.
- AM/PM slips. If a day shows 20 hours instead of 8, an AM time was probably entered as PM. The 24-hour clock avoids this; see the military time converter.
- Forgetting the next-day rule. Some spreadsheets give a negative number for overnight shifts. This calculator adds a day automatically, but check if you copy the method elsewhere.
When to use a different tool
The hours calculator handles one span of time at a time, plus a simple running total. If you need a whole week or pay period with breaks per day, overtime after 40 hours and gross pay, use the time card calculator. It applies federal or state overtime rules and keeps each workweek separate.
If you are converting a weekly hours total into a yearly salary, the hourly to salary calculator does that and shows take-home pay for each pay period.
When your employer’s total is different
If your pay stub shows slightly different hours than you calculated, the usual reasons are:
- Punch rounding. Many time clocks round each punch to the nearest 5, 6 or 15 minutes. Federal rules allow this as long as it evens out over time.
- Decimal rounding. Payroll systems often round decimal hours to two places per day, so a week of 8:20 days might show 8.33 x 5 = 41.65 hours instead of 41.67.
- Unpaid break deducted automatically. Some systems take off a lunch break whether or not you took it. If you worked through lunch, tell your employer so the time can be paid.
Questions
How do I calculate hours worked between two times?
Subtract the start time from the end time, then take off any unpaid break. 8:15 AM to 4:45 PM is 8 hours 30 minutes; minus a 30-minute lunch it is 8:00, or 8.00 decimal hours.
How many hours is 9 AM to 5 PM?
8 hours on the clock. With a 30-minute unpaid lunch it is 7.5 hours, and with a 1-hour lunch it is 7 hours.
How do I calculate hours for a shift that goes past midnight?
Count the time before midnight and after midnight separately and add them. 11:00 PM to 7:00 AM is 1 hour before midnight plus 7 hours after, so 8 hours. The calculator does this automatically when the end time is earlier than the start time.
How do I add hours and minutes together?
Add the hours and the minutes in separate columns, then turn every 60 minutes into an hour. 6:50 + 7:40 is 13 hours 90 minutes, which is 14:30.
What is 7 hours and 30 minutes in decimal?
7.5 hours, because 30 minutes is 30 ÷ 60 = 0.5 of an hour. At $20 an hour that day pays $150.
How many hours is 7 AM to 7 PM?
12 hours. With a 30-minute unpaid meal break it is 11.5 paid hours.
Sources
- U.S. DOL WHD — Fact Sheet #22: Hours Worked Under the FLSA · What counts as hours worked; meal and rest breaks
- U.S. DOL WHD — Fact Sheet #21: Recordkeeping Requirements under the FLSA · Daily and weekly hours records; time-clock rounding (29 CFR 785.48)
- U.S. OPM — Pay & Leave: Pay Administration fact sheets · Computing hourly rates; 2,087-hour year; 24-hour clock in federal timekeeping