Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

Time Duration Calculator — Free Online Duration Between Two Times

Calculate the exact duration between any two times with second-level precision.

Start Time

End Time

Duration

8h 30m 00s

Total Minutes

510

Total Seconds

30,600

Decimal Hours

8.50

Hours : Minutes

8:30

Time Range

09:00:00 to 17:30:00

Time Unit Conversions Reference Table

Time Unit In Seconds In Minutes In Hours
1 Second 1 0.0167 0.000278
1 Minute 60 1 0.0167
1 Hour 3,600 60 1
Quarter Day (6h) 21,600 360 6
Half Day (12h) 43,200 720 12
Full Day (24h) 86,400 1,440 24

Related Calculators

About this calculator

Duration Calculation Formula

Total Seconds = |End Total - Start Total|
where Total = (H x 3600) + (M x 60) + S
Decimal Hours = Total Seconds / 3600

Variables Explained

  • H, M, S: Hours, minutes, and seconds components of each time input. Hours range from 0 to 23, minutes and seconds from 0 to 59.
  • Total: Each time converted to total seconds from midnight. For 09:15:30, this is (9 x 3,600) + (15 x 60) + 30 = 32,400 + 900 + 30 = 33,330 seconds.
  • | | (Absolute value): Ensures the duration is always positive regardless of input order. The difference between 09:00 and 17:00 is the same as between 17:00 and 09:00.
  • 3,600: The number of seconds in one hour. Used to convert between total seconds and decimal hours.
  • Duration Hours: floor(Total Seconds / 3,600) gives whole hours.
  • Duration Minutes: floor((Total Seconds mod 3,600) / 60) gives remaining minutes.
  • Duration Seconds: Total Seconds mod 60 gives remaining seconds.

Step-by-Step Example

Calculate duration from 08:15:30 to 14:45:15:

  1. Start total: (8 x 3,600) + (15 x 60) + 30 = 28,800 + 900 + 30 = 29,730 seconds
  2. End total: (14 x 3,600) + (45 x 60) + 15 = 50,400 + 2,700 + 15 = 53,115 seconds
  3. Difference: |53,115 - 29,730| = 23,385 seconds
  4. Hours: floor(23,385 / 3,600) = 6 hours (21,600 seconds used)
  5. Remaining: 23,385 - 21,600 = 1,785 seconds
  6. Minutes: floor(1,785 / 60) = 29 minutes (1,740 seconds used)
  7. Seconds: 1,785 - 1,740 = 45 seconds
  8. Decimal hours: 23,385 / 3,600 = 6.50 hours
  9. Result: 6h 29m 45s (6.50 decimal hours, 23,385 total seconds)

Sources

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026