iCalculator.
Time & date

Duration calculator

Add or subtract two lengths of time with hours, minutes and seconds.

Reviewed December 1, 2026

Your numbers

Use H:MM or H:MM:SS.

Calculations run in your browser. Your inputs stay on your device.

Your results

Enter your numbers and select Calculate.

The formula

Total seconds = (hours × 3,600) + (minutes × 60) + seconds. Add or subtract totals, then convert back.

Worked example

02:30:00 + 00:45:00 = 03:15:00.

What to keep in mind

Inputs may be signed. Hours can exceed 24. Each minute and second component uses two digits from 00 to 59.

Formula sources