Time Duration Calculator

Measure dated clock intervals; use Military Time Converter for 24-hour notation.

Duration · local clock time
2d 3h 20m 0s
Total hours (decimal)51.33
Total minutes3,080
Total seconds184,800
HH:MM:SS51:20:00

End date-time − start date-time. Local clock time; no DST adjustment or timezone conversion. Decimal hours and fractional minutes round to 2 places for display only.

Results update as you type

What does the time duration calculator measure?

Use this hours and minutes calculator to find hours between times with dates. Calculate a date-time interval as a duration in days, hours, minutes and seconds, with total hours, total minutes, total seconds and HH:MM:SS. Dates determine how many midnights are crossed; a clock-time difference never silently supplies a missing date.

Time duration formula between date-time endpoints

Duration seconds = (end date serial − start date serial) × 86,400 + end clock seconds − start clock seconds

Clock seconds = hour × 3,600 + minute × 60 + second

Whole days = floor(seconds / 86,400). Hours, minutes and seconds come from successive remainders. Total hours = seconds / 3,600; total minutes = seconds / 60. A nominal day is exactly 24 clock hours here, not a DST-adjusted elapsed day.

Date serial and clock-second variables

  • Date serial: Whole Gregorian calendar-day number from the shared date-only calendar.
  • Clock seconds: Seconds from 00:00 on that date, between 0 and 86,399.
  • Duration seconds: Exact nonnegative whole-second difference between the dated endpoints.

How to calculate time duration between two dates

  1. Write both dates and clock times using the same clock convention.
  2. Subtract start date serial from end date serial and multiply by 86,400.
  3. Add end clock seconds and subtract start clock seconds.
  4. Reject a negative result. Split a nonnegative result into days, hours, minutes and seconds.
  5. Divide by 3,600 or 60 for total hours or minutes, rounding only the displayed decimals.

Time duration from June 20 to June 23, 2026

Fixed multi-day example: June 20, 2026 at 22:30 → June 23, 2026 at 01:50.

  • Duration: 2 days, 3 hours, 20 minutes
  • Total hours: 51.33
  • Total minutes: 3,080
  • Total seconds: 184,800
  • H:MM:SS: 51:20:00

How to enter dates and times for a duration

  1. Enter start date and time, then the actual end date and time.
  2. Include seconds if needed; HH:MM otherwise means :00 seconds.
  3. Read the local-clock duration and its total units. Swap reversed endpoints if appropriate.
  4. Copy or share the dated result, or reset to the fixed example.

Common mistakes in date-time duration calculations

  • Keeping the same end date when the interval crosses midnight.
  • Using MOD on complete date-times: it throws away whole days.
  • Reading 3.33 hours as 3 hours 33 minutes rather than approximately 3 hours 20 minutes.
  • Treating these local-clock readings as DST-adjusted timestamps. No UTC offset is supplied or inferred.
  • Rounding each intermediate value before adding durations.

Subtract clock times by borrowing 60 minutes

Fixed same-day example: 09:50 to 12:15. Borrow one hour from 12, leaving 11 hours and 75 minutes. Then 75 − 50 = 25 minutes and 11 − 9 = 2 hours. The shared calculation returns 2:25:00.

Calculate an overnight duration by splitting at midnight

Fixed example: June 20 at 22:30 to June 21 at 01:50. The first part is 1 hour 30 minutes to midnight; the second is 1 hour 50 minutes. Together they give 3:20:00, or 3.33 decimal hours. The end date is explicitly the following day.

Convert duration minutes into decimal hours

Divide minutes by 60. Decimal display rounds half-up to two places; exact seconds and H:MM:SS are unchanged.

MinutesH:MM:SSDecimal hours
10:01:000.02
100:10:000.17
150:15:000.25
300:30:000.50
450:45:000.75
601:00:001.00
901:30:001.50

How to calculate time duration in Excel and Google Sheets

For complete start date-time in A2 and end date-time in B2, use =B2-A2 with [h]:mm:ss formatting. Decimal hours use =(B2-A2)*24; total minutes use =(B2-A2)*1440. Unlike ordinary hh:mm, bracketed hours retain totals over 24.

For clock-only overnight inputs, =MOD(B2-A2,1) assumes one midnight. Never use it on dated multi-day endpoints: it discards every whole day. The fixed June 20→June 23 example returns 51:20:00, not just 3:20:00. Validate the endpoint order before subtraction.

Microsoft time-subtraction guidance explains subtracting spreadsheet times and converting day fractions to total hours, minutes and seconds.

Local clock duration versus actual elapsed time across DST

No timezone is selected or inferred. These date-time entries are wall-clock readings using nominal 24-hour dates. On March 8, 2026, 01:30→03:30 gives 2 clock hours here, not the 1 elapsed hour in a zone that advances its clock during that interval. Normalize offset-aware timestamps with a suitable timezone tool when physical elapsed time matters.

Which calculator fits a dated interval or a single shift?

For a single shift with breaks, use the Hours Calculator. For whole calendar-day counts without times, use the Days Between Dates Calculator. This page owns dated clock-time durations, not break deductions.

Browse the date and time calculators for related calendar and clock tasks.

Time duration calculator FAQs

How to calculate time duration?

Subtract the start date-time from the end date-time. Convert the date difference into 86,400-second days, then add end clock seconds and subtract start clock seconds. Split the result into days, hours, minutes and seconds.

How to calculate time duration in Excel?

With complete start date-time in A2 and end date-time in B2, use =B2-A2 and format the result as [h]:mm:ss. Use =(B2-A2)*24 for decimal hours or =(B2-A2)*1440 for total minutes. Reject an end before the start.

How to calculate duration between two times in Google Sheets?

Subtract the start from the end. When both cells contain complete date-times, use =B2-A2, with a duration format. For clock times alone crossing midnight, =MOD(B2-A2,1) assumes the next day; do not use MOD for multi-day dated spans because it discards whole days.

How to calculate average of time duration in Excel?

Store validated durations as day fractions such as =B2-A2, then use =AVERAGE(C2:C8). Format as [h]:mm:ss or multiply the average by 24 for decimal hours. Keep underlying durations unrounded.

How do I sum time duration in Excel?

Use =SUM(C2:C8) for cells containing duration day fractions and format as [h]:mm:ss so totals over 24 hours do not wrap. Multiply that sum by 24, 1440 or 86400 for total hours, minutes or seconds.

Does time duration include midnight and multiple dates?

Yes. Enter the actual end date as well as its time. A span from June 20, 2026 at 22:30 to June 23 at 01:50 is 2 days, 3 hours and 20 minutes, or 51:20:00. No extra day is guessed from clock times alone. For a four-digit clock reading, use the Military Time Converter to identify its hour and minute before entering the dated endpoints.

What happens when date-time endpoints are reversed?

The calculator rejects an end before the start rather than returning a negative or absolute duration. Use Swap endpoints to put the earlier endpoint first. Equal endpoints are valid and return zero.

Does this duration calculator adjust for daylight-saving time?

No. Both endpoints are local clock readings on a nominal 24-hour day, with no timezone conversion or DST adjustment. For example, 01:30 to 03:30 on a spring-forward date is shown as 2 clock hours, even where only 1 real hour elapsed. Use an offset-aware tool for real elapsed time across timezone changes.

How precise are duration totals and decimal hours?

Dates and clock times are read exactly to whole seconds. HH:MM inputs assume zero seconds. Total seconds and H:MM:SS remain exact; decimal hours and fractional total minutes round half-up to two places for display only. One minute is displayed as 0.02 hours.

Related date-time and interval calculators

If this helped, the following calculators are useful for date, time, and duration questions:

Last updated: November 15, 2026 · Checked against standard formulas and sample test cases.

Integer-second arithmetic uses shared Gregorian date-only serials and a nominal 86,400-second day. No DST adjustment or timezone conversion.

Disclaimer: Clock-time durations may differ from actual elapsed time across timezone or daylight-saving changes.