Time duration calculator

How long is it from one time to another? Type a start and end time to get the duration in hours and minutes, decimal hours and total minutes. Overnight times work, and you can add dates for spans of several days, add or subtract time from a date, or total a list of shifts.

7 h 45 min

From 10:30 PM to 6:15 AM the next day (past midnight).

7:45hours and minutes (h:mm)
7.75decimal hours
465total minutes

Type times as 10:30 PM, 10:30p or 22:30. Without dates, an end time earlier than the start is the next day. With dates, times are counted in your time zone (America/New_York), including any daylight saving change. Nothing you type is sent anywhere.

How to calculate the time between two times

  1. Change both times to minutes after midnight. In 12-hour time, 12:00 AM is midnight and 12:00 PM is noon; add 12 hours to any other PM time. 10:30 PM is 22 × 60 + 30 = 1,350 minutes, and 6:15 AM is 375 minutes.
  2. Subtract the start from the end. If the result is negative, the end is on the next day, so add 1,440 minutes (24 hours): 375 − 1,350 + 1,440 = 465 minutes.
  3. Take off unpaid breaks, if any, in minutes.
  4. Convert. Whole hours are the minutes divided by 60, and what is left over is the minutes: 465 = 7 h 45 min, written 7:45. Decimal hours are the minutes divided by 60: 465 ÷ 60 = 7.75.

With dates, the calculator measures the real time between the two moments in your time zone, so an overnight span on the night the clocks change is one hour longer or shorter than the clock times suggest. Without dates, times are plain clock times and the end is never more than 24 hours after the start.

Worked examples

ExampleTimesResult
Overnight shift10:30 PM to 6:15 AM7 h 45 min = 7:45 = 7.75 hours (465 minutes). 1 h 30 min to midnight, then 6 h 15 min.
Day shift with a lunch break9:00 AM to 5:30 PM, 30 min break8 h = 8.00 hours (8 h 30 min on site, minus 30 min).
24-hour clock07:30 to 19:4512 h 15 min = 12.25 hours.
Subtract past midnight12:45 AM on Fri, Nov 13, 2026 minus 2 h 30 min10:15 PM on Thursday, November 12, 2026 (the day before).
Several days8:00 PM Thu, Nov 12 to 10:00 AM Sat, Nov 14, 202638 h = 1 day, 14 h = 38.00 hours.
Daylight saving ends (US Eastern)1:30 AM on Sun, Nov 1, 2026 plus 1 hour1:30 AM EST in real elapsed time: the clocks go back from 2:00 AM EDT to 1:00 AM EST, so one hour after the first 1:30 AM is the second 1:30 AM. As clock time, ignoring the change, it is 2:30 AM.
Night shift over the clock change10:30 PM Sat, Oct 31 to 6:15 AM Sun, Nov 1, 2026 (US Eastern)8 h 45 min = 8.75 hours actually elapsed, one hour more than the 7 h 45 min the clock times suggest.

Minutes to decimal hours conversion table

Timesheets and payroll often need hours as a decimal. Divide the minutes by 60: 15 minutes is 0.25 hours, 45 minutes is 0.75 hours. So 7 h 45 min is 7.75 hours and 8 h 20 min is 8.33 hours. Decimals are rounded to two places.

MinHoursMinHoursMinHours
10.02210.35410.68
20.03220.37420.70
30.05230.38430.72
40.07240.40440.73
50.08250.42450.75
60.10260.43460.77
70.12270.45470.78
80.13280.47480.80
90.15290.48490.82
100.17300.50500.83
110.18310.52510.85
120.20320.53520.87
130.22330.55530.88
140.23340.57540.90
150.25350.58550.92
160.27360.60560.93
170.28370.62570.95
180.30380.63580.97
190.32390.65590.98
200.33400.67601.00

To go the other way, multiply the decimal part by 60: 0.6 hours is 36 minutes, so 4.6 hours is 4 h 36 min.

Related calculators

Frequently asked questions

How do I calculate the hours between two times?
Convert both times to minutes after midnight, subtract the start from the end, and add 1,440 minutes (24 hours) if the result is negative because the end is the next day. Divide by 60 for hours: 9:15 AM to 5:45 PM is 1,065 − 555 = 510 minutes, which is 8 h 30 min or 8.5 hours.
How do I calculate hours that go past midnight?
Count the time up to midnight and add the time after it. 10:30 PM to 6:15 AM is 1 h 30 min plus 6 h 15 min, which is 7 h 45 min, or 7.75 hours. The calculator does this on its own whenever the end time is earlier than the start time.
How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add them to the hours. 7 h 45 min is 7 + 45 ÷ 60 = 7.75 hours; 8 h 10 min is 8.17 hours. The table above lists every minute from 1 to 60.
Is 12:00 AM midnight or noon?
12:00 AM is midnight at the start of the day and 12:00 PM is noon, which is how this calculator reads them. Because the labels are easy to mix up, NIST recommends 24-hour notation (00:00 for the start of a day) or writing 12 noon and 12 midnight. (Source: NIST, Times of day FAQs)
What happens when the clocks change?
In the US, daylight saving time ends at 2:00 AM on the first Sunday in November and starts at 2:00 AM on the second Sunday in March. With dates added, the calculator measures the real elapsed time in your time zone: a night shift from 10:30 PM to 6:15 AM on Sunday, November 1, 2026 lasts 8 h 45 min in US Eastern time. Without dates, it counts plain clock time. In the add mode you can choose real elapsed time or clock time. (Source: 15 U.S.C. § 260a)
Can I add up the hours for a whole week?
Yes. Open "Add up shifts", enter a start and end time for each shift, and take off any break in minutes. The total is shown in hours and minutes, decimal hours and minutes, and you can copy it or share a link to the list.
Should hours be rounded to the nearest quarter hour?
That depends on your employer. US federal rules allow employers to record start and stop times to the nearest 5 minutes, tenth of an hour or quarter hour, as long as over time employees are paid for all the time they actually work. This calculator shows the exact time to the minute. (Source: 29 CFR 785.48)
How do I calculate the time between two times in Excel?
Put the start time in A1 and the end time in B1. =B1-A1 formatted as h:mm gives hours and minutes, and =(B1-A1)*1440 gives total minutes. For a shift that ends after midnight, use =MOD(B1-A1,1), and =MOD(B1-A1,1)*24 for decimal hours. (Sources: Microsoft Support; Exceljet)