Skip to content
AllToolsCalculator
Tax & Date

Free Time Calculator Online

Find the hours and minutes between two clock times, including overnight shifts, or add and subtract durations. Decimal hours make it easy to fill in timesheets.

min

If the end time is earlier than the start, it's treated as the next day (an overnight shift). 12 AM is midnight and 12 PM is noon.

Time worked

8h 00m

Decimal hours
8.00
Total minutes
480
Break deducted
30 minutes

Time between two times

Duration = end − start (+ 24 h if end is earlier than start) − break
Decimal hours = hours + minutes ÷ 60

If the end time is earlier than the start time, the calculator assumes the shift ends the next day. For example, 10:00 PM to 6:00 AM is 8 hours. Equal start and end times give zero.

Decimal hours are what most payroll systems use: 7 hours 45 minutes is 7.75 hours, because 45 ÷ 60 = 0.75.

How to work out hours by hand

Take a shift from 8:45 AM to 5:15 PM with a 30-minute unpaid lunch:

  1. Convert both times to the 24-hour clock: 8:45 and 17:15.
  2. Subtract: 17:15 − 8:45. Borrow an hour because 15 minutes is less than 45, giving 16:75 − 8:45 = 8 h 30 min.
  3. Take off the break: 8 h 30 min − 30 min = 8 h 0 min.
  4. Convert to decimal: 8 + 0 ÷ 60 = 8.00 hours.

For an overnight shift, add 24 hours to the end time first. 10:00 PM to 6:30 AM becomes 22:00 to 30:30, which is 8 h 30 min; with a 30-minute break that's 8.00 hours.

Example weekly time card

DayStartEndBreakHours workedDecimal
Mon8:30 AM5:00 PM30 min8 h 0 min8.00
Tue8:45 AM5:15 PM30 min8 h 0 min8.00
Wed9:00 AM6:00 PM45 min8 h 15 min8.25
Thu7:50 AM4:20 PM30 min8 h 0 min8.00
Fri8:00 AM12:30 PMNone4 h 30 min4.50
Total36 h 45 min36.75

Add up the minutes first, then convert the total to decimal. Adding rounded daily decimals can drift by a few hundredths over a week.

Minutes to decimal hours

Rounded to two decimal places, as the calculator shows them.
MinutesDecimalMinutesDecimal
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

A common timesheet mistake is writing 8 h 30 min as 8.30. That's 8 hours and 18 minutes; the correct decimal is 8.50.

Adding and subtracting durations

Total seconds = hours × 3,600 + minutes × 60 + seconds

Both durations are turned into seconds, added or subtracted, then turned back into hours, minutes and seconds. Minutes and seconds above 59 carry over, so 90 minutes becomes 1:30:00.

For example, 1:45:30 + 2:30:45 = 4:16:15, and 3:10:00 − 1:25:30 = 1:44:30. This is handy for adding up lap times, video clips or time spent on a project.

Frequently asked questions

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes = 0.25 h, 30 minutes = 0.5 h, 45 minutes = 0.75 h, and 20 minutes ≈ 0.33 h.

How does it handle overnight shifts?

When the end time is earlier than the start time, it's treated as the next day. 11:00 PM to 7:30 AM is 8 hours 30 minutes.

Is 12 AM midnight or noon?

12 AM is midnight (the start of the day) and 12 PM is noon.

What happens if I subtract a longer duration?

The result is shown as a negative duration, for example −0:15:00, so you can see how far short the first duration is.

How many hours is 9 AM to 5 PM?

8 hours. With a one-hour unpaid lunch it's 7 hours, or 7.00 in decimal.

How do I convert decimal hours back to minutes?

Multiply the decimal part by 60. 7.4 hours is 7 hours plus 0.4 × 60 = 24 minutes, so 7 h 24 min.

Results are estimates for informational purposes and are not financial, medical or professional advice. See our methodology and disclaimer.