Hours Calculator
Calculate hours between two times, total work hours after unpaid breaks, or a future time after adding or subtracting hours and minutes. This hours calculator is useful for timesheets, payroll prep, shift planning, staffing, travel timing, and everyday scheduling. It handles overnight shifts that pass midnight, shows both standard time and decimal-hour output, and runs entirely in your browser for fast private use.
Hours Calculator
What Is an Hours Calculator?
An hours calculator computes the total elapsed time between a start time and an end time — including deductions for unpaid breaks, split across days, and converting the result into decimal hours for payroll systems. It replaces manual subtraction on a 12/24-hour clock where carrying minutes and hours introduces errors.
Payroll departments use hours calculators to verify timesheets. Freelancers use them to log billable hours across multiple clients. Shift workers use them to confirm they've met contractual minimums or to calculate overtime thresholds. Any situation where you need to know "how many hours did I work?" benefits from an automated hours calculator.
ToolYard's hours calculator runs entirely in your browser. Enter clock-in and clock-out times, specify any unpaid break, and get the answer in both hours:minutes format and decimal hours for direct entry into payroll software.
How to Use This Hours Calculator
- Enter your Start Time (clock-in time) in HH:MM format, with AM/PM or 24-hour.
- Enter your End Time (clock-out time). For overnight shifts, the calculator detects the next-day rollover automatically.
- Enter any unpaid break duration in minutes (e.g., 30 for a half-hour lunch).
- The result shows gross elapsed time and net hours worked after the break.
- Add multiple shifts with the Add Row button for a weekly total.
Worked Example: Priya's Nursing Shift
Priya works a 12-hour nursing shift starting at 7:00 PM and ending at 7:30 AM the next morning, with two 15-minute unpaid breaks.
- Gross elapsed: 7:00 PM → 7:30 AM = 12 hours 30 minutes
- Unpaid breaks: 2 × 15 min = 30 minutes
- Net hours worked: 12 hours 0 minutes = 12.00 decimal hours
- Overtime over 8 hours: 4.00 hours at OT rate
In payroll software that accepts decimal hours, Priya enters 12.00 regular hours and 4.00 overtime hours. Without a calculator, manually computing an overnight span is error-prone.
Minutes to Decimal Hours Conversion Table
| Minutes | Decimal Hours | Minutes | Decimal Hours |
|---|---|---|---|
| 5 | 0.08 | 35 | 0.58 |
| 10 | 0.17 | 40 | 0.67 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.33 | 50 | 0.83 |
| 25 | 0.42 | 55 | 0.92 |
| 30 | 0.50 | 60 | 1.00 |
Formula: Decimal hours = minutes ÷ 60. Example: 45 min ÷ 60 = 0.75 hours.
Key Concepts: Work Hours and Payroll
Regular vs. overtime hours — Under the FLSA (US), hours beyond 40 per week must be paid at 1.5× the regular rate. Some states (California, for example) also require daily overtime beyond 8 hours.
Decimal hours format — Payroll software typically uses decimal fractions of an hour, not minutes. 8 hours 45 minutes = 8.75 hours (45 ÷ 60 = 0.75). Entering 8:45 as 8.45 is a common and costly mistake.
Paid vs. unpaid breaks — US Department of Labor rules: rest breaks of 20 minutes or less must be paid. Meal breaks of 30+ minutes that are truly duty-free are typically unpaid.
Overnight shift detection — When end time is earlier than start time (e.g., start 10 PM, end 6 AM), the calculator adds 24 hours to the end time before computing the difference.
Tips and Common Mistakes
- Decimal vs. colon format — 8.75 hours and 8:45 are not the same. Always convert minutes to decimal before multiplying by an hourly rate.
- Forgetting AM/PM — A shift from 9 to 5 could be 8 hours (9 AM–5 PM) or cause a 20-hour calculation error if both times are treated as the same half-day. Specify AM/PM explicitly.
- Multiple break deductions — If you have a 30-minute lunch and two 10-minute rest breaks, the paid rest breaks should not be deducted. Only enter unpaid break time.
- Weekly hours vs. daily hours — Overtime thresholds in most US states use weekly totals (40 hours). Track each day separately and sum for the week to catch overtime.
- Rounding rules — Many employers round to the nearest quarter-hour (7 min rounds down; 8 min rounds up to 15). Check your company policy before manually rounding clock-in times.
Frequently Asked Questions
How do I calculate hours worked between two times?
Enter the start and end times above. The calculator subtracts start from end (adding 24 hours for overnight spans) and deducts any unpaid break you specify.
How do I convert minutes to decimal hours?
Divide the minutes by 60. Example: 45 minutes = 45 ÷ 60 = 0.75 hours. So 8 hours 45 minutes = 8.75 decimal hours.
Can the calculator handle overnight shifts?
Yes. When end time is earlier in the day than start time, the calculator automatically assumes the shift crosses midnight and adds 24 hours to the end time.
How do I calculate total weekly work hours?
Add a row for each day's shift. The calculator sums all rows to give your weekly total and flags if you've exceeded 40 hours.
Should I include paid rest breaks in the break deduction?
No. Only enter unpaid break time (typically 30-minute meal breaks). Paid rest breaks (under 20 minutes) count as work time and should not be deducted.
What is the difference between an hours calculator and a time card calculator?
Functionally the same — both compute work hours from clock-in/out times. A time card calculator typically has a weekly grid layout for entering all five days at once.
How do I calculate overtime hours?
Total weekly hours minus 40 equals overtime under federal FLSA rules. California adds daily overtime: hours beyond 8 in a day are at 1.5×, beyond 12 at 2×.
What related calculators should I use?
Pair this with the salary calculator to convert hourly rate × hours into weekly or annual pay, or the time calculator for general time arithmetic.