Hours calculator: time between two times


Enter a start time and an end time and the calculator returns the duration in hours and minutes, in decimal hours (7:30 = 7.5 hours) and in minutes. You can subtract a break. If the end time is earlier than the start, it counts past midnight, like a night shift. A second mode adds hours to a time.
- ✅ Free
- 🔒 No sign-up
- 📱 Works on mobile
- ⚡ Instant results
🔒 Everything runs in your browser. Your data and files never leave your device.
📌 Key facts
- Time between two clock times is the end time minus the start time; past midnight, add 24 hours.
- To convert to decimal hours, divide the minutes by 60: 7:30 is 7.5 hours and 8:45 is 8.75 hours.
- From 10 PM to 6 AM the duration is 8 hours because the calculation crosses midnight.
- Subtract breaks from the gross time: 9:15 AM to 5:45 PM with a 45 minute break is 7:45, or 7.75 hours.
- One hour has 60 minutes and 3,600 seconds.
How the duration is calculated
Each time is turned into minutes since midnight, then the start is subtracted from the end. If the end is earlier than or equal to the start, 24 hours are added: that is the midnight crossing.
\[ \text{duration} = (\text{end} - \text{start} ,\ + 24 \, \text{h} \ \text{if negative}) - \text{break} \]
Example: 10:00 PM to 6:00 AM gives 6:00 − 22:00 = −16 hours, which becomes 8 hours after adding 24.
Converting to decimal hours
Payroll and spreadsheets use decimal hours. Divide the minutes by 60.
\[ \text{decimal hours} = \text{hours} + \dfrac{\text{minutes}}{60} \]
| Time | Decimal |
|---|---|
| 0:15 | 0.25 |
| 0:30 | 0.5 |
| 7:45 | 7.75 |
| 7:50 | 7.83 |
| 8:20 | 8.33 |
Do not read 7:50 as 7.5 hours. Minutes run to 59, not 99.
Adding or subtracting hours from a time
The second mode returns the finishing time and says "next day" when it passes midnight. It works for travel time, cooking, a flight or the end of a shift.
| Start | Duration | Result |
|---|---|---|
| 9:00 AM | + 2 hr 30 min | 11:30 AM |
| 10:15 PM | + 3 hr 45 min | 2:00 AM (next day) |
| 1:00 AM | − 2 hr | 11:00 PM (previous day) |
Hours calculator: worked examples step by step
For any hours calculator job, use the same method. First, enter the start time. Then enter the end time. Next, subtract any break. Finally, read the result in hours and minutes and in decimal hours.
For example, you start at 9:15 AM and finish at 5:45 PM, with a 45 minute break. The gross time is 8 hours 30 minutes. After the break, 7 hours 45 minutes remain, or 7.75 hours. So you can enter 7.75 on an hourly invoice. Likewise, a shift from 10 PM to 6 AM lasts 8 hours, because the hours calculator crosses midnight on its own.
Hours calculator: minutes and decimal hours
Many people slip when they convert minutes. In fact, 7:30 does not equal 7.30 but 7.5. You must divide the minutes by 60. Here are the most useful conversions.
| Minutes | Decimal hours |
|---|---|
| 10 min | 0.17 |
| 15 min | 0.25 |
| 20 min | 0.33 |
| 30 min | 0.5 |
| 45 min | 0.75 |
If you bill in quarter hour blocks, round to a multiple of 0.25. However, never round a work time against yourself without a written agreement.
Hours calculator: where it helps
This math helps every day. For example, a freelancer tracks the time on a project to write an invoice. Then an employee checks a timesheet before payday. Also, a parent counts a drive or a game to plan the afternoon.
To add up several days, switch to the time card calculator. If you need days instead of hours, use the days between dates calculator. Finally, to time something live, open the online stopwatch.
Hours calculator: frequent mistakes
Three mistakes come up often. First, people forget that a night shift crosses midnight. If the end is before the start, add 24 hours. Second, they read 1.30 hours as 1:30, but 1.30 hours is 1:18. Third, they forget the break, which inflates the total.
For example, from 1:40 PM to 5:10 PM the duration is 3 hours 30 minutes. However, if you write 3.30 on an invoice, you lose 12 minutes. So always check the conversion before you send a document.
3 real-life examples
A 9:00 to 5:30 workday with a 30-minute break
From 09:00 to 17:30 is 8 hours 30 minutes. Minus the 30-minute break: 8 hr 00 min, or 8.0 decimal hours.
A night shift from 10 PM to 6:15 AM
The end is before the start, so the count crosses midnight: 8 hr 15 min (8.25 decimal hours). With a 45-minute break that leaves 7 hr 30 min.
A flight leaving at 10:15 PM that lasts 3 hr 45 min
10:15 PM + 3 hr \( 45 \, \text{min} = \) 2:00 AM the next day. The local arrival time then depends on the destination's time zone.