Skip to content
CalcNova

Time Duration Calculator

Calculate the time between a start time and an end time in hours and minutes, total minutes and decimal hours. Overnight periods, such as a 22:00 to 06:00 shift, are handled automatically.

Result

Duration
8 hours 30 minutes
Total minutes
510
Decimal hours
8.5
From → to
9:00 AM → 5:30 PM

Overview

Optionally subtract an unpaid break to get the time actually worked.

Formula

  • Duration = End − Start (in minutes)
  • If End < Start: Duration = End + 24 h − Start
  • Decimal hours = Total minutes ÷ 60

Times are converted to minutes after midnight. When the end time is earlier than the start time, the period is assumed to cross midnight, so 24 hours are added to the end time.

Worked examples

Example 109:00 to 17:30

  1. 17:30 = 1,050 minutes; 09:00 = 540 minutes
  2. 1,050 − 540 = 510 minutes

8 hours 30 minutes = 8.5 decimal hours.

Example 2Overnight: 22:00 to 06:15

  1. End is earlier than start, so add 24 h
  2. (375 + 1,440) − 1,320 = 495 minutes

8 hours 15 minutes = 8.25 decimal hours.

Assumptions and limitations

  • Times use the 24-hour clock in hours and minutes.
  • Durations of up to 24 hours are supported; an end time earlier than the start is treated as the next day.
  • Equal start and end times give a duration of zero.
  • Time zones and daylight-saving changes are not considered. On a night when clocks change, the real elapsed time can differ by an hour.

Frequently asked questions

How do I convert minutes to decimal hours?

Divide the minutes by 60. For example, 8 hours 15 minutes is 8 + 15 ÷ 60 = 8.25 hours, which is the format most payroll systems use.

Can I calculate a shift longer than 24 hours?

Not with a single start and end time, because the calendar day is not entered. Use the Date Difference Calculator for multi-day periods.

What happens on a daylight-saving night?

The calculator uses wall-clock times and ignores clock changes. A shift spanning the change may actually be one hour longer or shorter.

Last reviewed . Found a problem? Let us know.

Explore date & time calculators