Free calculator

Time duration calculator

To find the time between two times, subtract the start from the end; if the end is earlier on the clock, it is the next day, so add 24 hours first. 10:45 PM to 7:15 AM is 8 hours 30 minutes. This time duration calculator does that for any start and end time, adds dates when a span runs over several days, and shows the answer in hours and minutes, decimal hours and total minutes.

  • Overnight times, no date needed
  • Optional dates for multi-day spans
  • h:mm, decimal hours and minutes

Calculator

Time between two times

Type times like 9, 9:30, 930 or 9:30p. An end before the start counts as the next day.

Dates

How to use the time duration calculator

  • Enter the start time and the end time as times of day, in AM/PM or 24-hour form. 9:40 AM and 09:40 are the same.
  • For an overnight span, just type the end time. When the end is earlier than the start, such as 10:00 PM to 6:00 AM, the calculator reads the end as the next day.
  • Add dates for anything longer. Choose Pick dates and fill in the start and end dates when the span covers more than one night, such as a two-day trip or a 36-hour on-call stretch.
  • Read the result three ways: h:mm, decimal hours (for pay or billing) and total minutes.
  • Breaks are not taken off. This page measures the full time between the two moments. To take off an unpaid lunch, use the work hours calculator or subtract it with the hours and minutes calculator.

Hours between two times: common examples

These are the start and end times people look up most. The last three run past midnight and need no date.

StartEndDurationDecimal hoursMinutes
9:00 AM5:00 PM8:008.00480
8:30 AM5:15 PM8:458.75525
7:00 AM3:30 PM8:308.50510
6:45 AM2:10 PM7:257.42445
12:00 PM8:45 PM8:458.75525
3:00 PM11:30 PM8:308.50510
7:00 PM7:00 AM12:0012.00720
10:00 PM6:00 AM8:008.00480
11:30 PM1:15 AM1:451.75105

Worked example: an overnight shift and a 31:45 span

Overnight, no dates. A night shift starts at 10:45 PM and ends at 7:15 AM. The end is earlier on the clock, so it is the next morning. Split it at midnight: 10:45 PM to 12:00 AM is 1:15, and 12:00 AM to 7:15 AM is 7:15. Together that is 8:30, which is 8.50 decimal hours or 510 minutes. Another way is to add 24 hours to the end: 7:15 becomes 31:15, and 31:15 − 22:45 = 8:30.

Several days, with dates. A driver leaves on Thursday, November 12, 2026, at 6:30 PM and gets back on Saturday, November 14, at 2:15 AM. Thursday 6:30 PM to Friday 6:30 PM is 24:00. Friday 6:30 PM to Saturday 2:15 AM is another 7:45. The span is 31:45, which is 31.75 decimal hours or 1,905 minutes.

Without the dates, 6:30 PM to 2:15 AM would read as one night, 7:45. That is why the date fields matter for anything that runs past a second midnight. Enter both examples and the calculator shows 8:30 and 31:45.

SpanStartEndDurationDecimalMinutes
Night shift10:45 PM7:15 AM (next day)8:308.50510
Multi-day tripThu Nov 12, 6:30 PMSat Nov 14, 2:15 AM31:4531.751,905

How to calculate the time between two times by hand

Turn both times into 24-hour form, then subtract, borrowing 60 minutes when you need to. 8:45 AM to 5:15 PM becomes 08:45 to 17:15. 15 minutes is less than 45, so 17:15 becomes 16:75; 75 − 45 = 30 and 16 − 8 = 8, giving 8:30.

If the end time is smaller than the start time, add 24 hours to the end before subtracting. With dates, count the whole days first, then add the hours left over.

For decimal hours, divide the leftover minutes by 60: 8:30 is 8.50. For total minutes, multiply the hours by 60 and add the minutes: 8 × 60 + 30 = 510.

12 AM, 12 PM and other AM/PM mix-ups

12:00 PM is noon and 12:00 AM is midnight. So 11:00 AM to 12:30 PM is 1:30, and 11:00 PM to 12:30 AM is also 1:30, but the second one ends on the next day.

A wrong AM or PM changes the answer by 12 hours. 9:00 AM to 5:00 PM is 8:00; type 5:00 AM by mistake and the end is earlier than the start, so you get 20:00. If a result looks about 12 hours too long or too short, check the AM/PM first. 24-hour times avoid the problem: 09:00 to 17:00 can only mean one thing.

Common mistakes when working out time between two times

  • Subtracting clock times as decimals. 5:15 PM − 8:45 AM is not 17.15 − 8.45 = 8.70. The right answer is 8:30, or 8.50 hours, because an hour has 60 minutes, not 100.
  • Leaving out the date on a long span. Anything that passes a second midnight needs both dates, or it is read as a single night.
  • Counting breaks you didn't work. The duration is the whole gap. Take off an unpaid meal break separately.
  • Rounding before subtracting. If your employer rounds punches, round the start and end first, then subtract. The 7-minute rule calculator shows how quarter-hour rounding works.

Shifts across a daylight saving change

In most of the US, daylight saving time starts at 2:00 AM on the second Sunday of March, when clocks jump to 3:00 AM, and ends at 2:00 AM on the first Sunday of November, when clocks fall back to 1:00 AM. Hawaii, Arizona (except the Navajo Nation), Puerto Rico, Guam, American Samoa and the U.S. Virgin Islands don't change their clocks (NIST: daylight saving time).

So on those nights the clock difference and the real elapsed time differ by one hour. A 10:00 PM to 6:00 AM shift on the November change night is 9 hours of real time, and on the March change night it is 7. Clock arithmetic, which is what this calculator uses, gives 8:00 both times, so add or take off the hour yourself for those two nights.

Using durations for time cards and pay

For payroll, federal recordkeeping rules define a workday as "any fixed period of 24 consecutive hours" and a workweek as "any fixed and regularly recurring period of 7 consecutive workdays" (29 CFR 516.2). A night shift that crosses midnight still counts in full; how the hours are split between days and weeks follows your employer's fixed workday and workweek.

Multiply the decimal hours, not the h:mm figure, by your rate. 8:30 at $22 an hour is 8.50 × $22 = $187.00.

For a whole week of shifts with breaks and overtime, use the time card calculator. For a single shift with clock punches, the time clock calculator handles lunch punches too. Results are arithmetic, not legal advice.

Frequently asked questions

How do I calculate the time between two times?

Subtract the start time from the end time, borrowing 60 minutes when the end's minutes are smaller. 8:45 AM to 5:15 PM is 8:30, or 8.50 hours.

How many hours is 10 PM to 6 AM?

8 hours. The end is earlier on the clock, so it is the next morning: 2 hours before midnight plus 6 after.

How do I calculate hours for a shift that goes past midnight?

Add 24 hours to the end time, then subtract. 10:45 PM to 7:15 AM is 31:15 − 22:45 = 8:30. The calculator does this for you.

How many hours is 9 AM to 5 PM?

8 hours, or 480 minutes. Take off an unpaid 30-minute lunch and it is 7:30, or 7.50 hours.

How do I find the duration over more than one day?

Add the start and end dates. Count full 24-hour days first, then the leftover hours. Thursday 6:30 PM to Saturday 2:15 AM is 31:45.

How do I convert a duration to decimal hours?

Divide the minutes by 60 and add them to the hours. 7:25 is 7 + 25 ÷ 60 = 7.42 hours.

Is 12 AM midnight or noon?

12:00 AM is midnight and 12:00 PM is noon. 11:00 PM to 12:30 AM is 1:30 and ends on the next day.