Numbrik

Hours Calculator: How Many Hours Between Two Times

Find how many hours are between two times. Enter a start and end time, such as 8 AM and 5 PM, and the hours calculator shows the total in hours and minutes, decimal hours and minutes, minus any unpaid break. It handles overnight shifts like 7 PM to 7 AM, counts hours between two dates, and adds hours to a time. The charts below answer the most common shifts at a glance.

Loading calculator…

How do you calculate hours between two times?

Convert both times to minutes after midnight, subtract the start from the end, and take off any break. If the end time is earlier than the start, the period crosses midnight, so add 24 hours. Divide the minutes by 60 for decimal hours.

How to use the Hours Calculator

  1. Choose Between two times, Between two dates, or Add hours to a time.
  2. Enter the start and end times, or tap Now to use the current time. Add an unpaid break in minutes if you have one.
  3. Read the total in hours and minutes, the sentence answer you can copy, the decimal hours for a timesheet and the total minutes.

How it works

The calculator turns both times into minutes after midnight, subtracts the start from the end and removes the break. When the end time is earlier than the start time, it assumes the period crosses midnight and adds 24 hours.

Decimal hours are the hours plus the minutes divided by 60. Timesheets and payroll software often ask for decimal hours, so 6 hours 20 minutes becomes 6.33.

Formula

Minutes = end − start − break   (add 1,440 if end is before start)
Decimal hours = minutes ÷ 60

Example

From 8:00 AM to 5:00 PM is 9 hours (540 minutes, 9.00 decimal hours). Take off a 30-minute unpaid lunch and the time worked is 8 hours 30 minutes, or 8.50 decimal hours. Overnight, 7:00 PM to 7:00 AM is 12 hours.

How many hours is it? Common work shifts

The time between common start and end times, in hours and minutes, total minutes and decimal hours, plus the time left after a 30-minute unpaid break. For any other times, use the calculator above.

Daytime shifts (6 hours or more)

From – toHoursMinutesDecimalAfter 30-min break
1:30 AM – 8:00 PM18h 30m1,11018.5018h 00m
3:00 AM – 9:00 AM6h 00m3606.005h 30m
4:00 AM – 4:00 PM12h 00m72012.0011h 30m
4:00 AM – 9:00 PM17h 00m1,02017.0016h 30m
5:00 AM – 10:00 PM17h 00m1,02017.0016h 30m
6:00 AM – 12:00 PM6h 00m3606.005h 30m
6:00 AM – 2:00 PM8h 00m4808.007h 30m
6:00 AM – 4:00 PM10h 00m60010.009h 30m
6:00 AM – 6:00 PM12h 00m72012.0011h 30m
6:00 AM – 9:00 PM15h 00m90015.0014h 30m
6:30 AM – 2:30 PM8h 00m4808.007h 30m
6:30 AM – 3:30 PM9h 00m5409.008h 30m
6:30 AM – 4:30 PM10h 00m60010.009h 30m
7:00 AM – 3:30 PM8h 30m5108.508h 00m
7:00 AM – 4:00 PM9h 00m5409.008h 30m
7:00 AM – 6:00 PM11h 00m66011.0010h 30m
7:00 AM – 7:00 PM12h 00m72012.0011h 30m
7:00 AM – 9:00 PM14h 00m84014.0013h 30m
7:30 AM – 3:30 PM8h 00m4808.007h 30m
7:30 AM – 4:30 PM9h 00m5409.008h 30m
7:30 AM – 6:00 PM10h 30m63010.5010h 00m
8:00 AM – 2:00 PM6h 00m3606.005h 30m
8:00 AM – 3:00 PM7h 00m4207.006h 30m
8:00 AM – 3:30 PM7h 30m4507.507h 00m
8:00 AM – 4:00 PM8h 00m4808.007h 30m
8:00 AM – 4:30 PM8h 30m5108.508h 00m
8:00 AM – 5:00 PM9h 00m5409.008h 30m
8:00 AM – 6:00 PM10h 00m60010.009h 30m
8:00 AM – 7:00 PM11h 00m66011.0010h 30m
8:00 AM – 8:00 PM12h 00m72012.0011h 30m
8:00 AM – 10:00 PM14h 00m84014.0013h 30m
8:30 AM – 3:00 PM6h 30m3906.506h 00m
8:30 AM – 3:30 PM7h 00m4207.006h 30m
8:30 AM – 4:30 PM8h 00m4808.007h 30m
8:30 AM – 5:00 PM8h 30m5108.508h 00m
8:30 AM – 5:30 PM9h 00m5409.008h 30m
9:00 AM – 4:00 PM7h 00m4207.006h 30m
9:00 AM – 4:30 PM7h 30m4507.507h 00m
9:00 AM – 5:00 PM8h 00m4808.007h 30m
9:00 AM – 6:00 PM9h 00m5409.008h 30m
9:00 AM – 10:00 PM13h 00m78013.0012h 30m
9:30 AM – 4:00 PM6h 30m3906.506h 00m
9:30 AM – 4:45 PM7h 15m4357.256h 45m
9:30 AM – 5:00 PM7h 30m4507.507h 00m
10:00 AM – 4:00 PM6h 00m3606.005h 30m
10:00 AM – 5:00 PM7h 00m4207.006h 30m
10:00 AM – 6:00 PM8h 00m4808.007h 30m
10:00 AM – 8:00 PM10h 00m60010.009h 30m
10:00 AM – 10:00 PM12h 00m72012.0011h 30m
11:00 AM – 7:00 PM8h 00m4808.007h 30m
11:00 AM – 11:00 PM12h 00m72012.0011h 30m
12:00 PM – 8:00 PM8h 00m4808.007h 30m
1:00 PM – 7:00 PM6h 00m3606.005h 30m
2:00 PM – 10:00 PM8h 00m4808.007h 30m
3:00 PM – 11:00 PM8h 00m4808.007h 30m

Overnight shifts

When the end time is earlier than the start time, the shift runs past midnight, so 24 hours are added.

From – toHoursMinutesDecimalAfter 30-min break
5:00 AM – 12:00 AM19h 00m1,14019.0018h 30m
9:00 AM – 3:00 AM18h 00m1,08018.0017h 30m
2:00 PM – 12:00 AM10h 00m60010.009h 30m
4:00 PM – 5:00 AM13h 00m78013.0012h 30m
4:00 PM – 10:00 AM18h 00m1,08018.0017h 30m
5:00 PM – 12:00 AM7h 00m4207.006h 30m
5:00 PM – 7:00 AM14h 00m84014.0013h 30m
5:00 PM – 9:00 AM16h 00m96016.0015h 30m
6:00 PM – 1:00 AM7h 00m4207.006h 30m
6:00 PM – 6:00 AM12h 00m72012.0011h 30m
6:00 PM – 8:00 AM14h 00m84014.0013h 30m
6:00 PM – 9:00 AM15h 00m90015.0014h 30m
7:00 PM – 7:00 AM12h 00m72012.0011h 30m
7:00 PM – 8:00 AM13h 00m78013.0012h 30m
7:30 PM – 12:00 AM4h 30m2704.504h 00m
8:00 PM – 12:00 AM4h 00m2404.003h 30m
8:00 PM – 4:00 AM8h 00m4808.007h 30m
8:00 PM – 7:00 AM11h 00m66011.0010h 30m
8:00 PM – 8:00 AM12h 00m72012.0011h 30m
9:00 PM – 7:00 AM10h 00m60010.009h 30m
10:00 PM – 6:00 AM8h 00m4808.007h 30m
10:00 PM – 7:00 AM9h 00m5409.008h 30m
11:00 PM – 3:00 AM4h 00m2404.003h 30m
11:00 PM – 7:00 AM8h 00m4808.007h 30m

Short spans (under 6 hours)

From – toHoursMinutesDecimalAfter 30-min break
6:00 AM – 11:00 AM5h 00m3005.004h 30m
7:00 AM – 10:00 AM3h 00m1803.002h 30m
7:30 AM – 12:00 PM4h 30m2704.504h 00m
8:00 AM – 11:00 AM3h 00m1803.002h 30m
8:00 AM – 12:00 PM4h 00m2404.003h 30m
8:30 AM – 12:30 PM4h 00m2404.003h 30m
9:00 AM – 2:00 PM5h 00m3005.004h 30m
10:00 AM – 1:00 PM3h 00m1803.002h 30m
10:00 AM – 2:00 PM4h 00m2404.003h 30m
11:00 AM – 4:00 PM5h 00m3005.004h 30m
1:00 PM – 5:00 PM4h 00m2404.003h 30m
3:00 PM – 7:00 PM4h 00m2404.003h 30m
5:00 PM – 9:00 PM4h 00m2404.003h 30m
6:00 PM – 9:00 PM3h 00m1803.002h 30m
7:00 PM – 10:00 PM3h 00m1803.002h 30m
7:00 PM – 11:00 PM4h 00m2404.003h 30m

Breaks are often unpaid, but rules vary. US federal law does not require meal breaks, though several states do. In Canada, Australia, the UK and the Netherlands workers are entitled to rest breaks after a set number of hours, so check your contract or local rules. For a whole week of shifts with overtime, use the time card calculator.

How to calculate hours between two times

Step 1: Convert both times to 24-hour time

Add 12 to any PM hour except 12 PM: 4:30 PM becomes 16:30. 12 AM (midnight) becomes 0:00. The military time converter does this for you.

Step 2: Subtract the start time from the end time

Subtract the hours and the minutes separately: 16:30 − 7:30 = 9 hours 0 minutes. If the minutes go negative, borrow 60 minutes from the hours. If the end time is earlier than the start, the shift crosses midnight, so add 24 hours.

Step 3: Subtract unpaid breaks

Take off any unpaid lunch or rest break: 9 hours − 30 minutes = 8 hours 30 minutes.

Step 4: Convert the minutes to decimal hours

Divide the minutes by 60 for a timesheet: 30 ÷ 60 = 0.5, so 8 hours 30 minutes is 8.5 hours. Worked example: 7:30 AM to 4:30 PM with a 30-minute lunch is 9 hours − 30 minutes = 8.5 hours.

Minutes to decimal hours chart

Payroll systems usually want hours as a decimal. Divide the minutes by 60, or use this chart.

MinutesDecimalMinutesDecimal
0 min0.0030 min0.50
5 min0.0835 min0.58
10 min0.1740 min0.67
15 min0.2545 min0.75
20 min0.3350 min0.83
25 min0.4255 min0.92
30 min0.5060 min1.00

Many employers round to the nearest quarter hour (0.25). Under US federal rules, rounding is allowed if it averages out over time so that employees are fully paid for the time they work.

Add or subtract hours from a time

To find when a shift ends, add the hours to the start time. Choose Add hours to a time in the calculator, or use these examples.

CalculationResult
8h 00m after 8:15 AM4:15 PM
8h 30m after 9:15 AM5:45 PM
9h 00m after 7:30 AM4:30 PM
12h 00m after 7:00 PM7:00 AM (next day)
8h 00m after 10:00 PM6:00 AM (next day)
3h 00m before 2:00 PM11:00 AM

How many hours are in a day, week, month and year?

PeriodHours
Day24
Week168
2 weeks336
Month (28 / 30 / 31 days)672 / 720 / 744
Average month730.5
Year (365 / 366 days)8,760 / 8,784
Full-time work year (40 hours × 52 weeks)2,080

To count the working days in a particular year, use the working days calculator. To turn hours into pay, use the hourly to salary calculator.

AM, PM, noon and midnight

Is 12 PM noon or midnight?

12 PM is noon and 12 AM is midnight, the start of the day. So 12 AM to 8 AM is 8 hours, and 8 PM to 12 AM is 4 hours. If you mean the very end of a day, enter 12:00 AM; the calculator treats it as the following midnight.

12-hour vs 24-hour (military) time

The 24-hour clock numbers the hours from 0 to 23, so there's no AM or PM: 2:00 PM is 14:00 and 11:30 PM is 23:30. It's used by the military, hospitals and most countries outside the US. The military time converter switches between the two.

Frequently asked questions

How many hours is 9 to 5?

8 hours. With a 30-minute unpaid lunch it is 7.5 hours, and with a 1-hour lunch it is 7 hours.

How do I calculate hours across midnight?

Count from the start time to midnight, then add the time from midnight to the end. 10:00 PM to 6:00 AM is 2 hours plus 6 hours, or 8 hours. The calculator does this for you.

What is 8 hours 20 minutes as a decimal?

8.33 hours, because 20 ÷ 60 = 0.333.

Should I use this or the time card calculator?

Use this page for one period of time. For a whole week with overtime and pay, use the time card calculator.

How many hours is 8 to 5?

8:00 AM to 5:00 PM is 9 hours, or 8.5 hours after a 30-minute unpaid lunch.

How many hours is 7 PM to 7 AM?

7:00 PM to 7:00 AM is 12 hours. The calculator handles overnight shifts automatically.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 7 hours 45 minutes is 7 + 45 ÷ 60 = 7.75 hours, which is the number most payroll systems use.

How many hours is 7:30 to 4:30?

7:30 AM to 4:30 PM is 9 hours, or 8.5 hours after a 30-minute unpaid lunch.

How many hours is a full-time shift?

There's no legal definition of full-time in US federal law, according to the U.S. Department of Labor, so employers set their own. A common full-time day is 8 hours, such as 9 AM to 5 PM, or 8 AM to 4:30 PM with a 30-minute unpaid lunch: 40 hours over a 5-day week.

How many hours is 8 AM to 4:30 PM with a 30-minute lunch?

8 hours. 8:00 AM to 4:30 PM is 8 hours 30 minutes, and taking off the 30-minute lunch leaves 8 hours, or 8.00 decimal hours.

Last reviewed December 3, 2026. Spotted an error? Tell us.

Add this calculator to your website

Free for blogs, schools and businesses. Copy the code and paste it into your page (in WordPress, use a Custom HTML block). Please keep the credit link.