Time Duration Calculator

Enter a start and an end time to get the elapsed time. If the end time is earlier than the start and no dates are given, it is taken as the next day, as for a night shift.

Also called: Elapsed time calculator · Hours between times calculator

  • Last updated
  • Formula tested against reference values

Your numbers

Leave both dates empty to time a span within 24 hours.

Result

Duration
—

Calculating…

In decimal hours
—
In minutes
—
In seconds
—
As hh:mm
—

How to use this calculator

  1. Enter or choose start date (optional).
  2. Enter or choose start time.
  3. Enter or choose end date (optional).
  4. Enter or choose end time.
  5. The duration updates as you type. Use Copy result or Share to keep it.

Method

Duration = (End date − Start date) × 24 h + (End time − Start time); without dates, add 24 h when the end time is earlier than the start; Decimal hours = Hours + Minutes ÷ 60

Dates
calendar dates; leap days are counted
Times
24-hour clock times

Worked example

  1. 17:45 − 09:15 = 8 hours and 30 minutes.
  2. Decimal hours = 8 + 30 ÷ 60 = 8.5.
  3. In minutes: 8 × 60 + 30 = 510.

From 9:15 to 17:45 is 8 hours 30 minutes, or 8.5 hours.

What the result means

Decimal hours are what timesheets and payroll multiply by an hourly rate: 8 h 30 min is 8.5 hours, not 8.30.

Assumptions and limits

  • Clock times are in the same time zone.
  • Daylight-saving changes are not applied: a span across a clock change will be an hour off.
  • Breaks are not deducted.

Questions

How do I convert minutes to decimal hours?

Divide by 60. 15 min = 0.25 h, 30 min = 0.5 h, 45 min = 0.75 h.

How do I time a night shift?

Enter the start and end times with no dates. If the end is earlier than the start, it is counted as the next morning: 22:30 to 06:15 is 7 h 45 min.