When you leave the dates blank and the end time is earlier than the start, the calculator adds one day — so 10:00 PM to 6:00 AM correctly returns 8 hours, not minus 16. Add dates and it measures the exact span between the two date-times, including any number of days.
Free Time Duration Calculator
Find the exact duration between two times. Enter a start and end time — add dates to span multiple days — and get the result in hours, minutes, seconds and decimal hours instantly. Need more? Switch tabs to add or subtract hours and minutes from a time, or to count down live to any time.
What is a time duration calculator?
A time duration calculator works out how much time passes between a start time and an end time. Instead of counting on your fingers or doing the math in your head, you enter two times and it returns the exact gap — in hours and minutes, in seconds, and as decimal hours you can drop straight into a timesheet.
It handles the awkward cases automatically: shifts that run past midnight, breaks measured to the second, and spans that stretch across several days when you add dates. That makes it useful for everything from payroll and billing to cooking, studying and event timing.
How to calculate time duration
Get the duration between two times in three quick steps.
-
Enter your start time and your end time.
-
Spanning more than one day? Add a start and end date too — otherwise the calculator assumes the same day and rolls past midnight if the end is earlier.
-
Read the duration in hours and minutes, plus total hours, minutes and seconds, then use Copy to grab the result.
How time duration is calculated
The duration is simply the end moment minus the start moment.
Hours and decimal hours
Payroll and invoicing usually need decimal hours, not hours and minutes. 8 hours 30 minutes is 8.5 decimal hours (30 ÷ 60 = 0.5). The calculator shows both, so you never have to convert by hand.
Common shift lengths at a glance
How many hours is 9 to 5? Eight. Here are the most-searched start and end times with their lengths. Times run from start to finish — subtract unpaid breaks to get hours worked.
| From – to | Hours and minutes | Decimal hours |
|---|---|---|
| 9 am to 5 pm | 8 hours | 8 |
| 8 am to 4:30 pm | 8 hours 30 minutes | 8.5 |
| 8 am to 5 pm | 9 hours | 9 |
| 8 am to 4 pm | 8 hours | 8 |
| 7 am to 3 pm | 8 hours | 8 |
| 7 am to 3:30 pm | 8 hours 30 minutes | 8.5 |
| 9 am to 6 pm | 9 hours | 9 |
| 6 am to 2 pm | 8 hours | 8 |
| 10 am to 6 pm | 8 hours | 8 |
| 10 pm to 6 am overnight | 8 hours | 8 |
| 11 pm to 7 am overnight | 8 hours | 8 |
| 7 pm to 7 am overnight | 12 hours | 12 |
What you can use it for
Work hours & payroll
Measure a shift from clock-in to clock-out, subtract breaks, and read the decimal hours for payroll.
Billing & projects
Time a task or client session and turn the span into billable hours and minutes.
Study & focus
Check how long a study block, workout or focus session actually lasted.
Cooking & events
Work out cooking, baking or event durations — including ones that run past midnight.
Stop calculating durations by hand
A calculator is great for a one-off. For ongoing work, WebWork tracks every start, stop and break automatically and turns the durations into timesheets and invoices.
No credit card | Cancel anytime
From a quick duration to tracked time
This calculator answers a single question. To capture durations all day, every day — across tasks, projects and people — WebWork Time Tracker records time automatically and turns it into reports, timesheets and payroll-ready hours. See the time tracker for employees.
Try WebWork freeTurn Time Durations into Results with WebWork
A duration calculator gives you the number. WebWork captures every interval automatically and turns it into billable, reportable hours.
Time tracker for employees
Simple for employees, complete for managers — automatic hours, timesheets and reports for the whole team.
See the employee time trackerWork hours tracker
Every working hour recorded automatically — regular, overtime and idle time, per person and per day.
See work hours trackingEmployee timesheet software
Timesheets that fill themselves from tracked time — with approvals, edits and payroll-ready exports.
See timesheet softwareTime tracker for freelancers
Track your own hours across clients and projects, then turn them into invoices and reports.
See the freelancer time tracker