Time Duration Calculator (Add and Subtract Time)

How long from one time to another? Get the answer in hours and minutes, decimal hours and minutes.

What do you want to work out?

If the end is earlier than the start, it is counted as the next day.

Free, no signup. Everything is worked out in your browser and nothing you type is sent to us.

Time between them

How long did it take?

Time between two clock readings sounds simple until the minutes do not line up, or the end time is after midnight. From 08:45 to 17:10 is not 9 hours 35 minutes, and from 22:30 to 06:15 is not negative. This time duration calculator takes two times, or two dates with times, and tells you exactly how much time passed.

The answer comes in hours and minutes, in decimal hours for timesheets and invoices, and in total minutes. Use it for shifts, journeys, how long a job took, or the gap between two events across several days.

Using the calculator

  1. Choose Between two times for anything inside a day or overnight, or Between two dates and times for longer spans.
  2. Enter the start time and the end time. Your device shows a 24 hour or an AM and PM picker; both work.
  3. For dates, set the start date and time and the end date and time.
  4. Read the duration, then the same figure in h:mm, decimal hours and minutes.

The elapsed time formula

duration = end time − start time
if the end time is earlier than the start, add 24 hours
with dates: (end date − start date) × 1,440 + end time − start time, in minutes

The calculator turns each clock time into minutes after midnight, subtracts, and turns the result back into hours and minutes. 08:45 is 525 minutes after midnight and 17:10 is 1,030, so the gap is 505 minutes. For two dates, each whole day adds 1,440 minutes.

Worked example: 08:45 to 17:10

  • 08:45 is 525 minutes after midnight
  • 17:10 is 1,030 minutes after midnight
  • 1,030 − 525 = 505 minutes
  • 505 minutes = 8 hours 25 minutes

The time between them is 8 hours 25 minutes, which is 505 minutes or 8.42 hours in decimal. If you are filling in a timesheet that wants decimals, 8.42 is the figure to use, not 8.25.

An overnight example: 22:30 to 06:15. The end is earlier than the start, so it is the next morning: 375 + 1,440 − 1,350 = 465 minutes, which is 7 hours 45 minutes.

Doing it by hand

The borrowing method works well on paper. Subtract the minutes first. If the end minutes are smaller, borrow an hour: add 60 to the end minutes and take 1 from the end hours.

Subtracting 08:45 from 17:10 by borrowing an hour
StepHoursMinutes
End time1710
Borrow an hour1670
Start time845
Difference825

Easy ways to get it wrong

  • Subtracting clock times like ordinary numbers. 17.10 minus 8.45 is 8.65, which is meaningless as a time.
  • Forgetting a lunch break. This page measures the whole span. To take breaks off and total a week, use the time card calculator.
  • Mixing AM and PM. 7:30 to 4:15 is 8 hours 45 minutes if the second time is in the afternoon, and almost 21 hours if both are in the morning.
  • Ignoring clock changes. On the night clocks go forward or back, real elapsed time is an hour shorter or longer than the clocks suggest. This calculator uses plain clock time.

Frequently asked questions

How do I calculate the time between two times?

Turn both times into minutes after midnight, subtract the start from the end, and turn the result back into hours and minutes. From 09:20 to 13:05 is 785 − 560 = 225 minutes, which is 3 hours 45 minutes. Enter the two times above and the calculator does this, overnight shifts included.

How do I work out elapsed time past midnight?

If the end time is earlier than the start, add 24 hours to the end before subtracting. From 21:00 to 03:30 is 3:30 + 24:00 − 21:00 = 6 hours 30 minutes. The calculator spots this automatically and says in the working that the end time is the next day.

How do I convert a duration to decimal hours?

Divide the minutes by 60 and add them to the hours. 8 hours 25 minutes is 8 + 25 ÷ 60 = 8.42 hours. The calculator shows the decimal figure with every answer. For converting lots of times at once, the time to decimal converter has a table of common values.

Can I add or subtract time with this calculator?

This page finds the time between two points. To add or subtract lengths of time, like 2 hours 45 minutes plus 1 hour 30 minutes, or to see what time it will be after a set number of hours, use the time calculator. Both show every step of the working.

Related calculators

See all free calculators

More free tools from CloveDesk

CloveDesk gives freelancers and small teams one place for quotes, e-signatures, invoices, files and a portal for each client.

Try CloveDesk free

Last updated: