Time Duration Calculator

Find the exact time between two clock times, add up a list of durations, or convert a duration between seconds, minutes, hours, days and weeks.

Time duration calculator
What do you want to do?
Duration

    When the end time is earlier than the start time, it is treated as the next day, so overnight periods work. Day lengths are taken as exactly 24 hours, without daylight saving changes.

    On this page

    The time duration calculator finds the exact length of time between two clock times, adds up a list of durations, and converts a duration between seconds, minutes, hours, days and weeks. From 8:45:00 AM to 5:20:30 PM is 8 hours 35 minutes 30 seconds, or 8.5917 hours. From 10:30 PM to 6:15 AM the next day is 7 hours 45 minutes. Adding 1:30, 0:45:20 and 2h 15m and subtracting 20 minutes gives 4:10:20, and 150 minutes is 2 hours 30 minutes.

    It’s useful for timing tasks, workouts and lap splits, totalling video or audio clip lengths, logging study or project time, checking how long a process ran, and converting between decimal hours and hours and minutes.

    How to use the time duration calculator

    Duration between two times

    1. Enter the start time and end time, including seconds if you need them.
    2. Select Calculate. If the end time is earlier than the start time, the calculator assumes it’s on the next day, so periods that run past midnight work automatically.
    3. Read the result in hours, minutes and seconds, in h:mm:ss format, as decimal hours, total minutes and total seconds, and as a percentage of a day.

    Add up durations

    1. Type one duration per line. You can mix formats: 1:30, 0:45:20, 2h 15m, 90 min, 45s or 1.5 h.
    2. Start a line with a minus sign to subtract it, for example -20m for a break.
    3. Choose how to read two-part values. By default 1:30 means 1 hour 30 minutes. For lap times and song lengths, switch to minutes:seconds so 1:30 means 1 minute 30 seconds.
    4. Select Calculate to see the total, the number of entries and the average duration.

    Convert a duration

    Enter a number, choose its unit and select Calculate to see the same duration in weeks, days, hours, minutes and seconds, in h:mm:ss, and in words.

    How the duration is calculated

    Each time is converted to the number of seconds since midnight: hours × 3,600 + minutes × 60 + seconds. The duration is the end value minus the start value. If the end is earlier than the start, 86,400 seconds (one full day) is added, because the period must have crossed midnight. The result in seconds is then split back into hours, minutes and seconds.

    Worked examples

    • Same day: 8:45:00 AM is 31,500 seconds after midnight and 5:20:30 PM is 62,430 seconds. The difference is 30,930 seconds, which is 8 hours (28,800 s), 35 minutes (2,100 s) and 30 seconds: 8:35:30.
    • Overnight: 10:30 PM is 81,000 seconds and 6:15 AM is 22,500 seconds. 22,500 − 81,000 + 86,400 = 27,900 seconds, or 7 hours 45 minutes.
    • Adding durations: 1:30:00 + 0:45:20 + 2:15:00 − 0:20:00 = 4:10:20. The average of the four entries is 1:02:35.

    Decimal hours and hours:minutes

    A common mistake is to read decimal hours as hours and minutes. 8.5 hours is 8 hours 30 minutes, not 8 hours 50 minutes, because an hour has 60 minutes, not 100. To convert decimal hours to minutes, multiply the decimal part by 60: 0.75 hours is 45 minutes and 0.2 hours is 12 minutes. To go the other way, divide minutes by 60: 35 minutes is 0.5833 hours. Payroll, invoicing and spreadsheets usually need decimal hours, while schedules and stopwatches use hours and minutes.

    MinutesDecimal hours
    60.1
    100.1667
    150.25
    200.3333
    300.5
    400.6667
    450.75
    500.8333

    Useful time conversions

    • 1 minute = 60 seconds
    • 1 hour = 60 minutes = 3,600 seconds
    • 1 day = 24 hours = 1,440 minutes = 86,400 seconds
    • 1 week = 7 days = 168 hours = 10,080 minutes = 604,800 seconds

    For example, 100,000 seconds is 1 day 3 hours 46 minutes 40 seconds, or 27:46:40 in h:mm:ss, because durations longer than a day keep counting hours rather than starting again at zero.

    Duration formats explained

    • h:mm:ss, such as 8:35:30, is the most common way to write a duration and is used by stopwatches, media players and spreadsheets.
    • Words, such as 8 hr 35 min 30 s, are easiest to read in reports and messages.
    • Decimal hours, such as 8.5917, are used for payroll, billing and calculations.
    • ISO 8601 durations, such as PT8H35M30S, appear in software, APIs and data files. P starts the duration, T separates the date part from the time part, and H, M and S mark hours, minutes and seconds.

    Rounding durations

    Many timesheets and billing systems round durations to fixed steps, such as the nearest 6, 10 or 15 minutes. Rounding 8:35:30 to the nearest quarter hour gives 8:30, or 8.5 hours, while rounding up to the next quarter hour gives 8:45. Small rounding differences add up over many entries, so it’s best to total the exact durations first and round only the final figure when the rules allow it.

    Durations and clock times are different

    A clock time is a point in the day and runs from 00:00 to 23:59:59 before starting again. A duration is a length of time and can be any size: 27:46:40 is a valid duration but not a valid clock time. Spreadsheets need care here. In Excel or Google Sheets, a total of durations over 24 hours shows wrongly with the standard time format; use the custom format [h]:mm:ss so the hours keep counting.

    Common uses

    • Sport and fitness: add up lap or interval times and find the average split.
    • Video and audio editing: total the lengths of clips, tracks or podcast segments to check the running time.
    • Study and projects: add up time spent on tasks over a week.
    • Travel: work out how long a journey or overnight flight leg lasts between two local times in the same time zone.
    • Cooking and processes: check how long something ran from start to finish.
    • Billing: convert a total of hours and minutes into decimal hours for an invoice.

    Things to keep in mind

    • Periods longer than a day: with only clock times, the calculator can’t know that more than 24 hours passed. For multi-day periods, add the extra days in the Add up durations mode, or use a calculator that takes full dates and times.
    • Daylight saving time: on the nights the clocks change, an overnight period is really an hour shorter or longer than the clock times suggest. The calculator assumes a normal 24-hour day.
    • Time zones: both times must be in the same time zone. For flights between zones, convert both to the same zone first.
    • Precision: fractions of a second are supported in the Add up durations and Convert modes, which is helpful for race and lap times.

    Tips for tracking time accurately

    Write times down as they happen rather than estimating later, and always note AM or PM, or use the 24-hour clock, to avoid 12-hour mix-ups. When adding many short entries, keep them in the same format. For lap and split times, switch the two-part setting to minutes:seconds so that 1:30 is read as 1 minute 30 seconds. Finally, check that a total looks sensible: if a list of short tasks adds up to many hours, a value may have been entered in the wrong format.

    Related calculations

    Two other tools work well alongside this one: the hours calculator, to find the hours between two times, and the time card calculator, to total a week of work hours.

    Frequently asked questions

    Convert both times to seconds or minutes after midnight and subtract the start from the end. If the end is earlier, add 24 hours. From 8:45 AM to 5:20 PM is 8 hours 35 minutes.

    Add 24 hours to the end time before subtracting. From 10:30 PM to 6:15 AM is 30:15 − 22:30 = 7 hours 45 minutes. This calculator does it automatically.

    Add the minutes and hours separately, then convert every 60 minutes into an hour. 1:30 + 0:45 + 2:15 = 3 hours 90 minutes = 4:30. Or list them in the Add up durations mode.

    Divide by 60. 150 minutes ÷ 60 = 2.5 hours, which is 2 hours 30 minutes.

    8 hours 30 minutes. Multiply the decimal part by 60 to get the minutes: 0.5 × 60 = 30.

    86,400: 24 hours × 60 minutes × 60 seconds.

    Yes. In the Add up durations mode, start a line with a minus sign, such as -20m, to subtract it from the total.

    Choose Add up durations, set two-part values to minutes:seconds, and enter one lap per line, such as 1:30 and 2:45. Decimal seconds such as 0:59.5 are allowed.

    Standard time formats reset after 24 hours. Use the custom format [h]:mm:ss so the hours keep counting past 24.

    No. It assumes every day is exactly 24 hours, so a period that crosses a clock change will be out by an hour.

    Yes. In the Add up durations and Convert modes, durations can be any length, such as 27:46:40 or 3d 4h, and the total keeps counting hours past 24.

    h:mm:ss, h:mm (or m:ss if you choose that setting), and numbers with units such as 2h 15m, 90 min, 45s, 1.5 h or 1d. Mix them freely, one per line.