Guides

How Do I Calculate Elapsed Time Between Two Hours?

Calculate elapsed time between two hours: convert to 24-hour format, borrow 60 minutes when needed, with a worked 8:13 to 16:55 subtraction and AM/PM rules.

Miryori Editorial Team3 min read
Try the Elapsed Time Calculator

A start time and an end time written on a clock face do not subtract like ordinary decimal numbers. Hours and minutes need their own arithmetic, and a PM time must first be put on a 24-hour clock. Once those two adjustments are made, the elapsed time is an ordinary subtraction.

To calculate elapsed time between two hours, first convert both clock times to 24-hour format, then subtract the start from the end as a long subtraction. If the minutes column goes negative, borrow one hour from the end time and treat it as 60 minutes. For 8:13 to 16:55, subtracting gives 8 hours 42 minutes. The elapsed time calculator performs the same conversion and borrow internally.

How do I convert clock times to 24-hour format?

The calculator's AM/PM selector stores am as 0 and pm as 1, and the clock format selector stores the 12-hour clock as 0 and the 24-hour clock as 1. Converting means expressing a 12-hour time on the 24-hour scale before subtracting: the reference example writes 3:40 AM as 3:40 and 2:00 PM as 14:00.

elapsed time=end time (24h)−start time (24h)\text{elapsed time} = \text{end time (24h)} - \text{start time (24h)}

Once both endpoints are on the same scale, the subtraction is unambiguous. The 24-hour setting on the calculator removes the AM/PM decision altogether, because the hour field itself carries the information; times already written as 8:13 and 16:55 need no conversion at all.

How do I subtract the two times?

Line up the hours over the hours and the minutes over the minutes, then subtract each column separately. The reference pair 8:13 to 16:55 breaks down like this:

Column End time Start time Difference
Hours 16 8 8
Minutes 55 13 42
Elapsed time 16:55 8:13 8 h 42 min

Both columns are positive here, so no borrowing is required. Written as a subtraction, 16:55 − 8:13 gives 8:42, which is 8 hours and 42 minutes of elapsed time.

When does the minutes column need a borrow?

A borrow is needed whenever the end minutes are smaller than the start minutes, because a negative minutes count is not a valid clock time. The remedy is to take one hour from the end hours and add 60 minutes to the end minutes:

elapsed minutes=end minutes+60−start minutes,elapsed hours=end hours−1−start hours\text{elapsed minutes} = \text{end minutes} + 60 - \text{start minutes}, \qquad \text{elapsed hours} = \text{end hours} - 1 - \text{start hours}

This shifts one hour across the boundary without changing the interval being measured. The worked 3:40 AM to 2:00 PM example in the main guide shows the borrow in full; the rule itself applies to any pair of hours.

Worked example: from 8:13 to 16:55

Take an interval that starts at 8:13 and ends at 16:55. Both times are already in 24-hour form, so the calculation is a single long subtraction:

 16:55
− 08:13
-------
 08:42

The hours column gives 16 − 8 = 8 hours and the minutes column gives 55 − 13 = 42 minutes. The elapsed time is therefore 8 hours and 42 minutes. The same result appears in the calculator's duration field when 8:13 is entered as the start and 16:55 as the end.

Frequently Asked Questions

What does the AM/PM selector do in a subtraction?

It tells the calculator whether a 12-hour clock entry belongs before or after midday, so the hour can be read on the 24-hour scale. The selector stores am as 0 and pm as 1; the reference example turns 2:00 PM into 14:00.

When do I need to borrow an hour?

When the end time's minutes are smaller than the start time's minutes. Borrowing one hour and adding 60 minutes makes the minutes column positive without altering the elapsed interval.

What is the elapsed time from 8:13 to 16:55?

It is 8 hours and 42 minutes. The hours subtract to 8 and the minutes subtract to 42, so no borrowing is needed for this pair.

Do I have to enter seconds?

No. The calculator's start-second and end-second fields default to 0, so an interval stated in hours and minutes can be entered without touching them.

References

  • Omni's elapsed time calculator reference entry: 24-hour conversion rule, borrow method and the 8:13 to 16:55 worked example.
  • Clock-format conventions behind the calculator's 12-hour/24-hour and AM/PM selector datasets.
  • General arithmetic references on long subtraction with borrowing across time units.
Calculator

Elapsed Time Calculator

Elapsed Time: elapsed time calculator determines the duration between a start and an end time. Free, fast and private.

Try the Elapsed Time Calculator