ThisCalculator

Everyday

Minutes Between 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.

This calculator works out the exact number of minutes between two times of day. You enter a start time and an end time, and you get back the total minutes elapsed, with the result automatically handling overnight spans (for example, from 23:30 to 01:15). The calculation is straightforward subtraction, but the key detail is converting hours and minutes into a single minute count before subtracting.

Formula

The core formula converts each time to minutes past midnight, subtracts, and adds 1440 (the number of minutes in a day) if the result is negative, then takes the remainder when divided by 1440. In symbols:

Minutes = ( (H2 × 60 + M2) − (H1 × 60 + M1) + 1440 ) mod 1440

Where:

  • H1, M1 = hour and minute of the start time (24-hour clock)
  • H2, M2 = hour and minute of the end time (24-hour clock)
  • 1440 = minutes in a full day (24 × 60)
  • mod = remainder after division, which wraps the result into 0–1439

If both times are on the same day, the “+1440” and “mod” steps do nothing (the result is already positive and less than 1440). They only matter when the end time is earlier than the start time, meaning the interval crosses midnight.

Worked Example

Using the default values: start 09:30, end 17:45.

  1. Convert start: 9 × 60 + 30 = 540 + 30 = 570 minutes.
  2. Convert end: 17 × 60 + 45 = 1020 + 45 = 1065 minutes.
  3. Subtract: 1065 − 570 = 495 minutes.
  4. Since 495 is positive and less than 1440, no wrap needed. Result: 495 minutes.

495 minutes is also 8 hours and 15 minutes (495 ÷ 60 = 8.25 hours), which matches the decimal output of 8.25 hours.

When to Use This Calculation

You need the minutes between two times whenever you are tracking duration rather than a calendar date. Common situations include:

  • Calculating how long a shift or meeting lasted (e.g., 09:30 to 17:45).
  • Figuring out travel time between a departure and arrival time.
  • Measuring elapsed time for a timed test, a parking session, or a cooking timer.
  • Converting a start and end time into minutes for billing or payroll.

The result is always a non-negative number between 0 and 1439. If you enter the same time for both, you get 0 minutes. If you enter an end time exactly 24 hours later, you still get 0 because the calculator assumes the interval is less than one full day. For durations longer than 24 hours, you need date information, not just times.

How to Read the Result

The primary output is the total minutes as a whole number. The secondary output gives the same duration in hours as a decimal, which is useful when you need to multiply by an hourly rate or convert to other units. For example, 495 minutes = 8.25 hours, not “8 hours 25 minutes” – the decimal 0.25 of an hour is 15 minutes, not 25. To get hours and minutes separately, divide the minutes by 60: the quotient is hours, the remainder is minutes (495 ÷ 60 = 8 remainder 15).

If the end time is earlier than the start time, the calculator assumes the end time is on the following day. For instance, start 23:30 and end 01:15 gives 105 minutes (1 hour 45 minutes), not a negative number. This is the standard convention for overnight shifts and sleep tracking.

Common Mistakes and How to Avoid Them

The most frequent error is mixing 12-hour and 24-hour clocks. If you enter “3:45” intending 3:45 PM, you must use “15:45” in the calculator, otherwise the result will be off by 12 hours. Always convert PM times by adding 12 to the hour (except 12 PM itself, which stays 12).

Another mistake is forgetting that the result is in minutes, not seconds or hours. If you need seconds, multiply by 60. If you need hours, divide by 60. Also, be careful with rounding: if you round the decimal hours to 2 places, you lose precision; the exact minute count is always the safest.

A third issue is assuming the calculator handles dates. It does not. If you want minutes between “March 3 at 14:00” and “March 5 at 09:00”, you cannot just enter the times; you would need to compute the full days in between separately (e.g., 24 hours + 19 hours = 2580 minutes).

Limits of the Formula

This formula assumes a 24-hour day with no time zone changes, daylight saving time shifts, or leap seconds. In real life, a day can be 23, 24, or 25 hours long when clocks change for daylight saving. If you are measuring across a DST boundary, the actual elapsed time may differ by an hour from the simple subtraction. For most everyday uses (meetings, cooking, travel within the same time zone), the difference is irrelevant, but for precise scientific or legal purposes, you should use a timestamp-based tool that accounts for time zones and DST.

Also, the formula treats both times as being on the same date or consecutive dates only. It cannot handle intervals longer than 24 hours because the modulo operation discards any whole days. If you need days and minutes, multiply the number of days by 1440 and add the minutes from the formula.

Frequently Asked Questions

How do I calculate minutes between two times manually?

Convert each time to minutes past midnight (hour × 60 + minute), subtract the smaller from the larger, and if the end time is earlier than the start time, add 1440. For example, 9:30 AM = 570, 5:45 PM = 1065, difference = 495 minutes.

What if the end time is earlier than the start time?

The calculator assumes the end time is on the next day. So 23:30 to 01:15 gives 105 minutes, not a negative number. If you actually meant the same day (which is impossible for a duration), you would need to specify dates.

How many minutes are in 8 hours?

8 hours × 60 minutes per hour = 480 minutes. For 8 hours and 15 minutes, add 15 to get 495 minutes.

How do I convert minutes to hours and minutes?

Divide the total minutes by 60. The whole number is the hours, and the remainder is the minutes. For 495 minutes: 495 ÷ 60 = 8 remainder 15, so 8 hours 15 minutes.

Does this work for times across midnight?

Yes, the calculator automatically handles crossing midnight by adding 1440 minutes when needed. For example, 22:00 to 06:00 gives 480 minutes (8 hours).

Can I use this for time zones or daylight saving?

No, this is a pure time-of-day calculation. It ignores time zones and DST changes. For intervals that cross a DST change, the actual elapsed time may be 1 hour more or less than the calculated minutes.

Related

Formula used
in t1 | Start time (HH:MM) | - | 09:30 | 0
in t2 | End time (HH:MM) | - | 17:45 | 0
out mins | Minutes between | min | (h2*60+m2 - (h1*60+m1) + 1440) % 1440 | 0
out hrs | Hours (decimal) | h | mins / 60 | 2

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.