Time Duration Calculator

Calculate the exact duration between two clock times. Handles midnight crossovers automatically.

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
Coursera AI Professional CertificateSponsored
How to Use

About the Time Duration Calculator

What it calculates

Calculate the exact duration between two clock times. Handles midnight crossovers. Enter your values above to get instant results from this free online time duration calculator.

When to use it

Use whenever you need a fast, reliable estimate without manual spreadsheet work.

Example

Adjust the inputs above to model your specific scenario with the Time Duration Calculator.

Explore More

Related Calculators