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 minutes
510
Total seconds
30600
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.