Search holidays, national days and tools

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

Hours calculator

Hours between two times, a timesheet of hours worked, or a time plus hours. Results update as you type.

Hours between two times

An earlier end time means the next day.

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

8 hr 15 min

8 hours 15 minutes = 8.25 decimal hours

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

Convert minutes to decimal hours

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 split shift

Some days have two shifts, such as 6:00 AM to 10:00 AM and 4:00 PM to 8:30 PM. Each shift is worked out on its own (4 hours and 4 hours 30 minutes) and the day total is the sum: 8 hours 30 minutes. The timesheet allows up to two shifts a day.

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.

Two weeks with overtime

Overtime is counted in each workweek on its own. If you work 45 hours in week 1 and 35 hours in week 2, that is 80 hours over the pay period but still 5 overtime hours, all from week 1. The federal rule does not let the short week cancel out the long one.

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. The timesheet above can also download a CSV file that opens in either.

Which calculator do you need?

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. Enter only unpaid breaks; if your breaks are paid, leave the break at 0.

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 and split shifts handled?

When the end time is earlier than the start time, the end is treated as the next day: 10:00 PM to 6:30 AM is 8 hours 30 minutes, and in the timesheet it counts toward the day the shift started. For a split shift, add a second shift to that day; the day total is the two shifts added together.

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, including biweekly pay?

With the overtime option on, hours over 40 in a workweek are paid at 1.5 times the hourly rate: 45 hours at $20 is 40 × $20 + 5 × $30 = $950. With two weeks, each week is counted separately, so 45 hours plus 35 hours still gives 5 overtime hours. This is the US federal FLSA rule for non-exempt employees; state rules can differ.

Is my timesheet saved, and can I print or export it?

With "Save in this browser" on, your entries are kept in this browser's local storage and come back when you return; they are not sent anywhere. Clear saved data removes them. Print gives a clean page with just the timesheet, and Download CSV saves a file you can open in Excel or Google Sheets.

Related guides