Time Duration Calculator
Find exact hours, minutes and seconds between any two times
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
Calculate your shift duration for timesheet entry, freelance billing, or payroll verification.
Quickly find how long a meeting ran from start time to end time, in minutes and seconds.
Nurses, security staff, and other night shift workers need accurate cross-midnight duration calculations.
Find the exact duration of a concert, game, race, or any event with a clear start and end time.
Calculate how long something has been cooking or how long until a timer completes from a given start time.
Determine the exact elapsed travel time between departure and arrival in hours and minutes.
Example calculations
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:
Days, hours, minutes between any two calendar dates
Count working days, excluding weekends and holidays
Your exact age in years, months, days, and hours
Create a shareable countdown to any event
Popular time-based countdown timers: