Enter values to see results
—
—
—
Enter values to see results
—
—
—
The Time Duration Calculator computes the elapsed time between two times of day, expressed in hours, minutes, and seconds. This tool is essential for timekeeping, work hour calculations, event scheduling, sports timing, cooking, and any situation where you need to know exactly how long a period of activity lasted.
Time duration calculations are needed constantly in professional and personal life. Workers calculate shift lengths and overtime hours. Freelancers and consultants track billable hours by the minute. Athletes record race times, lap splits, and training durations. Coaches analyze game time, substitution windows, and recovery periods. Cooks time multiple dishes with different cooking durations. Logisticians calculate transit times and delivery windows.
The calculator handles the common scenario where the end time crosses midnight. For example, if a night shift starts at 22:00 and ends at 06:00, the duration is 8 hours — not a negative number. This is handled by detecting when the end time is earlier than the start time and adding 24 hours to the calculation.
Inputs are in 24-hour (military) format: hours from 0 to 23, minutes from 0 to 59, and seconds from 0 to 59. The result is shown in three formats: decimal hours (useful for billing), total minutes (useful for sports and scheduling), and total seconds (useful for precise timing applications).
The calculator converts both times to total seconds from midnight (hours x 3600 + minutes x 60 + seconds). If the end time is greater than or equal to the start time, the difference is straightforward subtraction. If the end time is less than the start time (indicating the period crosses midnight), the calculator adds 86,400 (seconds in a day) to compute the correct duration. The result is then expressed in hours, minutes, and seconds.
The hours result is expressed as a decimal for billing purposes (e.g., 7.75 hours = 7 hours 45 minutes). The minutes result gives the total elapsed minutes — useful for contexts where minutes are the natural unit (sports, cooking). The seconds result gives the most precise measure for timing applications.
Inputs
Results
7.75 hours = 7 hours and 45 minutes — a typical workday minus a lunch break.
Inputs
Results
8.5 hours — the calculator correctly handles the midnight crossing.
24-hour (military) format runs from 00:00 (midnight) to 23:59 (one minute before the next midnight). It avoids the AM/PM ambiguity of 12-hour format. 9:00 AM = 09:00, noon = 12:00, 1:00 PM = 13:00, 6:00 PM = 18:00, midnight = 00:00 or 24:00.
AM times: 12:XX AM becomes 00:XX; all other AM hours stay the same (9:30 AM = 09:30). PM times: 12:XX PM stays as 12:XX; add 12 to all other PM hours (5:15 PM = 17:15, 11:00 PM = 23:00).
If the end time is earlier than the start time, the calculator assumes the period crossed midnight and adds 24 hours (86,400 seconds) to compute the correct duration. For example, start 22:00, end 06:00 gives 8 hours, not -16 hours.
This calculator handles intra-day durations up to 24 hours (crossing midnight once). For multi-day durations, use the Days Between Dates Calculator and combine with this tool for the time component.
Divide the minutes by 60 and add to the whole hours. For example, 7 hours 45 minutes = 7 + 45/60 = 7.75 hours. The hours output in this calculator already provides this decimal value.
The maximum is just under 24 hours (86,399 seconds) — the longest a single-day time span can be. For 24-hour durations exactly (e.g., start and end are the same time), the result will be 0 unless you use the midnight-crossing logic, which gives 24 hours only if end time is treated as strictly less than start time.
Yes. Calculate your total work duration for the day (or shift) using this calculator. Subtract your standard hours (e.g., 8 hours) from the result to find overtime. For weekly overtime, sum multiple day calculations.
Yes. Enter the clock-in time as the start and the clock-out time as the end. The decimal hours result is ready to enter into payroll or invoicing systems that use decimal hour format.
Enter the start time (e.g., race start: 10:00:00) and finish time (e.g., 10:42:31). The seconds result gives the total race duration in seconds. Minutes gives the total in minutes. Hours gives the decimal hours version.
No. This calculator works with clock times only, without any time zone awareness. If your start and end times are in different time zones, convert both to the same time zone before entering them.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Days Between Dates Calculator
Date Difference & Duration Calculators
Weeks Between Dates Calculator
Date Difference & Duration Calculators
Months Between Dates Calculator
Date Difference & Duration Calculators
Years Between Dates Calculator
Date Difference & Duration Calculators
Date Difference Calculator
Date Difference & Duration Calculators
Time Difference Calculator
Date Difference & Duration Calculators