Elapsed Time Calculator (Hours, Minutes, Seconds)

Enter two clock times (HH:MM:SS) and read the elapsed time as H:M:S, readable hours and minutes, decimal hours, total minutes, and total seconds.

Time & Date Overnight rollover 5 output formats
Rate this calculator · 4.0 (1)

Elapsed Time

ISO 8601 + USNO time standards · overnight rollover handled

Instructions — Elapsed Time Calculator (Hours, Minutes, Seconds)

1

Enter the two times

Type or pick the start time and end time in HH:MM:SS form (the seconds default to 00 if omitted). The browser time picker accepts 12-hour AM/PM display while internally storing 24-hour values, so either system works.

2

Same day or with dates

The default mode treats both times as the same calendar day. If the end time is earlier than the start time, the calculator assumes an overnight rollover and adds 24 hours. Switch to "With dates" mode for spans longer than a day.

3

Read every format

The result grid shows elapsed time as H:M:S, as readable hours and minutes (8 h 30 m), as decimal hours (8.5 h), as total minutes (510), as total seconds (30,600), and as a fraction of a 24-hour day. Pick the format that matches the spreadsheet or timesheet you are filling.

Quick rule: elapsed minutes = (end hours × 60 + end minutes) − (start hours × 60 + start minutes). Divide by 60 for decimal hours.
Decimal hours warning: 8.5 hours is 8 h 30 min, not 8 h 50 min. The fractional part is in 60ths of an hour.

Formulas

Elapsed time is the difference between two moments. The reliable approach converts both clock times into seconds since midnight, subtracts, and reformats the result. The US Naval Observatory and NIST publish the same procedure as the basis for any timing calculation.

Clock Time to Seconds
$$ t = H \times 3600 + M \times 60 + S $$
Convert each clock time to total seconds since midnight. 9:00:00 becomes 32,400 seconds; 17:30:00 becomes 63,000 seconds.
Elapsed Time (Same Day)
$$ \Delta t = t_{end} - t_{start} $$
Subtract start from end. If the result is negative, the end is the next day and an overnight rollover applies (add 86,400).
Overnight Rollover
$$ \Delta t = (t_{end} + 86400) - t_{start} \text{ if } t_{end} < t_{start} $$
When end clock time is earlier than start (a night shift, an overnight run), the calculator assumes the end is the next calendar day and adds 86,400 seconds.
Reformat to H:M:S
$$ H = \left\lfloor \frac{\Delta t}{3600} \right\rfloor,\ M = \left\lfloor \frac{\Delta t \bmod 3600}{60} \right\rfloor,\ S = \Delta t \bmod 60 $$
Integer-divide by 3600 to get hours, modulo 3600 then divide by 60 for minutes, modulo 60 for seconds. This is the standard formula in every time library.
Decimal Hours
$$ h_{dec} = \frac{\Delta t}{3600} $$
Total seconds divided by 3600 gives decimal hours. 8 h 30 m equals 8.5 decimal hours, not 8.30. Timesheets and payroll systems use this form.
Multi-Day Span
$$ \Delta t = (D_2 - D_1) \times 86400 + (t_2 - t_1) $$
For spans longer than 24 hours, include the date difference in days, multiplied by 86,400 seconds per day, plus the within-day clock time difference.

Reference

Quick Reference — H:M:S to Decimal Hours and Minutes
H:M:SDecimal hoursTotal minutesTotal seconds
0:15:000.25015900
0:30:000.500301,800
0:45:000.750452,700
1:00:001.000603,600
1:30:001.500905,400
2:00:002.0001207,200
4:00:004.00024014,400
6:30:006.50039023,400
8:00:008.00048028,800
8:30:008.50051030,600
12:00:0012.00072043,200
24:00:0024.0001,44086,400

Common time-span scenarios

Typical clock-to-clock spans for everyday situations like work shifts, sleep windows, and travel times. The right-most column is what a US payroll system or timecard usually requires.

Work shifts
ShiftSpanDecimal h
9 to 5 office09:00-17:008.00
9 to 5:3009:00-17:308.50
7 to 3 early07:00-15:008.00
Night shift22:00-06:008.00
12-hour clinical07:00-19:0012.00
Sleep and travel
SpanTimeHours
Sleep 23:00-07:0023:00-07:008.00
Sleep 22:30-06:0022:30-06:007.50
NYC to LA flight10:00-15:305.50
NYC to LON flight21:00-09:00+112.00
Long haul drive06:00-18:0012.00

Note: elapsed time is wall-clock difference. It does not subtract breaks, transfers, or stops. For paid working hours minus an unpaid lunch, subtract the break in minutes from the totals shown.

Article — Elapsed Time Calculator (Hours, Minutes, Seconds)

Elapsed time calculator for hours, minutes, and seconds

A shift from 9:00 AM to 5:30 PM has an elapsed time of 8 hours 30 minutes, or 8.5 decimal hours, or 30,600 seconds. The math is the end clock time in seconds minus the start clock time in seconds. When the end time is earlier on the clock than the start, the calculator assumes an overnight rollover and adds 24 hours (86,400 seconds).

Elapsed time matters for payroll, billable hours, sports timing, sleep tracking, cooking, and any situation where you need to know how long something took. The math is simple but the edge cases (midnight, daylight saving, multi-day spans) trip up most spreadsheets.

What elapsed time means

Elapsed time is the difference between two specific moments on the clock. NIST and the US Naval Observatory, which jointly maintain the official US time scale, define elapsed time in terms of seconds elapsed from a start instant to an end instant. Clock displays then format that count of seconds into hours, minutes, and seconds for human reading.

A useful synonym is duration. Both terms describe the same quantity. The convention is to call it elapsed time when measuring a past interval (a stopwatch reading, a finished shift) and duration when describing a planned interval (a meeting length, a video length). The math is identical.

The elapsed time formula

Convert each clock time to seconds since midnight, then subtract. 9:00:00 is 9 times 3600 plus 0 times 60 plus 0, equal to 32,400 seconds. 17:30:00 is 17 times 3600 plus 30 times 60, equal to 63,000. The difference, 30,600 seconds, equals 8 hours 30 minutes.

Elapsed time formulas
t_seconds = H × 3600 + M × 60 + S Δt = t_end − t_start
hours = floor(Δt / 3600) minutes = floor((Δt mod 3600) / 60)

The reverse formula breaks total seconds back into hours, minutes, and seconds using integer division and modulo. Hours = integer part of total / 3600. Minutes = integer part of (remainder after hours) / 60. Seconds = remainder after minutes. Every programming language and every time function in spreadsheets uses this same procedure.

Did you know

The international second has been defined since 1967 as the duration of 9,192,631,770 cycles of the radiation emitted by a caesium-133 atom. NIST and the US Naval Observatory maintain the official US time scale to a precision of better than a nanosecond per day.

Elapsed time across midnight

A night shift starts at 22:00 and ends at 06:00 the next day. Subtracting the end clock time (06:00) from the start (22:00) gives a negative number, which is the calculator's signal that the end is on the following calendar day. Adding 86,400 seconds (24 hours) recovers the correct elapsed time of 8 hours.

This is why elapsed time calculators handle overnight rollover automatically. A naive subtraction returns minus 16 hours for the night shift example, which is obviously wrong. The convention of adding a day works for any span shorter than 24 hours.

Decimal hours and elapsed time

Payroll systems and spreadsheets prefer decimal hours over hours-minutes notation. 8.5 hours is unambiguous in a column of numbers; 8:30 can be misread as 830, 8.30, or eight thirty depending on context. The conversion divides total seconds by 3600.

8 h 30 m
8.5 h
decimal hours
8 h 15 m
8.25 h
decimal hours

The trap to avoid: 8.30 is not eight hours thirty minutes. It is eight hours and 0.30 of an hour, or eight hours and 18 minutes. 0.30 times 60 equals 18, not 30. Spreadsheets that mix decimal and HH:MM formats often produce silent errors at this step.

Calculating elapsed time by hand

For everyday calculations, the easiest mental method is the bridge approach. Pick a round time between start and end. From 8:45 AM to 2:30 PM, bridge through 9:00 AM and 2:00 PM. 8:45 to 9:00 is 15 minutes. 9:00 to 2:00 is 5 hours. 2:00 to 2:30 is 30 minutes. Total: 5 hours 45 minutes.

Tip

For elapsed time spanning noon or midnight, convert everything to 24-hour format first. 11:30 AM is 11:30; 1:00 PM is 13:00; 12:00 AM (midnight) is 00:00; 12:00 PM (noon) is 12:00. Mixing AM and PM in 12-hour math is the source of more than half of all elapsed-time errors.

Common elapsed time mistakes

The 12 AM versus 12 PM trap

12 AM means midnight, 12 PM means noon. Many people get this backward because 12 sits between 11 PM and 1 AM, and 11 PM is in the evening. The convention: AM is "ante meridiem" (before noon), so 12 AM is the first minute of the day. Use 24-hour format (00:00 and 12:00) to avoid ambiguity.

The second mistake is forgetting that 60 is the base for minutes and seconds, not 100. Adding 1:45 and 0:30 in regular arithmetic gives 1:75, which is wrong. The correct sum is 2:15 because 75 minutes overflows into 1 hour 15 minutes. The third mistake is mixing decimal and clock format in a spreadsheet column.

Real-world elapsed time uses

Payroll uses elapsed time for hourly wages. A 40-hour week comes from summing five 8-hour shifts. Healthcare uses elapsed time for medication dosing intervals (every 4 hours, every 6 hours) and for recording procedure durations. Sports use elapsed time for race timing to the hundredth of a second. Logistics uses elapsed time for delivery windows and freight tracking.

  • 8 h 30 m = standard 9-to-5:30 office day with no lunch deduction
  • 8 h = night shift from 22:00 to 06:00, after overnight rollover
  • 40 h = standard US full-time work week (per US Department of Labor)
  • 3,600 s = one hour in seconds
  • 86,400 s = one calendar day in seconds
  • 8.5 h = 8 hours 30 minutes in decimal form, not 8 h 50 m
  • 0.5 h = 30 minutes (60 times 0.5)

Elapsed time and daylight saving

Daylight saving time complicates elapsed time calculations whenever the span crosses a transition. In the spring, the clock skips from 2:00 AM to 3:00 AM, and one hour vanishes. In the autumn, 2:00 AM occurs twice and one hour is added. A span from 1:00 AM to 4:00 AM measured by clock time is 3 hours on the calendar, but 2 hours of real elapsed time in spring and 4 hours in autumn.

The IANA time zone database tracks every DST rule for every region back to 1970 and is the reference used by most operating systems. For any elapsed-time calculation that must be accurate across a DST transition, convert both times to UTC first, subtract there, and convert the result back. The calculator above treats raw clock times and does not auto-adjust for DST.

FAQ

Convert both times to 24-hour format: 09:00 to 17:30. Subtract: 17:30 minus 09:00 = 8 hours 30 minutes, or 8.5 decimal hours, or 510 total minutes. This is the standard US 8-hour workday plus a half-hour.
The calculator detects when the end time is earlier than the start time (for example 22:00 to 06:00) and adds 24 hours automatically. 22:00 to 06:00 = 8 hours, treated as the end time falling on the next calendar day.
8.5 hours. The fractional part of a decimal hour is in 60ths, not 100ths. 8 h 30 m equals 8.5 because 30 / 60 = 0.5. Likewise 8 h 15 m equals 8.25 and 8 h 45 m equals 8.75.
Divide total minutes by 60 for the whole hours, then take the remainder for minutes. For example, 510 minutes ÷ 60 = 8 with remainder 30, so 8 hours 30 minutes.
No. The calculator works on raw clock times. If your span crosses a DST transition (spring forward or fall back), the wall-clock difference can be off by one hour from the true elapsed time. Use UTC times for any span that includes a DST changeover.
They are the same thing. Elapsed time is the difference between two specific moments, expressed as hours, minutes, and seconds. Duration is the generic term for the same quantity, often used for a planned span like a meeting or a video.
28,800 seconds in 8 hours. The math: 8 × 3,600 = 28,800. A full 24-hour day is 86,400 seconds. NIST and the US Naval Observatory use seconds as the base unit of time.
Yes. Switch to the "With dates" mode and pick a start and end date along with the times. The calculator adds 86,400 seconds for each full day between the dates, then adds the within-day clock difference. The result handles any span up to several years.