Hours Calculator
Calculate total hours between two times — perfect for timesheets and payroll
Hours Calculator
Calculate hours between two times
Enter start and end times
Hours = (End - Start) / 60What Is the Hours Calculator?
The hours calculator computes the duration between a start time and end time, giving you total hours and minutes worked. It's an essential tool for tracking work hours, calculating overtime, billing clients, measuring project durations, and scheduling. The tool handles overnight spans — for example, a shift from 10 PM to 6 AM — and supports both 12-hour (AM/PM) and 24-hour (military) time formats.
You can also add multiple time intervals together, which is useful for calculating total hours worked across multiple shifts or days in a week. The calculator converts between decimal hours (e.g., 8.5 hours) and hours:minutes format (8 hours 30 minutes) so your results are compatible with payroll systems and timekeeping software.
How to Use the Hours Calculator
- Enter the start time — for example, 9:00 AM.
- Enter the end time — for example, 5:30 PM.
- Optionally subtract break time — for example, 30 minutes for a lunch break.
- Click Calculate to see total hours worked, displayed in both hours:minutes and decimal format.
Hours Calculation Formula
Duration = End time − Start time
If end time < start time (overnight shift):
Duration = (24:00 − Start) + End
Subtract breaks:
Net hours = Total duration − Break time
Decimal hours:
Decimal = hours + (minutes / 60)
Example: 8h 30m = 8 + 30/60 = 8.5 hours
Weekly total:
Sum of daily hours across 5 daysFor payroll purposes, most employers use decimal hours (8.5 hr) rather than hours:minutes format. Overtime is typically calculated at 1.5× the regular pay rate for any hours over 8 per day or 40 per week, depending on local labor law.
Example Calculations
Standard Workday with Lunch Break
Start: 9:00 AM — End: 5:30 PM — Lunch break: 30 minutes. Total duration = 8 hours 30 minutes. Subtract 30-minute break = 8 hours worked (8.0 decimal hours).
Overnight Shift
Start: 11:00 PM — End: 7:00 AM. Because the end time is before the start time, the calculator wraps past midnight: (24:00 − 23:00) + 7:00 = 1 + 7 = 8 hours worked.
Weekly Timesheet Total
Monday through Friday, each shift is 8 hours. Weekly total = 8 + 8 + 8 + 8 + 8 = 40 hours. Any hours above 40 in the week are overtime and typically paid at 1.5× the regular rate.