Skip to content

Time Duration Calculator

How long between two clock times, including times that cross midnight.

More options

Tick this for spans of more than 24 hours or when start and end are the same time a day apart.

Calculated on your device. Nothing you enter is sent anywhere.

Duration

8 h 25 min

From 09:15 to 17:40 is 8 h 25 min.

Decimal hours
8.4167
Minutes
505
Seconds
30,300

In short

The duration between two clock times is the later time minus the earlier one. From 9:15 to 17:40 is 8 hours 25 minutes: count the whole hours, then the minutes, borrowing an hour when the minutes would go negative. If the end time is earlier than the start, the span crosses midnight, so 24 hours are added: 23:00 to 07:00 is 8 hours.

How it works

Duration

minutes = (end − start) in minutes if end is earlier than start: add 24 × 60 = 1,440 minutes

Times are turned into minutes after midnight, so 17:40 is 17 × 60 + 40 = 1,060 and 9:15 is 555. The difference, 505 minutes, is 8 hours and 25 minutes. A day has 24 hours of 60 minutes each, the units the SI accepts for everyday use.

Decimal hours divide the minutes by 60, so 25 minutes is 0.4167 hours. Timesheets and payroll use decimal hours; clocks use hours and minutes.

Worked examples

A working day from 9:15 to 17:40

From 9:15 to 17:15 is 8 hours; 25 more minutes to 17:40 gives 8 h 25 min, or 8.4167 decimal hours.

Open this example in the calculator

Overnight from 23:00 to 07:00

The end is earlier than the start, so the span crosses midnight: 1 hour to midnight plus 7 hours after it is 8 h, 480 minutes.

Open this example in the calculator

From 13:50 to 14:35

Ten minutes to 14:00 and 35 after it make 45 min, which is 0.75 hours as a decimal.

Open this example in the calculator

Using this calculator well

  • 12-hour times: 2:30 PM is 14:30. The time fields follow your device’s 12- or 24-hour setting.
  • Several shifts? The hours worked calculator adds up a whole week and takes off breaks.
  • Across dates: for spans of several days, use the days between dates or date calculators.
  • Clock changes: on the night daylight saving time starts or ends, an overnight span is an hour shorter or longer than the clock difference.

Frequently asked questions

How do I calculate the time between two times?

Subtract the start time from the end time, hours and minutes separately. If the minutes go negative, borrow 60 minutes from the hours. From 10:45 to 15:20: 15:20 is 14:80, and 14:80 − 10:45 = 4 hours 35 minutes.

How do I calculate hours across midnight?

Add 24 hours to the end time before subtracting, or count the time to midnight and the time after it separately. From 21:30 to 05:15 is 2 h 30 min before midnight plus 5 h 15 min after, which is 7 hours 45 minutes.

How do I turn hours and minutes into decimal hours?

Divide the minutes by 60 and add them to the hours. 4 hours 35 minutes is 4 + 35/60 = 4.583 hours. This is the form timesheets and pay calculations need, since 4.35 would mean 4 hours 21 minutes.

How many minutes are between two times?

Convert both to minutes after midnight and subtract. 08:20 is 500 minutes and 11:05 is 665, so the gap is 165 minutes, or 2 hours 45 minutes. The calculator shows the result in minutes and seconds too.

Sources and methodology

  1. Prealgebra 2e, 7.5 Systems of Measurement, OpenStax, Rice University, Table 7.2: 1 min = 60 s, 1 h = 60 min, 1 day = 24 h (accessed November 24, 2026)
  2. The International System of Units (SI Brochure), 9th edition, Bureau International des Poids et Mesures (BIPM), Table 8: minute, hour and day accepted for use with the SI (1 d = 86 400 s) (accessed November 24, 2026)

Rounding: Exact to the minute; decimal hours are shown to 4 places.

Review status: formulas verified against the cited sources by automated tests; editorial review pending. Version 1.0.0, content updated November 24, 2026.

Changelog
  • 1.0.0 · November 24, 2026: First published.

How we build and test calculators

Embed this calculator on your site

Paste this code into your page. The calculator runs in a frame, with no tracking and no cookies, and links back here for the formula and sources.

<iframe src="https://northcalculator.com/embed/en/time-duration" title="Time Duration Calculator" width="100%" height="760" style="border:0" loading="lazy"></iframe>