Calculate your work hours between two times, accounting for unpaid breaks.
Hours Worked
8:00 H:MM
8.00 hours (decimal)
Total elapsed time510 minutes
Break deducted30 minutes
Time worked480 minutes
The calculator handles overnight shifts automatically. Enter times in 24-hour format (e.g., 09:00, 17:30). The break is deducted from your total duration.
Share
What is the Hours Calculator?
An hours calculator is a time-duration tool that determines the exact hours and minutes elapsed between a start time and end time, with optional break deduction. It converts elapsed time into both H:MM format and decimal hours (useful for payroll and timesheets), and works seamlessly across midnight for overnight shifts.
How it works
The calculator takes your start time and end time, computes the minutes between them, subtracts any unpaid break minutes you specify, and displays the result in both human-readable format (hours and minutes) and decimal form (for calculations). If your end time is earlier than your start time, the tool automatically assumes you worked past midnight and adds 24 hours to the calculation.
Hours Worked = (End Time − Start Time − Break Minutes) ÷ 60
The total elapsed time between start and end (in minutes) is calculated first. The unpaid break duration is subtracted from this total. The remaining minutes are divided by 60 to convert to decimal hours, or displayed as hours and remaining minutes (H:MM format).
Examples
Input
Result
Notes
Start: 09:00, End: 17:30, Break: 30 minutes
8:00 (8.00 hours)
Standard 8.5-hour day minus 30-minute lunch = 8 hours worked.
Overnight shift: 22:00 to 06:00 is 8 hours; minus 45-minute break = 7 hours 15 minutes.
Start: 08:00, End: 16:30, Break: 0 minutes
8:30 (8.50 hours)
No break taken; full 8.5 hours counted as worked.
How to use the Hours Calculator
Enter your start time using the time picker (24-hour format: 00:00 to 23:59).
Enter your end time. If it's earlier than your start time, the tool assumes an overnight shift.
Enter the total unpaid break duration in minutes (lunch, rest breaks, etc.).
View your total hours worked in both H:MM and decimal formats.
Check the stats below to see total elapsed time, break deducted, and minutes worked.
Use the decimal hours for timesheets, payroll calculations, or hourly rate math.
Benefits
Instant calculation—no manual arithmetic or phone calculator needed.
Handles overnight shifts automatically without manual 24-hour adjustment.
Displays hours in two formats: H:MM (easy to read) and decimal (for payroll maths).
Accounts for unpaid breaks, so you see only actual work time.
Shows total minutes for precision when time sheets require it.
Works for any shift length, from short 2-hour slots to 16+ hour days.
Tips & common mistakes
Common mistakes
Forgetting to include all breaks—lunch, coffee breaks, and personal time should all be counted in the break field.
Entering times in 12-hour format instead of 24-hour—use 13:00 for 1 PM, not 13 PM.
Assuming the calculator only works for 9-to-5 jobs; it handles any start/end times and overnight shifts.
Not accounting for unpaid breaks; the break field only deducts what you specify, so include all non-work time.
Tips
For split shifts (e.g. 09:00–12:00 and 14:00–18:00), add the two durations manually or run the calculator twice.
If your break varies daily, keep this tool bookmarked and update the break field each day.
Round breaks to the nearest 5 minutes for easier time sheet entry (e.g. 32 minutes ≈ 30).
Use the decimal hours directly in spreadsheets to calculate pay: Hours × Hourly Rate = Daily Pay.
Frequently asked questions
Why does the calculator show hours in both H:MM and decimal?
H:MM (8:45) is easier to read and matches how we speak about time. Decimal (8.75) is needed for payroll systems and quick maths. Both are standard; choose whichever suits your timesheet system.
Does this work for overnight shifts?
Yes. If your end time is earlier than your start time (e.g. 22:00 to 06:00), the tool automatically assumes you worked past midnight and calculates the correct duration.
What if I have multiple breaks throughout the day?
Add all your unpaid breaks together and enter the total in the break field. For example, if you take two 15-minute breaks and a 30-minute lunch, enter 60 minutes total.
How do I calculate hourly pay from these results?
Multiply the decimal hours by your hourly rate. For example, 8.75 hours at £15/hour = £131.25. Many timesheet systems accept decimal hours directly.
Does the calculator store my times or data?
No. This tool runs entirely in your browser. Your times are never sent to a server, stored, or logged.
Can I use this for billing or project time tracking?
Yes. Enter your project start and end times, deduct any off-task breaks, and you'll see billable hours. Works for consulting, freelance, or internal project tracking.