Hours Between Times
Find hours between two times.
About this tool
Enter a start time and an end time to get the hours between them as a decimal. It is handy for timesheets and pay, since 8.5 hours multiplies directly by an hourly rate.
How to use
How it works
Both times are converted to minutes since midnight and subtracted, then divided by 60. Both 12-hour (9:00 am) and 24-hour (17:30) formats work. If the end time is earlier than the start time, the span is taken to cross midnight, so 22:00 to 06:00 is 8 hours. The result is decimal hours, so 8.5 means 8 hours 30 minutes and 0.25 means 15 minutes.
hours = (end minutes − start minutes) ÷ 60, plus 24 if the end is earlier than the start
Worked example
A 9:00 am to 5:30 pm shift
- Input
- Start 9:00 am; end 5:30 pm
- Output
- 8.5 hours
- Walkthrough
- 9:00 am is 540 minutes and 5:30 pm is 1,050 minutes. 1,050 − 540 = 510, and 510 ÷ 60 = 8.5.
Limitations
- The gap is at most 24 hours. An end time earlier than the start is read as the next day (22:00 to 06:00 is 8 hours), so a span longer than a day cannot be measured here.
- Identical times give 0 hours, not 24.
- Breaks are not deducted; subtract them from the result.
Questions
How many hours is 9:00 am to 5:30 pm?
How do I convert 8.5 hours to hours and minutes?
How do I calculate an overnight shift?
How do I subtract a lunch break?
Features
- 12-hour and 24-hour input
- Decimal hours for payroll
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Introduction to interest
Khan Academy
Simple vs compound framing for everyday money tools.
Watch on YouTubeFinding a percentage
Khan Academy
Percentage tools and tip/discount calculators rely on this.
Watch on YouTube
- Percentages
Math is Fun
Percent of / percent change patterns for daily calculators.
- Simple Interest
Math is Fun
Simple interest when comparing with compound calculators.