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.
How to Use the Time Duration Calculator
- Enter the start time and end time.
- Tick "overnight" if the end time falls on the next day.
- 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
Time Addition Calculator
Add up multiple time durations at once - paste one per line and get instant totals in hours, decimal hours and minutes. Free, no sign-up needed.
Open tool →Time Subtraction Calculator
Subtract one time from another and see the signed difference in hours and minutes, including negative results shown. Free online tool, no sign-up.
Open tool →Date Difference
Get the exact years, months and days between any two dates, plus totals in days, weeks and hours. Calendar-accurate, private and free - no sign-up.
Open tool →Timestamp Generator
Generate the current Unix timestamp in seconds and milliseconds, plus ISO 8601, UTC and local strings - live with copy buttons. Free, no sign-up.
Open tool →Meeting Time Converter
Pick a meeting time in your time zone and instantly see the local time for attendees in major cities worldwide. Free for global teams, no sign-up.
Open tool →Current Time
See the exact current time: local, UTC, Unix timestamp and ISO 8601, all updating live every second with one-click copy buttons. Free, no sign-up.
Open tool →