ClockOutCalc

Hours Between Two Times

HoursBetween two times
Time between
Enter both times
Decimal
Minutes
Before break
Overnight
no
Subtracted from the total

Duration = end − start, plus 24 hours when the end is earlier than the start, minus the break. Decimal hours = minutes ÷ 60.

Enter a start time and an end time to get the exact duration in hours and minutes, decimal hours and total minutes. Add an unpaid break to subtract it. If the end time is earlier than the start, the calculator assumes the next day, so night shifts work too. You can also add or subtract a duration from a clock time.

Worked examples

9 to 5 with a 30-minute lunch
9:00 AM to 5:00 PM is 8 h 00 m on the clock; minus 30 minutes gives 7 h 30 m, or 7.5 decimal hours.
Overnight
11:00 PM to 7:30 AM is 8 h 30 m. Because 7:30 AM is earlier than 11:00 PM, the calculator counts across midnight.
Add time
2:45 PM plus 3 h 20 m is 6:05 PM. 8:00 AM minus 45 minutes is 7:15 AM.

How it is calculated

Duration = end − start, in minutes; if end is earlier than start, add 24 hours. Subtract the break. Decimal hours = minutes ÷ 60, rounded to two decimals. Adding a duration to a clock time wraps at midnight and reports the day change.

Questions people ask

How many hours is 9 to 5?
8 hours on the clock. With a 30-minute unpaid lunch it is 7.5 paid hours; with a one-hour lunch, 7 hours.
How many hours is 8:30 to 5:00?
8 hours 30 minutes, or 8.5 decimal hours, before any break.
How do I calculate hours worked overnight?
Enter the start and end times as usual. When the end is earlier than the start the calculator adds 24 hours, so 10:00 PM to 6:00 AM gives 8 hours.
What is 7 hours 45 minutes in decimal?
7.75 hours. Divide the minutes by 60: 45 ÷ 60 = 0.75.
How do I add up hours for a whole week?
Use the time card calculator. It has a row per day, subtracts breaks, and applies overtime rules.
Does it handle 24-hour (military) time?
Yes. Type 17:30 or 1730 and it is read as 5:30 PM. The military time converter has a full chart.

Embed this calculator

Paste this anywhere HTML is allowed. It is free; keep the credit link.

<iframe src="https://clockoutcalc.com/embed/hours" width="100%" height="640" loading="lazy" title="Hours Calculator"></iframe>
<p><a href="https://clockoutcalc.com/hours-calculator">Hours Calculator</a> by ClockOutCalc</p>