Minutes Between Times in Excel: 3 Easy Ways
In this article
To calculate the minutes between two times in Excel, subtract the earlier time from the later time and multiply the result by 1440 (the number of minutes in a day). For example, if start time is in A1 and end time is in B1, the formula =(B1-A1)*1440 returns the elapsed minutes.
How Excel Stores Times
Excel stores every time as a decimal fraction of a 24-hour day. Midnight is 0.000, 6:00 AM is 0.250, noon is 0.500, and 6:00 PM is 0.750. This means a time like 9:30 AM is actually the number 0.3958333. When you subtract one time from another, Excel gives you the fraction of a day between them. Multiplying that fraction by 24 gives hours, and multiplying by 1440 (24 × 60) gives minutes.
Because times are just numbers, you can use them in any arithmetic formula. The key is formatting the result correctly—if you don't multiply by 1440, you'll see a decimal like 0.0104 instead of 15 minutes.
The Basic Formula: (End - Start) * 1440
The most direct way to get minutes between two times is:
=(B1-A1)*1440This works when the end time is later than the start time on the same day. For example:
- Start: 9:00 AM (A1)
- End: 9:45 AM (B1)
- Formula:
=(B1-A1)*1440→ 45
If you need the result as a number (not a time), format the cell as a number or general. If you leave it as a time format, you'll see something like 0:45, which is confusing.
Handling Times That Cross Midnight
A common problem is when the end time is on the next day, such as starting at 10:00 PM and ending at 2:00 AM. Simply subtracting gives a negative number because Excel sees the end time as smaller. To fix this, use the MOD function:
=MOD(B1-A1,1)*1440The MOD function wraps the difference around midnight. For 10:00 PM to 2:00 AM, the difference is -0.6667, and MOD(-0.6667,1) gives 0.3333, which multiplied by 1440 equals 480 minutes (8 hours). This formula works for both same-day and cross-midnight cases.
Using the TEXT Function for Readable Output
Sometimes you want the result as text like "45 min" or "1 hr 30 min". The TEXT function can format the difference directly:
=TEXT(B1-A1,"h:mm")This returns a text string like "1:30" for 90 minutes. If you want it to show "1 hr 30 min", use:
=TEXT(B1-A1,"h") & " hr " & TEXT(B1-A1,"m") & " min"Note that the TEXT function returns text, so you can't use it in further calculations. For numeric results, stick with the multiplication method.
Dealing with Date and Time Combined
If your cells contain both a date and a time (e.g., 2024-03-15 9:00 AM), the subtraction still works. The integer part of the number represents the date, and the decimal part is the time. Subtracting two full timestamps gives the exact difference, including days. To get minutes, multiply by 1440. For example:
- Start: 2024-03-15 9:00 AM
- End: 2024-03-16 10:30 AM
- Formula:
=(B1-A1)*1440→ 1530 minutes (25.5 hours)
If you only want the time difference ignoring the date, use =MOD(B1-A1,1)*1440.
Common Mistakes and Pitfalls
Several issues trip up users:
- Forgetting to multiply by 1440 – you get a fraction of a day, not minutes.
- Formatting the result as a time – you see 0:45 instead of 45.
- Negative results – when end time is before start time, you get a negative number. Use MOD to fix.
- Text-formatted times – if your times are stored as text, subtraction won't work. Convert them using TIMEVALUE.
- AM/PM confusion – Excel treats 9:00 as 9:00 AM unless you specify PM. Always include AM/PM or use 24-hour format.
To check if a time is text, use =ISNUMBER(A1). If it returns FALSE, convert with =TIMEVALUE(A1).
Alternatives: DATEDIF and MINUTE Functions
For date differences, DATEDIF can give days, months, or years, but it doesn't handle minutes. For times, you can use the MINUTE and HOUR functions individually:
=(HOUR(B1)-HOUR(A1))*60 + (MINUTE(B1)-MINUTE(A1))This breaks the time into hours and minutes, but it fails across midnight. The MOD approach is more robust. Another option is to use the NETWORKDAYS function for business days, but that's for dates, not times.
Frequently Asked Questions
How do I calculate minutes between two times in Excel?
Use =(End-Start)*1440. Replace End and Start with cell references. This gives the total minutes as a number. For example, =(B1-A1)*1440.
Why is my formula returning a negative number?
This happens when the end time is earlier than the start time, often because the end time is on the next day. Use =MOD(B1-A1,1)*1440 to handle times that cross midnight.
How do I show the result as hours and minutes?
Use the TEXT function: =TEXT(B1-A1,"h:mm"). This returns a text string like "1:30". For a numeric result, keep the multiplication and format the cell as a number.
Can I calculate minutes between two dates and times?
Yes. If your cells contain both date and time, subtract them and multiply by 1440. The result includes the full elapsed time. If you only want the time part, use =MOD(B1-A1,1)*1440.
What if my times are stored as text?
Convert them with =TIMEVALUE(A1) first. Then use the subtraction formula. You can also use =VALUE(A1) if the text looks like a time.
How do I calculate minutes between two times in different cells?
Simply reference the cells in the formula: =(B1-A1)*1440. Make sure both cells are formatted as time or contain valid time values.