Date & Time • ⏱️ 5 min read

How to Calculate Time Duration Between Two Times: Hours & Minutes

Elapsed time math, 24-hour clock conversion, borrowing minutes across hours, and overnight shifts.

The Challenge of Sexagesimal (Base-60) Time Math

While modern mathematics operates on the base-10 decimal system, clock time is governed by the ancient Babylonian sexagesimal (base-60) system: 60 seconds in a minute, and 60 minutes in an hour.

Because you cannot simply subtract time like regular decimal numbers (e.g. 5:15 minus 3:45 is NOT 1:70), calculating elapsed time requires borrowing 60 minutes when subtracting across an hour boundary.

Step-by-Step Method: Calculating Elapsed Time

To subtract an earlier start time from a later end time:

  1. Convert both times to a 24-hour clock format (e.g. 1:15 PM = 13:15, 5:45 PM = 17:45).
  2. Subtract minutes first. If start minutes exceed end minutes, borrow 1 hour (60 minutes) from the end hour and add 60 to end minutes.
  3. Subtract the hours.

Worked Example: 08:30 AM to 05:15 PM (17:15)

  1. End time = 17:15, Start time = 08:30.
  2. Minutes: 15 is smaller than 30. Borrow 1 hour from 17 (becomes 16 hours) and add 60 minutes to 15: 15 + 60 = 75 minutes.
  3. Subtract minutes: 75 − 30 = 45 minutes.
  4. Subtract remaining hours: 16 − 8 = 8 hours.
  5. Result: 8 hours and 45 minutes.

Converting Hours & Minutes to Decimal Hours for Payroll

Employers and payroll software require working hours to be reported in decimal hours rather than minutes. To convert minutes to a decimal, divide by 60:

Decimal Hours = Hours + (Minutes / 60)

In our example above: 8 hours + (45 / 60) = 8 + 0.75 = 8.75 decimal hours. If an employee earns $20/hour: 8.75 × $20 = $175.00 gross pay.

Quick Reference: Common Minutes to Decimals Table

MinutesFraction of HourDecimal Equivalent
15 min1/4 hour0.25 hrs
30 min1/2 hour0.50 hrs
45 min3/4 hour0.75 hrs
10 min1/6 hour0.17 hrs
20 min1/3 hour0.33 hrs
50 min5/6 hour0.83 hrs

Calculating Overnight Shifts (Crossing Midnight)

When a shift starts in the evening and concludes the following morning (e.g. 10:45 PM to 06:15 AM), add 24 hours to the end time in 24-hour notation:

  1. Start time: 22:45. End time: 06:15.
  2. Add 24 hours to end time: 06:15 + 24:00 = 30:15.
  3. Subtract start time: 30:15 − 22:45.
  4. Borrow 1 hour: 29:75 − 22:45 = 7 hours and 30 minutes (7.5 decimal hours).

Compute Time Durations Instantly

Calculate work shifts, track billable hours, and convert decimal time effortlessly:

Put This Into Practice

Skip manual calculation math and compute your numbers in seconds with our free, 100% private Time Duration Calculator.

Open Time Duration Calculator →