Hours Calculator

Find the hours and minutes between two times, including overnight periods and an optional break.

Result

Time worked

The same time in other units

:
:
minutes
per hour

How it was calculated

How to use the hours calculator

  1. Set the start time and end time (hour, minute, AM/PM). The Now link fills in the current time.
  2. Enter an unpaid break in minutes, if any.
  3. Optionally add an hourly rate to see the pay.
  4. Press Calculate. You get the time worked in hours and minutes, decimal hours, total minutes and a 24-hour dial of the shift.

How hours between two times are calculated

  1. Convert both times to the 24-hour clock (5:30 PM → 17:30).
  2. Subtract the start time from the end time.
  3. If the result is negative, the period runs past midnight – add 24 hours.
  4. Take off the unpaid break.
\text{Hours worked} = (t_{\text{end}} - t_{\text{start}}) - \text{break}

If t_{\text{end}} is earlier than t_{\text{start}}, add 24 hours to it first.

Example 1: day shift, 9:00 AM to 5:30 PM with a 30-minute lunch
  • 17{:}30 - 9{:}00 = 8\text{ h } 30\text{ min}
  • 8\text{ h } 30\text{ min} - 30\text{ min} = 8\text{ h} → 8.00 decimal hours
Example 2: night shift, 10:00 PM to 6:30 AM
  • The end time is earlier, so add 24 hours: (6{:}30 + 24{:}00) - 22{:}00 = 8\text{ h } 30\text{ min}
  • In decimal hours: 8 + \frac{30}{60} = 8.50

12-hour and 24-hour clock

12-hour24-hour12-hour24-hour
12:00 AM (midnight)00:0012:00 PM (noon)12:00
1:00 AM01:001:00 PM13:00
6:00 AM06:006:00 PM18:00
9:30 AM09:309:30 PM21:30
11:59 AM11:5911:59 PM23:59

Decimal hours for payroll

Payroll systems multiply decimal hours by the hourly rate, so 7 hours 45 minutes must be written as 7.75, not 7.45.

\text{Decimal hours} = \text{hours} + \frac{\text{minutes}}{60}
\text{Pay} = \text{decimal hours} \times \text{hourly rate}
Time workedDecimal hoursPay at 20.00 / hour
7 h 15 min7.25145.00
7 h 45 min7.75155.00
8 h 20 min8.33166.67
8 h 30 min8.50170.00

Totalling a week of shifts

DayStartEndBreakHours
Monday9:00 AM5:30 PM30 min8.00
Tuesday8:45 AM5:15 PM30 min8.00
Wednesday9:00 AM6:00 PM45 min8.25
Thursday9:15 AM5:30 PM30 min7.75
Friday9:00 AM4:00 PM30 min6.50
Week total38.50

Work out each day here, then add the decimal hours. Some employers round each shift to the nearest 5, 6 or 15 minutes – check your own policy.

To add up durations such as 2 h 45 min + 1 h 30 min, use the Time Calculator.

Frequently asked questions

How do I calculate hours worked between two times?

Subtract the start time from the end time on the 24-hour clock, add 24 hours if the shift crosses midnight, then take off any unpaid break.

How do I calculate an overnight shift?

Just enter the times. When the end time is earlier than the start time, the calculator assumes the shift ends the next day.

What is 7 hours 45 minutes as a decimal?

7.75 hours, because 45 ÷ 60 = 0.75. Payroll uses the decimal value, not 7.45.

What if the start and end times are the same?

That is treated as a full 24-hour period.

Is the break included in the pay?

No. The break is treated as unpaid and taken off before the pay is calculated. Leave it at 0 for a paid break.