calculate hours

Hours Calculator

Calculate total time worked between start and end, subtract breaks, apply rounding, and estimate pay.

How to calculate hours correctly

When people say “calculate hours,” they usually mean one of three things: total work hours in a shift, billable project time, or study/practice time. The basic method is always the same: subtract start time from end time, then subtract unpaid breaks. If your end time is after midnight, you add 24 hours before subtracting.

Simple formula

  • Total minutes = end time (in minutes) − start time (in minutes)
  • If total minutes is negative, add 1440 (24 × 60)
  • Worked minutes = total minutes − break minutes
  • Decimal hours = worked minutes ÷ 60

Why decimal hours matter

Payroll systems and invoicing platforms often use decimal hours instead of hours-and-minutes format. For example, 7 hours 30 minutes becomes 7.50 hours. This makes pay calculations straightforward:

Pay = decimal hours × hourly rate

Quick conversion examples

Hours : Minutes Decimal Hours
0:150.25
0:300.50
0:450.75
1:201.33
2:102.17
7:307.50
8:458.75

Handling overnight shifts

Overnight work is where many manual calculations fail. Example: start at 10:00 PM and end at 6:00 AM. If you subtract directly, it looks negative. The fix is simple: treat the end as next-day time by adding 24 hours before subtraction.

  • Start: 22:00 (1320 minutes)
  • End: 06:00 (360 minutes)
  • Adjusted total: (360 + 1440) − 1320 = 480 minutes
  • If break is 30 min, worked = 450 min = 7.50 hours

Rounding rules and compliance

Many companies round to 5, 10, or 15 minutes for easier payroll. A common standard is quarter-hour rounding (15 minutes). If you use rounding, be consistent and apply it fairly both up and down. Always check local labor rules to ensure your process is compliant.

Best practice checklist

  • Record start/end times immediately (don’t rely on memory).
  • Track unpaid breaks separately from paid breaks.
  • Use one rounding standard across all staff.
  • Keep both raw and rounded time for audit purposes.
  • Review weekly totals for obvious errors.

Common mistakes to avoid

  • Forgetting breaks: This inflates total worked hours.
  • Wrong decimal conversion: 20 minutes is 0.33 hours, not 0.20.
  • Not handling midnight: Leads to negative or impossible totals.
  • Mixing time formats: Keep everything in 24-hour or 12-hour format consistently.

Who can use this hours calculator?

This calculator is useful for employees, freelancers, managers, consultants, students, and anyone logging time. It works for single-shift calculations and can be used repeatedly to total a day or week.

Final takeaway

Accurate time tracking is a small habit with big benefits: cleaner payroll, better invoices, and clearer productivity insights. Use the calculator above to quickly compute hours, minutes, decimal time, and estimated earnings in seconds.

🔗 Related Calculators