Hours Between Times

Find hours between two times.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

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

1
Step 1
Enter the start time.
2
Step 2
Enter the end time.
3
Step 3
Press Calculate to see the hours.

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?
8.5 hours, which is 8 hours and 30 minutes.
How do I convert 8.5 hours to hours and minutes?
The 0.5 is half an hour, so it is 8 hours 30 minutes.
How do I calculate an overnight shift?
Just enter the start and end times. When the end is earlier than the start the tool wraps past midnight, so 22:00 to 06:00 returns 8 hours and 23:30 to 00:15 returns 0.75.
How do I subtract a lunch break?
Take the break in hours off the answer. A 30-minute break turns 8.5 hours into 8.

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 YouTube
  • Finding 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.