↑ ↓ to move · Enter to open · Esc to close

⏱️ Time Duration Calculator

Work out how long it is from one clock time to another, including overnight spans, in hours and minutes or decimal hours.

Quick answer: Subtract the start time from the end time. From 9:15 AM to 5:45 PM is 8 hours 30 minutes – 8.5 decimal hours or 510 minutes – and 10:00 PM to 6:30 AM the next morning is 8 hours 30 minutes too.

Updated · Free · No sign-up · Works on any device

Time Duration Calculator inputs

An end time earlier than the start is treated as the next day.

Result

9:15 AM to 5:45 PM

8 h 30 min

Hours and minutes8:30
Decimal hours8.5
Total minutes510
Total seconds
30,600
Share of a day
35.42%
Crosses midnight
No

Same start, other end times

End timeDurationDecimal hours
10:15 AM1 h1
11:15 AM2 h2
1:15 PM4 h4
3:15 PM6 h6
5:15 PM8 h8
7:15 PM10 h10
9:15 PM12 h12

How to calculate the time between two times

Convert both times to minutes after midnight (hours × 60 + minutes), subtract, and convert back. If the result is negative the period crosses midnight, so add a full day of 1,440 minutes.

Duration (min) = (end − start + 1,440) mod 1,440  ·  Decimal hours = minutes ÷ 60

Worked examples

9:15 AM to 5:45 PM: 9:15 is 555 minutes after midnight and 17:45 is 1,065. The difference is 510 minutes = 8 hours 30 minutes = 8.5 hours.

10:00 PM to 6:30 AM: 390 − 1,320 = −930, plus 1,440 gives 510 minutes – also 8 h 30 min, with the end on the next day.

Minutes to decimal hours

MinutesDecimalMinutesDecimal
60.10300.50
100.17400.67
150.25450.75
200.33500.83

Using 24-hour time

Subtraction is easiest on the 24-hour clock, where 1:00 PM is 13:00 and 11:30 PM is 23:30. Convert both times first, subtract the hours and minutes separately, and borrow 60 minutes from the hours whenever the end minutes are smaller than the start minutes. For example, 14:10 − 9:45 becomes 13:70 − 9:45 = 4 hours 25 minutes. The calculator does this borrowing for you and also handles the jump past midnight.

Tips

  • Shift work: for several shifts with breaks and pay, use the hours calculator time card.
  • AM/PM mistakes are the most common error – 12:00 AM is midnight and 12:00 PM is noon.
  • Billing: many timesheets round to the nearest 6 or 15 minutes; round the minutes before converting to decimal.

Frequently asked questions

How do I calculate time across midnight?

If the end time is earlier than the start time, add 24 hours to the end before subtracting. 10:00 PM (22:00) to 6:30 AM becomes 30:30 − 22:00 = 8 hours 30 minutes. The calculator does this automatically.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 30 minutes is 0.5 hours, 15 minutes is 0.25 and 45 minutes is 0.75, so 8 h 45 min is 8.75 hours.

Can it handle durations longer than 24 hours?

Two clock times can only be up to 23 h 59 min apart. For longer spans across several days use the date difference calculator, or add whole days of 24 hours yourself.

Should I enter times in 12-hour or 24-hour format?

The time picker follows your device settings; either way the time is stored in 24-hour form, so 5:45 PM is 17:45. Results show both the 12-hour clock and decimal hours.