Hours Between Two Times Calculator
Enter a start time and an end time to get the elapsed hours and minutes, even when the shift crosses midnight. Subtract an unpaid break if needed.
Your numbers
How we calculate it
Times are converted to minutes after midnight. The difference is (end − start) wrapped within 24 hours, so 10:00 PM to 6:00 AM is 8 hours. The break is then subtracted.
Decimal hours are minutes ÷ 60, which is the format most payroll systems expect: 7 hours 30 minutes is 7.5.
Assumptions and limits
- If the end time equals the start time the result is zero. For a full 24-hour span use the days between dates calculator.
- Calculations assume no daylight saving time change during the shift.
Frequently asked questions
How do I calculate hours worked overnight?
Enter the start time and the next-morning end time. The calculator treats an end time earlier than the start as the following day.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 45 minutes is 0.75 hours and 20 minutes is 0.33 hours.
Can I add up several shifts?
Run each shift separately and add the decimal hours together.
Related calculators
- Days Between Dates CalculatorPick two dates to see exactly how many days apart they are, along with the same gap in weeks, in years-months-days and in working weekdays.
- Hourly to Salary CalculatorEnter your hourly pay and schedule to see the equivalent annual salary, with an optional adjustment for unpaid time off.
- Add Days to a Date CalculatorStart with a date and add or subtract any number of days, weeks, months or years to find the resulting date.
- Age CalculatorEnter a date of birth to see your exact age and how many days until your next birthday.
Worked example (a fixed example using the starting numbers, it does not change as you type)
Inputs: Start time = 09:00; End time = 17:30; Unpaid break (minutes) = 30.
- Time between 8 hours 0 minutes
- Decimal hours 8.00
- Total minutes 480
Embed this calculator
Add this calculator to your own page. Paste the code where you want it. The small link keeps credit to the source.