HubTools

Time Duration Calculator

Calculate hours and minutes between two times, with break subtraction and overnight-shift support.

What is a Time Duration?

A time duration is the elapsed interval between two clock times — for example, 9:00 to 17:30 is a duration of eight hours and thirty minutes. Calculating it sounds trivial but there are three places where simple subtraction goes wrong: shifts that cross midnight (end time numerically earlier than start), unpaid breaks that have to be subtracted from the worked total, and converting between the hours-and-minutes humans read and the decimal hours payroll software expects. This calculator handles all three. Pick a start and end, optionally enter break minutes, and you'll get the duration in HH:MM, decimal hours (e.g. 7.5h), and raw minutes — all updating instantly as you adjust the inputs. For longer intervals spanning multiple days, use the Day of Week Calculator or the Age Calculator instead.
Start time
End time
Break (minutes)
None
15m
30m
45m
60m
90m
Time format
7h00m
7.00 decimal hours·420 total minutes
After 60-min break · gross 8.00 h

How to use this tool

  1. 1
    Enter start and end times
    Use the time pickers in either 12-hour or 24-hour format. The duration updates as you type.
  2. 2
    Add break minutes if any
    Subtract unpaid lunch or other breaks from the gross duration to get worked time.
  3. 3
    Toggle midnight crossing for overnight shifts
    When the end time falls on the next day (e.g. 22:00 to 06:00), flip the switch.
  4. 4
    Read all three formats
    Hours-and-minutes for humans, decimal hours for payroll, total minutes for any other math.

Frequently asked questions

How many hours is 9am to 5pm?
Eight hours, or 480 minutes — that's the canonical full-time workday. If you subtract a 60-minute lunch break, you get 7 hours of actual worked time. The calculator handles the break math for you and outputs both the gross duration and the worked duration.