ToolHub

Hours Calculator

Time between two clock times, plus timesheets

Overnight shifts (end before start) are handled automatically - 10:00 PM to 6:00 AM counts as 8 hours.

Total worked time

8h 0m

Decimal hours8.00
Total minutes480

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:

DecimalAlso written as
15 minutes0.25quarter hour
20 minutes0.33third of an hour
30 minutes0.50half hour
45 minutes0.75three-quarter hour
10 minutes0.17-
50 minutes0.83-

Crossing midnight

Overnight shifts

End time before start time

When the end time is earlier than the start time, the calculator assumes the shift crosses midnight. A 10:00 PM to 6:00 AM shift is correctly counted as 8 hours, not a negative number. This is essential for night-shift, hospitality, and healthcare workers.

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

Your times are calculated locally and never sent anywhere.

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 workedDecimal hoursAlso written as
10 minutes0.17just under a sixth
15 minutes0.25a quarter hour
20 minutes0.33a third of an hour
30 minutes0.50a half hour
40 minutes0.67two thirds
45 minutes0.75three quarters
50 minutes0.83five 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.

ShiftGross hoursWith 30-min lunchWith 1-hour lunch
9:00 to 5:008h 00m7h 30m7h 00m
8:00 to 5:009h 00m8h 30m8h 00m
8:30 to 5:008h 30m8h 00m7h 30m
9:00 to 6:009h 00m8h 30m8h 00m
7:00 to 3:008h 00m7h 30m7h 00m
10:00 PM to 6:00 AM8h 00m7h 30m7h 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 30m
  • 8h 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:00
  • 30: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 hours
  • 6h 15m: 15 ÷ 60 = 0.25, so 6.25 hours
  • 8h 20m: 20 ÷ 60 = 0.33, so 8.33 hours

Round at the end, not before

Keep the full decimal while you add a week of shifts together, then round the weekly total. Rounding each day first can drift by several minutes across a pay period.

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.

Quick steps

1

Pick a mode

Time duration between two times, add/subtract time from a time, or total a weekly timesheet.

2

Enter the times

Use the time pickers. For duration, optionally subtract a break. Overnight shifts are handled automatically.

3

Read the total

See hours and minutes plus decimal hours, which is what payroll systems usually expect.

Frequently asked questions

How do I calculate hours between two times?

Subtract the start time from the end time. From 9:00 AM to 5:30 PM is 8 hours 30 minutes. If you take a 30-minute lunch, the worked time is 8 hours. The calculator does this and shows decimal hours (8.0) for payroll.

How does it handle overnight shifts?

If the end time is earlier than the start time, the calculator assumes the shift crosses midnight. For example, 10:00 PM to 6:00 AM is correctly counted as 8 hours, not a negative number.

What are decimal hours?

Hours expressed as a decimal instead of hours and minutes. 8 hours 30 minutes is 8.5 decimal hours; 8 hours 15 minutes is 8.25. Payroll systems usually multiply decimal hours by the hourly rate, so this format is handy for calculating pay.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 30 minutes is 0.5 hours, 15 minutes is 0.25, 45 minutes is 0.75. The calculator shows both formats so you don't have to do the math.

Can I total a whole week?

Yes. The timesheet tab lets you add a row per day with start, end, and break, then shows the weekly total in both hours-and-minutes and decimal format.

How is this different from the date calculator?

This tool works with clock times within a day (like 9:00 to 17:00). The Date Duration Calculator works with calendar dates (days, weeks, months between two dates). Use this for work hours and shifts, that one for date spans.

Related tools

More free calculators tools and other utilities you might find useful.