Skip to content
CalcTide logo
Time & Date

Hours Worked Calculator

An hours worked calculator turns a clock-in time and a clock-out time into a usable total, in both a readable format and decimal hours. Enter a start time, an end time, and any unpaid break minutes, and the tool subtracts the break from the raw shift length to produce net time worked. It also handles overnight shifts, so a start time later than the end time is read as a shift that crosses midnight rather than an error. An optional overtime threshold splits the result into regular hours and overtime hours, which is useful for timesheets, payroll review, freelance invoicing, and any situation where you need to double-check a shift total by hand.

Time & DateBy

Quick answer

Enter times in 24-hour HH:MM format, such as 08:00 or 17:30, not AM/PM notation.

What this tells you

  • Enter times in 24-hour HH:MM format, such as 08:00 or 17:30, not AM/PM notation.
  • Break minutes are unpaid time and get subtracted directly from the raw shift length.
  • If the end time is earlier than the start time, the calculator assumes the shift crossed midnight and adds a full day before subtracting.
  • Decimal hours make the total easy to plug into payroll software or a spreadsheet formula.
  • The overtime threshold is a simple hours-per-shift cutoff, not a substitute for your employer's actual overtime policy.
  • Total hours worked is shown in a readable hours-and-minutes format alongside the decimal figure.

How to Use

  1. 1Enter the shift start time in 24-hour format, for example 08:00 for 8 AM or 22:00 for 10 PM.
  2. 2Enter the shift end time the same way. If the shift ends after midnight, use the next day's clock time, such as 06:00 for a shift that ends at 6 AM.
  3. 3Enter the total unpaid break minutes taken during the shift. Use 0 if no break was taken or if breaks were paid and should not be deducted.
  4. 4Set the overtime threshold in hours if your shift has one, such as 8 for a standard eight-hour day, or leave the default in place.
  5. 5Click calculate to see total hours worked, decimal hours, and the regular versus overtime split.

How It Works

Formula

Gross minutes = end time - start time (add 1440 minutes if the result is negative) Net minutes = gross minutes - break minutes, floored at 0 Total hours = net minutes / 60 Overtime hours = max(0, total hours - overtime threshold) Regular hours = total hours - overtime hours

Both clock times are converted to minutes past midnight first, so 08:00 becomes 480 and 17:00 becomes 1020. The calculator subtracts start from end to get the gross shift length. When that subtraction produces a negative number, it means the end time is on the following day, so the tool adds 1440 minutes (a full 24-hour day) to correct it before continuing. Unpaid break minutes are then subtracted from the gross figure to get net minutes actually worked, and that net figure never drops below zero even if break time was entered incorrectly. Net minutes divided by 60 gives total hours as a decimal. If an overtime threshold is set, any hours beyond that threshold are counted as overtime and the remainder stays as regular hours, so the two numbers always add back up to the total.

Calculation note: values are processed in the order shown above, using the current input units.

Worked Examples

Standard day shift with a lunch break

Start08:00
End17:00
Break60 min
Overtime threshold8h
Result8h 0m total, 8.00 decimal hours, 8.00 regular hours, 0.00 overtime hours

The gross shift runs from 08:00 to 17:00, which is 540 minutes, or 9 hours. Subtracting the 60-minute lunch break leaves 480 net minutes, exactly 8 hours. Since the total matches the 8-hour overtime threshold exactly, none of the time counts as overtime.

Overnight shift crossing midnight

Start22:00
End06:00
Break30 min
Overtime threshold8h
Result7h 30m total, 7.50 decimal hours, 7.50 regular hours, 0.00 overtime hours

Because 06:00 is earlier on the clock than 22:00, the calculator adds 1440 minutes to treat this as an overnight shift, giving 480 gross minutes, or 8 hours. A 30-minute break brings net time down to 450 minutes, which is 7.5 hours. This is the correct way to log a graveyard shift without manually adding a day to the math.

Long shift that runs into overtime

Start07:00
End19:30
Break45 min
Overtime threshold8h
Result11h 45m total, 11.75 decimal hours, 8.00 regular hours, 3.75 overtime hours

This shift spans 12.5 gross hours from 07:00 to 19:30. After removing a 45-minute break, net time worked is 705 minutes, or 11.75 hours. With an 8-hour threshold, the first 8 hours count as regular time and the remaining 3.75 hours show up as overtime.

Short shift with no break

Start09:00
End12:30
Break0 min
Overtime threshold8h
Result3h 30m total, 3.50 decimal hours, 3.50 regular hours, 0.00 overtime hours

A 3.5-hour morning shift with no break entered simply carries the gross time straight through as net time. This case is common for checking part-time or on-call hours where a formal break was not taken.

Extended shift with a higher overtime threshold

Start06:00
End22:00
Break90 min
Overtime threshold10h
Result14h 30m total, 14.50 decimal hours, 10.00 regular hours, 4.50 overtime hours

This 16-hour gross shift includes a 90-minute break, leaving 870 net minutes, or 14.5 hours worked. Because the overtime threshold here is set to 10 hours instead of the usual 8, the first 10 hours count as regular time and the remaining 4.5 hours are overtime. Raising or lowering the threshold changes only where the split happens, not the total.

Common mistakes

  • Entering times in AM/PM format, such as 5:00 PM, instead of the required 24-hour HH:MM format, such as 17:00.
  • Forgetting to enter unpaid break minutes, which inflates total hours worked above what will actually be paid.
  • Assuming the overtime threshold enforces a real payroll policy rather than acting as a simple hours-per-shift cutoff you control.
  • Entering an end time that looks earlier than the start time by mistake, which the tool always reads as an overnight shift.
  • Mixing paid and unpaid break minutes into a single number, which can under- or overstate net hours depending on the employer's break policy.
  • Using this tool as the final word on a paycheck instead of cross-checking against an employer's actual timesheet or payroll system.

Embed this calculator on your site

Drop this single line where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use with attribution.

<script src="https://calctide.com/embed.js" data-tool="hours-worked-calculator" async></script>

Preview the embed at /embed/hours-worked-calculator/.

Frequently Asked Questions

Yes. If the end time is earlier than the start time, the calculator assumes the shift crossed midnight and adds a full day (1440 minutes) before calculating net hours worked.
Yes. Every result includes both a readable format like 7h 30m and a decimal figure like 7.50, so you can copy whichever version your payroll or invoicing system needs.
No. It is a simple threshold-based estimate driven by the number you enter, not a legal payroll determination, and it does not account for state, federal, or union overtime rules.
Use 24-hour HH:MM format, such as 08:00 for 8 AM or 20:15 for 8:15 PM. AM/PM notation like 8:00 AM is not accepted.
The calculator treats the full gross shift length as net hours worked, which is correct only if no unpaid break was taken during the shift.
You can add multiple break periods together into a single break-minutes value, since the tool only accepts one combined figure per shift rather than separate break entries.
Overtime only appears once total net hours exceed the overtime threshold you entered, so if your threshold is set higher than your actual hours, no overtime will show.
Yes. Decimal hours, regular hours, and overtime hours are each rounded to two decimal places, while the minutes-based total stays exact.
Yes. Many freelancers use it to convert logged start and end times into decimal hours for time-based invoices, since decimal hours multiply cleanly against an hourly rate.
It estimates hours worked calculator outputs using the visible inputs and formula assumptions on this page.

Explore More in Time & Date