internettoolbox
← Back to Tools

Hours Calculator

Pick a start and an end. The difference in hours and minutes updates as you type, across midnight and across days.

Start
End
Time between
8 h 30 min
As h:mm
8:30
Decimal hours
8.5
Total minutes
510

How it works

Enter a start date and time and an end date and time. The result updates as you type: hours and minutes (8 h 30 min), the same span as h:mm (8:30) for a timesheet, decimal hours (8.5) for payroll or an invoice, and the total in minutes (510). Once the span passes 24 hours you also get it in days, for example 2 days, 2 h 5 min.

Overnight shifts work without touching the dates: leave both on the same day, enter 22:00 to 06:00 and the tool counts the end on the next morning (8 h) and says so under the result. For a span longer than a day, set the end date. If the end date is earlier than the start date, the tool asks you to fix it instead of guessing.

The calculation is clock time: 09:00 to 17:30 is 8 h 30 min on any date. A night that crosses a daylight saving change is still shown as the clock difference, so a 22:00 to 06:00 shift reads 8 h even though one hour was added or removed that night. Breaks are not subtracted: take them off the decimal hours. Everything runs in your browser. To count days rather than hours use the Date Calculator, and to compare the same moment in two cities use the Time Zone Converter.

Frequently Asked Questions

How many hours are there between 9am and 5:30pm?

8 hours 30 minutes, or 8.5 decimal hours. From 9:00 to 17:00 is 8 hours, and the extra 30 minutes is half an hour, which is 0.5 in decimal.

How do I calculate hours for an overnight shift?

Enter the start and end times on the same date and the tool counts the end on the next day. 22:00 to 06:00 is 8 hours; 23:30 to 07:15 is 7 h 45 min. Setting the end date to the next day gives the same result.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add them to the hours. 7 h 45 min is 7 + 45/60 = 7.75 hours; 8 h 20 min is 8.33. The Decimal hours line does this for you, rounded to two decimals.

Can I calculate the time between two different days?

Yes, set a different end date. 10 November 08:15 to 12 November 10:20 is 50 h 5 min, also shown as 2 days, 2 h 5 min and as 3,005 minutes.

Does it account for daylight saving time?

No, it measures clock time, so 22:00 to 06:00 is always 8 hours. On the night clocks go forward the elapsed time is 7 hours, and on the night they go back it is 9: adjust by one hour on those two nights.

Minutes to decimal hours

Timesheets and payroll often want hours as a decimal. Divide the minutes by 60.

MinutesDecimal hoursExample
50.088 h 5 min = 8.08 h
100.177 h 10 min = 7.17 h
150.258 h 15 min = 8.25 h
200.336 h 20 min = 6.33 h
300.58 h 30 min = 8.5 h
400.674 h 40 min = 4.67 h
450.757 h 45 min = 7.75 h
500.839 h 50 min = 9.83 h

Values rounded to two decimals. Rounding each day before adding up a week can drift by a minute or two; add the minutes first and convert once.

Tool switcher

Search and jump to any tool