1,935
min
32
h
15
min
32.25
h
1,935
min
32
h
15
min
32.25
h
The Hours Between Two Times Calculator determines the number of hours and minutes between a start time and an end time, expressed in both traditional clock format (e.g., 8 hours 15 minutes) and decimal hours (e.g., 8.25). This is one of the most commonly needed time calculations in everyday life and professional settings.
Typical applications include: calculating the length of a work shift, determining how many hours a meeting or event runs, finding out how long a flight or road trip takes, computing billable hours for client work, and timing sleep or rest periods. The decimal hours output is especially valuable for payroll systems, freelance invoicing, and any mathematical operation involving time.
The calculator handles both same-day and overnight time spans. If the end time is earlier in the day than the start time, the calculator correctly interprets this as an overnight span and adds 24 hours to the computation. This makes it suitable for night shifts, overnight flights, and any time span that crosses midnight.
Simply enter your start and end times in 24-hour format (0–23 for hours, 0–59 for minutes) to get instant results in all three output formats.
Both times are converted to minutes elapsed since midnight:
$$T_{\text{start}} = H_{\text{start}} \times 60 + M_{\text{start}}$$
$$T_{\text{end}} = H_{\text{end}} \times 60 + M_{\text{end}}$$
The difference in minutes accounts for overnight wrap-around:
$$\Delta M = \begin{cases} T_{\text{end}} - T_{\text{start}} & \text{if } T_{\text{end}} \geq T_{\text{start}} \\ 1440 + T_{\text{end}} - T_{\text{start}} & \text{if } T_{\text{end}} < T_{\text{start}} \end{cases}$$
Outputs are derived from \(\Delta M\):
$$\text{Whole hours} = \left\lfloor \frac{\Delta M}{60} \right\rfloor, \quad \text{Remaining minutes} = \Delta M \bmod 60$$
$$\text{Decimal hours} = \frac{\Delta M}{60}$$
The decimal hours formula is the standard used by payroll systems worldwide. Multiplying decimal hours by an hourly rate gives exact compensation without the rounding errors that accumulate when working in whole hours and minutes separately.
The whole hours + remaining minutes output mirrors clock-face reading and is best for verbal communication and written records. The decimal hours output is for computational use: multiply by a dollar rate for pay, by a cost rate for billing, or use in formulas for efficiency metrics. If you see 8.25 hours, that is exactly 8 hours 15 minutes — and at $40/hour, that is $330 in pay.
Inputs
Results
8 hours 15 minutes = 8.25 decimal hours. At $20/hour this is $165 gross pay.
Inputs
Results
Overnight shift correctly calculated as 8.5 hours — the midnight wrap-around is handled automatically.
Yes. If the end time is earlier than the start time (e.g., start at 10 PM, end at 6 AM), the calculator adds 24 hours to correctly compute the overnight duration.
Use 24-hour format (military time): hours range from 0 to 23, and minutes from 0 to 59. For example, 2:30 PM is entered as 14 hours and 30 minutes.
Multiply decimal hours by the hourly wage rate to get gross pay. For example, 8.25 hours × $25/hour = $206.25. This is the standard method in payroll software.
The maximum is just under 24 hours (23 hours 59 minutes). If start and end times are identical, the result is 0 (not 24 hours).
No — this calculator computes raw clock-in to clock-out time. To account for breaks, calculate the full duration and then subtract break time (e.g., subtract 0.5 hours for a 30-minute break from 8.5 total hours).
Run the calculator separately for each shift and sum the decimal hours outputs. Summing decimals (e.g., 8.25 + 7.75 = 16.0) is more accurate than summing hours and minutes separately.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!