⏰

Time Duration Calculator

The exact time between a start and an end — hours, minutes and decimal hours. Handles overnight shifts and multi-day gaps automatically.

Start & end

Leave the dates blank to measure within a single day. If the end time is earlier than the start (e.g. a night shift from 22:00 to 06:00), it's counted as crossing midnight into the next day.

Duration

8h 00m
total duration · same day
🕐 Hours : minutes8:00
🔢 Decimal hours8.00 h
⏱️ Total minutes480 min
📆 Days · hours · min0d 8h 0m

Time conversion reference

DurationIn minutesIn decimal hours
15 minutes15 min0.25 h
30 minutes30 min0.50 h
45 minutes45 min0.75 h
1 hour60 min1.00 h
8 hours (workday)480 min8.00 h
1 day1,440 min24.00 h

Decimal hours are handy for timesheets and pay: multiply decimal hours by your hourly rate to get gross pay.

← All calculators

How to calculate the duration between two times

To find how long something lasted, subtract the start time from the end time. The tricky parts are minutes (which are base-60, not base-100) and periods that cross midnight. This calculator handles both — enter a start and end and it returns the gap in hours and minutes, plus the decimal-hour and total-minute forms you need for pay and logs.

Working across midnight

If your end time is earlier in the day than your start time and you haven't entered dates, the calculator assumes you crossed midnight and adds a day. So 22:00 to 06:00 correctly returns 8 hours, not a negative number. For gaps longer than a day, add the start and end dates and it counts the full days, hours and minutes between them.

Decimal hours vs hours and minutes

Payroll and timesheets usually use decimal hours: 30 minutes is 0.5 h, 15 minutes is 0.25 h, 45 minutes is 0.75 h. To convert minutes to decimal hours, divide by 60. This calculator shows both formats so you can copy whichever your system needs.

Hours between common times

Durations for typical shifts and working days, before any unpaid break is taken off. Shifts that end the next morning are counted across midnight.

Start – endDurationMinutesDecimal hours
06:00 – 14:00 Early shift8 h480 min8.00 h
07:00 – 15:308 h 30 min510 min8.50 h
07:00 – 19:00 12-hour day shift12 h720 min12.00 h
07:30 – 16:008 h 30 min510 min8.50 h
08:00 – 16:008 h480 min8.00 h
08:00 – 17:009 h540 min9.00 h
08:30 – 17:008 h 30 min510 min8.50 h
08:30 – 17:309 h540 min9.00 h
09:00 – 17:00 Classic 9 to 58 h480 min8.00 h
09:00 – 17:308 h 30 min510 min8.50 h
09:00 – 18:009 h540 min9.00 h
10:00 – 18:008 h480 min8.00 h
12:00 – 20:008 h480 min8.00 h
14:00 – 22:00 Late shift8 h480 min8.00 h
15:00 – 23:008 h480 min8.00 h
19:00 – 07:00 12-hour night shift12 h720 min12.00 h
22:00 – 06:00 Night shift8 h480 min8.00 h
23:00 – 07:00 Night shift8 h480 min8.00 h

Hours to minutes

Multiply hours by 60, then add any leftover minutes: 2 h 30 min is 2 × 60 + 30 = 150 minutes.

DurationMinutes
30 min30 min
1 h60 min
1 h 30 min90 min
2 h120 min
2 h 30 min150 min
3 h180 min
3 h 30 min210 min
4 h240 min
4 h 30 min270 min
5 h300 min
5 h 30 min330 min
6 h360 min
DurationMinutes
6 h 30 min390 min
7 h420 min
7 h 30 min450 min
8 h480 min
8 h 30 min510 min
9 h540 min
9 h 30 min570 min
10 h600 min
10 h 30 min630 min
11 h660 min
11 h 30 min690 min
12 h720 min

Common examples

How many hours is 8:30 to 5?

8:30 am to 5:00 pm is 8 hours 30 minutes — 510 minutes, or 8.50 decimal hours. Take off a 30-minute unpaid lunch and it's 8 hours of paid time.

How many hours is a 7 to 7 shift?

12 hours — 720 minutes — whether it's 7 am to 7 pm or an overnight 7 pm to 7 am shift. The calculator handles the overnight version automatically.

How do I convert hours and minutes to minutes?

Multiply the hours by 60 and add the minutes. 3 hours 45 minutes is 3 × 60 + 45 = 225 minutes. The table above covers every half hour up to 12 hours.

How do I calculate the number of hours between two times?

Subtract the start time from the end time. For 9:00 to 17:00 that's 8 hours. When minutes are involved, convert both times to total minutes, subtract, then divide by 60 for hours. Enter the two times above and the calculator does it instantly, including the decimal-hour form.

How many hours is 9 to 5?

9:00 to 17:00 is exactly 8 hours, or 480 minutes, or 8.00 decimal hours. That's the classic full-time workday before any unpaid break is deducted.

How do I calculate hours across midnight?

When the end time is earlier than the start (like a 22:00–06:00 night shift), add 24 hours to the end before subtracting — that gives 8 hours. This calculator does it automatically when you leave the dates blank, so overnight shifts come out correctly.

What is 8 hours in minutes?

8 hours is 480 minutes (8 × 60). In decimal-hour form it's simply 8.00. You can check any duration in the conversion reference table above.

How do I turn minutes into decimal hours for a timesheet?

Divide the minutes by 60. So 15 minutes = 0.25, 30 = 0.50, 45 = 0.75. The calculator shows decimal hours next to the hours-and-minutes result — multiply that figure by your hourly rate to get pay. For a full timesheet, try the work hours calculator.

🧩 Add this calculator to your website

The Time Duration Calculator is free to embed on any site, blog or intranet — no sign-up, no API key, no limits. Paste the code below and the live, fully working calculator appears on your page.

Adjust height if the calculator is taller or shorter than your layout. The credit line underneath is the only thing we ask in return — please keep it visible so your readers can find the full version.