Time Duration Calculator
Find how long it is between two clock times, even past midnight.
Last updated 2026-11-28 · How we calculate this
Your Time Difference
Enter a start and an end time.
The calculator measures up to 24 hours between two clock times, to the nearest minute. It can't tell which day a time is on, so an earlier end time is always read as the next day, and equal times give 0 minutes. It assumes a normal day without a daylight saving change.
Quick Answer
Subtract the start time from the end time, borrowing 60 minutes from the hours when you need to. From 9:00 AM to 5:30 PM is 8 hours 30 minutes, or 8.5 hours. If the end time is earlier than the start, add 24 hours, because it falls on the next day.
How to Use This Calculator
Enter a start time and an end time to see the gap between them three ways: hours and minutes, decimal hours and total minutes. It suits anything you time on the clock, such as a flight, a class, a drive or a babysitting job.
An end time that's earlier than the start counts as the next day, so a night shift from 10:45 PM to 6:15 AM works without extra steps. For a gap of more than a day, use the Date Calculator.
- Enter the start time.
- Enter the end time.
- Read the time between in hours and minutes.
- Use the decimal hours or total minutes if a form asks for them.
The Formula
Duration = end time − start time (+ 24 hours if the end time is earlier). Decimal hours = minutes ÷ 60.
The calculator turns each time into minutes after midnight, so 9:00 AM is 540 and 5:30 PM is 1,050. The difference, 510 minutes, is then split back into 8 hours and 30 minutes. When the end time comes first on the clock, it adds 1,440 minutes, one whole day, before subtracting.
Worked Example
9:00 AM to 5:30 PM: 1,050 − 540 = 510 minutes, which is 8 hours 30 minutes or 8.5 hours.
11:20 AM to 2:05 PM: 165 minutes, which is 2 hours 45 minutes or 2.75 hours.
10:45 PM to 6:15 AM: the end is earlier on the clock, so add a day. 375 + 1,440 − 1,365 = 450 minutes, which is 7 hours 30 minutes.
Frequently Asked Questions
Sources: National Institute of Standards and Technology, Times of Day FAQs; NIST Special Publication 330 (2019), The International System of Units (SI), Table 8: non-SI units accepted for use with the SI (minute, hour, day)