Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Minutes Between Times
510
minutes
Total in hours 8.5 hours
Hours & minutes 8 h 30 min

What this calculator does

The Minutes Between Two Times Calculator tells you exactly how many minutes pass between a start time and an end time. Enter both times using a 24-hour clock and it returns the gap in minutes, the equivalent in decimal hours, and a tidy hours-and-minutes breakdown. It correctly handles spans that cross midnight, such as a night shift that begins at 22:00 and ends at 06:00.

How to use it

Enter the start hour and minute, then the end hour and minute. Hours run from 0 to 23 and minutes from 0 to 59. Press calculate to see the difference. If the end time is earlier in the day than the start time, the tool assumes the end falls on the following day and adds a full day (1,440 minutes) so you always get a positive duration.

The formula explained

Each clock time is first converted to "minutes since midnight" using \(\text{hours} \times 60 + \text{minutes}\). The start value is subtracted from the end value. When that subtraction is negative, the span wrapped past midnight, so we add 1,440 — the number of minutes in 24 hours — to recover the real elapsed time.

$$\begin{gathered} \text{Minutes} = \left(D + 1440\right) \bmod 1440 \\[1.5em] \text{where}\quad D = \left(60 \cdot \text{End Hour} + \text{End Min}\right) - \left(60 \cdot \text{Start Hour} + \text{Start Min}\right) \end{gathered}$$
Diagram of an overnight span crossing midnight
For overnight spans, a full day (1440 minutes) is added so the result stays positive.
Timeline showing the span between a start time and an end time
The minutes between two times is the gap on the timeline from start to end.

Worked example

From 9:00 to 17:30: start = \(9 \times 60 + 0 = 540\) minutes; end = \(17 \times 60 + 30 = 1{,}050\) minutes. Difference = \(1{,}050 - 540 = \) 510 minutes, which is 8 hours and 30 minutes (8.5 hours).

$$1{,}050 - 540 = 510 \text{ minutes}$$

FAQ

What if the end time is past midnight? Enter it as it appears on a 24-hour clock (e.g. 1 a.m. = 1:00). If the result would be negative, the calculator adds 1,440 minutes automatically.

Can I get the answer in hours? Yes — the result also shows the total in decimal hours and as hours plus minutes.

Does it count both endpoints? No, it measures the elapsed duration between the two times, not an inclusive count.

Last updated: