Hours Between Times
Calculate the exact hours and minutes between any two times. Perfect for time tracking!
Calculate Time Duration
How to Calculate Hours Between Times
Enter Start Time
Enter the beginning time of the period you want to measure.
Enter End Time
Enter the ending time. Works for same-day or overnight periods.
Get Results
See the duration in hours, minutes, and decimal format.
Common Time Durations
Reference table for typical work and activity durations
| Period | Duration | Decimal |
|---|---|---|
| 9:00 AM - 5:00 PM | 8h 0m | 8.00 |
| 9:00 AM - 5:30 PM | 8h 30m | 8.50 |
| 8:00 AM - 4:00 PM | 8h 0m | 8.00 |
| 7:00 AM - 3:30 PM | 8h 30m | 8.50 |
| 9:00 AM - 12:00 PM | 3h 0m | 3.00 |
| 1:00 PM - 5:00 PM | 4h 0m | 4.00 |
| 10:00 PM - 6:00 AM | 8h 0m | 8.00 (overnight) |
Related Calculators
Frequently Asked Questions
How to Calculate Hours Between Two Times
If the result is negative (overnight), add 24 hours to the difference.
Calculating the hours and minutes between two times is a fundamental skill used across virtually every profession and many personal situations. Employees need to know how long they worked to verify their paychecks. Freelancers and consultants track billable hours to invoice clients. Project managers measure task durations to refine estimates. Parents calculate how long their child slept or napped. Cooks determine total cooking time from start to finish. In every case, the underlying math is the same: subtract the start time from the end time, handling the base-60 minute system and potential midnight crossings along the way.
Our Hours Between Times calculator automates this process completely. Enter any start time and end time, click Calculate, and get the result in three formats simultaneously: hours and minutes, decimal hours (for payroll), and total minutes. The calculator handles overnight periods automatically—if the end time is earlier than the start time, it assumes the period crosses midnight.
Step-by-Step Calculation Method
To calculate time duration manually, convert both times to 24-hour format, then subtract. Start by subtracting the start minutes from the end minutes. If the result is negative, borrow 60 minutes from the hours column (add 60 to minutes and subtract 1 from hours). Next, subtract the start hours from the end hours. If this result is negative, the period crosses midnight—add 24 to get the correct duration.
For decimal conversion, take the resulting minutes and divide by 60, then add to the hours. This gives you the duration in decimal hours, the format most payroll systems and billing software require for wage and rate calculations.
Worked Examples
Convert to 24-hour: Start = 09:00, End = 17:00
Minutes: 00 − 00 = 0 minutes
Hours: 17 − 9 = 8 hours
Result: 8 hours 0 minutes (8.00 decimal hours)
This is the classic 8-hour workday. In decimal format, it is exactly 8.00 hours, making payroll calculation straightforward: multiply 8.00 by the hourly rate.
Convert to 24-hour: Start = 22:00, End = 06:00
Minutes: 00 − 00 = 0 minutes
Hours: 06 − 22 = −16 → −16 + 24 = 8 hours
Result: 8 hours 0 minutes (8.00 decimal hours)
The negative result from the hour subtraction tells us the shift crosses midnight. Adding 24 corrects the calculation. This overnight shift is exactly 8 hours, the same length as the standard day shift above.
Convert to 24-hour: Start = 13:15, End = 16:45
Minutes: 45 − 15 = 30 minutes
Hours: 16 − 13 = 3 hours
Result: 3 hours 30 minutes (3.50 decimal hours)
With 30 minutes being exactly half an hour, the decimal conversion is clean: 30 ÷ 60 = 0.50, so 3 + 0.50 = 3.50 hours. At an hourly rate of $40, this period would be billed as $140.00.
Common Time Durations Reference
| Activity | Typical Duration | Decimal Hours |
|---|---|---|
| Standard work day (9–5) | 8h 0m | 8.00 |
| Extended work day (8–6) | 10h 0m | 10.00 |
| Half day (morning) | 4h 0m | 4.00 |
| Half day (with lunch) | 4h 30m | 4.50 |
| School day (8 AM–3 PM) | 7h 0m | 7.00 |
| Night shift (10 PM–6 AM) | 8h 0m | 8.00 |
| 12-hour nursing shift | 12h 0m | 12.00 |
| Part-time shift (5–9 PM) | 4h 0m | 4.00 |
| Lunch break | 0h 30m – 1h 0m | 0.50 – 1.00 |
| Quick meeting | 0h 15m – 0h 30m | 0.25 – 0.50 |
Converting Duration to Decimal Hours
Decimal hours express minutes as a fraction of an hour, making multiplication by hourly rates trivial. The conversion formula is: Decimal Hours = Hours + (Minutes ÷ 60). For instance, 7 hours 45 minutes becomes 7 + (45 ÷ 60) = 7 + 0.75 = 7.75 decimal hours. At a rate of $30 per hour, the pay would be 7.75 × $30 = $232.50.
Common minute-to-decimal conversions worth memorizing: 5 minutes = 0.08, 10 minutes = 0.17, 15 minutes = 0.25, 20 minutes = 0.33, 30 minutes = 0.50, 45 minutes = 0.75. These six values cover most real-world scenarios. For exact conversions of every minute value, use our Time to Decimal Converter.
Handling Overnight Durations
Overnight time calculations are the most common source of errors in manual time tracking. When an employee clocks in at 10:00 PM and clocks out at 6:30 AM, a naive subtraction (6:30 − 22:00) produces a negative number. The solution is to add 24 hours to the end time before subtracting: (6:30 + 24:00) − 22:00 = 30:30 − 22:00 = 8:30, or 8 hours 30 minutes. Our calculator performs this adjustment automatically whenever the end time is earlier than the start time.
For shifts that span more than 24 hours—such as on-call medical residents or multi-day event staffing—you need to know the specific dates. A duration from Monday 8:00 PM to Wednesday 8:00 AM spans 36 hours. In these cases, using a date-aware calculator or specifying dates alongside times ensures accuracy. For standard within-a-day or single-overnight calculations, our tool handles everything correctly.
Practical Use Cases
Shift duration and payroll: The most common use for calculating hours between times is determining how long an employee worked during a shift. Accurate shift-duration calculations directly affect paychecks, overtime eligibility, and labor law compliance. Under the Fair Labor Standards Act (FLSA), non-exempt employees must receive overtime pay (1.5× the regular rate) for hours worked beyond 40 in a workweek. Precise time tracking is essential for both employees and employers.
Travel time estimation: Knowing the duration between departure and arrival helps with trip planning. If you left home at 7:15 AM and arrived at your destination at 11:45 AM, the travel time was 4 hours 30 minutes. Over multiple trips, tracking these durations reveals patterns—average commute times, best departure windows, and seasonal variations—that help you plan more efficiently.
Cooking and food safety: Certain recipes require precise timing for food safety. A turkey that needs to roast for 3 hours 45 minutes placed in the oven at 12:30 PM should come out at 4:15 PM. Meat that has been left at room temperature for more than 2 hours (1 hour if the temperature is above 90°F) enters the "danger zone" for bacterial growth. Calculating the elapsed time since food was removed from refrigeration helps prevent foodborne illness.
Study and focus sessions: Students and knowledge workers often use time-blocking techniques like the Pomodoro method, working in focused intervals of 25 minutes with 5-minute breaks. Tracking the total hours spent studying each day—by summing multiple start-to-end intervals—provides valuable data for academic planning and productivity optimization. If you studied from 2:00 PM to 4:30 PM and again from 7:00 PM to 9:15 PM, your total study time was 2h 30m + 2h 15m = 4h 45m (4.75 decimal hours).
Exercise and training logs: Athletes track workout duration to ensure adequate training volume while avoiding overtraining. A runner who starts at 6:15 AM and finishes at 7:50 AM ran for 1 hour 35 minutes. Logging these durations over weeks and months reveals trends in endurance, recovery needs, and overall fitness progress.
Common Mistakes to Avoid
The most frequent error is forgetting to account for the AM/PM boundary. Calculating "9 AM to 5 PM" as 5 − 9 = −4 hours is incorrect because the times span across the noon boundary. Converting to 24-hour format (09:00 to 17:00) immediately fixes this: 17 − 9 = 8 hours. Another common mistake is confusing 12:00 AM (midnight) with 12:00 PM (noon)—miscounting these reference points can throw your calculation off by a full 12 hours. When in doubt, always convert to 24-hour format before performing arithmetic.