Skip to main content

Hours Calculator

Enter a start time and an end time. Get the duration in hours, minutes, and decimal hours, with an optional break deduction, or look up a common shift in the chart.

Duration
7h 30m
Decimal hours
7.50
Minutes
450
Embed this calculator on your website

Copy this HTML into your page. The calculator is free to embed on any site and stays up to date automatically.

<iframe src="https://timesheet.io/en/embed/hours-calculator"
  width="100%" height="520" style="border:0"
  title="Hours Calculator" loading="lazy"></iframe>
<p>Free <a href="https://timesheet.io/en/tools/hours-calculator">Hours Calculator</a> by <a href="https://timesheet.io/en">Timesheet</a></p>
Free to use. Please keep the attribution link below the calculator.

Tired of doing this by hand?

Timesheet tracks your hours on iPhone, Android and the web and turns them into reports, exports and invoices. Try it free for 30 days, no credit card required.

What this calculator does

Pick a start time and an end time. The calculator returns the duration in hours and minutes, decimal hours for payroll, and total minutes. If you took a break, enter the break length in minutes and it will be subtracted from the duration.

How many hours is a shift? Common start and end times

Count from the start time to the end time: 8 AM to 2 PM is 6 hours, 9 to 5 is 8 hours, and a night shift from 10 PM to 6 AM is 8 hours as well. The chart lists the shifts people look up most, in 12-hour and 24-hour time, before and after a 30-minute unpaid break.

Shift24-hour timeHoursDecimalAfter a 30-minute break
6:00 AM to 2:00 PM06:00 to 14:008 hours8.007.50
6:00 AM to 4:00 PM06:00 to 16:0010 hours10.009.50
6:30 AM to 3:00 PM06:30 to 15:008 hours 30 minutes8.508.00
7:00 AM to 3:00 PM07:00 to 15:008 hours8.007.50
7:45 AM to 3:45 PM07:45 to 15:458 hours8.007.50
8:00 AM to 1:00 PM08:00 to 13:005 hours5.004.50
8:00 AM to 2:00 PM08:00 to 14:006 hours6.005.50
8:00 AM to 5:00 PM08:00 to 17:009 hours9.008.50
8:00 AM to 6:00 PM08:00 to 18:0010 hours10.009.50
8:00 AM to 8:00 PM08:00 to 20:0012 hours12.0011.50
8:30 AM to 2:00 PM08:30 to 14:005 hours 30 minutes5.505.00
9:00 AM to 5:00 PM09:00 to 17:008 hours8.007.50
11:30 AM to 4:30 PM11:30 to 16:305 hours5.004.50
2:00 PM to 10:00 PM14:00 to 22:008 hours8.007.50
2:00 PM to 11:00 PM14:00 to 23:009 hours9.008.50
6:00 PM to 11:00 PM18:00 to 23:005 hours5.004.50
10:00 PM to 6:00 AM22:00 to 06:008 hours8.007.50

Cross-midnight shifts

Night shifts work fine: 22:00 to 06:00 is recognised as 8 hours, not as a negative number. The calculator adds 24 hours whenever the end time falls before the start time.

From one shift to a full week

If you need to calculate hours for several days at once, use our Time Card Calculator. For continuous tracking with start, stop, breaks, projects, and exports, the Timesheet work hours tracker handles it all in the background.

Frequently asked questions

How many hours is 8 to 2?
8:00 AM to 2:00 PM is 6 hours, or 6.0 in decimal hours. If you take a 30-minute unpaid break, you worked 5 hours 30 minutes (5.5 hours).
How many hours is 2pm to 10pm?
2:00 PM to 10:00 PM is 8 hours. In 24-hour time that is 14:00 to 22:00. With a 30-minute break it is 7 hours 30 minutes (7.5 hours).
How many hours are there between 8 AM and 8 PM?
12 hours. With a 30-minute break, an 8 AM to 8 PM shift is 11 hours 30 minutes of work (11.5 hours).
How do I calculate hours between two times?
Subtract the start time from the end time. The calculator does this for you in seconds and also subtracts any break minutes you enter.
Does it handle times that cross midnight?
Yes. If the end time is before the start time, the calculator assumes the shift crossed midnight and adds 24 hours automatically.
What format are the results in?
You get the duration in hours-and-minutes, as decimal hours (for payroll), and as total minutes.
Do you store my times?
No. The calculator runs entirely in your browser. Nothing is sent to a server or saved anywhere.
Hours Calculator: How Many Hours Between Two Times | timesheet.io