Fast & Deterministic

Hours Calculator

Calculate total hours worked between start and end times with break deduction, decimal conversion, and overnight shift support.

Start Time (Clock In)
:
End Time (Clock Out)
:
mins
Net Total Duration
8 hours 15 minutes
Decimal Hours 8.2500 hrs
Gross Shift 8 hrs 45 mins
Deducted Break 30 mins
Step-by-Step Guide

How to Use This Calculator

STEP 1
01 / 03

Enter Start and End Time

Input your shift start and end times in 12-hour AM/PM or 24-hour military format.

STEP 2
02 / 03

Deduct Unpaid Breaks

Input any unpaid lunch or rest period in minutes (e.g. 30 or 45 minutes).

STEP 3
03 / 03

Read Total Hours & Decimal Equivalent

Instantly view your net billable hours formatted as H:MM and base-10 decimal hours ready for timesheet entry.

Mathematical Proofs

Mathematical Formulas & Rules

Net Hours Worked Formula

Net Hours = ((End_Minutes - Start_Minutes - Break_Minutes) + (isOvernight ? 1440 : 0)) / 60
Variable Definitions:
  • End_Minutes = Clock-out time converted into minutes from midnight
  • Start_Minutes = Clock-in time converted into minutes from midnight
  • Break_Minutes = Total unpaid break minutes deducted from the shift
  • 1440 = Minutes added if the shift crosses midnight into the next day

Decimal hours = Net Hours integer + (Remaining Minutes / 60).

Practical Applications

Worked Calculation Examples

Step-by-step breakdown of common real-world time scenarios, work shifts, and duration math.

Example 1 Verified Math

Standard 9-to-5 Shift with Lunch

Scenario

Started at 9:00 AM, ended at 5:30 PM, with a 30-minute unpaid lunch break.

Calculation: (9:00 AM to 5:30 PM = 8h 30m) − 30m break = 8h 00m
Result: 8 hours 00 minutes (8.0000 Decimal Hours)
Example 2 Verified Math

Part-Time Morning Shift

Scenario

Started at 8:15 AM, ended at 1:45 PM, with no breaks.

Calculation: 8:15 AM to 1:45 PM = 5h 30m
Result: 5 hours 30 minutes (5.5000 Decimal Hours)
Example 3 Verified Math

Night Shift Crossing Midnight

Scenario

Clocked in at 10:00 PM, clocked out at 6:30 AM, with a 45-minute break.

Calculation: (22:00 to 06:30 = 8h 30m) − 45m break = 7h 45m
Result: 7 hours 45 minutes (7.7500 Decimal Hours)

Common Real-World Applications

How professionals and individuals apply this calculation across various industries.

Payroll

Employee Timesheet Entry

Calculate exact daily decimal hours to enter into payroll software like ADP, Gusto, or QuickBooks.

Freelancing

Freelance & Client Billing

Convert time tracking logs into decimal hours for transparent client invoicing.

Education

Volunteering & Internship Logs

Accurately log service and internship hours required for academic graduation or certification credit.

Productivity

Study & Work Session Tracking

Measure net productive focus time across deep-work blocks by subtracting break intervals.

How to Calculate Total Work Hours Accurately

Calculating work hours requires converting clock timestamps into fractional decimal hours that accounting and payroll software can process. For pure elapsed duration without lunch break deductions, use our flagship Time Duration Calculator or compute quick differences on the Time Between Two Times Calculator.

1. The Difference Between Clock Minutes and Decimal Hours

A common mistake is treating 15 minutes as 0.15 hours. To perform instant conversions or print a cheat sheet, visit our Decimal Hours Calculator and Minutes to Decimal Conversion Chart:

  • 15 minutes = 15 / 60 = 0.25 decimal hours (one quarter of an hour).
  • 30 minutes = 30 / 60 = 0.50 decimal hours (half an hour).
  • 45 minutes = 45 / 60 = 0.75 decimal hours (three quarters of an hour).

2. Unpaid Meal Breaks vs. Paid Rest Breaks

Under federal Fair Labor Standards Act (FLSA) guidelines:

  • Bona fide meal periods (typically lasting 30 minutes or more where the employee is completely relieved from all duties) are non-compensable and deducted from work hours. Calculate gross pay with overtime using our Work Hours Calculator.
  • Short rest breaks (lasting between 5 and 20 minutes) are considered compensable working time and should not be deducted from the employee's hours.

Frequently Asked Questions

How do you calculate total hours worked?

Subtract your start time from your end time (adding 24 hours if the shift crosses midnight), then subtract any unpaid break minutes. Convert the remaining minutes to decimal hours by dividing by 60.

How does the calculator deduct lunch breaks?

Enter the length of your unpaid break in minutes (e.g., 30 or 45). The calculator deducts that exact number of minutes from your total shift length.

What are decimal hours on a timesheet?

Decimal hours represent fractional hours in base 10 rather than base 60. For example, 7 hours and 15 minutes is 7.25 decimal hours, which payroll software uses to multiply by hourly wage.

Mathematical Accuracy & Editorial Review

All calculations on this tool are deterministic and rigorously tested against base-60 modulo arithmetic and US Fair Labor Standards Act (FLSA 29 CFR § 785.48) payroll rounding guidelines.

Reviewed by: Time Mathematics & Payroll Editorial Team Last Updated: April 2026