Time Duration Calculator

Calculate the hours and minutes between two times — including overnight shifts — and get the result in decimal hours for timesheets and payroll.

  • Tested formula
  • Instant results
  • Updated September 28, 2026

Your details

min

Results Updates as you type

Time duration formula

Duration = End − Start (add 24 h if End < Start)
Decimal hours = Hours + Minutes ÷ 60
Example: From 9:15 AM to 5:45 PM is 8 hours 30 minutes, or 8.5 decimal hours. A night shift from 10:00 PM to 6:30 AM is also 8 hours 30 minutes. Subtracting a 30-minute break leaves 8 hours.

Minutes to decimal hours

MinutesDecimalMinutesDecimal
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

For a whole week of shifts with overtime and pay, use the hours worked calculator.

Frequently asked questions

How do I calculate hours between two times?
Convert both times to minutes after midnight, subtract, and convert back to hours and minutes. From 9:15 to 17:45 is 1,065 − 555 = 510 minutes = 8 hours 30 minutes.
What if the end time is past midnight?
If the end time is earlier than the start time, the calculator assumes the period crosses midnight and adds 24 hours. 22:00 to 06:30 is 8 hours 30 minutes.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 30 minutes = 0.5 hours, 15 minutes = 0.25, 45 minutes = 0.75 and 20 minutes ≈ 0.33. Payroll systems often need decimal hours.
Does it handle AM/PM?
Your browser shows the time picker in your local format (12-hour or 24-hour). The calculation is identical either way.

Last reviewed September 28, 2026. Results are estimates for informational purposes; see our disclaimer.