Calcamaze

Hours Calculator

Work out the hours and minutes between two times, minus any break, with optional pay.

Type a time with AM/PM, or in 24-hour form like 0900 or 17:30.

If the end time is earlier than the start, the shift is taken to run past midnight; the same time as the start means 24 hours.

min
$

Result

Hours worked
8 h
Decimal hours
8
Hours:minutes
8:00
Total minutes
480
Time between start and end
8 h 30 min
Finishing times for a shift starting at 9:00 AM with a 30-minute break
Hours workedFinish time
4 h1:30 PM
5 h2:30 PM
6 h3:30 PM
7 h4:30 PM
7 h 30 min5:00 PM
8 h5:30 PM
9 h6:30 PM
10 h7:30 PM
12 h9:30 PM

Find out how many hours and minutes there are between two times — for a work shift, a timesheet, a study session or a trip. Take off an unpaid break, see the answer in hours and minutes and as decimal hours for payroll, and add an hourly rate to see what the time is worth.

Shifts that cross midnight, unpaid breaks and minutes that need to become decimal hours are where hand calculations usually go wrong. The calculator handles all three.

How are hours between two times calculated?

Counting hours on a clock is awkward because time is not decimal: there are 60 minutes in an hour and the clock restarts at 12 or at midnight. The reliable method is to turn both times into minutes after midnight, subtract, and convert back. For a shift that crosses midnight, add 24 hours (1,440 minutes) to the result.

For pay, hours are usually written as decimals — 7 hours 45 minutes is 7.75 hours — because that is what gets multiplied by an hourly rate. Under the US Fair Labor Standards Act, short rest breaks of up to about 20 minutes count as paid working time, while a bona fide meal period of 30 minutes or more, when you are fully relieved of duty, does not.

How to use the hours calculator

  1. Enter the start time and the end time.
  2. Enter any unpaid break in minutes (or 0).
  3. Optionally enter an hourly rate to see the pay.
  4. Read the hours worked, the decimal hours and the total minutes.

Formula

Hours worked = (End time − Start time) − Break

Both times are converted to minutes after midnight, the start is subtracted from the end, and the break is taken off. If the end time is earlier than the start, the shift crosses midnight, so 24 hours are added.

Decimal hours divide the minutes by 60: 8 hours 15 minutes is 8.25 hours, because 15 ÷ 60 = 0.25.

Worked examples

A day shift with lunch

Start time
8:15 AM
End time
4:45 PM
Unpaid break
30 min
Hourly rate (optional)
NaN $
Hours worked
8 h
Decimal hours
8
Hours:minutes
8:00

From 8:15 AM to 4:45 PM is 8 h 30 min. Taking off a 30-minute unpaid lunch leaves 8 hours — 8 in decimal hours.

A night shift past midnight

Start time
10:00 PM
End time
6:30 AM
Unpaid break
30 min
Hourly rate (optional)
22 $
Hours worked
8 h
Decimal hours
8
Hours:minutes
8:00

The end is earlier than the start, so 24 hours are added: 6:30 AM is 30.5 hours after the previous midnight, minus 22 hours = 8.5 hours. After the 30-minute break, 8 hours at $22 is $176.

Using 24-hour times

Start time
0645
End time
1520
Unpaid break
45 min
Hourly rate (optional)
NaN $
Hours worked
7 h 50 min
Decimal hours
7.83
Hours:minutes
7:50

15:20 − 06:45 = 8 hours 35 minutes. Taking off the 45-minute break leaves 7 hours 50 minutes, which is 7.83 decimal hours (50 ÷ 60 = 0.83).

Minutes to decimal hours chart

MinutesDecimal hoursMinutesDecimal hours
10.02310.52
20.03320.53
30.05330.55
40.07340.57
50.08350.58
60.10360.60
70.12370.62
80.13380.63
90.15390.65
100.17400.67
110.18410.68
120.20420.70
130.22430.72
140.23440.73
150.25450.75
160.27460.77
170.28470.78
180.30480.80
190.32490.82
200.33500.83
210.35510.85
220.37520.87
230.38530.88
240.40540.90
250.42550.92
260.43560.93
270.45570.95
280.47580.97
290.48590.98
300.50601.00

Common shift lengths

9:00 AM to 5:00 PM is 8 hours; with a 30-minute unpaid lunch it is 7.5 hours, or 37.5 hours over a five-day week. To get a full 8 paid hours with a 30-minute lunch, the shift has to run 8:30 hours, such as 8:00 AM to 4:30 PM.

7:00 AM to 7:00 PM is 12 hours, the usual shift in hospitals and factories; three of them make a 36-hour week. Four 10-hour days, such as 7:00 AM to 5:30 PM with a 30-minute lunch, add up to 40 hours.

Round-the-clock workplaces often split the day into three 8-hour shifts: 7:00 AM to 3:00 PM, 3:00 PM to 11:00 PM and 11:00 PM to 7:00 AM. The last one crosses midnight, which is why the calculator adds 24 hours when the end time is earlier than the start.

When hours turn into overtime

Under the federal Fair Labor Standards Act, non-exempt employees in the US are owed at least 1.5 times their regular rate for hours over 40 in a workweek. The federal rule counts the week, not the day, so a 10-hour day is not overtime on its own if the week stays at 40 hours.

Some states also count by the day. In California, hours over 8 in a workday are paid at 1.5 times the regular rate and hours over 12 at double time, as well as hours over 40 in the week. To total a week and see the overtime, use the time card calculator.

Rounding punches to the quarter hour

Some employers round clock-in and clock-out times to the nearest quarter hour. In the US that is allowed as long as it averages out and doesn’t consistently cut the time employees are paid for. Under a common rule, 8:07 rounds to 8:00 and 8:08 to 8:15.

Converting minutes to decimal hours

Payroll systems usually want hours as a decimal. Divide the minutes by 60: 15 minutes is 0.25, 30 minutes is 0.5 and 45 minutes is 0.75. Writing 8 hours 30 minutes as “8.30” is a common mistake — it is 8.5 hours.

Common mistakes

  • Writing 8 hours 30 minutes as 8.30 on a timesheet. In decimal hours it is 8.5 — 30 minutes is half an hour.
  • Subtracting the clock times directly across noon (5:30 − 9:00). Convert to the 24-hour clock first: 17:30 − 09:00 = 8 h 30 min.
  • Forgetting to add 24 hours for a shift that ends after midnight, which gives a negative or tiny result.
  • Taking short coffee breaks off paid time. Under federal rules, breaks of 20 minutes or less are counted as hours worked.

Frequently asked questions

How do I calculate hours between two times?

Convert both times to the 24-hour clock, subtract the start from the end and take off any break. From 9:00 AM to 5:30 PM is 8 hours 30 minutes; with a 30-minute lunch it is 8 hours.

How do I calculate hours for a night shift?

If the shift ends after midnight, add 24 hours to the end time before subtracting. From 10:00 PM to 6:00 AM is 8 hours. The calculator does this automatically when the end time is earlier than the start.

What is 7 hours and 45 minutes in decimal?

7.75 hours, because 45 minutes ÷ 60 = 0.75.

How many hours is 9 to 5?

9:00 AM to 5:00 PM is 8 hours. With a 30-minute unpaid lunch it is 7.5 hours, and five such days make 37.5 hours a week.

How many hours is 7 AM to 7 PM?

12 hours. With a 30-minute unpaid break it is 11.5 hours.

Is a 30-minute lunch break paid?

Usually not. Under US federal rules a meal break of 30 minutes or more is unpaid if you are fully relieved of duty. Short rest breaks of up to about 20 minutes count as paid working time.

Can I add up hours for a whole week?

Yes — use the time card calculator, which totals each day’s hours and works out overtime.

Sources

  1. Fact Sheet #22: Hours Worked Under the Fair Labor Standards Act (FLSA), U.S. Department of Labor, Wage and Hour Division
  2. Overtime Pay, U.S. Department of Labor, Wage and Hour Division
  3. Overtime (frequently asked questions), California Department of Industrial Relations, Labor Commissioner’s Office

Last updated · Calculations checked by automated tests· Editorial policy