Hours calculator
Find the elapsed time between two same-day clock times and see the duration in hours, minutes, and seconds.
Time inputs
Required. Use 24-hour HH:MM, from 00:00 through 23:59.
Required. The end must be later than the start on the same day.
Live result
Duration
6 h 40 min
Elapsed same-day time from 09:45 to 16:25.
Decimal hours
6.67 h
Total minutes
400 min
Total seconds
24,000 s
Enter a valid start and end time to calculate the duration.
Duration conversions
| Unit | Equivalent duration |
|---|---|
| Hours (decimal) | 6.6667 h |
| Minutes | 400 min |
| Seconds | 24,000 s |
The table expresses the same 6 h 40 min duration in equivalent units; it does not represent separate quantities.
How to use this hours calculator
What this calculator does
This calculator finds the elapsed time between a Start time and an End time that occur on the same day. It converts both clock readings to minutes after midnight, subtracts the earlier value from the later value, and then presents the difference as a familiar hours-and-minutes duration plus decimal hours, total minutes, and total seconds. It is a time-interval calculator, not a calendar planner: it does not infer dates, time zones, daylight-saving transitions, or an overnight rollover. For scientific context, the NIST guidance on writing time units notes that the second is the SI unit of time and that minutes and hours are commonly needed for calendar-related time intervals.
When to use it
Use this calculator when you need a clean same-day duration: checking the length of a work session before subtracting any separate break, comparing the scheduled length of an appointment, measuring how long a class or event runs, or converting an elapsed clock interval into decimal hours for another calculation. If an interval crosses midnight, split it into two same-day intervals or use a date-aware duration tool instead of entering an end time that is earlier than the start.
How to calculate
- The calculator opens with a ready-to-use demonstration: Start time 09:45 and End time 16:25. The first result and a validated example Excel workbook are available immediately.
- Replace the demonstration values with your own 24-hour times in HH:MM format. One-digit hours such as 9:05 are accepted; minutes must always use two digits.
- Read Duration first for the conventional hours-and-minutes answer, then use Decimal hours, Total minutes, or Total seconds when another system expects a single unit.
- Use Download Excel to export the current validated inputs and results as a real XLSX workbook. The workbook includes Summary, Inputs, and Conversions sheets.
- Use Reset to clear the demonstration and calculated state. Reset deliberately leaves the time fields empty, so Download Excel becomes unavailable until both fields again form a complete valid same-day interval.
Input guide
Start time is required text in 24-hour HH:MM form. Valid clock values run from 00:00 through 23:59; an example is 09:45. Raising the start time while keeping the end fixed shortens the duration. Do not enter AM/PM text, a date, a decimal hour such as 9.75, or a value such as 24:00. The parser rejects those forms rather than silently reinterpreting them.
End time is also required in 24-hour HH:MM form, for example 16:25. It must be later than Start time on the same day. Raising the end time while holding the start fixed lengthens the result. An end equal to or earlier than the start is rejected because this calculator does not assume that the end belongs to the next day. For standardized relationships among time units, NIST lists 1 minute = 60 seconds and 1 hour = 60 minutes = 3,600 seconds.
Output guide
The header pills labeled Start and End echo the normalized inputs, while the Duration pill repeats the primary elapsed-time result. The main Duration value is the exact same-day difference expressed as whole hours plus remaining minutes. A result near zero means the times are close together; a larger value means a longer interval. Negative durations are not produced because an earlier or equal end time is treated as invalid.
Decimal hours divides the exact minute total by 60 and displays two decimals in the result card; the conversions table shows four decimals for extra precision. This is a conversion, not a separate measurement. Total minutes is the exact integer count of elapsed minutes. Total seconds multiplies that minute count by 60 and is also exact for minute-resolution inputs. In the Duration conversions table, the Unit column names the representation and Equivalent duration gives the same interval in that unit. These rows should agree with one another by identity, not merely approximately.
Worked example
The startup example begins at 09:45 and ends at 16:25. Converting to minutes after midnight gives 9 × 60 + 45 = 585 minutes for the start and 16 × 60 + 25 = 985 minutes for the end. The difference is 985 – 585 = 400 minutes. Dividing 400 by 60 gives 6 whole hours with 40 minutes remaining, so the displayed Duration is 6 h 40 min. The same interval is 400 ÷ 60 = 6.6667 decimal hours and 400 × 60 = 24,000 seconds. Those exact values are the first-open results and the values written to the example workbook.
Learn more
Time conversion is based on fixed unit relationships, but the definition of the base unit is much more precise than everyday clocks imply. The BIPM SI Brochure is the international reference for the SI, including the definition and use of the second. For ordinary duration arithmetic, this calculator keeps minute-resolution inputs exact and rounds only the displayed decimal-hours presentation.
Calculation method and practical limits
The core model is straightforward: convert each valid clock time to minutes after midnight, subtract start from end, and convert the resulting minute count into the requested presentation units. Keeping the canonical model in integer minutes avoids floating-point drift in the primary duration, total minutes, and total seconds. Decimal hours are derived from that same exact minute count and rounded only for display.
Hours = floor(elapsed minutes ÷ 60); remaining minutes = elapsed minutes mod 60.
Because the inputs do not include a date, an end time earlier than the start is ambiguous: it could mean an overnight interval, a data-entry error, or a different day. This implementation chooses the conservative same-day rule and reports the state as invalid rather than guessing. It also rejects malformed input such as 12:6, 7 PM, 1e3, or 1,5 so pasted notation cannot be silently transformed into an unintended clock time.
For payroll, billing, or attendance records, remember that an elapsed clock interval is not automatically the same as paid or billable time. Breaks, rounding policies, overtime rules, and local requirements can change the amount used elsewhere. This calculator intentionally reports only the time difference represented by the two clock values.