Time Duration Calculator

Find the hours and minutes between two times, subtract a break and get decimal hours. Handles overnight shifts.

Time settings

If the end time is earlier than the start time, the calculator treats it as the next day.

Shift length0.000h 00m
Break0minutes taken off
Paid time per day0.000h 00m
Total paid time0.000h 00m
Estimated gross pay$0.00Enter an hourly rate (optional)

Time breakdown

ItemHours and minutesDecimal hours

How to use the time duration calculator

This tool finds the hours and minutes between two times. It is handy for a single shift, a task or a billing entry.

  1. Enter the start time and the end time.
  2. Add an unpaid break in minutes, if there was one.
  3. Set the number of days if you worked the same shift more than once.
  4. Add an hourly rate if you want an estimated gross pay.

Press Load example to try a 9:00 AM to 5:30 PM shift with a 30-minute break.

How the time between two times is calculated

Paid time = (End time − Start time) − Unpaid break

Example. From 9:00 AM to 5:30 PM is 8 hours 30 minutes. A 30-minute unpaid break leaves 8 hours 0 minutes, or 8.00 decimal hours. Over 5 days, total paid time is 40 hours.

Times that cross midnight

When the end time is earlier than the start time, the calculator adds 24 hours. That treats the end time as the next morning.

StartEndShift length
10:00 PM6:30 AM8h 30m
11:15 PM7:00 AM7h 45m
6:00 PM2:00 AM8h 00m
Identical times. If the start and end times match exactly, the tool reads a full 24-hour shift. If that is a typing slip, correct one of the times.

Decimal hours

Many payroll and invoicing systems want decimal hours. The tool shows both formats side by side.

Hours and minutesDecimal hours
8h 30m8.50
7h 45m7.75
6h 20m6.33
9h 10m9.17
7h 50m7.83

To convert by hand, divide the minutes by 60. See the full chart in how to convert minutes to decimal hours.

Time duration calculator FAQ

How do I calculate the hours between two times?

Subtract the start time from the end time. If the end is earlier than the start, add 24 hours first. Then subtract any unpaid break.

Does it work for overnight shifts?

Yes. A shift from 10:00 PM to 6:30 AM counts as 8 hours 30 minutes before any break.

How do I convert the result to decimal hours?

The calculator shows decimal hours automatically. By hand, divide the minutes by 60 and add the whole hours.

Can I add several days?

Yes. Enter the number of days and the tool multiplies paid time per day by that number.

Is my data saved or sent anywhere?

No. The calculation runs in your browser, and nothing you type is sent to a server or saved.

Next step. Total a full week with the payroll hours calculator, see all tools or read how to calculate hours worked.