Search tools and countdowns

Press Enter to open the first result, or Esc to close.

Hours calculator

Find the hours and minutes between two times, with breaks and overnight shifts, or add up a week of hours worked. Results update as you type.

Hours between two times

If the end time is earlier than the start time, it is counted as the next day (an overnight shift).

8:30 AM to 5:15 PM, less a 30-minute break

8 hours 15 minutes

Hours and minutes
8:15
Decimal hours
8.25
Total minutes
495
Before the break
8:45
8.75 hours

Timesheet: hours worked this week

Monday
8:00

Tuesday
8:00

Wednesday
8:00

Thursday
8:00

Friday
8:00

Saturday
—

Sunday
—

Leave a day blank if you did not work. Breaks are unpaid minutes. A shift that ends after midnight counts toward the day it started.

This is the US federal (FLSA) rule for non-exempt employees. State rules can differ.

Total hours worked this week

40:00 hours

40 hours

Decimal hours
40.00
Total minutes
2,400
Days worked
5

Minutes to decimal hours

Payroll and timesheet systems often want hours as a decimal. Divide the minutes by 60 and round to two places: 15 minutes is 0.25 hours, and 7 hours 20 minutes is 7.33 hours.

Minutes 1 to 15 in decimal hours
MinutesHours
10.02
20.03
30.05
40.07
50.08
60.10
70.12
80.13
90.15
100.17
110.18
120.20
130.22
140.23
150.25
Minutes 16 to 30 in decimal hours
MinutesHours
160.27
170.28
180.30
190.32
200.33
210.35
220.37
230.38
240.40
250.42
260.43
270.45
280.47
290.48
300.50
Minutes 31 to 45 in decimal hours
MinutesHours
310.52
320.53
330.55
340.57
350.58
360.60
370.62
380.63
390.65
400.67
410.68
420.70
430.72
440.73
450.75
Minutes 46 to 60 in decimal hours
MinutesHours
460.77
470.78
480.80
490.82
500.83
510.85
520.87
530.88
540.90
550.92
560.93
570.95
580.97
590.98
601.00

How it's worked out

Both times are turned into minutes after midnight and the start is taken from the end. If the end is earlier than the start, the shift runs past midnight, so 24 hours are added. Then the unpaid break is taken off. Decimal hours are the total minutes divided by 60, rounded to two places.

A day shift with a break

8:30 AM to 5:15 PM is 17:15 − 8:30 = 8 hours 45 minutes. Take off a 30-minute break and you get 8 hours 15 minutes, which is 8.25 hours (15 ÷ 60 = 0.25).

An overnight shift

10:00 PM to 6:30 AM: the end is earlier than the start, so add 24 hours to it. 30:30 − 22:00 = 8 hours 30 minutes. With a 45-minute break, that is 7 hours 45 minutes, or 7.75 hours.

A week with overtime

Say you work 45 hours at $20 an hour with the overtime option on. The first 40 hours pay 40 × $20 = $800. The other 5 hours are paid at 1.5 × $20 = $30, so 5 × $30 = $150. Gross pay for the week is $950.

Pay is worked out from the exact minutes, not the rounded decimal, so it can differ by a cent from multiplying the rounded hours yourself.

Calculating hours in Excel or Google Sheets

With the start time in A2 and the end time in B2:

Hours worked, formatted as [h]:mm:

=B2-A2

Hours worked as a decimal (format the cell as a number):

=(B2-A2)*24

A shift that may run past midnight, in decimal hours:

=MOD(B2-A2,1)*24

Less an unpaid break in minutes in C2, in decimal hours:

=(MOD(B2-A2,1)-C2/1440)*24

Add up a week of [h]:mm results with =SUM(D2:D8) and keep the [h]:mm format, so a total over 24 hours shows as 40:00 rather than 16:00. These formulas work the same in Excel and Google Sheets.

Related tools

Frequently asked questions

How do I calculate hours worked?

Take the start time from the end time, then subtract any unpaid breaks. For example, 8:30 AM to 5:15 PM is 8 hours 45 minutes; less a 30-minute lunch, that is 8 hours 15 minutes, or 8.25 hours. For a week, add up each day.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes is 0.25 hours, 30 minutes is 0.5 and 45 minutes is 0.75. So 7 hours 20 minutes is 7 + 20 ÷ 60 = 7.33 hours when rounded to two decimal places.

How are overnight shifts handled?

When the end time is earlier than the start time, the calculator treats the end as the next day. A shift from 10:00 PM to 6:30 AM is 8 hours 30 minutes. In the timesheet, the hours count toward the day the shift started.

How do I calculate hours between two times in Excel or Google Sheets?

Put the start time in A2 and the end time in B2. =B2-A2 formatted as [h]:mm gives hours and minutes, and =(B2-A2)*24 gives decimal hours. For shifts that cross midnight, use =MOD(B2-A2,1)*24.

How is overtime pay worked out?

With the overtime option on, the first 40 hours of the week are paid at your hourly rate and any hours beyond 40 at 1.5 times that rate. 45 hours at $20 is 40 × $20 + 5 × $30 = $950. This is the US federal FLSA rule for non-exempt employees; state rules can differ.

Should I include my lunch break?

Enter only unpaid breaks. The calculator subtracts the break minutes from the time between start and end. If your breaks are paid, leave the break at 0.