Time Span Calculator

Calculate the time duration in hours, minutes, and seconds between two given times with the given tool.

Clock Format

First Time Span:


Second Time Span:


Table of Content

Want to know how much time passed between two time points? Tracking time looks like a daunting task, but you can make it easier by hitting start on a stopwatch, but there's an even easier way. Opt for our time span calculator, an online tool that is specifically designed to calculate hours, minutes, and seconds between two times. 

No need for a stopwatch, just input your times and get the time duration. Plus, you can easily switch between 24-hour and AM/PM clock formats.

What If The Time Span Crosses Midnight (The Start Time Is Later Than End Time)?

If the time span goes up from midnight this online calculator, considers the transition from one day to the other and provides you with the accurate result in seconds.

Formula To Calculate Time Duration:

The formula to calculate time duration requires subtracting the start time from the end time. Here's the formula: 

Elapsed Time = End Time – Start Time

How Do You Calculate Time Span?

To calculate the time span, subtract the start time from the end time. Follow the below-mentioned steps:

  • Identify Start and End Times: Note down the specific starting and ending times for which you want to calculate the span of time
  • Convert Times to a Common Format: The start and end time should be in 24 hours or AM/PM format. If not then convert them into these formats for ease 
  • Subtract Start Time from End Time: Get the duration of the time by subtracting the start time from the end time. If the start time is later than the end time, then it represents a crossing of midnight. If this happens then it means you need to perform some adjustments in the calculation for time span.
  • Handle Midnight Crossings: If you see that the time span is crossing midnight then perform the adjustments accordingly by considering it as transitioning to the next day
  • Show Result in Hours, Minutes, and Seconds Format: convert the resulting time into hours, minutes, and seconds format


Suppose a night shift starts on January 25, 2024, at 11:30 PM and ends on January 26, 2024, at 7:45 AM. Now find how much time passed between these two times.


Given that:

Start Time: January 25, 2024, 11:30 PM

End Time: January 26, 2024, 7:45 AM

Calculate time between two points by subtracting start time from end time:

7:45 AM − 11:30 PM = 8 hours 15 minutes (The value is greater than the second time)

From First Time To Second Time:

24 hrs - 8 hours 15 minutes = - 15 hours 45 minutes

From Second Time To First Time:

It goes from AM to PM so there will be no negative sign

24 hrs - 8 hours 15 minutes = 15 hours 45 minutes

From The First Time To The Second Time Over Midnight:

From 11:30 PM to Midnight = 12:00 AM−11:30 PM = 30 minutes

From Midnight to 7:45 AM = 7:45 AM−12:00 AM = 7 hours 45 minutes

Total = 30 minutes+7 hours 45 minutes = 8 hours 15 minutes

From The Second Time To First Time Over Midnight:

From Midnight to 11:30 PM = 11:30 PM - 12:00 AM = 23 hours 30 minutes 

From 7:45 AM to Midnight = 7:45 AM−12:00 AM = 16 hours 15 minutes

Total = 23 hours 30 minutes + 16 hours 15 minutes = 39 hours 45 minutes 

Instead of wasting time in this manual calculator, use our time span calculator and track the time spent on activities or tasks with convenience, either for personal productivity or professional purposes 


What Is The Difference Between A TimeSpan and A Timestamp?

A time span is the length of the duration while the timestamp represents a point in time. For instance, if you have completed a task in 2 hours, it is the timespan. On the otherhand, you have to go somewhere at two o'clock in the afternoon UTC on February 15, 2024, it's the timestamp.

What Is A Time Span Example?

It is a period of time within something happens or between two events. For instance, the time duration in which I reach the office is 15 minutes. Here 15 minutes is the time span. 

What Is Project Time Span?

It is the total time required to complete a project.