1. Home
  2. Dates & time
  3. Time Duration Calculator
Dates & time

Time Duration Calculator

Find wall-clock duration between 24-hour times.

Your numbers

minutes

Results update as you type. Nothing you enter is sent anywhere.

Result

4 hours

Gross duration 240 minutes − unpaid breaks 0 minutes. An earlier end means the next day; equal clocks mean zero duration.

Formula used

Elapsed minutes = end − start, adding 24 hours if end is earlier

The Time Duration Calculator measures how long it is from one clock time to another, including spans that cross midnight. Use it for flight and drive legs, sleep, study sessions, recording lengths and any other interval where you know the clock times but not the elapsed hours. An optional field removes pauses from the total.

How to use the Time Duration calculator

  1. Enter Start time (HH:MM) on a 24-hour clock, such as 21:45 for 9:45 p.m. Two digits are required for the hour.
  2. Enter End time (HH:MM). An end that is earlier than the start is read as the following day.
  3. Put any pauses you want excluded in Unpaid breaks, in minutes. For a plain duration, enter 0.
  4. Read the result in decimal hours. Multiply the fractional part by 60 to get minutes.

How the time duration calculation works

FormulaElapsed minutes = end − start, adding 24 hours if end is earlier

Reading a decimal duration

The result is shown in hours with up to six decimals. 8.5 hours is 8 hours 30 minutes. 5.416667 hours is 5 hours plus 0.416667 × 60 = 25 minutes. The detail line also reports the gross span in whole minutes, which is often the easier number to work with.

If you need seconds, convert the minutes: 325 minutes is 19,500 seconds. The Time Unit Converter does this for any of seconds, minutes, hours, days and weeks.

Crossing midnight, and the one case it cannot see

The calculator compares the two clock readings. If the end is later, the duration is the plain difference. If the end is earlier, it adds 1,440 minutes, the length of one day. That covers anything up to 23 hours 59 minutes. Equal times give zero, so a full 24-hour span must be entered as two parts.

Clock times do not carry a date or time zone. In the United States, daylight saving time begins at 2 a.m. on the second Sunday in March and ends at 2 a.m. on the first Sunday in November. On those two nights a span that crosses 2 a.m. is really one hour shorter or longer than the clock difference. For trips between time zones, convert both ends to one zone with the Time Zone Converter first, then measure the duration.

Time Duration or the Hours Calculator?

Both run the same arithmetic. The Hours Calculator is set up for paid work, with guidance on which breaks are paid under labor law. This page is for general intervals where 'unpaid' simply means time you want left out, such as a layover or a pause in a recording.

For time in bed rather than a span with breaks, the Sleep Duration Calculator asks for bedtime and wake time directly. For durations measured in days rather than hours, use the Days Between Dates Calculator.

Worked examples

An overnight span, 9:45 p.m. to 6:15 a.m.

Start time (HH:MM): 21:45 · End time (HH:MM): 06:15 · Unpaid breaks: 0 minutes

  1. Start: 21 × 60 + 45 = 1,305 minutes. End: 6 × 60 + 15 = 375 minutes.
  2. 375 is less than 1,305, so the end is the next day: 375 + 1,440 = 1,815.
  3. Duration: 1,815 − 1,305 = 510 minutes.
  4. 510 ÷ 60 = 8.5 hours, or 8 hours 30 minutes.

Result: 8.5 hours

A morning session, 08:15 to 13:40

Start time (HH:MM): 08:15 · End time (HH:MM): 13:40 · Unpaid breaks: 0 minutes

  1. Start: 495 minutes. End: 13 × 60 + 40 = 820 minutes.
  2. Duration: 820 − 495 = 325 minutes.
  3. 325 ÷ 60 = 5.416667 hours. The fraction 0.416667 × 60 = 25 minutes.
  4. So the session lasted 5 hours 25 minutes.

Result: 5.416667 hours

Assumptions and limits

At most one overnight span. Wall-clock arithmetic, not timezone-aware elapsed instants.

Formula and worked examples last checked November 20, 2026. Spotted a problem? Report an error.

Frequently asked questions

How do I calculate the time between two times by hand?

Convert each to minutes after midnight (hours × 60 + minutes), subtract the start from the end, and add 1,440 if the result is negative. Divide by 60 for hours. 10:50 to 14:20 is 860 − 650 = 210 minutes, or 3.5 hours.

How long is it from 11 p.m. to 7 a.m.?

Eight hours. Entered as 23:00 and 07:00, the end is earlier than the start, so the calculator adds a day: 420 + 1,440 − 1,380 = 480 minutes.

Does daylight saving time change the duration?

The real elapsed time does, but clock times alone cannot show it. A span from 01:00 to 03:00 on the US spring-forward night is actually one hour, not two, and the same span on the fall-back night is three hours. Adjust by hand on those two dates.

How do I turn 5.416667 hours back into hours and minutes?

Keep the whole number as hours (5) and multiply the decimal part by 60: 0.416667 × 60 = 25. The answer is 5 hours 25 minutes. For seconds, multiply any remaining fraction of a minute by 60 again.

Can it measure durations longer than a day?

Not in one step, because a clock time has no date. Split the span at midnight, or use the Days Between Dates Calculator for whole days and add the partial hours from this page.

Sources