Time Duration Calculator

Find exact hours, minutes and seconds between any two times

Works overnightSeconds precisionInstant result
← Back to Home

Time Duration Calculator

8h 0m 0s
duration
8
Hours
480
Total mins
28,800
Total secs
https://howlonguntiltimer.com/time-duration-calculator

People often search for queries like "hours between two times", "how many hours between 9am and 5pm", or "time difference calculator". This tool provides the exact answer instantly — hours, minutes, and seconds between any two times, including overnight shifts. Use this result to calculate hours worked, plan schedules, or track any time-based activity.

How many hours between two times?

Enter your start and end times above — the hours between the two times appear instantly. The result also shows total minutes and total seconds for full precision. No calculation needed on your part.

How to calculate time duration

Time duration is calculated by converting both times to total seconds from midnight, subtracting the start from the end, and dividing into hours, minutes, and seconds. For overnight periods (like 10 PM to 6 AM), enable the "crosses midnight" option to add 24 hours automatically.

Time difference explained

A time difference is the number of hours and minutes between two specific points in the day. Unlike a date difference, this calculator works within a single 24-hour day (or overnight) and is ideal for shift tracking, meeting duration, travel time, and hourly billing.

How to calculate time duration

Enter a start time and end time — results update as you type. The calculator returns the exact hours between the two times, total minutes, and total seconds.

For overnight shifts like 10 PM to 6 AM, enable "crosses midnight" to get the correct 8-hour result instead of a negative number.

Common use cases

Hours worked

Calculate your shift duration for timesheet entry, freelance billing, or payroll verification.

Meeting duration

Quickly find how long a meeting ran from start time to end time, in minutes and seconds.

Overnight shifts

Nurses, security staff, and other night shift workers need accurate cross-midnight duration calculations.

Event timing

Find the exact duration of a concert, game, race, or any event with a clear start and end time.

Cooking & timers

Calculate how long something has been cooking or how long until a timer completes from a given start time.

Travel time

Determine the exact elapsed travel time between departure and arrival in hours and minutes.

Example calculations

9am to 5pm
8 hours (standard workday)
8am to 4:30pm
8.5 hours
12am to 11:59pm
23 hours 59 minutes
10pm to 6am
8 hours (overnight shift)
9am to 12pm
3 hours (morning half)
1pm to 5pm
4 hours (afternoon half)

Frequently asked questions

How do I calculate the duration between two times?

Enter a start time and end time using the inputs above. The calculator instantly shows the duration in hours, minutes, and seconds, plus the total minutes and total seconds.

What if my end time is before my start time (e.g. overnight shifts)?

Check the "Duration crosses midnight" option. The calculator will then add 24 hours to the calculation, giving you the correct duration for overnight shifts or time spans that cross into the next day.

How many hours is 9am to 5pm?

From 9:00 AM to 5:00 PM is exactly 8 hours, or 480 minutes, or 28,800 seconds.

How do I calculate hours worked?

Enter your clock-in time as the start and clock-out time as the end. The result shows your exact hours and minutes worked. For multiple shifts, run the calculator once per shift and add the results.

Can I calculate duration across midnight?

Yes. Enable the "crosses midnight" option. For example, 10:00 PM to 6:00 AM would show 8 hours duration instead of trying to calculate a negative number.

Related tools

Need to measure time in a different way? These tools each handle a different aspect of time calculation:

Popular time-based countdown timers:

Popular searches

Popular Timers

View all countdowns

Browse by Category