Time Duration Calculator
Calculate the exact duration between two clock times. Handles midnight crossovers automatically.
Time Inputs
::
24-hour (hh:mm:ss)
::
24-hour (hh:mm:ss)

Ad
Coursera Plus
Unlimited access to 7,000+ world-class courses, hands-on projects, and job-ready certificate programs.
Start Learning
Duration
00:00:00
hoursminutesseconds
24-Hour Timeline
12am6am12pm6pm12am
Decimal Hours
0.00
hrs (for billing)
Total Minutes
0
mins elapsed
Total Seconds
0
secs elapsed
Crossed Midnight
No
same day
Documentation
How It Works
Both times are converted to total seconds from midnight, then the difference is computed. If the end is earlier than the start, 24 hours (86,400 s) is added — indicating the end is the next calendar day.
Decimal hours = total seconds ÷ 3600. For example, 1h 30m = 1.5h — the format used in billing and payroll.
Formula
Duration = End − Start
If Duration < 0: Duration += 86400s
Decimal = Duration ÷ 3600
Disclaimer: For informational purposes only.
Frequently Asked Questions
Sponsored