ThisCalculator

Everyday

Minutes Between Two Times: How to Calculate

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Minutes Between Two Times: How to Calculate

This calculator works out the exact number of minutes between two times of day, whether they fall on the same day or span midnight. You enter a start time and an end time, and you get the duration in minutes, plus the equivalent in hours and minutes. The result is useful for shift planning, travel time, cooking timers, or any situation where you need the precise gap between two clock readings.

Formula

The core formula is simple: convert each time to minutes past midnight, subtract the start from the end, and if the result is negative (meaning the end is on the next day), add 1,440 (the number of minutes in a day).

  • Start time (t) – the earlier clock time, expressed as hours and minutes (e.g., 09:30).
  • End time (d) – the later clock time, also in hours and minutes (e.g., 14:15).
  • Minutes between – the absolute difference in minutes, adjusted for crossing midnight.

In symbols: Minutes = (end_time_in_minutes - start_time_in_minutes) + (if negative, add 1440). Each time is converted as hours × 60 + minutes.

Worked Example

Using the default values from the calculator: start at 09:30 and end at 14:15.

  1. Convert start: 9 × 60 + 30 = 570 minutes past midnight.
  2. Convert end: 14 × 60 + 15 = 855 minutes past midnight.
  3. Subtract: 855 − 570 = 285 minutes.
  4. Since 285 is positive, no adjustment is needed.
  5. Result: 285 minutes, which is 4 hours and 45 minutes.

The calculator returns 285 minutes and displays “4h 45m�. This matches the formula exactly.

When to Use This Calculation

You need this whenever you have two clock times and want the duration between them, not a count of days or seconds. Common cases include:

  • Calculating how long a meeting or class lasted from start to end.
  • Figuring out travel time between a departure and arrival time.
  • Working out shift lengths for payroll or scheduling.
  • Determining how much time remains before a deadline, given the current time.
  • Converting a time span from hours and minutes into pure minutes for billing or tracking.

The calculator assumes both times are on the same day unless the end time is earlier than the start, in which case it treats the end as occurring on the following day. This is the standard convention for overnight shifts (e.g., 22:00 to 06:00).

How to Read the Result

The primary output is the total number of minutes. For most practical purposes, you’ll also want the hours-and-minutes breakdown. For example, 285 minutes is 4 hours and 45 minutes, which is more intuitive than just “285�. The calculator shows both.

If you enter times like 09:30 and 14:15, you get 285 minutes. If you enter 23:00 and 01:30, the calculator adds 1,440 minutes because 01:30 is earlier than 23:00, giving 150 minutes (2 hours 30 minutes).

Note that the result is a duration, not a time of day. “150 minutes� is a length, not “2:30 AM�. Keep that distinction in mind when using the result in further calculations.

Common Mistakes and Misconceptions

A frequent error is forgetting to convert hours to minutes before subtracting. For example, 2:30 PM minus 1:45 PM is not 0:45; you must convert to minutes: (14×60+30) − (13×60+45) = 870 − 825 = 45 minutes. Another common mistake is ignoring midnight crossing. If you subtract 23:00 from 01:00 without adding 1,440, you get −1,320 minutes, which is nonsense. Always check whether the end time is earlier than the start.

Rounding is another pitfall. If you round intermediate steps (like converting 2.5 hours to 2 hours 30 minutes), you might lose precision. Keep everything in minutes until the final step. Also, be careful with AM/PM notation: 12:00 AM is midnight (0 minutes), while 12:00 PM is noon (720 minutes).

Limits of the Formula

This calculation assumes a 24-hour day and ignores time zones, daylight saving changes, and leap seconds. If your start and end times are in different time zones, you must first convert them to a common time zone. If a daylight saving shift occurs between the two times, the actual elapsed time may differ by an hour. The formula also does not handle dates; it only works with times of day. For durations longer than 24 hours, you need to include the date in your calculation.

For most everyday uses—meetings, travel, shifts—these limitations are irrelevant. But for precise scientific or legal purposes, you should use a more robust time library that accounts for calendar dates and time zone rules.

Frequently Asked Questions

How do I calculate minutes between two times in Excel?

In Excel, if you have start time in cell A1 and end time in cell B1, use = (B1-A1)*1440 and format the cell as a number. This works because Excel stores times as fractions of a day. If the end time is on the next day, you need to add IF(B1<A1,1,0) to the formula: = (B1-A1+IF(B1<A1,1,0))*1440.

What is the difference between elapsed time and duration?

They are essentially the same in everyday use. “Elapsed time� often refers to the time that passes from a start event to an end event, while “duration� is the length of that interval. Both are measured in seconds, minutes, hours, etc. The formula is identical.

How do I handle times that cross midnight?

If the end time is earlier than the start time, add 24 hours (or 1,440 minutes) to the end time before subtracting. For example, from 10:00 PM to 2:00 AM: convert to minutes (22×60=1320 and 2×60=120), then compute (120+1440) − 1320 = 240 minutes, or 4 hours.

Why does my calculator show a negative number?

That happens when you subtract a later time from an earlier time without adjusting for midnight. For instance, 01:00 minus 23:00 gives −22 hours. The calculator in this page automatically adds 1,440 minutes when the end is earlier, so you won’t see negatives. If you’re doing it manually, always check the order of times.

Can I use this for time zones?

No, this calculator assumes both times are in the same time zone. To find minutes between times in different zones, first convert both to a common reference (like UTC), then subtract. For example, 9:00 AM EST is 14:00 UTC, and 11:00 AM PST is 19:00 UTC; the difference is 5 hours, or 300 minutes.

What about seconds?

This calculator works with whole minutes. If your times include seconds, convert them to a decimal of a minute (e.g., 2 minutes 30 seconds = 2.5 minutes) and use that in the formula. For most purposes, rounding to the nearest minute is sufficient.

Related

Formula used
in t | Start time | HH:MM | 09:30 | 0
in d | End time | HH:MM | 14:15 | 0
out mins | Minutes between | min | (d - t) + (d < t ? 1440 : 0) | 0
out hm | Hours and minutes | - | floor(mins / 60) + "h " + (mins % 60) + "m" | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.