Time Difference Calculator
Calculate the exact duration between any two times. Free, handles overnight shifts automatically, no signup required.
What Is a Time Difference Calculator?
A time difference calculator finds the number of hours and minutes between two clock times. Enter a start time and an end time, and the tool does the subtraction and gives you the duration.
The most common uses: hours worked between clock-in and clock-out, flight duration between departure and arrival, timing a study session, or figuring out overlap hours for a cross-timezone meeting. Any time you know two clock positions and need the gap between them, this is the right tool.
Time duration, time difference, and elapsed time are all used interchangeably in everyday language. The arithmetic is the same for all three: end minus start.
How to Calculate Time Between Two Times
The manual method: subtract start from end. A 09:15 start and 17:45 finish gives you 8 hours 30 minutes (17:45 − 09:15). Straightforward, until the activity crosses midnight.
When end time is earlier than start time on the clock, add 24 hours to the end time before subtracting. A night shift from 22:00 to 06:00 becomes 30:00 − 22:00 = 8 hours. This calculator handles that check automatically, so just enter the times as they appear on the clock.
- 1Enter your start time in the Start Time field
- 2Enter your end time in the End Time field
- 3Click Calculate Duration, and the results appear in hours and minutes, plus decimal hours for payroll and invoices
- 4Use Reset to clear both fields and start a new calculation
No AM/PM conversion is needed. The input fields use your device's native time format.
Time tracking accuracy matters: estimating instead of calculating exact durations tends to round in the estimator's favor, not the client's. For a freelancer billing at $100/hour, being off by just 30 minutes a day across 20 working days adds up to $1,000 in underbilling every month.
Time Difference Examples: Real Use Cases
Work shifts and payroll
A hospital nurse works 7:00 PM to 7:00 AM, 12 hours overnight. Payroll needs the exact count. Enter 19:00 start and 07:00 end, get 12 hours 0 minutes. No midnight arithmetic from you.
Billable hours
A freelance consultant takes a client call from 14:30 to 16:15. That's 1 hour 45 minutes, or 1.75 hours on an invoice. Being off by 15 minutes and you're underbilling by $25 at a standard consulting rate.
Flight durations
A flight departs at 23:40 and lands at 06:25 the next morning, both on the same clock. That's 6 hours 45 minutes in the air, the kind of calculation that's easy to get wrong mentally. If the two airports are in different time zones, convert one time to the other's zone first (the time zone converter does this) or the result will be off by the time difference.
Remote team overlap windows
London works 9:00 AM–6:00 PM GMT. New York works 9:00 AM–6:00 PM EST, which is 2:00 PM–11:00 PM GMT. Enter 14:00 start and 18:00 end to confirm your 4-hour overlap window before you book the standup.
Study sessions
You start a revision session at 3:15 PM and finish at 7:50 PM. That's 4 hours 35 minutes, which is useful when you're tracking weekly study hours for a certification exam or degree program.
Calculating Time Across Midnight: How It Works
When the end time is earlier than the start time, simple subtraction gives a negative number, which is obviously wrong. The fix: assume the end time falls on the next calendar day by adding 24 hours, then subtract.
A shift starting at 23:00 and ending at 07:00 becomes (07:00 + 24:00) − 23:00 = 31:00 − 23:00 = 8 hours. This calculator runs that check automatically. If the end time is earlier than the start time, the 24-hour offset is added before the result is computed, so you don't need to think about it. If both times are identical the result is 0 minutes, not 24 hours.
One limitation: this calculator assumes the activity lasts under 24 hours. For durations spanning multiple full days (a 36-hour event, or Monday 9 AM to Wednesday 5 PM) you'd need a date-to-date calculator that accepts calendar dates as input, not just clock times.
Daylight saving: the calculator works from clock times only and doesn't know about clock changes. A night shift that runs through the night clocks go forward is really an hour shorter, and one that runs through the night they go back is an hour longer. If that matters for payroll, adjust the result by one hour for that shift.
Time Duration vs Time Difference vs Elapsed Time
These three terms get used interchangeably, but they have subtle distinctions:
Time duration
The length of an event, as in "the meeting lasted 45 minutes." It's a measurement of a span, not tied to any specific clock position.
Time difference
The gap between two specific clock positions, as in "the difference between 9:00 AM and 2:30 PM is 5 hours 30 minutes." This term also describes timezone offsets (EST is UTC−5).
Elapsed time
How much time has passed since a known starting point, as in "3 hours have elapsed since the match started at 15:00." Same concept as duration, but usually implies a reference to the present moment.
In practice, all three require the same arithmetic: End Time − Start Time. This calculator returns that result regardless of which term fits your use case.
Frequently Asked Questions
What is the difference between time duration and time difference?
Time duration is the length of an event, as in "the meeting lasted 45 minutes." Time difference is the gap between two specific clock positions, as in "the difference between 9:00 AM and 2:30 PM is 5 hours 30 minutes." In practice both use the same calculation: end time minus start time. This calculator handles both use cases.
Can I calculate time difference across midnight (e.g. 11 PM to 2 AM)?
Yes. When the end time is earlier than the start time, the calculator automatically assumes the activity crossed midnight and adds 24 hours to the end time before calculating. A shift from 11:00 PM to 2:00 AM returns 3 hours, with no manual adjustment needed.
How do I calculate hours worked between clock-in and clock-out?
Enter your clock-in time as the Start Time and your clock-out time as the End Time, then click Calculate Duration. The result is your total hours worked, with the same figure in decimal hours for payroll. For overnight shifts (e.g. 10:00 PM to 6:00 AM), enter the times as-is and the calculator detects the midnight crossing automatically.
Can I calculate the time between two dates, not just two times?
This calculator works with same-day or overnight durations only. It assumes the maximum span is under 24 hours. For multi-day calculations (e.g. from Monday 9 AM to Wednesday 5 PM), you need a date-to-date duration calculator that also accepts calendar dates as input.
How does the calculator handle AM/PM vs 24-hour time input?
The time input fields use your device's native time picker, which follows your operating system's preferred format (12-hour or 24-hour). The calculation engine always works in 24-hour time internally, so there's no format conversion required on your end.
What happens if the start and end time are the same?
The result is 0 minutes. Only an end time earlier than the start time is treated as the next day, so the longest span the calculator returns is 23 hours 59 minutes.
Does the calculator account for daylight saving time?
No. It subtracts clock times and does not know about clock changes. A shift that crosses the night clocks go forward is an hour shorter in real elapsed time, and one that crosses the night they go back is an hour longer, so adjust by one hour in those cases.
What's the most common use for a time difference calculator?
The most common use is calculating hours worked between clock-in and clock-out times, which hourly workers, freelancers, and HR teams use for payroll. Other common uses include flight duration, meeting length, study session tracking, and finding overlap hours for remote teams in different time zones.
Related Tools
Working Hours Calculator
Hours worked in one shift, minus breaks
Business Days Calculator
Count working days between two dates, excluding weekends and holidays
Meeting Scheduler
Find the best meeting time for teams across different time zones
Time Zone Converter
Convert a specific time from one time zone to another