Hours Calculator

Find how many hours and minutes there are between a start time and an end time. Subtract a break, handle shifts that run past midnight, and multiply by a number of days to get a total. Results appear as hours and minutes and as decimal hours.

By Rashid MehmoodLast updated and reviewed Free, no sign-up

Hours calculator

min
–

How to use the hours calculator – hours between two times

  1. Enter the start time. Choose the time the shift or task started. Use the 24-hour or AM/PM style your browser shows.
  2. Enter the end time. Choose the time it ended. If it is earlier than the start, the calculator treats it as the next day.
  3. Subtract a break. Enter the unpaid break in minutes. It is taken off the time between start and end.
  4. Set the number of days. To get a total for several equal days, enter how many days. The result shows the time per day and the total.
Embed this calculator

Paste this iframe on your own site. The embed view already includes a visible “Calculator by CalcTen” credit, which must stay visible. See the developers page for the conditions.

How hours between two times are calculated

The calculator converts each time to minutes after midnight and subtracts. If the end time is earlier than the start, it adds 24 hours, which handles shifts that cross midnight. Then it takes off the break.

Time worked = (end − start) − break
Overnight: end + 24 h − start − break

Worked examples

09:00 to 17:30, 30 minute break. 8 h 30 min between the times, less 30 minutes, is 8 hours (8.0 decimal). Five days is 40 hours.

22:00 to 06:00, 30 minute break. 8 hours between the times, less 30 minutes, is 7 hours 30 minutes (7.5 decimal).

08:15 to 16:45, no break. 8 hours 30 minutes, or 8.5 decimal hours.

Common start and end times

StartEndBreakHours worked
08:0016:0030 min7:30 (7.5)
09:0017:0060 min7:00 (7.0)
09:0017:3030 min8:00 (8.0)
07:0019:0060 min11:00 (11.0)
22:0006:0030 min7:30 (7.5)

Breaks and what counts as working time

Whether a break is deducted depends on the rules that apply to you. In the United States, Department of Labor guidance under the Fair Labor Standards Act says that rest periods of short duration, usually 20 minutes or less, are customarily paid and count as hours worked, while bona fide meal periods, typically 30 minutes or more, generally need not be counted when the worker is completely relieved from duty. State laws and other countries can differ, and employer policies or contracts may be more generous. This page measures time, and is not legal or payroll advice.

Hours in decimal form

Timesheets and spreadsheets often want decimal hours. 8 hours 15 minutes is 8.25, and 8 hours 20 minutes is 8.33 rounded to two places. If you need to convert other times, use the time to decimal calculator. To add up durations that you already have, the time calculator will do that.

Weekly totals

For a normal week with different start and end times each day, the time card calculator gives one total for the week. To count the number of days or weeks between two dates, use the days between dates calculator.

Frequently asked questions

How many hours are between 9:00 and 17:30?

8 hours 30 minutes. With a 30 minute unpaid break the time worked is 8 hours, which is 8.0 in decimal. Over 5 days that is 40 hours.

How do I calculate hours for an overnight shift?

Enter the start and end times as clock times. If the end is earlier than the start, the calculator adds 24 hours. A shift from 22:00 to 06:00 is 8 hours, or 7 hours 30 minutes after a 30 minute break.

How do I convert hours and minutes to decimal?

Divide the minutes by 60 and add them to the hours. 7 hours 30 minutes is 7.5 hours, and 7 hours 45 minutes is 7.75. The result box shows both forms.

Should the break be subtracted?

It depends on whether the break is paid. Under US Department of Labor guidance, short rest periods of around 20 minutes or less are normally counted as working time, while bona fide meal periods of 30 minutes or more, when the worker is completely relieved of duty, generally are not. Local laws and employer policies vary.

What if the start and end times are the same?

The calculator gives 0 hours. For a full 24 hour shift, use the time calculator instead.

Can I add several days with different hours?

Use the time card calculator, which has a row for each day of the week and adds them for you.

Does this calculate pay?

No. It only measures time. Multiply the decimal hours by your own rate if you need an amount.

Sources and references

About this calculator

Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 14 November 2026. See our editorial policy. If you spot a mistake, report it.

Results use the Gregorian calendar and calendar dates only, with "today" taken from your device. Contract, legal and payroll definitions of days, months and working time can differ, so check the wording that applies to you. Read the disclaimer.

Calculator by CalcTen — free online calculators.