Skip to content
Time & date

Time Duration Calculator

Enter two clock times in HHMM notation to find hours, minutes and decimal hours between them. Choose overnight when the finish is on the following day, or switch to Add hours and minutes for two durations.

Your times

Choose what you want to find

How long is it from 09:30 to 17:45?

24-hour clock, for example 09:30.

24-hour clock; set Crosses midnight to 1 when it ends the next day.

Type 1 for yes, 0 for no.

Answers update as you type. Nothing you enter leaves this page.

Answer

Elapsed time

8 h 15 min

8.25 decimal hours for 09:30 to 17:45.

09:30 to 17:45: 495 minutes.
total minutes
495
decimal hours
8.25

Check the work

Every line comes from the same calculation as the answer.

duration = end − start, adding 24 hours when the interval crosses midnight

Working for this answer, one step per row
minutes09:30 to 17:45495
hours495 ÷ 608.25

Assumptions in force: 24-hour clock · one-minute precision

Formula time.duration v1.0.0 · Methodology

How it works

This calculator answers two closely related questions without treating them as the same input. Between two times measures a clock interval such as a shift from 09:30 to 17:45. Add hours and minutes combines durations such as 2 hours 15 minutes plus 50 minutes. The first mode compares positions on a clock; the second adds quantities that already have a duration.

The calculation is carried out in minutes. A time such as 17:45 becomes 1,065 minutes after midnight. Converting first avoids the common mistake of subtracting 45 minutes from 30 minutes as if the hour field were decimal. The result is then split back into whole hours and remaining minutes, and divided by 60 for decimal hours.

An interval that crosses midnight needs an explicit choice because 22:15 to 01:45 looks backwards on a single-day clock. With overnight selected, the calculator adds 1,440 minutes before subtracting: 105 minutes from 22:15 to midnight plus 105 minutes from midnight to 01:45 equals 210 minutes, or 3 hours 30 minutes.

The most useful mode depends on the wording of the question. If both values are clock readings tied to a day, use Between two times. If both values are already durations from separate activities, use Add hours and minutes. A meeting from 09:00 to 10:30 is a clock interval; a meeting lasting 1 hour 30 minutes added to a study block lasting 2 hours is duration arithmetic. Putting the same numbers into the wrong mode can still produce a tidy answer with the wrong meaning.

The decimal result is designed for a timesheet or a spreadsheet, while the hours-and-minutes result is easier to communicate in a schedule. Seven hours 30 minutes is 7.5 decimal hours because 30 minutes is one half of an hour. It is not 7.30 hours. The page shows both forms so the reader can choose the representation required by the next step.

Clock arithmetic has a boundary that ordinary subtraction does not: the end of the day. A finish earlier than a start is not automatically an error, because it may be a night shift or a trip after midnight. The overnight control makes that interpretation explicit. If the interval is genuinely backwards, leave overnight off and the calculator will ask for a consistent end time rather than hiding the problem in a negative result.

Formula

duration = end minutes − start minutes + 1,440 × overnight; decimal hours = duration ÷ 60

For addition mode, the two entered durations are added directly. For clock mode, overnight contributes one full day when selected.

Worked examples

  1. A daytime appointment

    1. 09:30 is 570 minutes after midnight; 17:45 is 1,065 minutes.
    2. 1,065 − 570 = 495 minutes.
    3. 495 ÷ 60 = 8.25 hours.

    The interval is 8 hours 15 minutes, or 8.25 decimal hours.

    Try these numbers
  2. A night shift

    1. 22:15 is 1,335 minutes; 01:45 is 105 minutes.
    2. 105 − 1,335 + 1,440 = 210 minutes.
    3. 210 ÷ 60 = 3.5 hours.

    The overnight interval is 3 hours 30 minutes.

    Try these numbers
  3. Adding two durations

    1. Convert both durations: 2 × 60 + 15 = 135 minutes and 50 minutes.
    2. 135 + 50 = 185 minutes.
    3. 185 minutes is 3 hours 5 minutes, or 3.0833 decimal hours.

    The combined duration is 3 hours 5 minutes.

    Try these numbers

Inputs and results

Start time
A 24-hour clock time in HHMM notation.
End time
The finish clock time.
Overnight
Whether the finish belongs to the following day.
Total minutes
The elapsed quantity before it is split into hours and minutes.
Decimal hours
Total minutes divided by 60.

When to use it

  • Measure a work, travel, study or sleep interval when you know the start and finish clock times.
  • Convert a duration written as hours and minutes into decimal hours for a timesheet or spreadsheet.
  • Add separate activities while keeping 60 minutes equal to one hour instead of treating minutes as hundredths.

Common mistakes

  • Typing 17.30 to mean 17:30; use HHMM such as 1730 or 17:30.
  • Forgetting overnight when a night shift ends after midnight.
  • Reading 2 hours 30 minutes as 2.30 decimal hours; it is 2.5 hours because 30 ÷ 60 = 0.5.

What it does not do

  • It works to the minute and does not model seconds, time zones or daylight-saving transitions.
  • It reports elapsed duration, not a calendar date or the number of working hours after breaks.
  • It does not infer whether an end time on the same clock face is intended to be the next day.

Method and assumptions

Clock times are converted to minutes after midnight, then the selected overnight day is added before subtraction. Addition mode starts with two duration quantities and adds their minutes. The display keeps the exact whole-minute result and shows decimal hours to four displayed decimal places when needed.

No lunch, sleep, travel or other break is removed by this tool. If the question is paid time after an unpaid break, use Work Hours instead.

The conversion back to clock-style notation uses integer division for whole hours and a remainder for minutes. That remainder is always below 60, so the result cannot display an impossible value such as 4 hours 75 minutes.

When a duration is copied into another system, preserve the label. A payroll field expecting decimal hours needs 8.25 for 8 hours 15 minutes, while a calendar note may be clearer as 8 h 15 min. The quantity is the same, but the receiving field may interpret the punctuation differently.

Assumptions

  • Times are on a 24-hour local clock.
  • The smallest input unit is one minute.

Edge cases

  • A zero-length interval is valid when the same start and finish are intended.
  • If the finish is earlier than the start, select overnight rather than accepting a negative duration.
  • A total longer than 24 hours is valid in addition mode, while clock mode describes at most one overnight interval.

Sources and corrections

Elementary formula; no external data needed. Method, rounding and corrections: see the site standards below.

Result looks wrong?

Send inputs and your expected answer; reports are checked against the formula and tests, with confirmed errors corrected publicly.

Report a problem