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. Enter both times and any break in minutes, and the calculator returns the duration, in hours and minutes and in decimal hours for timesheets. The table calculates five typical durations.
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
- Time worked8 h 0 min(94%)
- Break30 min(6%)
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
- From 9:00 AM to 5:30 PM is 8 h 30 min
- Subtract the 30 minute break: 8 h 0 min
- 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.
| Days | Total time | Decimal hours |
|---|---|---|
| 1 | 8 h 0 min | 8.00 |
| 2 | 16 h 0 min | 16.00 |
| 3 | 24 h 0 min | 24.00 |
| 4 | 32 h 0 min | 32.00 |
| 5 | 40 h 0 min | 40.00 |
| 7 | 56 h 0 min | 56.00 |
| 10 | 80 h 0 min | 80.00 |
| 20 | 160 h 0 min | 160.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.
| Activity | Start and end | Break | Time worked | Decimal hours |
|---|---|---|---|---|
| Standard office day | 09:00 to 17:30 | 30 min | 8 h 0 min | 8.00 |
| Early start | 07:30 to 16:00 | 45 min | 7 h 45 min | 7.75 |
| Half day | 08:00 to 12:30 | 0 min | 4 h 30 min | 4.50 |
| Long clinic day | 07:00 to 19:00 | 60 min | 11 h 0 min | 11.00 |
| A meeting | 10:15 to 11:50 | 0 min | 1 h 35 min | 1.58 |
Illustrative shifts. Break rules differ between employers and countries.
Enter two times and a break
- Enter the start time and the end time, such as 9:00 AM and 5:30 PM.
- Enter any break to subtract, and any whole days in between.
- Read the time worked in hours and minutes and in decimal hours.
- 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
- Time to Decimal CalculatorConvert hours and minutes to decimal hours and back, with a table of minutes as decimals, for timesheets and billing.
- Time CalculatorAdd or subtract hours, minutes and seconds.
- Work Hours CalculatorCalculate hours worked between two times, with breaks and pay.
- Pomodoro and Deadline CalculatorPlan work in Pomodoro sessions with breaks and a finish time, or find the hours a day you need to hit a deadline.
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