⏱️

Time Duration Calculator

Calculate the duration between two times, add multiple time spans, or subtract durations. Handles overnight shifts with auto midnight-crossing detection, converts results to decimal hours for payroll, and supports unlimited duration entries. Perfect for tracking work hours, exercise sessions, project tasks, and billing.

⏱️ Time & Date

Time Duration Calculator

Calculate the duration between two times, add multiple time spans together, or subtract one duration from another. Perfect for tracking work hours, exercise sessions, and project time.

Duration
08:30:00
8h 30m
00
Days
08
Hours
30
Minutes
00
Seconds
Total hours (decimal)8.5
Total minutes510
Total seconds30600

What Is a Time Duration Calculator?

A time duration calculator measures the length of an event — the elapsed time between a start and end, the sum of multiple sessions, or the difference between two durations. It operates in hours, minutes, and seconds, making it the go-to tool whenever you need precise time arithmetic.

Unlike a date calculator (which works with calendar days), a time duration calculator focuses on the clock: shifts, sessions, workouts, cooking timers, and anything else measured in HH:MM:SS. It handles overnight shifts automatically, converts results to decimal hours for payroll, and can chain multiple durations with ease.

💼

Work & Payroll

Calculate shift duration, overtime hours, and breaks. Convert to decimal hours for payroll (8h 30m = 8.5 hours × hourly rate).

🏋️

Fitness & Exercise

Log workout sessions, calculate rest intervals, sum up weekly training hours, and track time for each exercise set.

🍳

Cooking & Recipes

Add prep time + cook time + rest time to get total meal duration. Calculate when to start so dinner is ready at the right moment.

📊

Project Management

Sum billable hours across tasks, calculate sprint velocity in person-hours, or track time logged against a project budget.

🌙

Night Shift Planning

Precisely calculate the duration of overnight shifts that cross midnight — the tool auto-detects or lets you toggle '+1 Day'.

🎬

Media & Content

Add video clip durations to find total runtime. Calculate reading time, podcast run length, or class session totals.

How to Use This Tool

1
Choose a Mode
Select "Between Two Times" to measure a shift or event, "Add Durations" to total up multiple sessions, or "Subtract Duration" to find remaining or overtime time.
2
Enter Your Times or Durations
For Between mode, pick start and end times using the time pickers or click Now. For Add/Subtract, enter hours, minutes, and seconds directly in the H:M:S fields.
3
Toggle +1 Day for Overnight
If your shift ends the next calendar day (e.g., 10 PM to 6 AM), enable the '+1 Day' toggle. The tool also auto-detects midnight crossings.
4
Read the Result
The big clock display shows total HH:MM:SS. The D/H/M/S grid breaks it down. The Unit Conversions panel shows decimal hours and total minutes for payroll use.
5
Copy the Result
Hit the Copy button to copy the formatted result (e.g., "08:30:00 (8h 30m)") to your clipboard for pasting into timesheets, reports, or messages.

How It Works

All time arithmetic reduces to a single unit — seconds — then converts back to H:M:S for display.

Duration Between Two Times

Duration = End (sec) − Start (sec) If result < 0, add 86 400 s (crosses midnight)

Both times are converted to seconds-since-midnight, then subtracted. If the result is negative, the end time is on the next day and 86 400 seconds (24 hours) is added automatically.

Adding Multiple Durations

Total = Σ (hₙ × 3600 + mₙ × 60 + sₙ)

Each duration entry is independently converted to seconds. All values are summed, then decomposed back into days, hours, minutes, and seconds. No 24-hour cap — the result may exceed 24 hours.

Subtracting Durations

Result = Base (sec) − Subtract (sec)

Useful for overtime (actual − standard = overtime) or remaining time (time-box − elapsed = remaining). A negative result means the subtract value exceeded the base.

Unit Conversions

Decimal hours = total seconds ÷ 3600 Minutes = total seconds ÷ 60

The decimal-hours format is used in payroll, billing, and data entry. For example, 8 hours 45 minutes = 8.75 decimal hours. Total minutes are useful for distance/speed calculations.

Worked Examples

Standard Work Shift — 9:00 AM to 5:30 PM

Mode: Between Two Times

Start time09:00:00
End time17:30:00
Seconds diff63 000 − 32 400 = 30 600 s
Duration8h 30m 0s (08:30:00)
Decimal hours8.5 hrs × $20/hr = $170.00 gross

Freelancer — Adding Three Work Sessions

Mode: Add Durations

SessionDuration
Morning coding2h 30m 0s = 9 000 s
Afternoon review1h 45m 0s = 6 300 s
Evening testing3h 15m 0s = 11 700 s
Total7h 30m 0s (07:30:00) = 7.5 hrs

Overtime Calculation — Subtract Standard Hours

Mode: Subtract Duration

Hours worked (base)10h 30m = 37 800 s
Standard day (subtract)8h 0m = 28 800 s
Overtime2h 30m = 2.5 hrs at 1.5× rate

Night Shift — 10:30 PM to 6:00 AM (Next Day)

Mode: Between Two Times with +1 Day toggle

Start time22:30:00
End time06:00:00 + 86 400 s
Calculation(21 600 + 86 400) − 81 000 = 27 000 s
Duration7h 30m 0s (07:30:00)

Frequently Asked Questions

Related Tools

Explore This Tool in Context

Time Duration Calculator is part of the Time & Date collection. If you want a broader view of similar workflows, open the Time & Date category page or browse all QuickTools categories.

Common next steps after this tool include Date Difference Calculator, Time Zone Converter and Age Difference Calculator.

More in Time & Date

View category hub →