Time Duration Calculator

How long is it from one time to another? Enter a start and end time for the exact duration.

Type times like 1:30, 1:30:15, 2.5h or 1h 45m. A plain number counts as minutes.

Total time

—

    • Private — runs in your browser
    • Instant results
    • Works on any device

    How the duration is calculated

    Both times are converted to minutes after midnight and subtracted. When the end time comes earlier in the day than the start, the span crosses midnight, so a day (1,440 minutes) is added.

    duration = end − start  (+ 24 h if end < start)

    Examples

    FromToDuration
    9:00 AM5:30 PM8 h 30 min (8.5 h)
    9:40 AM5:15 PM7 h 35 min (7.58 h)
    10:00 PM6:00 AM8 h (overnight)
    11:45 AM1:10 PM1 h 25 min (1.42 h)

    Working out a shift with a lunch break, or a full week? Use the hours calculator. To add several durations together, use the time calculator.

    Frequently asked questions

    How do I calculate the duration between two times?

    Subtract the start time from the end time. If the minutes of the end time are smaller, borrow an hour (60 minutes). 9:40 AM to 5:15 PM is 7 hours 35 minutes.

    What if the time span goes past midnight?

    When the end time is earlier than the start time, the calculator counts it as the next day. 10:00 PM to 6:00 AM is 8 hours.

    How do I get the duration in decimal hours?

    The results list shows decimal hours — 7 hours 35 minutes is 7.58 hours — as well as total minutes and seconds.

    Can I calculate a duration longer than 24 hours?

    Clock times only cover one day. For spans over several days, count the days with the date calculator, or add the hours with the time calculator’s add mode.

    Sources

    See how we build and test our tools in our editorial policy.