Hours Calculator

Calculate the number of hours and minutes between two times. Perfect for tracking work hours, calculating shift duration, or finding how long until an event.

Part of our Date & Time Calculators collection.

Hours Calculator

Free online calculator

Subtract lunch or break time

Results update automatically as you type

How to Use This Calculator

  1. 1

    Enter your start time (e.g. 9:00 AM).

  2. 2

    Enter your end time (e.g. 5:30 PM).

  3. 3

    Enter any break time in minutes (e.g. 30 for a lunch break).

  4. 4

    See the exact hours and minutes worked.

How Hours Are Calculated

Duration = End Time − Start Time − Break

Convert both times to total minutes from midnight, subtract start from end, subtract break minutes, then convert back to hours and minutes.

Example Calculation

Example: 9:00 AM to 5:30 PM with 30 min lunch

Inputs

startTime: 9:00 AMendTime: 5:30 PMbreakMinutes: 30

Result

8 hours 0 minutes worked

9:00 AM to 5:30 PM = 8.5 hours. Minus 30 minutes break = 8 hours exactly.

Frequently Asked Questions

Does this work for overnight shifts?
Yes — if end time is earlier than start time (e.g. 10:00 PM to 6:00 AM), the calculator automatically counts through midnight.
How do I calculate weekly work hours?
Run the calculator for each workday and add the results. Alternatively, calculate the total start-to-end for the week and subtract all break time.

Last updated: