Time Between Two Times

Calculate how much time passes between two clock times, in hours and minutes and as a decimal.

Enter a start and an end time to get the duration. Times that run past midnight are handled automatically.

Leave this unticked and an end time earlier than the start is still treated as overnight.

Duration

  • Decimal hours
  • Total minutes
  • Total seconds

    How Does It Work?

    1. Enter the two timesUse 24-hour or your device picker — both give the same result.
    2. Subtract a break if you need toEnter unpaid break minutes and they are removed from the total.
    3. Read the durationHours and minutes for people, decimal hours for timesheets and invoices.

    What Is It Used For?

    Time is base 60, which is exactly why subtracting it in your head goes wrong. This calculator also solves the overnight case: an end time earlier than the start is read as the following day, so a 22:00–06:00 shift comes out as eight hours rather than minus sixteen.

    • Working out hours for a timesheet or an invoice.
    • Checking the length of a night shift that crosses midnight.
    • Measuring how long a meeting, a task or a journey took.
    • Converting worked time into decimal hours for payroll.
    • Checking rest periods between shifts.

    Examples

    StartEndBreakDuration
    09:0017:3008 h 30 m (8.50)
    09:0017:30457 h 45 m (7.75)
    22:0006:0008 h 0 m (8.00)
    13:1518:05204 h 30 m (4.50)

    Frequently Asked Questions

    How do I calculate hours between two times?

    Convert both times to minutes since midnight, subtract, and divide by 60. If the result is negative the end time is on the next day, so add 24 hours. The calculator does all of this automatically.

    How does it handle shifts past midnight?

    If the end time is earlier than the start time it is treated as the next day. You can also tick the box to force that behaviour, for example for a full 24-hour period.

    What are decimal hours?

    Hours expressed as a decimal instead of hours and minutes: 8 h 30 m is 8.5 decimal hours. Payroll systems and invoices usually want this format.

    How do I convert minutes to decimal hours?

    Divide by 60. 45 minutes is 0.75 hours, 20 minutes is 0.33 hours, 10 minutes is 0.17 hours.

    Can I add up several days at once?

    Use the Work Hours Calculator, which totals a whole week of shifts with breaks and an optional hourly rate.

    Free. No registration. This tool runs entirely in your browser, so the data you enter stays on your device.