How Many Hours and Minutes Between Two Times
Calculate the exact time difference between two times in hours, minutes, and seconds. Supports overnight shifts, decimal hours for payroll, and multi-day spans.
How to Calculate Elapsed Time & Decimal Hours (Formulas & Tables)
Calculating the exact time difference between two timestamps is fundamental for employee timesheets, contractor billing, travel durations, and fitness logs. Our Time Difference Calculator automatically handles both same-day spans and overnight shifts crossing midnight.
How Overnight Shifts (Crossing Midnight) are Calculated
When a shift begins in the evening (e.g. 10:00 PM / 22:00) and ends the next morning (e.g. 6:30 AM / 06:30), subtracting directly yields a negative value. The standard mathematical correction adds 24 hours (1,440 minutes) to the end timestamp:
For 22:00 to 06:30: (6.5 Γ 60 + 1440) β (22 Γ 60) = (390 + 1440) β 1320 = 1830 β 1320 = 510 minutes = 8 hours and 30 minutes.
Quick Decimal Hours Conversion Reference (For Payroll & Timesheets)
Payroll systems multiply hourly wage by decimal hours rather than hours and minutes. Below is the standard conversion reference:
| Minutes | Fraction of Hour | Decimal Hours | Example: 8 Hours + Minutes |
|---|---|---|---|
| 15 Minutes | 15 / 60 | 0.25 hrs | 8.25 hrs |
| 30 Minutes | 30 / 60 | 0.50 hrs | 8.50 hrs |
| 45 Minutes | 45 / 60 | 0.75 hrs | 8.75 hrs |
| 60 Minutes | 60 / 60 | 1.00 hrs | 9.00 hrs |
Need to calculate multi-day spans? Switch to our flagship Date Difference Calculator or count business days with the Business Days Calculator.