Time Duration Calculator
Calculate exact elapsed time between two clock times in hours, minutes, seconds, and decimal hours with automatic overnight shift detection.
This is one of our free time and work calculators. Hours between times, paid shift hours, weekly time cards, business days and date differences are all in one place.
How to calculate hours between two times
Calculating the exact time duration between two clock readings involves converting clock hours and minutes into a standardized total minute count from midnight, computing the difference, and converting back to sexagesimal hours and minutes or decimal hours.
For standard daytime calculations within the same day:
Start Minutes = (Start Hour × 60) + Start Minute
End Minutes = (End Hour × 60) + End Minute
Elapsed Duration = End Minutes - Start Minutes - Break Deduction
For example, if you start work at 9:30 AM and finish at 5:45 PM with a 30-minute lunch break:
- Start: 9:30 AM = (9 × 60) + 30 = 570 minutes.
- End: 5:45 PM in 24-hour time is 17:45 = (17 × 60) + 45 = 1,065 minutes.
- Gross Duration: 1,065 – 570 = 495 minutes (8 hours and 15 minutes).
- Net Payable Time (after 30 min break): 495 – 30 = 465 minutes = 7 hours 45 minutes (7.75 decimal hours).
How overnight shifts and midnight boundaries are calculated
When an employee, contractor, or night-shift worker starts their shift in the evening and clocks out the following morning, the end time reading is smaller than the start time reading. In standard 24-hour arithmetic, subtracting an earlier clock reading from an evening reading produces a negative number.
Our calculator automatically resolves overnight intervals by adding 24 hours (1,440 minutes) whenever the end time is numerically earlier than the start time, or when you toggle the End time is on the next day setting:
Overnight Duration = (End Minutes + 1,440) - Start Minutes
For example, a security shift starting at 10:00 PM (22:00) and ending at 6:30 AM:
- Start: 10:00 PM = 1,320 minutes.
- End: 6:30 AM = 390 minutes.
- Overnight Adjustment: (390 + 1,440) – 1,320 = 1,830 – 1,320 = 510 minutes = 8 hours 30 minutes (8.50 decimal hours).
Minutes to decimal hours conversion reference chart
Payroll systems, client billing software, and timesheets require duration to be entered as decimal hours rather than hours and minutes. Use this standard payroll conversion reference table:
| Minutes | Decimal Hour (Exact) | Payroll Quarter-Hour (Rounded) | Example (8 Hours + Mins) |
|---|---|---|---|
| 5 mins | 0.083 hrs | 0.00 hrs (under threshold) | 8.08 hrs |
| 10 mins | 0.167 hrs | 0.25 hrs (7-minute rule) | 8.17 hrs |
| 15 mins | 0.250 hrs | 0.25 hrs (Quarter Hour) | 8.25 hrs |
| 20 mins | 0.333 hrs | 0.25 hrs | 8.33 hrs |
| 30 mins | 0.500 hrs | 0.50 hrs (Half Hour) | 8.50 hrs |
| 45 mins | 0.750 hrs | 0.75 hrs (Three-Quarter Hour) | 8.75 hrs |
| 50 mins | 0.833 hrs | 0.75 hrs | 8.83 hrs |
| 55 mins | 0.917 hrs | 1.00 hrs (Full Hour) | 8.92 hrs |
| 60 mins | 1.000 hrs | 1.00 hrs | 9.00 hrs |
Related Time & Work Calculators
Explore our complete suite of free time, attendance, and business schedule calculators to streamline tracking, billing, and scheduling:
Work Hours Calculator →
Calculate actual paid working hours, deduct unpaid lunch breaks, and estimate gross earnings for single and split shifts.
Time Card Calculator →
Complete weekly timesheet calculator for employee hours, customizable overtime thresholds, and printable records.
Business Days Calculator →
Calculate working days between dates excluding custom weekends and holidays, or add business days to a deadline.
Add & Subtract Time Calculator →
Perform base-60 arithmetic on hours, minutes, and seconds across multiple time intervals with carrying and borrowing.
Date & Time Duration Calculator →
Compute exact elapsed calendar time (years, months, days, hours, minutes) between two timestamps.
Frequently Asked Questions
How do you calculate hours between two times?
To calculate hours between two times, convert both clock times to minutes past midnight. Subtract the start time minutes from the end time minutes. If the shift crosses midnight, add 24 hours (1,440 minutes). Divide the resulting total minutes by 60 to obtain decimal hours, with the remainder representing minutes.
How do I convert hours and minutes to decimal hours for payroll?
To convert minutes into decimal hours, divide the minute portion by 60. For example, 45 minutes divided by 60 equals 0.75. Therefore, 8 hours and 45 minutes equals 8.75 decimal hours.
How does the calculator handle overnight shifts?
If your end time has a smaller clock reading than your start time (for instance, 10:00 PM to 6:00 AM), the calculator automatically detects that the shift ends on the next calendar day and adds 24 hours (1,440 minutes) to produce the exact 8-hour span.
Sources and standards
- ISO 8601 (ISO): the international standard for writing dates, times and durations.
Last reviewed and tested: 19 November 2026.
