Mihsaba›Calculation guides›How to Calculate Hours Between Two Times (Including Overnight)

How to Calculate Hours Between Two Times (Including Overnight)

Calculate time between clock times, crossing midnight, unpaid breaks and decimal hours with examples.

Try the calculator: Time Duration Calculator

Subtract start time from end time after converting both to minutes. For an overnight shift ending the next day, add 24 hours when the end clock time is earlier. Subtract unpaid breaks before converting minutes back to hours.

Formula

Net minutes = (end − start + 1,440 if overnight) − break minutes; decimal hours = net minutes / 60.

How to calculate

  1. Convert start and end clock times to minutes since midnight.
  2. Add 1,440 minutes if the end belongs to the following day.
  3. Subtract the unpaid break and express hours/minutes or decimal hours.

Worked examples

ScenarioCalculationAnswer
09:00 to 17:30510 minutes8 h 30 min
22:00 to 06:00 overnight480 minutes8 hours
08:00 to 16:30 minus 30-min break510 − 30 = 480 minutes8 net hours

Important limitation

Seven hours and thirty minutes equals 7.5 decimal hours, not 7.30. This method assumes a clock interval shorter than 24 hours; use a date calculator for multiple days.

Common question

How do I calculate overnight work hours?

If the end clock time is earlier, treat it as occurring on the next day; then subtract any break.

Try the calculator: Time Duration Calculator

All guides