Skip to Content

Time Duration Calculator

Calculate the Exact Duration between Two Times or Dates. Type Times Any Way You Like (9, 930p, 9:30 AM, or 21:30) and Get Total Hours, Minutes, Seconds, and Decimal Hours Instantly.

Quick Examples:

Total Duration

-

Decimal Hours
-
Total Minutes
-
Total Seconds
-

Time Ledger

Saved in This Browser Only. Export a CSV to Keep a Backup.

Worked Example: An Overnight Shift with a Meal Break

A warehouse worker clocks in at 10:30 PM and clocks out at 7:15 AM, with a 30-minute unpaid meal break, and earns $20 an hour. Because 7:15 AM is earlier than 10:30 PM, the shift crosses midnight.

From 10:30 PM to midnight is 1 hour 30 minutes, and from midnight to 7:15 AM is 7 hours 15 minutes, so the shift is 8 hours 45 minutes in total. Subtract the 30-minute break to get 8 hours 15 minutes worked, which is 8.25 decimal hours. At $20 an hour, that is $165.00 for the shift. That is 15 minutes over an 8-hour day, but under federal rules overtime is counted by the week, not the day.

How to Calculate Time Duration

Write both times on a 24-hour clock, so 2:15 PM becomes 14:15. Subtract the start hours from the end hours and the start minutes from the end minutes. If the end minutes are smaller, borrow one hour: add 60 to the end minutes and take 1 from the end hours. 14:15 − 9:40 becomes 13:75 − 9:40 = 4 hours 35 minutes.

If the end time is earlier than the start time, the period crosses midnight. Add 24 hours to the end time first. For several shifts in one day, work out each block separately and add them together, then subtract unpaid breaks.

Time Duration Formula

Duration = End time − Start time (add 24 hours if the end is earlier than the start)
Net duration = Total duration − Unpaid breaks
Decimal hours = Total minutes ÷ 60

Common Time Duration Examples

StartEndDurationDecimal
8:00 AM5:00 PM9 hours9.00
9:00 AM5:00 PM8 hours8.00
9:00 AM5:30 PM8 hours 30 minutes8.50
10:00 PM6:00 AM (Next Day)8 hours8.00
12:00 PM3:30 PM3 hours 30 minutes3.50
7:15 AM3:45 PM8 hours 30 minutes8.50

Sources

Last Checked:

Frequently Asked Questions

How Do I Calculate the Time between Two Times?

Convert both times to 24-hour time, subtract the start from the end, and borrow 60 minutes from the hours when the end minutes are smaller. For 9:45 AM to 5:15 PM: 17:15 − 9:45 = 7 hours 30 minutes. The calculator does this as you type.

How Do I Calculate Hours past Midnight?

If the end time is earlier than the start time, the shift ends the next day. Add 24 hours to the end time before subtracting: 10:00 PM to 6:00 AM is (6 + 24) − 22 = 8 hours. The calculator detects this and labels the result “next day”.

How Do I Calculate Hours Worked with a Lunch Break?

Find the total time from start to finish, then subtract the unpaid break. 8:00 AM to 4:30 PM is 8 hours 30 minutes; minus a 30-minute lunch gives 8 hours worked. Use “Add break” above.

How Do I Convert Minutes into Decimal Hours?

Divide the minutes by 60. 45 minutes is 0.75 hours, so 7 hours 45 minutes is 7.75 hours. Payroll systems usually want decimal hours; the calculator shows them under every result.

How Many Hours Are between Two Dates?

Switch to “Between dates” and enter both dates and times. The result counts real elapsed time in your time zone, so a span that crosses a daylight saving change is an hour shorter or longer than the clock difference suggests.

Work Trail: From Hours Worked to Take-Home Pay.

Next Step on This Trail

Coming Next: Hours Calculator. When it launches, your times will carry over to it automatically.

  1. Step 1Time Duration Calculator
  2. Step 2 (Soon)Hours Calculator
  3. Step 3 (Soon)Time Card Calculator
  4. Step 4 (Soon)Overtime Calculator
  5. Step 5 (Soon)Paycheck Calculator