What does this calculator do?
This calculator measures the time between two clock times — for shifts, events, travel legs or cooking. If the end time is earlier than the start time, the span is assumed to cross midnight.
Formula
Both times are converted to minutes since midnight and subtracted:
duration = end − start (+ 24 h if the end is past midnight)
How to use it
Pick the start and end times with the time selectors. The duration appears as hours and minutes, plus the total in minutes for payroll-style math.
Worked example
From 09:00 to 17:30: 17:30 is 1,050 minutes, 09:00 is 540, so the duration is 510 minutes = 8 h 30 min.
Frequently asked questions
What happens when the end time is before the start time?
The calculator assumes the span crosses midnight: 22:00 to 06:00 gives 8 hours, not a negative value.
Does it handle seconds?
No — inputs are hours and minutes, which covers schedules, shifts and events. Seconds-level timing is a different use case.
How do I get the duration as a decimal number of hours?
Use the Hours Between Two Times calculator linked below — it returns 8.5 instead of 8 h 30 min.
Sources
- ISO 8601 — international standard for time representation (24-hour clock)
- Standard time arithmetic (60 minutes per hour); the overnight convention used is stated on this page.
- Reviewed: 2026-07-29
Related calculators
Last updated: 2026-07-29 · v1.0.0 · Report an error