Hours Calculator

Calculate total hours and minutes between start and end times across multiple periods. Get decimal hours instantly for payroll, billing, and time tracking.

Share:
Hours Calculator

Enter times in HH:MM format (24-hour) or HH:MM AM/PM (12-hour)

8.00

Total Hours

8h 0m

8.00 decimal hours

Per Entry
Period 18h 0m
Total8h 0m (8.00 hrs)

Introduction

Knowing the total hours worked during a shift or across multiple time periods is essential for payroll, billing, scheduling, and productivity tracking. An hours calculator eliminates the mental arithmetic of converting minutes and handles spans that cross midnight automatically.

This tool accepts start and end times for one or more periods and instantly calculates the total hours and minutes. It also displays each period individually and converts the total to decimal hours for billing purposes.

What This Calculator Does

Enter a start time and end time for each work period or activity. The calculator finds the elapsed time for each row and sums all rows into a total. Both 12-hour (AM/PM) and 24-hour formats are supported.

Inputs Required

  • Start Time: The time a period begins, in HH:MM or HH:MM AM/PM format
  • End Time: The time a period ends
  • Label (optional): A descriptive name for each period such as "Morning Shift" or "Client Meeting"

Outputs Provided

  • Hours per Period: The decimal hours for each individual entry
  • Total Hours and Minutes: The combined duration in H:MM format
  • Decimal Hours: The total expressed as a single decimal number for billing

How the Calculation Works

Each start and end time is converted to minutes since midnight. The difference gives the duration for that period in minutes. If the end time is earlier than the start time, the calculator assumes the period crosses midnight and adds 24 hours to the end time before subtracting.

Minutes per period = End time (minutes) - Start time (minutes)

Total hours = Sum of all periods / 60

Decimal hours = Total minutes / 60

For example, 9:00 AM is 540 minutes from midnight and 5:00 PM is 1,020 minutes. The difference is 480 minutes, or 8.00 decimal hours.

How to Use the Calculator

  1. Enter a start time and end time for your first period
  2. Optionally add a label like "Morning" or "Overtime"
  3. Click "Add Time Period" to include additional periods
  4. View the hours for each row and the running total on the right
  5. Use the decimal hours value for payroll or billing calculations

Example Calculations

An employee works two shifts: 8:00 AM to 12:00 PM (4 hours) and 1:00 PM to 5:30 PM (4 hours 30 minutes). The total is 8 hours 30 minutes, or 8.50 decimal hours. At $25/hour, gross pay would be $212.50.

A nurse works a night shift from 11:00 PM to 7:00 AM. The calculator detects the midnight crossover and returns 8 hours correctly, without the user needing to adjust the times manually.

Real-World Scenarios

Freelance Billing

A consultant logs three client sessions in a day: 10:00 AM to 11:30 AM, 1:00 PM to 3:45 PM, and 4:30 PM to 5:00 PM. The total is 4 hours 45 minutes (4.75 hours). Multiplied by their rate of $150/hour, the invoice total is $712.50.

Employee Payroll

A small business owner tracks daily hours for a part-time employee to prepare weekly payroll. Entering each day's start and end times gives the weekly total, which is multiplied by the hourly wage to calculate gross pay.

Project Time Tracking

A developer tracks time spent on tasks throughout the day. Adding each focused work session and excluding breaks shows the net productive hours, helping them report accurately to clients and analyze their efficiency.

Why This Calculation Matters

Inaccurate time tracking leads to overpaying or underpaying employees, incorrect client invoices, and poor project estimates. Even small rounding errors add up over weeks and months. A precise hours calculator ensures fair compensation and accurate records.

Common Mistakes to Avoid

  • Not accounting for lunch breaks: If lunch is unpaid, enter it as a separate period to subtract, or split your work time into before-lunch and after-lunch entries
  • Confusing AM and PM: Entering 9:00 PM instead of 9:00 AM will produce a result that is 12 hours too long
  • Assuming 8.5 hours is 8 hours 50 minutes: Decimal hours and clock time are different. 8.5 hours is 8 hours 30 minutes

Related Calculators

For a weekly time card with daily entries and automatic overtime calculation, use the Time Card Calculator. To add or subtract arbitrary time durations without start and end times, try the Time Calculator.

Frequently Asked Questions

Embed This Calculator

Hours Calculator

Calculate
Reset