Free online tools
English EN, Choose a language

Time duration calculator

Find the time between two clock times, add or subtract a duration, or total a list of durations in hours and minutes.

Durations (h:mm, 2h 30m, 90m)

Times accept 9:15 am, 9pm, 17:45 or 0915. Durations accept 2:30, 2h 30m, 1.5h, 90m or 45s; a plain number counts as minutes.

Result

—

Enter the times to see the duration.

Runs in your browser. Nothing you type is sent.

Related tools

All calculators →

How to use this time duration calculator

  1. Between: type a start and an end time to see how long it is. If the end is earlier than the start the calculator treats it as the next day, which handles night shifts; add days if the gap is longer than 24 hours.
  2. Add / subtract: type a start time, choose Add or Subtract and type a duration to get the resulting time and whether it lands on another day.
  3. Total: list durations and read the sum. Start an entry with a minus sign to subtract it.

Times work in 12-hour (9:15 am) or 24-hour (17:45) style. Everything is calculated in your browser.

Time between two times

The duration is the end time minus the start time, worked out in seconds so that minutes and hours carry correctly (60, not 100, to the next unit). With the default times:

  1. Duration = end − start = 17:45:00 − 9:15:00 = 8:30:00.
  2. Decimal hours: 8:30:00 is 8.5 hours.

That is 8 h 30 min, or 8.5 h as a decimal, which is the form timesheets and invoices usually need. For a shift that crosses midnight, such as 10:00 pm to 6:00 am, the end is on the next day: From 10:00 PM to 6:00 AM (next day) is 8 h. A day shift of 8:00 to 17:30 is 9 h 30 min.

If you also need to take unpaid breaks off a working day, use the hours calculator, which is built for timesheets; this page is for general durations.

Adding and subtracting time

To find a finishing time, add the duration to the start time. If the result passes midnight the clock wraps and the calculator tells you how many days later it is: 10:30 PM plus 3 h 15 min is 1:45 AM (+1 day). Subtracting works the same way in the other direction, and it also wraps: 1:15 AM minus 2 h is 11:15 PM (−1 day).

Durations can be written as h:mm or h:mm:ss, in words (2h 30m, 2 hours 30 minutes), as decimal hours (1.5h) or as plain minutes (90). A plain number counts as minutes because that is how most people write short durations.

Adding up a list of durations

Adding times by hand goes wrong because minutes carry at 60. Add the entries in seconds and convert back instead. For example 1:45 + 2:30 + 0:50 comes to 5 h 5 min (5:05:00), not 4:125. Mixed formats work too: 1.5h + 45m + 2:10:30 − 0:20 comes to 4 h 5 min 30 s. This suits workout logs, video running times, study time, project tracking and invoices.

Minutes to decimal hours

Payroll and billing often want hours as a decimal. Divide the minutes by 60:

MinutesDecimal hoursMinutesDecimal hours
50.0833350.5833
100.1667400.6667
150.25450.75
200.3333500.8333
250.4167550.9167
300.5601

So 7 h 45 min is 7.75 hours, not 7.45. The calculator shows the decimal value for every result.

Common mistakes

Related calculators and converters

Time duration calculator FAQ

How do I calculate the time between two times?

Subtract the start time from the end time, in hours and minutes. From 9:15 am to 5:45 pm: 17:45 − 9:15 = 8 hours 30 minutes. If the end is on the next day, add 24 hours first.

How do I calculate time that crosses midnight?

Treat the end as the next day by adding 24 hours: from 10:00 pm to 6:00 am is 6:00 + 24:00 − 22:00 = 8 hours. This calculator does it automatically when the end is earlier than the start.

How do I add hours and minutes together?

Add the minutes and carry every 60 into the hours. 1:45 + 2:30 = 3 h 75 min = 4 h 15 min. Use the Total tab to do it for a list: 5 h 5 min for 1:45, 2:30 and 0:50.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add them to the hours. 8 h 30 min is 8 + 30÷60 = 8.5 hours. The calculator shows the decimal hours for every result.

Can I subtract a duration from a time?

Yes. Choose Subtract in the Add / subtract tab. 1:15 AM minus 2 h is 11:15 PM (−1 day).

What formats can I type?

Times: 9:15 am, 9pm, 17:45, 0915. Durations: 2:30, 2:30:15, 2h 30m, 2 hours 30 minutes, 1.5h, 90m, 45s. A plain number in a duration counts as minutes.

Does it account for daylight saving time?

No. It works on clock times and durations only. On the night clocks change, the real elapsed time can differ by an hour from the arithmetic.

Missing something in the time duration calculator?Suggest an idea. It takes 20 seconds and we read every one.Suggest an idea

Sends only what you type here, never the text you work with. Your email is used only to reply about this idea.

Free online tools