Time Duration Calculator
Find the exact hours, minutes, and seconds between two times — same day or across dates.
Time Duration — Same Day
Time Between Two Dates
How to Calculate the Duration Between Two Times
The same-day calculator converts both times to 24-hour format and subtracts to find the difference in seconds, then breaks that into hours, minutes, and seconds. If the end time is earlier than the start time, the calculator assumes the period crosses midnight and adds 24 hours to the result.
The multi-date calculator builds precise timestamps from the date and time fields you enter, then computes the absolute difference. Results are expressed in days, hours, minutes, and seconds — plus a breakdown of the total in each unit.
Common Use Cases
- Work Hours: Track how long a shift lasted from clock-in to clock-out.
- Event Duration: Find out exactly how long a meeting, class, or presentation ran.
- Travel Time: Measure elapsed time between departure and arrival across time zones.
- Project Milestones: Calculate elapsed time between two project dates for reports or invoices.
- Overnight Periods: Accurately compute durations that cross midnight (e.g. night shift, sleep tracking).
Worked Example
Clock-in Monday 09:15, clock-out Wednesday 17:45: duration = 2 days, 8 hours, 30 minutes (56.5 hours total, 3,390 minutes). Night shift: start 22:00 Monday, end 06:30 Tuesday — the calculator correctly handles the midnight crossing and returns 8 hours 30 minutes. Total in minutes only: 510 min.
Frequently Asked Questions
How do I find the time difference between two times?
Use the Same Day tab: enter your start and end times and the calculator returns the duration in hours, minutes, and seconds. For durations spanning multiple days, use the Multi-Date tab with full date and time fields. For a simple day count between two dates, try the day counter.
What if the end time is earlier than the start time?
On the Same Day tab, if the end time is earlier than the start time the calculator assumes the period crosses midnight — for example, 10:00 PM to 6:00 AM gives 8 hours. For multi-day calculations, use the Multi-Date tab where dates make the direction unambiguous. For a date-based interval including months and years, try the date calculator.
How do I calculate hours worked?
Enter your clock-in time as the start and clock-out time as the end. The result shows the exact duration worked in hours and minutes. For shift totals across a week, add each day's duration using the time calculator.
Can I get the duration in just hours or just minutes?
Yes. The result includes a Total in each unit breakdown showing the full duration expressed purely in hours (e.g. 2.5 hours), purely in minutes (e.g. 150 minutes), and purely in seconds. This is useful for reporting or invoicing where a single unit is needed.
Privacy & Data
Your data stays in your browser. All calculations run entirely client-side — nothing is sent to a server. Your inputs are never stored, logged, or shared.
This site uses minimal, privacy-respecting analytics to understand usage patterns. We comply with GDPR and do not collect personal information.
Evidence & Methodology
How This Page Is Grounded
Method
Converts both entered times to seconds, calculates the difference and formats it as hours, minutes and seconds.
Important limitation: The calculation treats the inputs as clock times on the stated day and only crosses midnight when that option is used.
Primary Sources
- ISO 8601 date and time format International Organization for Standardization
Quality Checks
Equal times, midnight crossing and second-level boundaries are checked.
See how sources are selected and corrections are handled in our Editorial & Calculation Methodology, and which automated checks this page has to pass in How We Test.