Hours and Time Calculator

Count the hours and minutes between two times, take off breaks, handle night shifts past midnight, and get decimal hours for timesheets.

Your numbers are saved in this browser.
minutes
days

Time each day

8 h 0 min

In decimal hours
8 hours
Over 5 days
40 h 0 min

From 09:00 to 17:30 with a 30-minute break is 8 h 0 min (8 hours). Over 5 days that's 40 h 0 min.

How it's worked out

  1. From start to end09:00 to 17:308 h 30 min
  2. Minus the break510 − 30 minutes8 h 0 min
  3. As decimal hours (for timesheets)480 ÷ 608

How it works

Hours worked = end time − start time − break · Decimal hours = minutes ÷ 60

Worked example

9:00 to 17:30 is 8 hours 30 minutes; minus a 30-minute break it's 8 hours. Five days like that make 40 hours.

Questions people ask

How do I calculate hours worked?

Subtract the start time from the end time, then take off unpaid breaks. 9:00 to 17:30 with a 30-minute break is 8 hours.

What if the shift goes past midnight?

Enter the times as they are; when the end time is earlier than the start, the calculator counts it as the next day. 22:00 to 06:15 is 8 hours 15 minutes.

What are decimal hours?

Hours written as a decimal for payroll: 8 hours 15 minutes is 8.25 hours, because 15 minutes is a quarter of an hour.

About this calculator

Formula and rules last checked 25 October 2026Written and tested by the CalcPenguin teamReport a problem