Hours Worked Calculator

Enter your start time, end time, and break duration to calculate total hours worked, overtime, and estimated weekly hours — overnight shifts supported.
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter Start Time

    Input the exact time your shift or work period begins (e.g., 09:00 or 9:00 AM).

  2. 2

    Enter End Time

    Input the exact time your shift or work period ends. The calculator will automatically handle overnight shifts if the end time is earlier than the start time.

  3. 3

    Specify Break Duration

    Enter the total duration of any unpaid breaks in minutes that should be deducted from your shift span.

  4. 4

    Review Your Results

    The calculator displays Hours Worked, Decimal Hours, Gross Shift Span, Overtime, and Est. Weekly Hours. The Shift Insights panel shows workday utilization percentage, overtime status, and weekly projection.

Example Calculation

An employee works from 9:00 AM to 5:30 PM with a 30-minute unpaid break. They need to calculate their total hours worked.

Start Time

09:00

End Time

17:30

Break Duration

30 min

Results

Hours Worked

8h 0m

Decimal Hours

8.00 hrs

Gross Shift Span

8h 30m

Overtime

0h 0m

Est. Weekly Hours

40.0 hrs

Tips

Track All Breaks Accurately

Ensure all unpaid breaks are accurately recorded and deducted. Most employers mandate a 30-minute unpaid break for shifts over 5-6 hours. Underreporting breaks can lead to overstating hours worked, while overreporting can lead to underpayment.

Understand Overtime Thresholds

Under FLSA, hours worked over 40 in a workweek are paid at 1.5x the regular rate. Use this calculator to check your daily overtime — any time beyond 8 hours shows in the Overtime card. The Shift Insights panel also flags overtime eligibility.

Use Decimal Hours for Invoicing

Freelancers and contractors should use the Decimal Hours result for billing. For example, 7h 45m converts to 7.75 decimal hours, which simplifies rate calculations. Most time-tracking and accounting software expects decimal format.

The Hours Worked Calculator precisely calculates an individual's total work duration, factoring in start and end times, and deducting unpaid breaks.

This essential tool handles overnight shifts seamlessly and provides outputs in both traditional and decimal hours, along with overtime estimates.

For a shift from 9:00 AM to 5:30 PM with a 30-minute break, the calculator confirms 8h 0m worked (8.00 decimal hours) with 40.0 estimated weekly hours.

The Process of Calculating Net Hours from a Shift

Calculating the net hours worked from a shift involves determining the total span between the start and end times, and then subtracting any unpaid break durations.

The gross shift span is first calculated by converting both times to minutes from midnight.

If the shift crosses midnight, 24 hours are added to the end time's minute equivalent.

gross shift minutes = (end time in minutes) - (start time in minutes)
if gross shift minutes < 0:
  gross shift minutes = gross shift minutes + (24 × 60)

worked minutes = MAX(0, gross shift minutes - break duration)
hours worked = worked minutes / 60
decimal hours = worked minutes / 60
weekly hours = decimal hours × 5
overtime minutes = MAX(0, worked minutes - 480)

This systematic approach ensures that only the actual productive time is counted towards hours worked, adhering to standard payroll practices.

💡 Need to estimate your earnings based on hours worked? Try our Hourly Wage Calculator to convert your hours into gross pay.

Calculating a Standard 8-Hour Workday

Let's calculate the hours worked for an employee whose shift starts at 9:00 AM and ends at 5:30 PM, with a 30-minute unpaid break.

Here's the step-by-step calculation:

  1. Convert Start Time: 9:00 AM is 9 hours and 0 minutes.
  2. Convert End Time: 5:30 PM is 17 hours and 30 minutes (in 24-hour format).
  3. Calculate Gross Shift Span:
    • End minutes from midnight: 17 × 60 + 30 = 1050 minutes.
    • Start minutes from midnight: 9 × 60 + 0 = 540 minutes.
    • Gross minutes: 1050 - 540 = 510 minutes (8h 30m). No overnight adjustment needed.
  4. Deduct Break Duration: Subtract the 30-minute break from the gross minutes: 510 - 30 = 480 minutes.
  5. Convert Net Minutes to Hours and Minutes:
    • Hours: FLOOR(480 / 60) = 8 hours.
    • Minutes: 480 MOD 60 = 0 minutes.
  6. Calculate Decimal Hours: 480 / 60 = 8.00 hours.
  7. Estimate Weekly Hours: Assuming a 5-day workweek, 8.00 hours/day × 5 days/week = 40.0 hours.
  8. Check Overtime: MAX(0, 480 - 480) = 0 minutes — no overtime for this shift.

The employee worked exactly 8h 0m (8.00 decimal hours) after their break, fulfilling a standard 40-hour workweek.

Ensuring Compliance with Labor Laws for Hours Worked

Ensuring compliance with labor laws regarding hours worked is paramount for both employers and employees.

The Fair Labor Standards Act (FLSA) in the United States sets federal standards for minimum wage, overtime pay, and recordkeeping.

Employers are legally obligated to accurately track all hours an employee works, including start and end times, and to properly deduct unpaid breaks.

Miscalculations or improper recordkeeping can lead to significant wage disputes, penalties, and legal action.

For instance, non-exempt employees must be paid 1.5 times their regular rate for all hours exceeding 40 in a workweek, making accurate time tracking vital for correct overtime compensation.

FLSA Guidelines on Compensable Time and Breaks

The Fair Labor Standards Act (FLSA) provides specific guidelines on what constitutes "compensable time" and how breaks should be treated for hourly workers.

According to the FLSA, short breaks, typically those lasting 5 to 20 minutes, are considered part of the employee's work time and must be paid.

This is because such brief interruptions are usually for the employer's benefit, like a quick restroom break, and the employee is generally not relieved of duties.

Conversely, bona fide meal periods, usually 30 minutes or longer, are generally not considered hours worked and do not require compensation, provided the employee is completely relieved from duty and free to pursue personal activities.

However, if an employee is required to perform any work during a meal break, even if minimal, that time must be compensated.

Employers must also be aware that state laws can impose stricter requirements for breaks and meal periods than federal law.

💡 Managing a team's schedule? Our Salary Calculator helps convert between hourly, weekly, and annual pay rates.

Frequently Asked Questions

How do you calculate hours worked for payroll?

To calculate hours worked for payroll, determine the start and end times of a shift, convert them to minutes, and find the gross duration. Then, subtract any unpaid break times. The resulting net minutes are then converted into hours and minutes, or decimal hours, for accurate wage computation and compliance with labor laws.

What is an overnight shift and how is it calculated?

An overnight shift is a work period that crosses midnight, meaning the end time is numerically earlier than the start time (e.g., 10 PM to 6 AM). To calculate its duration, 24 hours (1,440 minutes) are added to the end time before subtracting the start time, ensuring the correct total hours worked for the entire span.

Are breaks considered hours worked under federal law?

Under the Fair Labor Standards Act (FLSA), short breaks (usually 5 to 20 minutes) are generally considered compensable work time and must be paid. However, bona fide meal periods (typically 30 minutes or more) are not considered hours worked and do not need to be paid, provided the employee is completely relieved from duty during that time.

Why is tracking decimal hours important for employers?

Tracking decimal hours is important for employers to ensure accurate payroll, simplify recordkeeping, and maintain compliance with federal and state wage and hour laws. Decimal hours streamline calculations for various pay rates, including overtime, and provide a clear, standardized metric for analyzing labor costs and employee productivity.

How does the calculator determine overtime?

The calculator flags any worked time beyond 8 hours in a single shift as daily overtime. For example, a 9h 30m shift with a 30-minute break yields 9 hours worked, with 1 hour of overtime. The Shift Insights panel notes this is eligible for 1.5x pay under FLSA guidelines.