Overview
What this calculator does
Work out how many hours and minutes are between two clock times, add or subtract time from a time, and total a weekly timesheet. It deducts breaks, handles overnight shifts, and shows decimal hours - the format payroll systems use. Everything runs in your browser.
The core feature
Hours between two times
Enter a start and end time and the calculator returns the gap. From 9:00 AM to 5:30 PM is 8 hours 30 minutes. Subtract a 30-minute lunch and the worked time is 8 hours. The result is shown three ways:
- Hours and minutes (8h 0m) - the human-readable format
- Decimal hours (8.00) - what payroll multiplies by your rate
- Total minutes (480) - useful for fine-grained tracking
For payroll
Decimal hours conversion
Payroll multiplies decimal hours by your hourly rate, so knowing the conversion matters. Minutes divided by 60 give the decimal:
| Decimal | Also written as | |
|---|---|---|
| 15 minutes | 0.25 | quarter hour |
| 20 minutes | 0.33 | third of an hour |
| 30 minutes | 0.50 | half hour |
| 45 minutes | 0.75 | three-quarter hour |
| 10 minutes | 0.17 | - |
| 50 minutes | 0.83 | - |
Crossing midnight
Overnight shifts
End time before start time
Add up the week
Weekly timesheets
The timesheet tab lets you enter a row per working day - start, end, and break - and totals the whole week. It's a quick way to tally hours for an invoice or to check your paycheck. The total shows in both hours-and-minutes and decimal format.
Behind the scenes
Privacy and how it runs
Runs in your browser
Common questions
How many hours is 9 to 5?
From 9:00 AM to 5:00 PM is 8 hours. With a typical 30-minute or 1-hour unpaid lunch, paid working time is 7.5 or 7 hours.
How do I add hours to a time?
Use the add/subtract tab, set the starting time, choose Add, and enter hours and minutes. The calculator returns the resulting clock time and flags if it lands on the next or previous day.
What is 8.5 hours in hours and minutes?
8 hours 30 minutes. The 0.5 is half an hour. Multiply any decimal portion by 60 to get minutes: 0.5 × 60 = 30.
How do I calculate time and a half?
Calculate your worked hours here, then multiply overtime hours by 1.5 times your hourly rate. For example, 4 overtime hours at a $20 rate is 4 × $30 = $120. Our Salary Calculator can help with the rate conversions.
Does it work for part-time and irregular shifts?
Yes. Enter any start and end times, including different times each day in the timesheet. There's no assumption of a standard schedule.
Quick lookup
Minutes to decimal hours
Payroll and timesheets need minutes written as a decimal, not as clock minutes. Divide the minutes by 60, then add the result to your whole hours. This hours counter lookup covers the values a time calculator uses most often.
| Minutes worked | Decimal hours | Also written as |
|---|---|---|
| 10 minutes | 0.17 | just under a sixth |
| 15 minutes | 0.25 | a quarter hour |
| 20 minutes | 0.33 | a third of an hour |
| 30 minutes | 0.50 | a half hour |
| 40 minutes | 0.67 | two thirds |
| 45 minutes | 0.75 | three quarters |
| 50 minutes | 0.83 | five sixths |
For example, 7 hours and 45 minutes in decimal is 7.75, because 45 divided by 60 is 0.75.
Quick lookup
Common shift lengths
How many hours is from 9 to 5, 8 to 5, or 8:30 to 5? These are the shift spans people search for most. Gross hours count the full clock span, and the lunch columns subtract a typical unpaid break.
| Shift | Gross hours | With 30-min lunch | With 1-hour lunch |
|---|---|---|---|
| 9:00 to 5:00 | 8h 00m | 7h 30m | 7h 00m |
| 8:00 to 5:00 | 9h 00m | 8h 30m | 8h 00m |
| 8:30 to 5:00 | 8h 30m | 8h 00m | 7h 30m |
| 9:00 to 6:00 | 9h 00m | 8h 30m | 8h 00m |
| 7:00 to 3:00 | 8h 00m | 7h 30m | 7h 00m |
| 10:00 PM to 6:00 AM | 8h 00m | 7h 30m | 7h 00m |
So 9 to 5 is 8 hours before lunch, and 8 to 5 is 9 hours. Subtract your unpaid break to get paid time.
Worked example
Calculating hours with a lunch break
To calculate worked hours with a lunch break, take your clock-out time, subtract your clock-in time, then subtract the unpaid break. Unpaid breaks do not count toward paid hours, so they come off the total. Say you clock in at 9:00 AM and clock out at 5:30 PM with a 30-minute unpaid lunch:
5:30 PM - 9:00 AM = 8h 30m8h 30m - 0h 30m lunch = 8h 00m paid
That comes to 8.00 decimal hours for payroll. A paid break stays in the total, so only subtract breaks that are unpaid.
Overnight shifts
Hours across midnight
When a shift ends the next day, the end time reads lower than the start time, which can look like a negative result. Add 24 hours to the end time before subtracting so the answer stays positive. For a 10:00 PM to 6:00 AM shift:
6:00 end + 24 = 30:0030:00 - 22:00 start = 8h 00m
So 10 PM to 6 AM is 8 hours, not a negative number. The calculator applies this automatically whenever the end time is earlier than the start time.
Time to hours conversion
Converting time to decimal for payroll
Payroll multiplies decimal hours by your rate, so hours and minutes have to become a single decimal number. Keep the whole hours, divide the minutes by 60, and add the two together. This time to hours conversion is what turns a timesheet into a paycheck.
7h 45m: 45 ÷ 60 = 0.75, so 7.75 hours6h 15m: 15 ÷ 60 = 0.25, so 6.25 hours8h 20m: 20 ÷ 60 = 0.33, so 8.33 hours
Round at the end, not before
More time questions
How many hours is 8 to 5?
From 8:00 AM to 5:00 PM is 9 hours. With a 1-hour unpaid lunch that is 8 paid hours, and with a 30-minute lunch it is 8 hours 30 minutes.
How do I calculate hours with a lunch break?
Subtract your clock-in time from your clock-out time, then subtract the unpaid break. For 9:00 AM to 5:30 PM with a 30-minute lunch, that is 8h 30m minus 30 minutes, which comes to 8 hours.
What is 7 hours 45 minutes in decimal?
It is 7.75 hours. Divide the 45 minutes by 60 to get 0.75, then add the 7 whole hours. Payroll systems use this decimal form to multiply by your rate.
How do I calculate hours across midnight?
Add 24 hours to the end time, then subtract the start time. A shift from 10:00 PM to 6:00 AM works out to 8 hours once you treat 6:00 AM as 30:00.
What is 80% of 8 hours?
80% of 8 hours is 6.4 hours, which is 6 hours 24 minutes. Multiply 8 by 0.8, and note that 0.4 of an hour is 24 minutes because 0.4 × 60 = 24.
Related calculators
Time and pay tools that work together.
Last reviewed: · Methodology based on US building code standards, contractor pricing surveys, and manufacturer specifications.