Time Duration Calculator — Hours Between Two Times
You clocked in at 8:30 AM and clocked out at 5:15 PM with a 45-minute lunch break. How many hours did you actually work? The mental maths takes longer than it should and the margin for error is real — especially when the minutes do not divide neatly.
This free tool gives you the exact answer instantly. Enter your start and end time, deduct any break, and get the duration in hours and minutes, decimal hours, total minutes and total seconds — all at once.
How to Calculate Hours Between Two Times

The formula is straightforward when both times are on the same day:
Duration = End time − Start time − Break time
For example, start at 9:00 AM, end at 5:30 PM with a 30-minute break:
- End time in minutes: 17 × 60 + 30 = 1,050
- Start time in minutes: 9 × 60 + 0 = 540
- Raw duration: 1,050 − 540 = 510 minutes
- Minus 30-minute break: 510 − 30 = 480 minutes
- Result: 8 hours 0 minutes = 8.00 decimal hours
For overnight shifts the calculation adds 24 hours to the end time before subtracting. If your end time is earlier than your start time — for example 10:00 PM to 6:00 AM — the time duration calculator detects this automatically and shows an orange warning confirming the overnight calculation was applied.
Time Duration vs Date Difference — What Is the Difference?
A time duration calculator measures the gap between two times on the same day or across midnight — hours, minutes and seconds.
A date difference calculator measures the gap between two calendar dates — days, weeks, months and years.
Use the time duration calculator when you need hours and minutes between two clock times. Use the date difference calculator when you need days between two calendar dates.
Converting Minutes to Decimal Hours
Payroll systems, invoicing software and timesheets require decimal hours rather than hours and minutes. Divide the minutes by 60 and add to the hours.
Minutes |
Decimal |
|---|---|
|
15 min |
0.25 |
|
20 min |
0.33 |
|
30 min |
0.50 |
|
45 min |
0.75 |
|
50 min |
0.83 |
|
90 min |
1.50 |
Other Free Tools
- Percentage Calculator — What is X% of Y, percentage change and markup
- Word Counter — Words, characters, reading time and keyword density
- Days Calculator — Date difference and days between dates
- Age Calculator — Exact age in years, months and days
Frequently Asked Questions
About This Time Duration Calculator
This time duration calculator is part of CalcDaysTime — a free suite of date, time and maths tools. All calculations run entirely in your browser. No data is sent to our servers, stored or shared with anyone.
Disclaimer: Results are calculated based on the times you enter. Always verify against official timekeeping records before using for payroll or billing purposes.
