Hours Calculator
Enter a start and end time (and any break) to see the total hours and minutes worked — also shown as decimal hours.
Reviewed by the ToolNestr Editorial Team — July 2026
How hours calculation works
The hours calculator converts start and end times into total minutes since midnight, subtracts break time, then formats the result. First, both times are converted: totalMinutes = hours × 60 + minutes. The difference is computed as endMinutes - startMinutes. If the result is negative (overnight shift), 24 hours (1,440 minutes) are added.
For decimal hours (used by payroll systems), the total minutes are divided by 60: decimalHours = totalMinutes ÷ 60. This expresses 8 hours 30 minutes as 8.50 hours. To calculate gross pay, multiply decimal hours by your hourly rate: 8.50 × $25 = $212.50.
Worked examples
Why tracking hours matters
Whether you are an employee filling in a timesheet, a freelancer billing by the hour, or a manager approving payroll, accurate hour tracking is essential. A few minutes of error per day adds up to hours per month — and real money. This calculator makes it easy to get precise totals including break deductions and overnight shifts.
Employees
Fill in timesheets accurately. Track clock-in and clock-out times including unpaid breaks. Know your exact hours before payday.
Freelancers
Track billable hours per client. The decimal-hours display matches what invoicing platforms expect — no manual conversion needed.
Managers
Verify team timesheets, approve payroll hours, and check for overtime. Quickly spot discrepancies between reported and expected hours.
HR & Payroll
Process timesheets efficiently. Decimal hours (e.g. 37.50) integrate directly with most payroll software without reformatting.
How to use the hours calculator
Enter start & end
Use the time pickers for clock-in and clock-out times. Overnight shifts are handled automatically.
Add break time
Enter unpaid break duration in minutes. Set to 0 if no break is taken.
See both formats
View total in hh:mm format plus decimal hours for payroll integration.
Smart time tracking tips
Track in real time
Log your hours daily rather than estimating at the end of the week. Small rounding errors compound — 5 minutes a day is over 20 hours a year.
Know your break policy
Most jurisdictions require unpaid breaks for shifts over 5–6 hours. Check your local labor laws and subtract accordingly for accurate timesheets.
Convert to pay easily
Multiply decimal hours by your hourly rate to get gross pay before tax. Example: 8.5 hours x $25/hour = $212.50 for the day.
When to use the hours calculator
The hours calculator is essential for anyone who needs to track work time accurately, whether as an employee filling out a weekly timesheet, a freelancer billing clients by the hour, or a manager approving payroll. Employees use it to verify their clock-in and clock-out times match their pay stubs, ensuring they are paid for every minute worked. Freelancers and contractors rely on it to produce accurate invoices that reflect their exact billable hours, including break deductions. The decimal hours output is particularly valuable because it matches the format used by most payroll and invoicing platforms, eliminating manual conversion errors.
Another important use case is calculating overtime and shift differentials. A worker who clocks in at 8:00 AM and leaves at 6:15 PM with a 45-minute unpaid break has worked 9 hours and 30 minutes. If their standard day is 8 hours, the overtime is 1 hour and 30 minutes. The calculator handles overnight shifts automatically, making it ideal for night-shift workers in healthcare, manufacturing, hospitality, and security. HR professionals use it to audit timesheets, ensuring break policies are followed and overtime is calculated correctly according to labor regulations.
Limitations and considerations
While the hours calculator is accurate for straightforward time tracking, there are important limitations to keep in mind. It does not support split shifts, where an employee works two separate blocks in a single day (for example, 6 AM to 10 AM and then 4 PM to 8 PM). For such schedules, you must calculate each segment separately and add the results together manually. The tool also does not handle rounding policies that some companies use, such as rounding to the nearest quarter-hour. If your employer rounds clock-in times to the nearest 15 minutes as a standard practice, you need to apply that rounding yourself before entering the times.
Another consideration is that the calculator treats all minutes equally regardless of when the break occurs. Labor laws in some jurisdictions require breaks at specific intervals, such as a 30-minute break after 5 consecutive hours of work. The calculator does not validate compliance with these regulations; it simply subtracts the total break minutes you enter. For accurate record-keeping, especially in contexts subject to audit or legal review, you should maintain a separate log of actual break times rather than entering an estimated daily average. Finally, the tool assumes a single continuous work period for each calculation, so multiple disjoint sessions must be computed separately.
Frequently asked questions
Does it handle overnight shifts?
Yes. If the end time is earlier than the start time, it assumes the shift runs past midnight and adds 24 hours.
What are decimal hours?
Decimal hours express minutes as a fraction of an hour (e.g. 8 hours 30 minutes = 8.5 hours), which is how many payroll systems calculate pay.
Can I subtract a break?
Yes — enter your break in minutes and it is removed from the total.
What if I work a split shift?
Calculate each segment separately using the same tool and add the results. For example, a morning shift of 4 hours and an evening shift of 3 hours.
How do decimal hours compare to hh:mm?
Decimal hours express minutes as a fraction of an hour. For example, 8 hours 30 minutes = 8.5 hours. This format is what most payroll systems use for calculating pay.
Can I calculate pay from hours worked?
Not directly — but once you have the decimal hours, multiply by your hourly rate to get gross pay. For example, 8.5 hours x $20/hour = $170.
What is the standard work day duration?
Most full-time employees work 7.5–8 hours per day (excluding lunch break). Part-time schedules vary widely from 3–6 hours daily.
How do I calculate overtime?
Calculate total hours worked, then subtract the standard hours for your role (typically 8 hours/day or 40 hours/week). The remainder is overtime.