Time Duration Calculator

Find how long it is between two clock times, even past midnight.

Last updated 2026-11-28 · How we calculate this

Enter the Times

Enter the start time. Your device shows it as AM/PM or as a 24-hour clock.
Enter the end time. If it's earlier than the start, it counts as the next day.

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.

  1. Enter the start time.
  2. Enter the end time.
  3. Read the time between in hours and minutes.
  4. 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

How do I subtract times by hand?

Write both times on a 24-hour clock, then subtract the minutes and the hours separately. 2:05 PM is 14:05, and 14:05 minus 11:20 can't take 20 minutes from 5, so borrow an hour: 13:65 minus 11:20 is 2:45.

Is 12:00 PM noon or midnight?

On phones and computers, 12:00 PM is noon and 12:00 AM is midnight, and this calculator follows that. The US time authority, NIST, calls both labels ambiguous and suggests writing "noon" or "midnight", or 11:59 PM and 12:01 AM, where it matters.

What if my end time is after midnight?

Enter it as normal. Because 2:00 AM is earlier on the clock than 9:00 PM, the calculator treats it as the next day and gives 5 hours. It can't tell a 5-hour gap from a 29-hour one, so it assumes the shortest.

How do I use decimal hours on a timesheet?

Many timesheets and invoices want hours as a decimal. Divide the minutes by 60: 2 hours 45 minutes is 2.75, and 7 hours 20 minutes is 7.3333. Don't write 2 hours 45 minutes as 2.45, which is about 15 minutes short.

Does daylight saving time change the answer?

The calculator assumes an ordinary 24-hour day. A night that crosses the spring change is an hour shorter in real time, and one that crosses the fall change is an hour longer, so adjust by an hour on those two nights.

Can it handle seconds?

No. It works to the minute, as most clocks, schedules and timesheets do. If you need seconds, round to the nearest minute first; 30 seconds or more rounds up.

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)