Skip to content
CalcTidy

Time calculator

Find the hours and minutes between two times, or add and subtract durations, with decimal hours for timesheets.

Updated

Calculate

Optional, for example an unpaid lunch.

Duration

8h 30m

8:45 AM to 5:15 PM

Decimal hours
8.5
Total minutes
510

How to use the time calculator

  1. Choose “Time between two times” or “Add or subtract time”.
  2. Enter a start and end time, and a break to subtract if you have one.
  3. Or enter two durations in hours, minutes and seconds and pick add or subtract.
  4. Read the result in hours and minutes, decimal hours and total minutes.

About this tool

Clock arithmetic is awkward because an hour has 60 minutes, not 100, and a shift can run past midnight. This calculator handles both: enter a start and an end time to get the duration, or add and subtract durations such as 2 h 45 min + 1 h 30 min.

Every result is also shown in decimal hours, the format most payroll and invoicing systems expect. For a full week of shifts with lunch breaks, overtime and pay, use the hours worked calculator.

Time between two times

Duration = End − Start (+ 24 h if the end is earlier) − Break

Decimal hours = hours + minutes ÷ 60. To add or subtract durations, convert both to seconds (1 hour = 3,600 seconds), do the sum, then convert back to hours, minutes and seconds.

Example

From 8:45 AM to 5:15 PM is 8 hours 30 minutes, or 8.5 decimal hours; with a 30-minute lunch it is 8 hours. A 10 PM to 6 AM night shift is 8 hours. Adding 2 h 45 min and 1 h 30 min gives 4 h 15 min.

Frequently asked questions

How do I calculate the time between two times?

Subtract the start from the end. If the minutes come out negative, borrow 60 minutes from the hours: 5:15 PM − 8:45 AM is 17:15 − 8:45 = 8 h 30 min. If the end is earlier than the start, the period crosses midnight, so add 24 hours.

How many hours is 9 AM to 5 PM?

Eight hours. If you take an unpaid 30-minute lunch, the time worked is 7 hours 30 minutes, or 7.5 decimal hours.

What is 8 hours 30 minutes in decimal hours?

8.5 hours. Divide the minutes by 60 and add them to the hours: 30 ÷ 60 = 0.5. Likewise 15 minutes is 0.25 and 45 minutes is 0.75.

How do I add hours and minutes?

Add the hours and the minutes separately, then carry every 60 minutes over as an hour. 2 h 45 min + 1 h 30 min = 3 h 75 min = 4 h 15 min.

Does it work for overnight shifts?

Yes. When the end time is earlier than the start time, the calculator assumes the shift ends the next day, so 10 PM to 6 AM is 8 hours.