🇬🇧EN

Time Duration Calculator

Work out the duration between two times, or add and subtract durations.

—

✨ What do you want to try next?

You've finished this tool — here are a few you might find useful.

Explore 100+ free toolsPDF, Image, Text, Convert, Calculate and more — all free.View all tools →

About the Time Duration Calculator

This works out how long is between two clock times, or adds and subtracts time durations. It's the quick answer for how many hours you worked between clock-in and clock-out, how long an activity or shift lasts, total up several durations, or subtract a break from a total. Two modes cover the common needs: the gap between two times, and arithmetic on durations.

How it works

Between two times: it converts each time to seconds since midnight and subtracts. If the end is earlier than the start (or you tick "next day"), it adds 24 hours so an overnight span — like a 22:00 to 06:00 shift — comes out as 8 hours rather than negative.

Add / subtract durations: it converts each hours-minutes-seconds duration to seconds, adds or subtracts, and formats the result. Every answer is also shown as a decimal number of hours, total minutes and total seconds.

Assumptions and behaviour

  • "Between two times" works with clock times to the second; an overnight gap is handled by the next-day option or automatically when the end is earlier.
  • Duration arithmetic accepts hours, minutes and seconds in each duration.
  • Results are shown both as Hh Mm Ss and as decimal hours, minutes and seconds for payroll or logging.
  • Subtraction can produce a negative duration, shown with a minus sign.

Limitations

  • The "between two times" mode works with times of day within a single 24-hour span (with the next-day option for overnight). For a gap spanning multiple days, use the Date Difference Calculator.
  • It doesn't apply time zones or daylight-saving — it's plain clock arithmetic.
  • It works to the second; it doesn't handle fractions of a second.
  • For decimal payroll, note it rounds the displayed decimal hours to two places.

Privacy

The calculation runs entirely in your browser. Nothing is uploaded or stored.

Frequently asked questions

Is this time duration calculator free?

Yes — free, no sign-up, no limits, runs in your browser.

How many hours between two times?

Enter a start and end time and it shows the duration in hours, minutes and seconds, plus decimal hours. For example 09:00 to 17:30 is 8h 30m, or 8.5 hours.

Does it handle overnight shifts?

Yes. Tick 'end time is on the next day', or it automatically adds 24 hours when the end is earlier than the start — so 22:00 to 06:00 is 8 hours.

Can it add or subtract durations?

Yes. Switch to the add/subtract mode, enter two durations in hours, minutes and seconds, and choose add or subtract.

Does it give decimal hours for payroll?

Yes. Every result is also shown as decimal hours (like 8.5) plus total minutes and seconds.

Does it account for time zones?

No. It's plain clock arithmetic with no time zones or daylight-saving adjustments.

Is my data uploaded?

No. Everything runs locally in your browser; nothing is sent or stored.

Lakshay Kumar

Written by Lakshay Kumar(TechLakshay)

A QA Automation Engineer by trade, Lakshay's real passion is untangling complex problems into simple, working solutions — which is exactly why FreeMyTask exists. On Instagram, he channels that same instinct into helping 26,000+ content creators with SEO education, motivation, and hands-on query solving.

Last updated: August 22, 2026
🎁