time calculator

Work Hours Calculator

Calculate total hours worked between two times, factoring in unpaid breaks and overnight shifts.

Results

Total hours (decimal)
7.50
Total minutes
450
Hours
7
Remaining minutes
30

Overview

Use this work hours calculator to total shift length between clock-in and clock-out, subtract unpaid breaks, and handle overnight shifts without doing manual time math. It’s useful for employees, freelancers, and managers who want a clean decimal-hours figure for payroll plus an hours-and-minutes breakdown for everyday planning.

How to use this calculator

  1. Enter the start (clock-in) and end (clock-out) times of your shift using 24-hour clock values.
  2. Add up all unpaid breaks (lunch, unpaid rest breaks) in minutes and enter that total as break minutes.
  3. Review the total worked time in decimal hours, total minutes, and a human-readable hours + minutes breakdown.
  4. If you have multiple shifts in a day or week, run each shift and sum the decimal hours separately to check for overtime or billing totals.

Inputs explained

Clock-in hour/minute
The time you start work, using a 24-hour clock. For example, 9:00 AM = 9:00, 2:30 PM = 14:30, 11:15 PM = 23:15. Enter the hour as 0–23 and minutes as 0–59.
Clock-out hour/minute
The time you finish work, also in 24-hour format. If your shift crosses midnight, simply enter the clock-out time on the next day (for example, 6:00 AM = 6). The calculator automatically treats that as an overnight shift.
Unpaid break minutes
The total number of minutes in your shift that are not paid—for example, a 30-minute lunch plus a 15-minute unpaid break entered as 45. Paid breaks that count toward working time should not be subtracted here.

Outputs explained

Total hours (decimal)
Your worked time expressed as a decimal number of hours, such as 7.75 for 7 hours and 45 minutes. This format is often required in payroll systems and billing spreadsheets.
Total minutes
Your net working time in minutes after subtracting unpaid breaks. This is useful if you want to apply your own rounding rules (for example, to the nearest 5, 6, or 15 minutes).
Hours
The whole hours portion of your net working time once minutes have been converted from total minutes.
Remaining minutes
The leftover minutes after accounting for whole hours. Together with the Hours output, this gives you a classic hh:mm view of your shift length.

How it works

We convert your clock-in and clock-out times into total minutes from midnight using the 24-hour clock values you enter.

If the end time is earlier than the start time (for example, 22:00 to 06:00), we treat the shift as crossing midnight and add 24 hours to the end time before computing the difference.

From the gross minutes between clock-in and clock-out, we subtract the unpaid break minutes you enter to get net working minutes.

We then convert net minutes to decimal hours by dividing by 60 and also break it down into whole hours plus remaining minutes so you see both formats.

The decimal hours output is convenient for payroll systems and invoices, while the hh:mm style result is easy to read and share with supervisors or clients.

Formula

1) Convert start and end times to minutes from midnight.\n2) If end < start, treat as overnight by adding 24 × 60 minutes to end.\n3) Gross minutes = End minutes − Start minutes.\n4) Net minutes = Gross minutes − Break minutes (floored at zero if needed).\n5) Total hours (decimal) = Net minutes ÷ 60.\n6) Hours = floor(Net minutes ÷ 60); Remaining minutes = Net minutes mod 60.

When to use it

  • Double-checking a single shift’s hours before submitting a timesheet or invoice to your employer or client.
  • Comparing different shift options (for example, 8:30–17:00 vs. 9:00–17:30) to see how unpaid breaks and small timing changes affect total hours.
  • Quickly verifying that scheduled shifts add up to the expected number of hours for part-time or full-time status over a week.
  • Planning staffing coverage for busy periods by estimating how long each team member will be on the floor, after breaks, on a given day.
  • Helping new employees understand how breaks and overnight schedules are counted toward paid time.

Tips & cautions

  • Combine all unpaid breaks into one number before entering them—for example, a 30-minute lunch and a 10-minute unpaid break can be entered as 40 minutes total break time.
  • For overnight shifts, you do not need to adjust the date—just enter the clock-in and clock-out times as they appear on the schedule (for example, 22:00 to 06:00). The calculator automatically handles the date rollover.
  • Use the decimal hours result when entering time into systems that expect values like 7.50 or 7.75 and apply your organization’s rounding rules (for example, to two decimal places or to quarter-hour increments).
  • If your workplace rounds time to the nearest 5, 6, or 15 minutes, you can base that rounding on the Total minutes output, then convert back to hours if needed.
  • Save your typical shifts (for example, an 8-hour day with a 30-minute lunch) as presets or notes so you can quickly sanity-check future schedules against your expected pattern.
  • Does not implement automatic rounding policies such as always rounding to the nearest 5, 6, or 15 minutes or specific punch rounding rules that some time clocks apply.
  • Does not adjust automatically for daylight saving time; if a shift crosses a DST change and you worked more or fewer hours than the clock difference suggests, you may need to manually add or subtract an hour to match reality.
  • Handles one shift at a time; weekly or monthly totals require manually summing multiple shift results.
  • Assumes clock-in and clock-out times are accurate; it does not fetch or interpret time clock records from external systems.

Worked examples

8:00 AM – 5:30 PM with a 30-minute lunch

  • Start = 08:00; End = 17:30; Break minutes = 30.
  • Gross span = 9 hours 30 minutes = 570 minutes.
  • Net minutes = 570 − 30 = 540 minutes.
  • Total hours (decimal) = 540 ÷ 60 = 9.0 hours; Hours = 9, Remaining minutes = 0.

Overnight support shift with a short break

  • Start = 22:00; End = 06:00; Break minutes = 15.
  • Start minutes = 22 × 60 = 1,320; End minutes (next day) = (6 + 24) × 60 = 1,800.
  • Gross minutes = 1,800 − 1,320 = 480 minutes (8 hours).
  • Net minutes = 480 − 15 = 465 minutes.
  • Total hours (decimal) = 465 ÷ 60 = 7.75 hours; Hours = 7, Remaining minutes = 45.

Split-day planning: 9:15–13:45 with 15-minute break

  • Start = 09:15; End = 13:45; Break minutes = 15.
  • Gross span = 4 hours 30 minutes = 270 minutes.
  • Net minutes = 270 − 15 = 255 minutes.
  • Total hours (decimal) = 255 ÷ 60 ≈ 4.25 hours; Hours = 4, Remaining minutes = 15.

Deep dive

This work hours calculator totals time between clock-in and clock-out, subtracts unpaid break minutes, and correctly handles overnight shifts to give you net working time in both decimal hours and hh:mm format.

Enter your start and end times using a 24-hour clock along with total unpaid break minutes to see exact hours worked. You can then apply your own rounding rules for payroll, invoicing, or scheduling.

Use it to validate timesheets, compare shift patterns, or quickly estimate paid time before entering hours into your company’s time tracking system.

FAQs

What if my shift crosses midnight?
Just enter the actual clock-in and clock-out times using the 24-hour clock (for example, 22:00 to 06:00). The calculator automatically treats an end time earlier than the start time as an overnight shift and adds 24 hours to compute the correct duration.
Can I track multiple breaks during a shift?
Yes. Add all unpaid breaks together—such as lunch plus unpaid rest breaks—and enter their combined length in minutes. The calculator subtracts that total from your gross shift time to give net working time.
Does this tool round to the nearest quarter hour or other increment?
No. It shows exact minutes and decimal hours. To match a particular payroll or client policy, you can round the Total minutes or decimal hours results according to your own rules.
How should I handle daylight saving time changes?
If a shift crosses the DST change and the clock jumps forward or backward, the clock difference may not match the actual hours worked. In those cases, adjust your input times or manually add or subtract an hour so the calculator reflects the true working time.
Can I enter times in AM/PM instead of 24-hour format?
The calculator expects 24-hour clock values. To convert, remember that 1:00 PM = 13:00, 6:30 PM = 18:30, 11:30 PM = 23:30, and times between midnight and 11:59 AM stay as 0–11 hours.

Related calculators

This work hours calculator is intended for planning and rough payroll checks only. It does not implement jurisdiction-specific labor rules, official rounding policies, or daylight saving time adjustments. Always verify final working hours and pay with your organization’s official timekeeping and payroll systems, and consult HR or legal guidance for compliance questions.