Hours Calculator: Time Worked & Pay Formula
Short answer
The Hours Calculator computes elapsed working time between a start and end time, subtracting any unpaid break duration. For example, a shift from 08:30 to 17:15 with a 30-minute unpaid break totals 8 hours and 15 minutes (8.25 decimal hours), earning $165.00 at an hourly rate of $20.00.
Formula
Hours Worked = (End Time in Minutes − Start Time in Minutes − Unpaid Break in Minutes) / 60 Total Pay = Decimal Hours × Hourly Rate
End Time in Minutes is the clock-out time converted into total minutes from midnight (Hours × 60 + Minutes). Start Time in Minutes is the clock-in time converted into total minutes from midnight. If the shift crosses midnight (End Time < Start Time), 1,440 minutes (24 hours) are added to the difference. Unpaid Break is the duration of non-working time entered in minutes. Decimal Hours represents the net working minutes divided by 60. Hourly Rate is the optional pay rate per decimal hour.
Worked example
- Start time (HH:MM, 24-hour)
- 08:30
- End time (HH:MM, 24-hour)
- 17:15
- Unpaid break
- 30
- Hourly rate (optional)
- 20
- Hours worked: 8 h 15 min
- Decimal hours: 8.25
- Total minutes: 495
- Pay: 165.00
How the Hours Calculator Works
Tracking work hours accurately is essential for budgeting, verifying payroll, and managing client billables. The Hours Calculator computes the exact elapsed time between your start time and end time, subtracts any unpaid break duration, and converts the resulting shift into both standard time (hours and minutes) and decimal hours. If an hourly pay rate is provided, it also calculates gross earnings for the shift.
Time tracking often causes confusion because standard clocks operate on a 60-minute base, whereas accounting and payroll systems operate on a base-10 decimal format. This tool bridges that gap instantly, preventing common conversion errors that lead to underpayment or payroll discrepancies.
Step-by-Step Worked Example
To understand the underlying math, consider a typical standard workday with the following parameters:
- Start time (24-hour):
08:30(8:30 AM) - End time (24-hour):
17:15(5:15 PM) - Unpaid break:
30minutes - Hourly rate:
$20.00
Step 1: Convert Clock Times to Total Minutes from Midnight
Convert both times into minutes from the start of the day:
- Start Time: $(8 \times 60) + 30 = 480 + 30 = 510\text{ minutes}$
- End Time: $(17 \times 60) + 15 = 1,020 + 15 = 1,035\text{ minutes}$
Step 2: Calculate Gross Elapsed Time
Subtract the start time from the end time: $$\text{Elapsed Minutes} = 1,035 - 510 = 525\text{ minutes}$$
(Note: If the shift had crossed midnight, 1,440 minutes would be added to the result to account for the day change.)
Step 3: Subtract Unpaid Breaks
Subtract the 30-minute unpaid lunch period to find net working minutes: $$\text{Net Minutes} = 525 - 30 = 495\text{ minutes}$$
Step 4: Convert to Clock Hours and Minutes
Divide the total net minutes by 60 to find whole hours and the remaining minutes:
- $\lfloor 495 / 60 \rfloor = 8\text{ hours}$
- $495 \pmod{60} = 15\text{ minutes}$
- Hours Worked: 8 h 15 min
Step 5: Convert to Decimal Hours
Divide net working minutes directly by 60 for payroll accounting: $$\text{Decimal Hours} = \frac{495}{60} = 8.25\text{ hours}$$
Step 6: Compute Gross Pay
Multiply decimal hours by the agreed hourly rate: $$\text{Pay} = 8.25 \times $20.00 = $165.00$$
How to Read the Results
- Hours Worked (8 h 15 min): Your actual time on the job in standard clock format. Use this figure when comparing against physical time-card punch sheets or time logs.
- Decimal Hours (8.25): The mathematical representation of your time worked. A 15-minute increment equals $0.25$ hours, 30 minutes equals $0.50$ hours, and 45 minutes equals $0.75$ hours. This is the exact number required by accounting software to process wages correctly.
- Total Minutes (495): The aggregate time spent actively working, excluding breaks. Useful for tracking productivity benchmarks, task durations, or job-costing allocations.
- Pay ($165.00): Total gross pay before any federal, state, or local withholdings, payroll taxes (FICA), or elective deductions.
Practical Tips for Accurate Time Tracking
- Use 24-Hour Time: Always convert PM hours by adding 12 (e.g., 1:00 PM becomes 13:00, 5:15 PM becomes 17:15). This prevents errors where afternoon times are mistakenly calculated as morning times.
- Differentiate Paid vs. Unpaid Breaks: Do not deduct paid rest periods. Under the US Fair Labor Standards Act (FLSA), short breaks running from 5 to 20 minutes are considered compensable work hours. Only bona fide meal breaks (typically 30 minutes or more where you are relieved of all duties) are unpaid.
- Watch the Decimal Conversion: Never multiply hourly wages directly by clock minutes. Working 8 hours and 15 minutes is not $8.15 \times \text{Rate}$. At $20/hour, multiplying by 8.15 yields $163.00, resulting in an employee being shortchanged by $2.00 per shift.
When Not to Rely on This Calculator
While this tool accurately handles single-shift calculations, it should not replace comprehensive payroll software under specific employment conditions:
- Overtime Calculations: This tool does not track weekly cumulative hours beyond 40 hours or daily overtime thresholds (such as California's 8-hour daily overtime rule).
- Shift Differentials and Premiums: It does not calculate extra compensation for night shifts, holiday pay, or weekend premiums.
- Employer Rounding Rules: Many companies implement standard 7-minute or 15-minute rounding rules (FLSA 15-minute rule). This tool computes exact minute-by-minute differences without rounding adjustments.
Comparison
| Scenario | Input | Result |
|---|---|---|
| Base example | Default inputs | Hours worked: 8 h 15 min |
Common mistakes
- Confusing clock minutes with decimal hours (e.g., treating 8 hours and 15 minutes as 8.15 instead of 8.25 hours, leading to payroll errors).
- Entering 12-hour AM/PM times without converting to a 24-hour format, such as writing 5:15 instead of 17:15 for afternoon departures.
- Deducting paid rest periods (such as 15-minute company-provided breaks) alongside unpaid meal breaks.
- Inputting break periods in hours or decimals (e.g., entering 0.5 instead of 30 for a half-hour lunch break).
- Neglecting overtime rules, as basic shift duration calculations do not automatically apply statutory overtime premiums.
Checklist
- Enter times using 24-hour notation (e.g., 08:30 for 8:30 AM, 17:15 for 5:15 PM).
- Include only unpaid breaks; do not subtract legally mandated paid rest breaks.
- Verify that the break duration is entered in total minutes rather than hours.
- Use decimal hours (e.g., 8.25, not 8.15) when multiplying against an hourly wage.
- Ensure overnight shifts reflect the correct start and end calendar sequence.
- Confirm whether your workplace rounds time to the nearest 5, 10, or 15 minutes.
Calculators Percentage Editorial Team
Calculator guides from the Calculators Percentage team. These introductory examples are educational, not professional advice.
Last reviewed:
This calculator is intended for informational and estimation purposes only. It does not account for specific collective bargaining agreements, state-specific daily overtime rules, tax withholdings, or mandatory payroll rounding policies.
