Hours and Minutes Between Two Times: How to Calculate
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.
To find the hours and minutes between two times, subtract the earlier time from the later time, borrowing 60 minutes from the hour column when needed. The result is the elapsed duration in hours and minutes, which you can also express as a decimal number of hours.
Formula
The calculator converts each time to minutes after midnight, subtracts the start minutes from the end minutes, and then converts the difference back to hours and minutes.
For two times t1 and t2 entered as HH:MM:
- Convert t1 to minutes: M1 = hours × 60 + minutes
- Convert t2 to minutes: M2 = hours × 60 + minutes
- Duration in minutes: D = M2 − M1
- Hours = floor(D / 60), minutes = D mod 60
All units are in minutes for the calculation; the final output is expressed in hours and minutes (h:mm).
Worked Example
Using the default values: start time 9:30, end time 17:45.
- Convert 9:30 to minutes: 9 × 60 + 30 = 570
- Convert 17:45 to minutes: 17 × 60 + 45 = 1065
- Subtract: 1065 − 570 = 495 minutes
- Divide 495 by 60: 8 hours with 15 minutes remaining (8 × 60 = 480, 495 − 480 = 15)
Duration = 8 hours 15 minutes, which equals 8.25 decimal hours. The calculator shows 8:15.
When to Use This Calculation
You need the exact elapsed time between two moments in many everyday situations:
- Time sheets and payroll: calculating how long an employee worked from clock-in to clock-out.
- Project tracking: measuring how much time a task or meeting took.
- Travel planning: determining flight duration or driving time between departure and arrival.
- Cooking and baking: timing a recipe that starts at one time and ends at another.
- Event scheduling: figuring out the length of a concert, class, or appointment.
The calculation assumes both times are on the same day and that the end time is later than the start time. For overnight shifts (e.g., 22:00 to 06:00), add 24 hours to the end time first.
How to Read the Result
The result appears in two formats:
- h:mm – the duration in hours and minutes, such as 8:15 for 8 hours 15 minutes.
- Decimal hours – the same duration expressed as a single number, such as 8.25. This is useful for payroll or when multiplying by an hourly rate.
If you need the result in minutes only, multiply the decimal hours by 60 (e.g., 8.25 × 60 = 495 minutes). The h:mm format is more intuitive for everyday use, while decimal hours are standard in spreadsheets and billing systems.
Common Mistakes and Pitfalls
Several errors frequently occur when calculating time differences manually:
- Forgetting to borrow: When subtracting minutes, if the start minutes are greater than the end minutes, you must borrow 1 hour (60 minutes) from the hour column. For example, 14:20 minus 9:45: 20 − 45 is negative, so borrow 60 minutes to get 80 − 45 = 35 minutes, and reduce 14 to 13 hours.
- Mixing AM/PM: Always use 24-hour time or clearly specify AM/PM. 9:30 could be morning or evening; 9:30 AM to 5:45 PM is 8h15m, but 9:30 PM to 5:45 PM the next day is 20h15m.
- Treating minutes as hundredths: 1 hour 30 minutes is 1.5 hours, not 1.30. Converting minutes to decimal hours requires dividing by 60, not by 100.
- Ignoring overnight spans: If the end time is earlier than the start time, you likely crossed midnight. Add 24 hours to the end time before subtracting.
Limits of the Formula
The basic subtraction method gives the exact clock duration between two instants, but it does not account for:
- Time zones: If the two times are in different zones, convert both to the same zone (usually UTC) before subtracting.
- Daylight saving time changes: On days when clocks spring forward or fall back, the actual elapsed time differs from the clock time difference by one hour. For example, from 02:00 to 03:00 on a spring-forward day is only 0 hours of real time.
- Leap seconds: These are rare additions to UTC, but they do affect precise scientific measurements.
- Business hours vs. calendar time: The calculation gives total elapsed time, not the number of working hours within that span. A task from 9 AM to 5 PM is 8 hours, but if it spans a lunch break, the actual work time may be less.
For most practical purposes—scheduling, time tracking, and everyday planning—the simple subtraction is accurate enough.
Alternatives and Related Calculations
If you need more than just the duration between two times, consider these related tools:
- Date and time difference: When the start and end are on different dates, include the date in the calculation to get total days, hours, and minutes.
- Adding or subtracting time: To find what time it will be 2 hours and 30 minutes from now, add the duration to the current time.
- Time in decimal format: For payroll or billing, convert the h:mm result to decimal hours by dividing minutes by 60.
- Time zone converter: If you need to compare times across zones, use a time zone converter to align them first.
These variations build on the same basic arithmetic but require extra steps for dates, zones, or formatting.
Frequently Asked Questions
How do I calculate hours and minutes between two times manually?
Write both times in 24-hour format. Convert each to minutes by multiplying the hour by 60 and adding the minutes. Subtract the start minutes from the end minutes. If the result is negative, add 1440 (24 hours in minutes) to get the overnight duration. Then divide by 60 to get hours and use the remainder as minutes.
What if the end time is earlier than the start time?
That usually means the period crosses midnight. Add 24 hours to the end time before subtracting. For example, from 22:30 to 06:15: convert 06:15 to 30:15 (add 24 hours), then subtract 22:30 → 7 hours 45 minutes.
How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add to the hours. For instance, 8 hours 15 minutes becomes 8 + (15/60) = 8.25 hours. This is the format commonly used in payroll and spreadsheet calculations.
Does this calculator account for AM/PM?
No, you must enter times in 24-hour format (e.g., 14:30 for 2:30 PM) or ensure the start and end are on the same side of noon. If you use 12-hour times, be consistent and specify AM/PM mentally.
Can I calculate the duration between times on different dates?
This calculator assumes the same day. For different dates, add the number of full days in between to the duration. For example, from Monday 14:00 to Wednesday 10:00: 24 hours (Tuesday) + 20 hours (Monday 14:00 to Tuesday 10:00) = 44 hours.
Why is my manual calculation different from the calculator?
Check for common errors: using 12-hour times without AM/PM, forgetting to borrow when minutes are negative, or converting minutes to decimal incorrectly. Also verify that both times are in the same day and time zone.
Related
Formula used
in t1 | Start time (HH:MM) | - | 9:30 | 0 in t2 | End time (HH:MM) | - | 17:45 | 0 out dur | Duration | h:mm | t2 - t1 | time out dec | Decimal hours | h | (t2 - t1) / 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.