How this calculator works

The calculator subtracts the start time from the end time. If the end time is earlier than the start, it assumes the period crossed midnight and adds 24 hours. Break minutes are then subtracted from the total.

This is useful for shifts, study sessions and time logs. It does not account for time zones, daylight-saving transitions or unpaid breaks other than the one you enter.

The formula

duration = end time − start time if end < start, add 24 hours duration = duration − break minutes

The result is shown in hours and minutes and as decimal hours.

A worked example

From 09:00 to 17:30 with a 30-minute break is 8 hours and 0 minutes, or 8.00 decimal hours.

Assumptions and limits

  • Clock times are in the same local time zone.
  • An end time earlier than the start time means the next day.
  • Only one break duration is subtracted.
  • The result is rounded to the nearest minute.

Frequently asked questions

Does it handle overnight shifts?

Yes. If the end time is earlier than the start time, the calculator adds 24 hours.

How do I convert the result to decimal hours?

The result includes a decimal-hours figure. For payroll, confirm whether your employer rounds to the nearest minute or quarter hour.

Can I subtract multiple breaks?

Add them together and enter the total break minutes.

This page is an educational estimate, not professional advice. Read the full disclaimer and our editorial policy.

Last updated 4 December 2026 · Reviewed in-house