Hours Calculator

DATE & TIME · ELAPSED WORK & SHIFT HOURS

Calculate hours between times

Calculated on this device
Start time in H:MM format, such as 8:30.
Select AM, PM, or 24-hour format for start time.
End time in H:MM format, such as 5:30.
Select AM, PM, or 24-hour format for end time.
Optional break deduction
Whole minutes to subtract for lunch or unpaid breaks.
min

ELAPSED HOURS

8hr 30min

Equals 8.50 decimal hours (510 total minutes).

Formula Net Hours = (End − Start − Break) ÷ 60

Decimal Hours8.50Payroll-ready hours
Total Minutes510After 30 min break

HOW IT WORKS

Elapsed hours & decimal conversion

Whether you are logging a single shift or measuring a multi-day project window, this calculator converts both start and end times to exact minutes, subtracts any unpaid break, and outputs both hours-and-minutes and payroll-ready decimal hours.

01

24-Hour Minute Normalization

12-hour AM/PM times are converted to minutes since midnight (0 to 1,439), where 12:00 AM = 0 and 12:00 PM = 720.

Net Minutes = End Minutes − Start Minutes − Break
02

Overnight Shift Wrapping

In Between Two Times mode, if the end time is earlier than the start time (for example, 10:15 PM to 6:45 AM), 1,440 minutes (24 hours) are added automatically.

03

Decimal Hours for Payroll

Net minutes are divided by 60 so 30 minutes becomes 0.50 hours and 15 minutes becomes 0.25 hours.

HOURS & PAYROLL GUIDE

Converting clock hours to decimal hours and tracking shifts

How decimal hours work on timesheets

Payroll software multiplies an hourly wage by decimal hours rather than base-60 minutes. For example, 8 hours and 45 minutes is 8.75 hours (because 45 ÷ 60 = 0.75), not 8.45. Always use the Decimal Hours output when multiplying by an hourly rate.

Related timekeeping tools

Need to total an entire Monday–Sunday workweek with overtime? Use our Time Card Calculator. Need seconds precision between two timestamps? Try the Time Duration Calculator or add durations with the Time Calculator.

Frequently asked questions

How does the calculator handle overnight shifts?

In Between Two Times mode, any end time earlier than the start time is treated as the next morning (+24 hours) and labeled as an overnight shift.

Can I subtract an unpaid lunch break?

Yes. Expand “Optional break deduction” and enter the break length in minutes (for example, 30 or 45).

What is the difference between 12:00 AM and 12:00 PM?

12:00 AM is midnight (00:00 in 24-hour time, start of the day) and 12:00 PM is noon (12:00 in 24-hour time).

Can I calculate hours across multiple days?

Yes. Switch to “Between Two Dates & Times” to enter both start and end calendar dates.

Your shift times are calculated locally in this browser and are never sent to a server.