Skip to content
Convert. Calculate.

Time Duration Calculator: How Long Between Two Times?

Start, finish, break.

Work out how much time passes between a start and an end time, subtracting a break and allowing for shifts that run past midnight.

Your details

Try an example

Result

Time worked

8 h 0 min

8.00 decimal hours after a 30 minute break

Hours:minutes
8:00
Decimal hours
8.00
Total minutes
480
The time between the two times
  • Time worked8 h 0 min(94%)
  • Break30 min(6%)
Image

Good to know: duration = end − start − break

The numbers behind this · totals, working, notes
Before the break
8 h 30 min
Seconds
28,800

How it was worked out

  1. From 9:00 AM to 5:30 PM is 8 h 30 min
  2. Subtract the 30 minute break: 8 h 0 min
  3. 480 minutes ÷ 60 = 8.0000 hours
  • If the end time is earlier than the start time, the calculator assumes it is the next day. Use the whole-days box when the span is longer than one night.

Over several days

The same length of time, repeated.

DaysTotal timeDecimal hours
18 h 0 min8.00
216 h 0 min16.00
324 h 0 min24.00
432 h 0 min32.00
540 h 0 min40.00
756 h 0 min56.00
1080 h 0 min80.00
20160 h 0 min160.00

The idea behind it

How the time duration calculator works

  • 01Overnight

    An earlier end means next day

    If the end time is before the start, the span crosses midnight. The calculator adds 24 hours to cover it.

  • 02Breaks

    Take the unpaid break off

    Subtract any break from the elapsed time to get the time worked. Enter it in minutes.

  • 03Decimal hours

    Minutes divided by 60

    Timesheets often want 7.75 rather than 7 h 45 min. Dividing the total minutes by 60 gives it.

Five durations, worked out

A break turns the gap on the clock into time actually worked, and the difference matters over a week. The decimal hours in the last column are what payroll systems usually ask for.

Five durations, worked out
ActivityStart and endBreakTime workedDecimal hours
Standard office day09:00 to 17:3030 min8 h 0 min8.00
Early start07:30 to 16:0045 min7 h 45 min7.75
Half day08:00 to 12:300 min4 h 30 min4.50
Long clinic day07:00 to 19:0060 min11 h 0 min11.00
A meeting10:15 to 11:500 min1 h 35 min1.58

Illustrative shifts. Break rules differ between employers and countries.

Enter two times and a break

  1. Enter the start time and the end time, such as 9:00 AM and 5:30 PM.
  2. Enter any break to subtract, and any whole days in between.
  3. Read the time worked in hours and minutes and in decimal hours.
  4. Use the table for several days.

09:00 to 17:30 with a break

9:00 AM to 5:30 PM with a 30-minute break is 8 hours exactly, which is 8.00 decimal hours or 480 minutes.

What is under the hood

Formula

duration = end − start − break

Forgetting to subtract the break

  • Forgetting to subtract an unpaid break.
  • Mixing 12-hour and 24-hour times.
  • Entering an overnight shift without checking that it ends the next day.
  • Rounding minutes to the wrong decimal (20 minutes is 0.33, not 0.20).

Duration questions

What if the end time is earlier than the start time?

The calculator assumes the end is the next day, which is how overnight shifts work. For longer spans, enter the whole days in between.

What if the end time is earlier than the start time?

The calculator assumes the end is the next day, which is how overnight shifts work. For longer spans, enter the whole days in between.

How do I convert the result to decimal hours?

Divide the minutes by 60. 7 hours 45 minutes is 7.75. The result shows the decimal form for you.

Can I add up a week of shifts?

The table multiplies the duration over several days. For different shift lengths, use the time calculator to add them.

Related tools

How we calculate this

We use the standard published formula or definition for this calculation, and we show the working so you can check it.

Spotted a mistake? Tell us and we'll check it. How we check our calculators