Free Time Duration Calculator

From 9:00 to 17:30 - but how long is that, really? And what about a night shift that crosses midnight? Enter a start and end time, tick "overnight" for spans past midnight, and get the exact duration in hours and minutes plus decimal hours for payroll and billing.

Private by design. This tool runs 100% in your browser — nothing is uploaded to any server.

How to Use the Time Duration Calculator

  1. Enter the start time and end time.
  2. Tick "overnight" if the end time falls on the next day.
  3. Click Calculate Duration for hours, minutes and decimal hours.

Features

Two time inputs and one overnight checkbox cover the common cases, including shifts that end the next day. Results show hours and minutes together with the decimal-hour equivalent that payroll systems expect, computed instantly when you calculate.

Benefits & Use Cases

Shift workers log exact hours including night spans, managers verify timesheet totals, and freelancers measure billable sessions precisely. It is equally useful for everyday questions like parking durations, cooking times and how long a task really took.

Tips

Tick the overnight box whenever the end time falls on the next day - otherwise the tool assumes both times are the same day. Use the decimal result directly in pay calculations to avoid rounding errors. For totaling several separate durations, the Time Addition Calculator is the next step.

Frequently Asked Questions

How do I calculate a shift that crosses midnight?

Enter the start and end times, then tick "End time is on the next day". The tool treats the end time as the following day before computing the span.

What are decimal hours?

The duration as a decimal - 7 hours 30 minutes is 7.5 hours. Payroll and invoicing systems typically work in this format.

What if the end time is earlier than the start time?

Without the overnight box checked, the tool assumes both times are on the same day. Tick overnight for spans crossing midnight.

Does it handle seconds?

The tool works at hour and minute precision, which covers timesheets, shifts and billing.

Can I add up several durations?

Yes - calculate each span here, then total them with the Time Addition Calculator.

Is it free to use?

Yes. Free, private and no sign-up, like all NToolHub tools.

Related Tools