← Back to all articles Time Tracking

Work Hours Calculator

A start time and an end time resolved into hours and minutes and a decimal

Enter a start time, an end time and any unpaid break, and the calculator gives the hours worked in hours and minutes and as a decimal. Add rows for more shifts and it totals them, flags anything over 40 hours, and copies the result as text.

Below the calculator: how the arithmetic works if you need to do it by hand, which breaks can be deducted and which cannot, and where to go when you need a whole week or a pay figure rather than a duration.

Hours calculator

#StartEndBreak (min)Hours

An end time earlier than the start is treated as the next day. Results show hours and minutes and the decimal that payroll uses. Nothing you enter leaves this page.

Doing it by hand

  1. Write both times in 24-hour form. 8:15 am is 08:15; 4:45 pm is 16:45.
  2. Convert each to minutes: hours times 60, plus minutes. 08:15 is 495; 16:45 is 1,005.
  3. Subtract: 1,005 minus 495 is 510 minutes. If the end is smaller than the start, add 1,440 to the end first because the shift crossed midnight.
  4. Remove the unpaid break: 510 minus 30 is 480.
  5. Divide by 60: 8.00 hours. Or express it as hours and minutes: 8 h 00 min.

The decimal is what payroll multiplies by the rate, and it is where hand calculations go wrong: 7 hours 30 minutes is 7.50, not 7.30, and 7 hours 20 minutes is 7.33. The conversion chart lists every minute value, and our guide to calculating hours worked covers the method with worked examples.

Which breaks come off

Only unpaid, bona fide meal periods are deducted. Under 29 CFR 785.19 a meal period is ordinarily 30 minutes or more and the employee must be completely relieved of duty; someone eating at their desk while answering the phone is working. Under 29 CFR 785.18, rest breaks of 5 to 20 minutes are paid and "must be counted as hours worked", so they are never entered in the break column. If you are calculating for payroll and the person worked through lunch, the break is zero.

Common shifts, already worked out

ShiftUnpaid breakHours workedDecimal
9:00 am to 5:00 pmNone8 h 00 min8.00
9:00 am to 5:00 pm30 min7 h 30 min7.50
9:00 am to 5:30 pm30 min8 h 00 min8.00
8:30 am to 5:00 pm60 min7 h 30 min7.50
7:00 am to 3:30 pm30 min8 h 00 min8.00
6:00 am to 6:00 pm30 min11 h 30 min11.50
10:00 pm to 6:00 am30 min7 h 30 min7.50
11:00 am to 2:00 pm and 5:00 pm to 10:00 pmNone (split shift)8 h 00 min8.00

The first two rows are the most common source of dispute: "nine to five" is eight hours only if lunch is paid or eaten while working. With a 30-minute unpaid lunch it is 7.5, and a week of it is 37.5, not 40. Whether that lunch can be unpaid at all is the question the breaks section above answers. The last row is a split shift, which in California carries a premium on top of the hours.

Add, subtract and convert hours and minutes

The calculator above measures a shift. This one does the arithmetic around it: add a list of durations, subtract one from another, or convert between hours and minutes and the decimal hours that payroll uses.

Minutes are base 60, so 7:45 is 7.75 hours, not 7.45. Payroll systems use decimal hours; timesheets are usually written in hours and minutes; this converts between the two and adds either.

Minutes to decimal hours

MinutesDecimalMinutesDecimalMinutesDecimal
50.08250.42450.75
100.17300.50500.83
150.25350.58550.92
200.33400.67601.00

Two decimals is the payroll convention. A third decimal changes pay by fractions of a cent per hour and is not worth the disagreement it causes on a printed timesheet.

Rounding, and what payroll may do

Federal regulations at 29 CFR 785.48 allow employers to round recorded time to the nearest five minutes, tenth of an hour or quarter hour, provided the rounding does not, over time, favor the employer. The quarter-hour rule is the common one: minutes 1 to 7 round down to the previous quarter, 8 to 14 round up to the next, which is why it is called the 7/8 rule. A clock-in at 8:07 rounds to 8:00; at 8:08 it rounds to 8:15. The rounding has to be applied evenly to arrivals and departures, and several states and recent court decisions have narrowed the practice where accurate records exist, so rounding is now more defensible as an exception than as a policy.

The calculator's decimal mode shows the quarter-hour rounded figure alongside the exact one. Where the exact figure is available, use it; the time card calculator works in exact minutes and applies overtime at the workweek level, which is where the rounding question usually ends up.

When you need more than a duration

Key takeaways

Frequently asked questions

How do I calculate hours between two times?

Convert both to 24-hour time, turn each into minutes past midnight, subtract the start from the end, take off any unpaid meal break, and divide by 60. The calculator above does this for one or many shifts and shows the result in hours and minutes and as a decimal.

How do I calculate hours worked overnight?

If the end time is earlier than the start time, add 24 hours to the end before subtracting. A 22:00 to 06:00 shift is 06:00 plus 24 hours, minus 22:00, which is 8 hours. The calculator handles this automatically.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add to the hours. 8 hours 45 minutes is 8 plus 45 divided by 60, which is 8.75. Fifteen minutes is 0.25, thirty is 0.50, and ten minutes is 0.17.

Do I subtract lunch from hours worked?

Only if it was an unpaid meal period of about 30 minutes or more during which the employee was completely relieved of duty. Working lunches and short rest breaks of 5 to 20 minutes are paid time and stay in the total.

What is 7.5 hours in hours and minutes?

7 hours 30 minutes. The decimal part is a fraction of an hour: 0.5 hours is 30 minutes, 0.25 is 15 minutes, and 0.75 is 45 minutes.

← Back to all articles