Skip to content

Time Calculator

Add or subtract hours, minutes and seconds, time between two clock times or date-times, decimal hours.

Your details

Calculate
Operation

Results update as you type

Duration (h:mm:ss)

4:16:15

In words
4 hours, 16 minutes, and 15 seconds
Decimal hours
4.2708
Total minutes
256.25
Total seconds
15,375

Time does not add up like ordinary numbers. Sixty seconds make a minute, sixty minutes make an hour, and a clock rolls back to 00:00 every midnight. That is why 1:45 + 0:30 is not 1:75 and why a shift from 22:30 to 06:15 is not a negative number. This time calculator handles the carrying and the wrap-around for you, in five modes:

  • Add durations — add or subtract two lengths of time given in hours, minutes and seconds.
  • Between times — the duration from one clock time to another, including across midnight.
  • Clock ± time — the clock time you reach after adding or subtracting a duration, with a next-day indicator.
  • Convert — turn h:mm:ss into decimal hours (for payroll and invoices) and back.
  • Dates & times — the exact duration between two date-times, in days, hours and minutes.

Every result is shown as h:mm:ss, in words, and as decimal hours, total minutes and total seconds, so you can copy whichever format your spreadsheet, timesheet or training log expects.

How to use this calculator

  1. Pick a mode.
  2. Add durations: enter the first duration, choose Add or Subtract, then enter the second. Values above 59 are fine — 90 minutes is read as 1 h 30 min.
  3. Between times: enter a start and an end time on the 24-hour clock. If the end is earlier than the start, it is taken as the next day.
  4. Clock ± time: enter a start time and the duration to add or subtract; the result shows the new time and whether it falls on another day.
  5. Convert: choose the direction and type either hours, minutes and seconds, or a decimal number of hours.
  6. Dates & times: enter a start date and time and an end date and time; the end must come after the start.

The formula

Everything is converted to seconds, calculated, then converted back:

t=3600 h+60 m+st = 3600\,h + 60\,m + s

To display a total of tt seconds as h:mm:ss, the calculator takes h=⌊t/3600⌋h = \lfloor t / 3600 \rfloor, then m=⌊(t mod 3600)/60⌋m = \lfloor (t \bmod 3600) / 60 \rfloor and s=t mod 60s = t \bmod 60. Decimal hours are simply t/3600t / 3600.

Across midnight. For two clock times, the duration is the end minus the start; if that is negative, one full day (24 h = 1,440 min) is added. For a clock time plus a duration, the result is reduced modulo 24 hours and the number of whole days that passed is reported separately.

Decimal hours. The fractional part of an hour is not minutes: 0.5 h is 30 minutes and 0.75 h is 45 minutes. Multiply the fraction by 60 to get minutes, and the remaining fraction of a minute by 60 to get seconds.

Worked example

Adding two durations. 2 h 45 min 30 s + 1 h 30 min 45 s:

  • seconds: 30 + 45 = 75 s = 1 min 15 s
  • minutes: 45 + 30 + 1 = 76 min = 1 h 16 min
  • hours: 2 + 1 + 1 = 4 h

Result: 4:16:15, or 4.2708 decimal hours.

Across midnight. From 22:30 to 06:15 the end is earlier than the start, so a day is added: (6×60+15)−(22×60+30)+1440=465(6 \times 60 + 15) - (22 \times 60 + 30) + 1440 = 465 minutes = 7:45:00, or 7.75 hours.

Clock plus duration. 21:40 plus 3 h 35 min is 01:15 the next day.

Converting. 2.75 hours = 2 h + 0.75 × 60 min = 2:45:00.

Between two date-times. From 27 February 2028 at 18:00 to 1 March 2028 at 09:30 — 2028 is a leap year, so 29 February counts — the duration is 2 days, 15 hours, and 30 minutes, i.e. 63.5 hours or 3,810 minutes.

Decimal hours at a glance

Minutes Decimal hours
6 min 0.1 h
15 min 0.25 h
20 min 0.3333 h
30 min 0.5 h
40 min 0.6667 h
45 min 0.75 h

Payroll systems and invoices often use decimal hours because they can be multiplied by an hourly rate directly. For a full week of shifts with breaks and overtime, use the hours calculator; for spans counted in days, the date calculator.

Duration between two dates and times

The Dates & times mode answers questions such as "how long was the car parked?", "how many hours did the rental last?" or "how long until the flight lands?". The calculator counts the whole days between the two calendar dates — with the real length of each month and 29 February in leap years — then adds the difference between the two clock times:

duration=1440×(days between dates)+(end time−start time) minutes\text{duration} = 1440 \times (\text{days between dates}) + (\text{end time} - \text{start time}) \text{ minutes}

The result is shown as days, hours and minutes, plus total hours, total minutes and total seconds. Both moments are read as wall-clock times in the same place, so your device's time zone never changes the answer. If a daylight-saving change falls inside the period (late March or late October in Europe, March and November in North America), the time that actually elapsed is one hour shorter or longer than the calendar duration; add or remove that hour yourself if it matters, for instance for a night shift. For durations in days, weeks and months only, the date calculator is quicker.

Frequently asked questions

How do I add hours and minutes together?

Add the seconds, minutes and hours separately, then carry: every 60 seconds becomes a minute and every 60 minutes becomes an hour. The calculator does the carrying automatically and also accepts values like 90 minutes.

How do I calculate time between two times that cross midnight?

Subtract the start from the end; if the answer is negative, add 24 hours. From 23:00 to 02:00 is −21 h + 24 h = 3 hours. The "Between times" mode does this for you.

How do I convert minutes to decimal hours?

Divide the minutes by 60. For example, 7 h 20 min is 7 + 20/60 = 7.3333 hours. To go back, multiply the decimal part by 60: 0.3333 × 60 = 20 minutes.

Why is 1.5 hours not 1 hour 50 minutes?

Because the decimal part is a fraction of an hour, not a count of minutes. Half an hour is 30 minutes, so 1.5 h is 1 h 30 min.

Can I subtract a larger duration from a smaller one?

Yes. The result is shown with a minus sign, for example −0:15:00 when you subtract 45 minutes from 30 minutes.

How do I calculate the duration between two dates with times?

Choose Dates & times and enter both moments. The calculator multiplies the days between the dates by 24 hours, adds the difference between the clock times, and shows days, hours and minutes. From 1 March 08:00 to 3 March 20:30 is 2 days 12 hours 30 minutes.

Last updated:

More Everyday life calculators

People also use