ThisCalculator

Date and time

24 Hour Time Duration Calculator: Find Elapsed Time

Updated · Standard formula, shown below

Elapsed duration 8:30:00 min
Total elapsed time
510 min
Result
Start hour
9 h
You entered
Start minute
15 min
You entered

24 Hour Time Duration Calculator: Find Elapsed Time

This 24 hour time duration calculator finds the elapsed time between a start time and an end time, including intervals that cross midnight. Enter both times as hours and minutes, and it returns the duration in hours and minutes for shift planning, travel, events, or everyday scheduling.

Formula

Convert each time to minutes after midnight, subtract the start from the end, and wrap the result into a 24-hour day:

Duration = (end total minutes − start total minutes + 1,440) mod 1,440

Here, start total minutes = 60 × start hour + start minute; end total minutes = 60 × end hour + end minute. A day has 1,440 minutes. The calculator’s first result displays the duration as hours, minutes, and seconds; because the inputs have minute precision, seconds are zero. The second result gives the same duration as a total number of minutes.

Worked Example

Using the defaults, the start time is 09:15 and the end time is 17:00.

  1. Convert the start: 9 × 60 + 15 = 555 minutes after midnight.
  2. Convert the end: 17 × 60 + 0 = 1,020 minutes after midnight.
  3. Subtract and wrap: (1,020 − 555 + 1,440) mod 1,440 = 465 minutes.
  4. Convert 465 minutes: 7 hours and 45 minutes.

The result is 7:45:00, or 465 minutes.

Calculator Options for Different Time Situations

These options explain how to interpret a 24-hour duration calculation and which adjustments matter for different schedules. The calculator above accepts one start and end time; use the examples below to decide what values to enter or when to calculate intervals separately.

  1. Same-day elapsed time: Enter the earlier time first and the later time second for a straightforward daytime interval.
  2. Overnight elapsed time: Enter the evening start and morning end; the wraparound formula treats the end as occurring the next day.
  3. Work shift duration: Calculate from the shift’s actual start to finish, then subtract unpaid breaks separately if you need net working time.
  4. Break-adjusted duration: Find the gross interval first, convert break lengths to minutes, and subtract their total from the result.
  5. Multiple work periods: Calculate each separate shift or work block individually, then add the resulting minutes.
  6. Travel interval: Use the departure and arrival clock times only when both are expressed in the same time zone.

Reading and Converting Duration Results

  1. Hours and minutes display: Read 7:45:00 as seven hours, 45 minutes, and zero seconds—not as a decimal number.
  2. Total-minute display: Use the minute total when adding several intervals, since whole-minute durations add directly.
  3. Decimal hours: Divide total minutes by 60; for example, 465 minutes ÷ 60 = 7.75 hours.
  4. Seconds conversion: Multiply a duration in minutes by 60 when you need the equivalent number of seconds.
  5. Duration versus clock time: A result such as 7:45 is an amount of elapsed time; 17:45 is a time of day.
  6. 24-hour notation: Write clock times from 00:00 through 23:59, with 00:00 marking midnight.

Common Cases That Need Extra Care

  1. Identical start and end: The formula returns zero, which suits an interval of no elapsed time but not an assumed full-day span.
  2. Exactly 24 hours: A pair of clock times alone cannot distinguish a zero-length interval from a full day; record the date or specify the duration separately.
  3. Input validation: Use whole hours from 0 to 23 and minutes from 0 to 59 to represent valid 24-hour clock entries.
  4. AM/PM conversion: Convert 12-hour times before entering them: 12:00 AM is 00:00, and 12:00 PM is 12:00.
  5. Midnight boundary: 23:30 to 00:15 is 45 minutes because the end time is earlier on the clock but occurs the next day.
  6. Rounding: The calculator keeps the entered minute precision; if source times are rounded, the calculated duration inherits that uncertainty.

More Complex Scheduling Situations

  1. Daylight-saving changes: A clock interval across a clock change may not equal actual elapsed time; use dated timestamps with time-zone information for accuracy.
  2. Different time zones: Convert both timestamps to the same time zone or to a shared reference such as UTC before calculating.
  3. Longer than one day: Add the number of complete days separately, since a pair of clock times only determines the within-day interval.
  4. Overlapping intervals: Combine overlapping periods carefully so shared minutes are not counted twice.
  5. Rosters with unpaid breaks: Keep paid and unpaid time distinct, and subtract only breaks excluded from the duration you want.
  6. Record keeping: Preserve the date as well as the time for overnight or multi-day events, so the intended interval is unambiguous.

How to Use This List

Choose the case that matches what you are measuring, then enter valid 24-hour hours and minutes in the calculator. For a single interval, check whether it crosses midnight; for breaks, split shifts, or multiple days, calculate separate periods and make the adjustment explicitly. Keep clock times and durations distinct, and include dates or time zones whenever a clock change or location difference could affect elapsed time.

Frequently Asked Questions

How do I calculate hours between two times in 24-hour format?
Convert both times to minutes after midnight, subtract the start from the end, and add 1,440 minutes if the interval crosses midnight. The calculator applies this wraparound automatically.

Does the calculator handle overnight times?
Yes. For example, entering a start of 22:30 and an end of 02:00 gives 3 hours and 30 minutes, assuming the end is on the following day.

Why does the same start and end time return zero?
Clock readings alone cannot tell whether no time or 24 hours elapsed. Enter the date or handle a full-day interval separately when that distinction matters.

Can I subtract a lunch break?
Yes. First calculate the full interval, then subtract the break duration in minutes if it should not count toward the total.

Does this account for daylight-saving time?
No. It calculates from the clock values entered, without dates or time-zone rules. For intervals spanning a clock change, compare dated timestamps in a common time zone.

Final Thoughts

A 24-hour time duration calculator makes ordinary same-day and overnight intervals quick to check. For exact records, include dates, account for breaks, and consider time zones or clock changes when they apply.

Related

Formula used
in start_h | Start hour | h | 9 | 0
in start_m | Start minute | min | 15 | 0
in end_h | End hour | h | 17 | 0
in end_m | End minute | min | 45 | 0
out duration | Elapsed duration | min | (end_h * 60 + end_m - start_h * 60 - start_m + 1440) % 1440 | time
out total | Total elapsed time | min | (end_h * 60 + end_m - start_h * 60 - start_m + 1440) % 1440 | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.