Skip to main content
Time & DatesFree online calculatorPrivate · Runs in your browser

Time Duration Calculator — Hours, Minutes & Seconds Between Times

Calculate the exact duration between two times or dates. Find elapsed hours, minutes and seconds, including overnight time differences and decimal hours.

Calculation mode

Start & end times

Clock format
Start time
End time

Both times are on the same day. Identical times mean zero hours.

Try an example:

Your duration

Wall-clock calculation

08:30:00

8 hours 30 minutesHH:MM:SS · Hours can exceed 24

Total minutes
510
Decimal hours
8.5
Total seconds
30,600
24-hour blocks + remainder
0d 8h 30m 0s
  • Start: 09:15
    End: 17:45 (same day)
  • No timezone or daylight saving adjustment. Each day is treated as 24 hours. Fractional totals are displayed to at most 6 decimal places.

For real elapsed time across a clock change or between different time zones, you also need the applicable UTC offsets. This tool subtracts the calendar dates and clock readings you enter.

8 hours 30 minutes. Wall-clock calculation.

On this page

What Is a Time Duration Calculator?

A time duration calculator subtracts a start reading from an end reading and expresses the interval in hours, minutes and seconds. Use clock-time mode for a single day or an overnight interval, or dates-and-times mode for longer spans.

CalcVibes also shows total minutes, total seconds, decimal hours and HH:MM:SS. These are different representations of the same calculated interval. Date-time mode measures wall-clock difference, treating each calendar day as 24 hours.

How to Calculate Time Between Two Times

  1. Choose Between two times and select 12-hour or 24-hour input.
  2. Enter the start and end hours and minutes. Turn on Seconds if you need them.
  3. If the ending time is on the following day, select End is on the next day.
  4. Select Calculate Duration. Check the displayed start and end readings beside the answer.

For 9:15 AM to 5:45 PM on the same day, the answer is 8 hours 30 minutes. You can swap the readings, set either one to the current local time, or reset to this example. An earlier end time produces a message until you explicitly choose the next day.

How to Calculate Hours and Minutes

Convert each reading into a common unit before subtracting. Without seconds, 9:15 is 9 × 60 + 15 = 555 minutes after midnight. 17:45 is 17 × 60 + 45 = 1,065 minutes. Their difference is 510 minutes.

Divide 510 by 60 to get 8 whole hours with 30 minutes left over. The hours-and-minutes result is 8 hours 30 minutes, while the decimal-hours result is 8.5. To convert hours to minutes, multiply by 60; to include a partial hour, add the remaining minutes.

How to Calculate Elapsed Time

Elapsed time measures how much time has actually passed between two instants. When both readings use the same UTC offset throughout the interval, subtracting their wall-clock values gives the same answer.

Clock changes can break that equivalence. This calculator provides a clearly labeled wall-clock result, so you should account separately for any timezone or daylight saving offset change when you need actual elapsed time.

The days field counts complete 24-hour blocks, not calendar months or crossed date boundaries. A 26-hour-30-minute interval is one such block plus 2 hours 30 minutes.

How to Calculate Time Across Midnight

For a following-day end reading, add 86,400 seconds to the raw time difference. From 10:45 PM to 1:15 AM, there are 1 hour 15 minutes until midnight and another 1 hour 15 minutes afterward: 2 hours 30 minutes in total.

The next-day checkbox supplies that day offset explicitly. If start and end both read 9:00, leaving it off means zero hours; selecting it means 24 hours. A following-day 17:00 after a 09:00 start is 32 hours, because the day offset also applies when the end reading is later on the clock.

How to Calculate Duration Between Two Dates

Choose Between dates & times and enter a date for each reading. The calculator counts Gregorian calendar days between the dates, multiplies that number by 86,400 and adds the ending time-of-day seconds minus the starting time-of-day seconds.

From October 20, 2026 at 23:00 to October 22, 2026 at 01:30, the wall-clock difference is 26 hours 30 minutes. The date and time fields together determine the order; an end earlier than the start is rejected.

Leap days and month lengths are included. For a birth date interpreted in calendar years, months and days, use the Age Calculator instead of dividing a duration by a fixed year length.

12-Hour vs 24-Hour Clock Format

In 12-hour format, midnight is 12:00 AM and noon is 12:00 PM. In 24-hour format, these are 00:00 and 12:00. For PM hours other than 12, add 12: 5:45 PM becomes 17:45.

To normalize a 12-hour input, take the hour modulo 12, then add 12 for PM. This handles noon and midnight correctly. Valid hours are 1–12 with AM/PM, or 0–23 in 24-hour input. Minutes and seconds must be whole numbers from 0 through 59.

Changing the clock format preserves valid input readings. The result’s HH:MM:SS value is a duration rather than a clock reading, so its hours may exceed 23.

How to Convert Hours and Minutes to Decimal Hours

Decimal hours = whole hours + minutes ÷ 60 + seconds ÷ 3,600. So 8 hours 30 minutes = 8 + 30 ÷ 60 = 8.5 hours. Writing 8.30 decimal hours would instead represent 8 hours 18 minutes.

For a result of 2 hours 45 minutes 30 seconds, decimal hours = 2 + 45 ÷ 60 + 30 ÷ 3,600 ≈ 2.758333. Total minutes are 165.5, while total seconds are exactly 9,930.

Inputs are calculated in whole seconds. Fractional totals are rounded only for display, to at most six decimal places, so the formatted value should not replace the underlying interval in further precise calculations.

Time Duration Formula and Worked Examples

Normalize a time as H × 3600 + M × 60 + S. Then use end − start + selected day offset × 86400. To decompose a nonnegative total T:

  • Total hours = T ÷ 3,600; total minutes = T ÷ 60.
  • Whole 24-hour blocks = floor(T ÷ 86,400).
  • Remaining hours = floor((T mod 86,400) ÷ 3,600).
  • Remaining minutes = floor((T mod 3,600) ÷ 60).
  • Remaining seconds = T mod 60.
Check an interval in several units
IntervalDurationMinutes / decimal hours
09:15 → 17:45, same day08:30:00510 / 8.5
22:45 → 01:15, next day02:30:00150 / 2.5
Oct 20, 2026 23:00 → Oct 22, 2026 01:3026:30:001,590 / 26.5
09:00 → 09:00, next day24:00:001,440 / 24

Time Zone and Daylight Saving Time Considerations

This is a wall-clock calculator: no timezone is selected and no daylight saving adjustment is applied. Enter readings on the same clock basis. It does not resolve ambiguous or nonexistent local times and does not model leap seconds.

In America/New_York on March 10, 2024, clocks move from 1:59:59 AM to 3:00:00 AM. From 1:30 AM to 3:30 AM, actual elapsed time is one hour, but ordinary wall-clock subtraction gives two hours. This tool intentionally returns the two-hour wall-clock difference.

When clocks move backward, a local reading can occur twice. In New York on November 3, 2024, 00:30 to 02:30 spans three actual hours but two wall-clock hours. An interval starting at 01:30 needs an offset or an explicit choice of the first or second occurrence.

If the offsets are known, actual elapsed time equals wall-clock difference minus (end UTC offset − start UTC offset). For reliable real elapsed time, use unambiguous instants with their correct offsets or a timezone-aware tool.

Frequently Asked Questions

How many hours are between 9:15 AM and 5:45 PM?

There are 8 hours 30 minutes on the same day: 510 minutes, 30,600 seconds or 8.5 decimal hours.

Why does an earlier end time show an error?

The calculator needs to know whether the end is on the following day. Select End is on the next day to confirm an overnight interval, or correct the clock readings.

How do I calculate exactly 24 hours?

Enter identical start and end times and select the next-day option. With that option off, the same readings mean a zero-length interval.

Can I calculate hours between two dates?

Yes. Choose Between dates & times, enter both dates and clock readings, and use the total hours or decimal hours result. Each date-based day is treated as 24 hours.

Are minutes the same as the digits after a decimal point?

No. Divide minutes by 60 to get a fraction of an hour. Thirty minutes is 0.5 hours, so 8 hours 30 minutes is 8.5 hours.

Does this account for time zones and daylight saving time?

No. Results are labeled wall-clock calculations. The March 10, 2024 New York example of 01:30 to 03:30 returns two wall-clock hours, while actual elapsed time with those offsets is one hour.

Does Swap automatically assume overnight?

No. Swap exchanges the entered readings and, in dates-and-times mode, their dates. The explicit next-day choice remains under your control. Check the displayed start and end values after swapping.