Hours Calculator (Time Duration)

Hours and minutes between two times, including overnight shifts.

Does the time span more than one day?
min

Common shifts

Time between

8 hours 30 minutes

From 9:00 AM to 5:30 PM is 8 hours 30 minutes (8.50 hours).

Decimal hours
8.50 hours
Hours and minutes (h:mm)
8:30
In minutes
510 minutes

Fix the highlighted field to update the result.

How to use

  1. Enter the start time and end time.
  2. Optional: add an unpaid break in minutes.
  3. For a span longer than a day, choose Yes, add dates and pick both dates.
  4. Read the result in hours and minutes, decimal hours and total minutes.

How hours are calculated

  • Same day: end time − start time.
  • Overnight: if the end is earlier than the start, it falls on the next day, so 24 hours are added.
  • With dates: the whole days between the dates × 24 hours, plus the clock difference.
  • Break: subtracted from the total.
  • Decimal hours: minutes ÷ 60.

Examples

  • 9:00 to 17:30: 8 hours 30 minutes = 8.50 hours (510 minutes).
  • 22:00 to 06:00: overnight, so 06:00 + 24:00 − 22:00 = 8 hours.
  • 8:30 to 17:30 with a 60-minute lunch: 9 hours − 1 hour = 8 hours.
  • 20:00 on 21 October to 06:00 on 23 October: 34 hours.

Minutes to decimal hours

Minutes Decimal hours
5 0.08
6 0.10
10 0.17
15 0.25
20 0.33
30 0.50
40 0.67
45 0.75
50 0.83

Decimals are rounded to 2 places. For example, 10 minutes is exactly 0.1666… hours.

Daylight saving nights and 24-hour shifts

The calculator works with clock times, not time zones. On the night clocks go forward, a shift really lasts one hour less than the clock difference. When they go back, it lasts one hour more.

If the start and end times are the same, the result is 0. For a 24-hour shift, add dates and set the end date to the next day.

Need a weekly total? The time card calculator adds up a whole week, with overtime and pay.

Frequently asked questions

How do I calculate the hours between two times?

Subtract the start time from the end time. From 9:00 to 17:30 is 8 hours 30 minutes, or 8.5 hours in decimal.

How do I count a shift that ends after midnight?

Add 24 hours to the end time before subtracting. From 22:00 to 06:00 is 8 hours. The calculator does this automatically when the end is earlier than the start.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes is 0.25 hours, 30 minutes is 0.5 and 45 minutes is 0.75, so 7 hours 15 minutes is 7.25 hours.

Can I subtract a lunch break?

Yes. Enter the unpaid break in minutes. From 8:30 to 17:30 with a 60-minute lunch is 8 hours of work.

How many hours is 9 to 5?

Eight hours. With a 30-minute unpaid lunch, it is 7.5 hours of work.

Embed this calculator

Add this calculator to your own website for free. Copy the code below and paste it into your page’s HTML. The attribution link is optional.