Hours Calculator

Calculate one shift minus breaks; use Military Time Converter for clock notation.

Net work time
8 hours
Hours and minutes8:00
Decimal hours8.00
Total minutes480
Gross duration8 hours
Break deducted0 minutes
Method: End time − start time − unpaid break.
Decimal hours are rounded to 2 decimal places. Hours and minutes are calculated from exact minutes.

For a full week of clock-in and clock-out times, use the Time Card Calculator.

Results update as you type

What does this hours calculator count?

When working out hours worked, start with the shift length and subtract any unpaid break. This work hours calculator treats an earlier end as overnight. Use the hours worked calculator to keep the result in exact minutes; the work time calculator also shows the equivalent decimal hours.

Hours worked formula with breaks

Net work time from a single interval:

Net work time = End time − Start time − Unpaid break

For overnight shifts, when the end time is earlier than the start time:

Gross minutes = End minutes + 1,440 − Start minutes

1,440 is the number of minutes in 24 hours.

Start time, end time and break variables

  • Start time: Beginning clock time in HH:MM.
  • End time: Ending clock time in HH:MM.
  • Unpaid break: Break duration in minutes to deduct from the shift.

How to calculate hours worked

  1. Convert each clock time to minutes: hours × 60 + minutes.
  2. Subtract start minutes from end minutes; add 1,440 if the end time is earlier.
  3. Subtract the break in whole minutes.
  4. Divide net minutes by 60 for decimal hours, or split into whole hours and remaining minutes.

Hours worked from 08:30 to 17:15 with a break

Fixed single-shift example: start 08:30, end 17:15, break 45 minutes.

  • Gross duration: 8 hours 45 minutes
  • Break deducted: 45 minutes
  • Net work time: 8 hours
  • Decimal hours: 8.00
  • Total minutes: 480

How to use the hours calculator with a lunch break

Enter the start and end times, add any unpaid break, then review the calculated hours in hours and minutes, decimal hours, and total minutes.

  1. Enter the start and end times.
  2. Add an unpaid break if needed.
  3. Review, copy, or share the result.

Common mistakes when calculating shift hours

  • Forgetting to deduct an unpaid break.
  • Treating an overnight shift as a negative duration.
  • Entering a break longer than the work interval.
  • Confusing decimal hours with hours and minutes. 8.50 decimal hours means 8 hours 30 minutes, not 8 hours 50 minutes.

What do net hours and gross shift duration mean?

The tool shows:

  • Total hours: the net work time between the two clock times, after the unpaid break has been deducted, written as hours and minutes.
  • Hours and minutes: the same net time in HH:MM form, based on exact integer minutes.
  • Decimal hours: the net time as a decimal, rounded to two places.
  • Total minutes: the exact number of net minutes.
  • Gross duration: the time between the start and end times before the break is deducted.
  • Break deducted: the unpaid break in minutes that was subtracted from the gross duration.

Overnight shift hours across midnight

An earlier end time belongs to the following day. Fixed example: 22:00 to 06:00 gives 8 hours before breaks; subtracting 30 minutes leaves 7:30 or 7.50 decimal hours. Identical start and end times are rejected rather than assumed to mean 24 hours.

Convert minutes to decimal hours

Divide minutes by 60. Decimal hours round half-up to two places for display only; HH:MM and total minutes remain exact. A decimal fraction is not a minute count.

MinutesHours:minutesDecimal hours
10:010.02
100:100.17
150:150.25
300:300.50
450:450.75
601:001.00
901:301.50

How to calculate hours worked in Excel and Google Sheets

With start time in A2, end time in B2 and a break in whole minutes in C2, use =MOD(B2-A2,1)*24-C2/60 for decimal hours. For same-day shifts, =(B2-A2)*24-C2/60 is sufficient. Enter real spreadsheet time values, including 24-hour times, not text.

For HH:MM, use =MOD(B2-A2,1)-C2/1440 and format the cell as [h]:mm. For total minutes, use =ROUND(MOD(B2-A2,1)*1440-C2,0). Reject negative breaks, breaks longer than the interval and equal clock times before applying these formulas. MOD alone silently wraps negative differences and treats equal times as zero.

Fixed spreadsheet check: A2=08:30, B2=17:15, C2=45 returns 8.00 hours, 8:00 and 480 minutes. Sum validated decimal-hour rows with =SUM(D2:D8); round only the displayed total, not each underlying row.

Microsoft: calculate the difference between two times documents spreadsheet time subtraction and multiplying the day fraction by 24.

When should shift hours use dates as well as times?

This single-shift tool uses clock minutes, not timezone transitions. For spans of 24 hours or longer, or dated endpoints, use the Time Duration Calculator. Its date-time convention differs from this overnight clock-time assumption.

Browse the date and time calculators for related calendar and clock tasks.

Hours calculator FAQs

How to calculate hours worked in Excel with a lunch break?

Use =MOD(B2-A2,1)*24-C2/60 with start time in A2, end time in B2 and break minutes in C2. Format as a number for decimal hours. Reject equal times, negative breaks and breaks longer than the shift first.

How to calculate total hours in Google Sheets with breaks?

Calculate each validated shift with =MOD(B2-A2,1)*24-C2/60, then sum the resulting decimal-hour cells with SUM. Keep the underlying values unrounded and format the displayed total to two decimal places.

How to calculate hours and minutes worked?

Subtract the break from the gross clock-time interval in minutes. Divide the result by 60 for whole hours and keep the remainder as minutes. Use HH:MM for hours and minutes, not decimal digits.

How to calculate minutes to hours?

Divide total minutes by 60. Thus 30 minutes is 0.50 hours and 10 minutes is approximately 0.17 hours when rounded to two decimal places. Exact minutes are unchanged by display rounding.

How do I calculate hours between two times?

Subtract the start time from the end time. If the end time is after midnight, treat it as the following day. Then subtract any unpaid break.

How do I calculate work hours with a lunch break?

Enter the start and end times, then enter the unpaid break in minutes. The calculator deducts the break from the gross time interval.

Can the calculator handle overnight shifts?

Yes. If the end time is earlier than the start time, the calculator treats the end time as the following day. If your clock shows 24-hour times like 1730, the Military Time Converter turns them into AM/PM.

What is the difference between 8:30 and 8.50 hours?

They represent the same duration. 8:30 means 8 hours 30 minutes, while 8.50 expresses the same time in decimal hours.

Related shift and elapsed-time calculators

If this helped, the following calculators are useful for date, time, and duration questions:

Last updated: November 15, 2026 · Checked against standard formulas and sample test cases.

Disclaimer: This calculator is for general time and work-hour calculations. Clock-time results do not account for daylight-saving changes or timezone differences.