How to use the Hours Calculator
- Choose Between two times, Between two dates, or Add hours to a time.
- Enter the start and end times, or tap Now to use the current time. Add an unpaid break in minutes if you have one.
- 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 – to | Hours | Minutes | Decimal | After 30-min break |
|---|---|---|---|---|
| 1:30 AM – 8:00 PM | 18h 30m | 1,110 | 18.50 | 18h 00m |
| 3:00 AM – 9:00 AM | 6h 00m | 360 | 6.00 | 5h 30m |
| 4:00 AM – 4:00 PM | 12h 00m | 720 | 12.00 | 11h 30m |
| 4:00 AM – 9:00 PM | 17h 00m | 1,020 | 17.00 | 16h 30m |
| 5:00 AM – 10:00 PM | 17h 00m | 1,020 | 17.00 | 16h 30m |
| 6:00 AM – 12:00 PM | 6h 00m | 360 | 6.00 | 5h 30m |
| 6:00 AM – 2:00 PM | 8h 00m | 480 | 8.00 | 7h 30m |
| 6:00 AM – 4:00 PM | 10h 00m | 600 | 10.00 | 9h 30m |
| 6:00 AM – 6:00 PM | 12h 00m | 720 | 12.00 | 11h 30m |
| 6:00 AM – 9:00 PM | 15h 00m | 900 | 15.00 | 14h 30m |
| 6:30 AM – 2:30 PM | 8h 00m | 480 | 8.00 | 7h 30m |
| 6:30 AM – 3:30 PM | 9h 00m | 540 | 9.00 | 8h 30m |
| 6:30 AM – 4:30 PM | 10h 00m | 600 | 10.00 | 9h 30m |
| 7:00 AM – 3:30 PM | 8h 30m | 510 | 8.50 | 8h 00m |
| 7:00 AM – 4:00 PM | 9h 00m | 540 | 9.00 | 8h 30m |
| 7:00 AM – 6:00 PM | 11h 00m | 660 | 11.00 | 10h 30m |
| 7:00 AM – 7:00 PM | 12h 00m | 720 | 12.00 | 11h 30m |
| 7:00 AM – 9:00 PM | 14h 00m | 840 | 14.00 | 13h 30m |
| 7:30 AM – 3:30 PM | 8h 00m | 480 | 8.00 | 7h 30m |
| 7:30 AM – 4:30 PM | 9h 00m | 540 | 9.00 | 8h 30m |
| 7:30 AM – 6:00 PM | 10h 30m | 630 | 10.50 | 10h 00m |
| 8:00 AM – 2:00 PM | 6h 00m | 360 | 6.00 | 5h 30m |
| 8:00 AM – 3:00 PM | 7h 00m | 420 | 7.00 | 6h 30m |
| 8:00 AM – 3:30 PM | 7h 30m | 450 | 7.50 | 7h 00m |
| 8:00 AM – 4:00 PM | 8h 00m | 480 | 8.00 | 7h 30m |
| 8:00 AM – 4:30 PM | 8h 30m | 510 | 8.50 | 8h 00m |
| 8:00 AM – 5:00 PM | 9h 00m | 540 | 9.00 | 8h 30m |
| 8:00 AM – 6:00 PM | 10h 00m | 600 | 10.00 | 9h 30m |
| 8:00 AM – 7:00 PM | 11h 00m | 660 | 11.00 | 10h 30m |
| 8:00 AM – 8:00 PM | 12h 00m | 720 | 12.00 | 11h 30m |
| 8:00 AM – 10:00 PM | 14h 00m | 840 | 14.00 | 13h 30m |
| 8:30 AM – 3:00 PM | 6h 30m | 390 | 6.50 | 6h 00m |
| 8:30 AM – 3:30 PM | 7h 00m | 420 | 7.00 | 6h 30m |
| 8:30 AM – 4:30 PM | 8h 00m | 480 | 8.00 | 7h 30m |
| 8:30 AM – 5:00 PM | 8h 30m | 510 | 8.50 | 8h 00m |
| 8:30 AM – 5:30 PM | 9h 00m | 540 | 9.00 | 8h 30m |
| 9:00 AM – 4:00 PM | 7h 00m | 420 | 7.00 | 6h 30m |
| 9:00 AM – 4:30 PM | 7h 30m | 450 | 7.50 | 7h 00m |
| 9:00 AM – 5:00 PM | 8h 00m | 480 | 8.00 | 7h 30m |
| 9:00 AM – 6:00 PM | 9h 00m | 540 | 9.00 | 8h 30m |
| 9:00 AM – 10:00 PM | 13h 00m | 780 | 13.00 | 12h 30m |
| 9:30 AM – 4:00 PM | 6h 30m | 390 | 6.50 | 6h 00m |
| 9:30 AM – 4:45 PM | 7h 15m | 435 | 7.25 | 6h 45m |
| 9:30 AM – 5:00 PM | 7h 30m | 450 | 7.50 | 7h 00m |
| 10:00 AM – 4:00 PM | 6h 00m | 360 | 6.00 | 5h 30m |
| 10:00 AM – 5:00 PM | 7h 00m | 420 | 7.00 | 6h 30m |
| 10:00 AM – 6:00 PM | 8h 00m | 480 | 8.00 | 7h 30m |
| 10:00 AM – 8:00 PM | 10h 00m | 600 | 10.00 | 9h 30m |
| 10:00 AM – 10:00 PM | 12h 00m | 720 | 12.00 | 11h 30m |
| 11:00 AM – 7:00 PM | 8h 00m | 480 | 8.00 | 7h 30m |
| 11:00 AM – 11:00 PM | 12h 00m | 720 | 12.00 | 11h 30m |
| 12:00 PM – 8:00 PM | 8h 00m | 480 | 8.00 | 7h 30m |
| 1:00 PM – 7:00 PM | 6h 00m | 360 | 6.00 | 5h 30m |
| 2:00 PM – 10:00 PM | 8h 00m | 480 | 8.00 | 7h 30m |
| 3:00 PM – 11:00 PM | 8h 00m | 480 | 8.00 | 7h 30m |
Overnight shifts
When the end time is earlier than the start time, the shift runs past midnight, so 24 hours are added.
| From – to | Hours | Minutes | Decimal | After 30-min break |
|---|---|---|---|---|
| 5:00 AM – 12:00 AM | 19h 00m | 1,140 | 19.00 | 18h 30m |
| 9:00 AM – 3:00 AM | 18h 00m | 1,080 | 18.00 | 17h 30m |
| 2:00 PM – 12:00 AM | 10h 00m | 600 | 10.00 | 9h 30m |
| 4:00 PM – 5:00 AM | 13h 00m | 780 | 13.00 | 12h 30m |
| 4:00 PM – 10:00 AM | 18h 00m | 1,080 | 18.00 | 17h 30m |
| 5:00 PM – 12:00 AM | 7h 00m | 420 | 7.00 | 6h 30m |
| 5:00 PM – 7:00 AM | 14h 00m | 840 | 14.00 | 13h 30m |
| 5:00 PM – 9:00 AM | 16h 00m | 960 | 16.00 | 15h 30m |
| 6:00 PM – 1:00 AM | 7h 00m | 420 | 7.00 | 6h 30m |
| 6:00 PM – 6:00 AM | 12h 00m | 720 | 12.00 | 11h 30m |
| 6:00 PM – 8:00 AM | 14h 00m | 840 | 14.00 | 13h 30m |
| 6:00 PM – 9:00 AM | 15h 00m | 900 | 15.00 | 14h 30m |
| 7:00 PM – 7:00 AM | 12h 00m | 720 | 12.00 | 11h 30m |
| 7:00 PM – 8:00 AM | 13h 00m | 780 | 13.00 | 12h 30m |
| 7:30 PM – 12:00 AM | 4h 30m | 270 | 4.50 | 4h 00m |
| 8:00 PM – 12:00 AM | 4h 00m | 240 | 4.00 | 3h 30m |
| 8:00 PM – 4:00 AM | 8h 00m | 480 | 8.00 | 7h 30m |
| 8:00 PM – 7:00 AM | 11h 00m | 660 | 11.00 | 10h 30m |
| 8:00 PM – 8:00 AM | 12h 00m | 720 | 12.00 | 11h 30m |
| 9:00 PM – 7:00 AM | 10h 00m | 600 | 10.00 | 9h 30m |
| 10:00 PM – 6:00 AM | 8h 00m | 480 | 8.00 | 7h 30m |
| 10:00 PM – 7:00 AM | 9h 00m | 540 | 9.00 | 8h 30m |
| 11:00 PM – 3:00 AM | 4h 00m | 240 | 4.00 | 3h 30m |
| 11:00 PM – 7:00 AM | 8h 00m | 480 | 8.00 | 7h 30m |
Short spans (under 6 hours)
| From – to | Hours | Minutes | Decimal | After 30-min break |
|---|---|---|---|---|
| 6:00 AM – 11:00 AM | 5h 00m | 300 | 5.00 | 4h 30m |
| 7:00 AM – 10:00 AM | 3h 00m | 180 | 3.00 | 2h 30m |
| 7:30 AM – 12:00 PM | 4h 30m | 270 | 4.50 | 4h 00m |
| 8:00 AM – 11:00 AM | 3h 00m | 180 | 3.00 | 2h 30m |
| 8:00 AM – 12:00 PM | 4h 00m | 240 | 4.00 | 3h 30m |
| 8:30 AM – 12:30 PM | 4h 00m | 240 | 4.00 | 3h 30m |
| 9:00 AM – 2:00 PM | 5h 00m | 300 | 5.00 | 4h 30m |
| 10:00 AM – 1:00 PM | 3h 00m | 180 | 3.00 | 2h 30m |
| 10:00 AM – 2:00 PM | 4h 00m | 240 | 4.00 | 3h 30m |
| 11:00 AM – 4:00 PM | 5h 00m | 300 | 5.00 | 4h 30m |
| 1:00 PM – 5:00 PM | 4h 00m | 240 | 4.00 | 3h 30m |
| 3:00 PM – 7:00 PM | 4h 00m | 240 | 4.00 | 3h 30m |
| 5:00 PM – 9:00 PM | 4h 00m | 240 | 4.00 | 3h 30m |
| 6:00 PM – 9:00 PM | 3h 00m | 180 | 3.00 | 2h 30m |
| 7:00 PM – 10:00 PM | 3h 00m | 180 | 3.00 | 2h 30m |
| 7:00 PM – 11:00 PM | 4h 00m | 240 | 4.00 | 3h 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.
| Minutes | Decimal | Minutes | Decimal |
|---|---|---|---|
| 0 min | 0.00 | 30 min | 0.50 |
| 5 min | 0.08 | 35 min | 0.58 |
| 10 min | 0.17 | 40 min | 0.67 |
| 15 min | 0.25 | 45 min | 0.75 |
| 20 min | 0.33 | 50 min | 0.83 |
| 25 min | 0.42 | 55 min | 0.92 |
| 30 min | 0.50 | 60 min | 1.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.
| Calculation | Result |
|---|---|
| 8h 00m after 8:15 AM | 4:15 PM |
| 8h 30m after 9:15 AM | 5:45 PM |
| 9h 00m after 7:30 AM | 4:30 PM |
| 12h 00m after 7:00 PM | 7:00 AM (next day) |
| 8h 00m after 10:00 PM | 6:00 AM (next day) |
| 3h 00m before 2:00 PM | 11:00 AM |
How many hours are in a day, week, month and year?
| Period | Hours |
|---|---|
| Day | 24 |
| Week | 168 |
| 2 weeks | 336 |
| Month (28 / 30 / 31 days) | 672 / 720 / 744 |
| Average month | 730.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.