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.

Start
Time
Date
End
Time
Date

Optional — add dates to measure across days.

Duration
—
0.00 Total hours
0 Total minutes
0 Total seconds

No dates? The calculator assumes the end is later the same day, rolling past midnight if needed.

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.

  1. Enter your start time and your end time.

  2. 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.

  3. 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.

Duration = End time − Start time

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.

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 free

Turn 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 tracker

Work hours tracker

Every working hour recorded automatically — regular, overtime and idle time, per person and per day.

See work hours tracking

Employee timesheet software

Timesheets that fill themselves from tracked time — with approvals, edits and payroll-ready exports.

See timesheet software

Frequently asked questions

A time duration calculator is a tool that finds how much time passes between two times. You enter a start time and an end time and it returns the duration in hours and minutes, in seconds, and as decimal hours — without any manual math.
Subtract the start time from the end time. For example, 9:00 to 17:30 is 8 hours 30 minutes. If the end time is earlier than the start (an overnight shift), add 24 hours. The calculator above does this automatically.
Leave the date fields blank and, if the end time is earlier than the start, the calculator assumes the end is on the next day and adds 24 hours. So 22:00 to 06:00 returns 8 hours, not a negative number.
Yes. Add a start date and an end date and the calculator measures the exact span between the two date-times, including any number of whole days, then shows it as days, hours and minutes plus total hours.
Decimal hours express minutes as a fraction of an hour instead of as 60ths. 8 hours 30 minutes is 8.5 decimal hours, because 30 minutes is half an hour. Payroll and invoicing systems usually expect this format.
Divide the minutes by 60. So 15 minutes is 15 ÷ 60 = 0.25 hours, and 45 minutes is 0.75 hours. The calculator shows the decimal-hours total for you under Total hours.
Yes. If your time fields include seconds, the duration is calculated to the second and shown in the Total seconds result. If you only enter hours and minutes, the seconds are simply zero.
No practical limit. With dates added, you can measure a span of many days, weeks or months. Without dates, the calculator works within a single 24-hour cycle and rolls over midnight once.
Yes. The Total hours result is given in decimal hours, which is exactly what most payroll and invoicing tools expect. For ongoing tracking rather than one-off sums, WebWork records the durations automatically and builds the timesheet for you.
Yes. The WebWork time duration calculator is completely free, runs in your browser with no sign-up, and never sends your times anywhere.
From 8:00 AM to 5:00 PM is 9 hours. If you take a 1-hour unpaid lunch, that is 8 hours worked. To check any span, enter the start and end times above and subtract breaks separately.
Switch to the “Add or subtract time” tab at the top of the calculator: pick a start time, choose + or −, set the hours and minutes, and the resulting time appears instantly (rolling past midnight if needed). By hand: add hours to hours and minutes to minutes, and carry an hour when the minutes reach 60 — 2 h 45 min + 1 h 30 min = 3 h 75 min = 4 h 15 min; to subtract, borrow 60 minutes when needed.
Use the “How long until…” tab: pick the target time (and a date if it is more than a day away) and the calculator counts down live from the current time, in hours, minutes and seconds. If the target time is earlier than now (now 10 pm, target 6 am), it automatically counts to tomorrow.

Track Every Minute Automatically with WebWork

Start 14-Day Free Trial

No credit card | Cancel anytime