Skip to content

Time Duration Calculator

How long from one time to another, to the second.

How long from one time to another, to the second. Add dates for a span of several days; a time that is earlier than the first one is read as the next day.

Duration

4 h 24 min 45 s

From 9:45:20 am to 2:10:05 pm.

12 am6 amnoon6 pm
Elapsed4.42 h9:45:20 am → 2:10:05 pmdrag the ends
Decimal hours
4.4125
In minutes
264.75
In seconds
15,885
How this works: 10 sources,

How this works

Method

Both times become seconds after midnight: hours × 3,600 + minutes × 60 + seconds. The duration is the second minus the first. Without dates, a second time that is earlier than the first is read as the next day, so 11 pm to 1 am is 2 hours, not minus 22. Full method

Sources

How it’s tested

One worked example for this page is checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: weekly and two-week time cards with draggable day bars, federal and California overtime, pay, CSV and saved weeks, plus eight time pages.

Every change on What’s new

How we make toolsReport a mistake

From 4:58:40 pm to 7:12:05 pm, worked out

Line the times up and subtract column by column, borrowing like long subtraction: 5 seconds minus 40 needs a minute borrowed, so 65 − 40 = 25 seconds; 11 minutes (after the borrow) minus 58 needs an hour borrowed, so 71 − 58 = 13 minutes; 18 hours minus 16 is 2. The duration is 2 h 13 min 25 s, or 2.2236 hours, or 8,005 seconds.

How the time between two times is worked out

Both times become seconds after midnight: hours × 3,600 + minutes × 60 + seconds. The duration is the second minus the first. Without dates, a second time that is earlier than the first is read as the next day, so 11 pm to 1 am is 2 hours, not minus 22.

With dates on, the whole days between the two dates are added first (86,400 seconds each), counted on the calendar so a leap day is included when it falls in between. Then the two times of day are subtracted. The answer is shown in days, hours, minutes and seconds, as decimal hours to four places, and as total minutes and seconds.

It is clock time. A span that crosses a daylight saving change lasts an hour more or less in real time than the clocks show; the calculator gives the clock-face answer on purpose, which is the one a schedule or a time sheet uses.

duration = days × 86,400 s + (end − start), + 86,400 s if the end is earlier and no dates are set

Durations between common times

Each pair worked out by the calculator; where the second time is earlier, it is read as the next day.

Durations between common times
FromToDurationDecimal hoursSeconds
8:00 am5:00 pm9 h9.000032,400
9:15:30 am11:02:45 am1 h 47 min 15 s1.78756,435
1:45 pm2:20:10 pm35 min 10 s0.58612,110
6:30 am6:45 pm12 h 15 min12.250044,100
11:59:30 pm12:00:15 am45 s0.012545
10:00 pm6:30 am8 h 30 min8.500030,600
12:00 am11:59:59 pm23 h 59 min 59 s23.999786,399
10:10:10 am10:10:09 am23 h 59 min 59 s23.999786,399
7:05 am7:05:45 am45 s0.012545
12:00 pm12:00 am12 h12.000043,200

Sources

Common questions

How do I find the time between two times?

Subtract the earlier time from the later one, seconds first, then minutes, then hours, borrowing 60 when a column goes negative. If the later time is on the next day, add 24 hours to it before subtracting. The calculator shows the answer in all the common forms.

Does it work across several days?

Yes. Turn on Add dates and pick a start and an end date. The days in between are counted on the calendar, then the times of day are subtracted, so Friday 6 pm to Monday 8 am is 2 days 14 hours.

Can I leave out the seconds?

Yes: set the seconds to 00, or use the hours worked page, which works in minutes. The duration then comes out in whole minutes.

How do I count days only, not times?

Use the date calculator, which counts the days between two dates, with or without weekends and public holidays.