ToolNestr

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

Total time
Decimal hours

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

Standard shift: 09:00–17:30, 30 min break = 8h 0m (8.00 h)
Overnight: 22:00–06:00, 0 min break = 8h 0m (8.00 h)
With overtime: 08:00–18:15, 45 min break = 9h 30m (9.50 h)
Pay calculation: 8.00 h × $18.50/hr = $148.00 gross
Work Shift Timeline Diagram A horizontal timeline showing start time, work period, break, work period, and end time for a typical work shift Work Break Work 09:00 Start 30 min 17:30 Total: 8h 0m Start and end times define the shift; break time is subtracted for the final total
A typical work shift: start time, work periods, break, and end time combine to show total hours

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.

Standard full-time shift7.5–8 hours
Part-time shift4–6 hours
Freelance daily billable5–7 hours
Double shift12–16 hours
Overnight / graveyard8–12 hours (past midnight)
💼

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

1

Enter start & end

Use the time pickers for clock-in and clock-out times. Overnight shifts are handled automatically.

2

Add break time

Enter unpaid break duration in minutes. Set to 0 if no break is taken.

3

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.

All tool categories

Everyday (26 tools)
🌐 Networking & IP Tools (36 tools)
💪 Health & Fitness (30 tools)
💰 Finance (34 tools)
🔢 Math (23 tools)
📄 PDF Tools (10 tools)
🎨 Creators (12 tools)
💻 Developers (24 tools)
⚡ Engineering & Science (24 tools)
⚛️ Physics (48 tools)
🧪 Chemistry (50 tools)
🧬 Biology (50 tools)
🏠 Construction & Home Improvement (105 tools)
👗 Clothing & Garment Tools (68 tools)
🍳 Cooking & Baking (9 tools)
🚗 Automotive (26 tools)
🖼️ Image Tools (13 tools)
🔐 Security & Hash (15 tools)
📝 Text Tools (15 tools)
🔍 SEO Tools (11 tools)
🔄 Converters (69 tools)
🕐 Time & Date (15 tools)
📊 Chart Generators (11 tools)
🕌 Islamic Tools (16 tools)