Skip to content

Hours Calculator

Enter a start and end time to get the hours between them, minus any unpaid break. Add more shifts to total your week in hours and minutes and decimal hours.

Hours between two times

Shift 1

Night shift differential (optional)

—

Estimate only — not legal, tax or payroll advice.

Dates, seconds or more than 24 hours → Time Duration Calculator · a weekly time sheet with overtime → Work Hours Calculator

Hours between two times

Type the start and end time with digits (930 becomes 9:30) and pick AM or PM with the buttons next to each time. A 24-hour time such as 1730 is turned into 5:30 PM, or switch the tool to the 24-hour clock. The calculator subtracts the start from the end: 9:00 AM to 5:30 PM is 8 hours 30 minutes, or 8.50 hours.

Until you press AM or PM yourself, the start is read as AM and the end as the first matching time after the start, and the buttons show that reading. So “8 to 5” means 8:00 AM to 5:00 PM: 9 hours.

Common shifts: how many hours is 8 to 5, 9 to 5 or 7 to 3:30?

The table gives the time on the clock and the hours worked after an unpaid 30-minute or 1-hour lunch, in hours and minutes and in decimal hours. Every value comes from the same engine as the calculator above.

Hours worked for common shifts, with an unpaid lunch
ShiftOn the clock30-min lunch1-hour lunch
8:00 AM – 5:00 PM 9:00 8:308.50 h 8:008.00 h
9:00 AM – 5:00 PM 8:00 7:307.50 h 7:007.00 h
7:00 AM – 3:30 PM 8:30 8:008.00 h 7:307.50 h
7:30 AM – 4:30 PM 9:00 8:308.50 h 8:008.00 h
6:00 AM – 2:30 PM 8:30 8:008.00 h 7:307.50 h
7:00 AM – 7:00 PM 12:00 11:3011.50 h 11:0011.00 h

Subtracting a lunch break

Enter the unpaid break in whole minutes: 30 for a half hour, 60 for an hour. With the default values, 9:00 AM to 5:30 PM with a 30-minute break, you worked 8:00, or 8.00 hours. At $18.50 an hour, that is $148.00.

Another example: 7:15 AM to 3:50 PM with a 45-minute lunch. That's 8 hours 35 minutes on the clock and 7 hours 50 minutes worked, or 7.83 hours. At $16.00 an hour the pay is $125.33. Multiplying the rounded 7.83 by $16.00 would give $125.28, which is why the calculator works from exact minutes.

Only subtract breaks you are not paid for. Under federal rules, rest breaks of 5 to 20 minutes are paid work time (29 CFR 785.18).

Overnight shifts

When the end time is earlier than the start time, the shift crossed midnight and 24 hours are added. 11:30 PM to 7:15 AM is 7 hours 45 minutes, or 7.75 hours.

Each line covers up to 24 hours. For a stretch longer than that, such as an on-call period from Friday 7:00 AM to Saturday 7:00 AM (24 hours), use the time duration calculator: it takes a start and end date, and seconds.

Night shift differential

Open Night shift differential, pick when night pay starts and ends (10:00 PM to 6:00 AM by default) and enter the premium, in dollars per hour or as a percentage of your rate. The calculator counts the minutes of each shift inside that window and adds the premium to the pay.

Example: 6:00 PM to 6:00 AM with a 60-minute unpaid break and a $2.00 premium. 8 of the 12 hours fall between 10 PM and 6 AM. Split in proportion, the break takes 40 minutes off the night hours, so 7 hours 20 minutes earn the premium: $14.67. If your employer counts the break differently, choose where it was taken.

Federal law does not require night pay; it depends on your employer or union contract (U.S. Department of Labor). When it is paid, it counts in the regular rate used for overtime (29 CFR 778.207(b)).

Hours and minutes or decimal hours?

The result shows both. Time cards use hours and minutes (7:45), payroll uses decimal hours (7.75). They are not the same number: 7.45 hours would be 7 hours 27 minutes. To convert other values, use the minutes to hours converter or the decimal to hours converter. To add or subtract durations that are not clock times, such as 2:45 + 1:30, use the hours and minutes calculator.

Common mistakes when counting hours

  • Counting 8 AM to 5 PM as 8 hours. It is 9 hours before any break.
  • Subtracting a paid break. Rest breaks of 5 to 20 minutes are work time under federal rules.
  • Mixing up AM and PM. “7:00 to 3:30” is 8 hours 30 minutes only if 3:30 is in the afternoon; the calculator reads it that way, so press AM or PM if you mean something else.
  • Copying 8:30 as 8.30 on a payroll form. In decimal hours it is 8.50.

Adding up several shifts or a whole week

Press Add a shift or day for each extra shift, up to seven lines. Each line shows its own hours, and the total at the bottom is the week. Example: 8:45 AM to 5:15 PM with a 30-minute break (8:00), 7:30 AM to 4:00 PM with a 45-minute break (7:45), and a night shift from 10:00 PM to 6:30 AM with a 30-minute break (8:00). The total is 23:45, or 23.75 hours; at $20.00 an hour, $475.00.

The total is added in whole minutes, never from rounded decimals. Need overtime as well? The weekly work hours calculator has up to three in/out pairs per day, weekly totals, federal or California overtime and pay. For a two-week pay period, use the biweekly time card calculator. If your employer's time clock rounds punches, the time clock rounding calculator shows what it changes.

Frequently Asked Questions

How many hours is 8 to 5?

8:00 AM to 5:00 PM is 9 hours. With an unpaid 30-minute lunch, it is 8 hours 30 minutes (8.5 hours); with an unpaid 1-hour lunch, 8 hours.

How many hours is 9 to 5?

9:00 AM to 5:00 PM is 8 hours. With an unpaid 30-minute lunch, it is 7 hours 30 minutes, or 7.5 hours.

How many hours is 8:30 to 4:30?

8:30 AM to 4:30 PM is 8 hours. With a 30-minute unpaid lunch, it is 7 hours 30 minutes, or 7.5 hours.

How do you calculate hours between two times?

Subtract the start time from the end time. Convert both to the 24-hour clock first to avoid AM/PM mistakes: 9:15 AM to 4:45 PM is 16:45 − 9:15 = 7 hours 30 minutes. If the result is negative, the shift crossed midnight: add 24 hours.

How do I calculate hours worked with a lunch break?

Find the time between clock in and clock out, then subtract the unpaid lunch. 7:00 AM to 3:30 PM is 8 hours 30 minutes; minus a 30-minute lunch, 8 hours.

How do I calculate night shift differential pay?

Count the hours worked inside the night window, such as 10 PM to 6 AM, then multiply by the premium: 7.5 night hours at $2.00 extra is $15.00. For a percentage premium, multiply your rate by it first: 10% of $18.50 is $1.85 per hour.

How do I calculate pay from hours and minutes?

Convert the time to minutes, multiply by the hourly rate and divide by 60. 7 hours 50 minutes is 470 minutes, and 470 × $16.00 ÷ 60 = $125.33. Using the rounded 7.83 hours gives $125.28, a few cents less.