Hours
Calculator
Calculate work hours, shifts, breaks, and overtime instantly — with overnight-shift support, decimal-hour conversion, weekly timesheet, animated timeline, and payroll-ready totals.
Hours Calculator: Calculate Work Hours Instantly
An hours calculator determines the time worked between a start and end time, subtracts breaks, converts to decimal hours for payroll, and totals weekly hours with overtime. Whether you’re an employee verifying your paycheck, a freelancer billing clients, or an HR professional processing timesheets, accurate hour calculation is essential — and manual arithmetic across the noon and midnight boundaries is error-prone. This calculator handles same-day shifts, overnight shifts crossing midnight, break deductions, daily and weekly overtime thresholds, and decimal-hour conversion automatically. Enter 8:30 AM to 5:15 PM with a 45-minute break, and it instantly returns 8 hours (8.0 decimal) with a visual timeline.
⏱️ The formulas:
Hours worked = End time − Start time − Break
Decimal hours = Hours + (Minutes ÷ 60)
Overnight: if End < Start, add 24 hours
Overtime = Hours beyond the daily (8h) or weekly (40h) threshold
Example: 8:30 AM → 5:15 PM = 8h 45m − 45m break = 8h 00m = 8.00 decimal
Decimal Hours Conversion Table
| Minutes | Decimal | Minutes | Decimal |
|---|---|---|---|
| ⏱️ 5 min | 0.08 | 35 min | 0.58 |
| ⏱️ 10 min | 0.17 | 40 min | 0.67 |
| ⏱️ 15 min | 0.25 | 45 min | 0.75 |
| ⏱️ 20 min | 0.33 | 50 min | 0.83 |
| ⏱️ 25 min | 0.42 | 55 min | 0.92 |
| ⏱️ 30 min | 0.50 | 60 min | 1.00 |
Key Features Explained
Overnight shifts
When the end time is earlier than the start time (10 PM → 6 AM), the calculator detects the midnight crossover and adds 24 hours automatically — no manual adjustment needed. Essential for night-shift and hospitality workers.
Break deductions
Unpaid breaks (lunch, rest periods) are subtracted from total hours. Preset buttons for 15, 30, 45, and 60 minutes plus custom entry. Accurate break handling prevents overpayment and ensures compliance.
Decimal hours
Payroll systems use decimal hours (8.75) rather than hours:minutes (8:45) because decimals multiply cleanly by hourly rates. The calculator converts automatically: 45 minutes = 0.75 decimal hours.
Overtime detection
Set daily (8h) or weekly (40h) thresholds. Hours beyond the threshold are flagged as overtime, typically paid at 1.5× under US FLSA rules. The weekly mode tracks cumulative hours across all seven days.
How Work Hours Are Calculated
Calculating work hours involves three steps that this calculator automates. Step 1: total duration. Subtract the start time from the end time. The challenge is handling the 12-hour AM/PM system and midnight crossovers. Converting both times to minutes-since-midnight (8:30 AM = 510 minutes, 5:15 PM = 1,035 minutes) makes the subtraction straightforward: 1,035 − 510 = 525 minutes = 8 hours 45 minutes. Step 2: subtract breaks. Unpaid break time is deducted: 8h 45m − 45m = 8h 00m. Step 3: convert to decimal. For payroll, hours-and-minutes are converted to decimal by dividing minutes by 60: 8h 00m = 8.00 decimal hours. If the shift crosses midnight (end time numerically earlier than start), 24 hours (1,440 minutes) is added before the subtraction. These three steps, applied consistently, handle every shift pattern from a standard 9-to-5 to an overnight hospital shift.
Decimal Hours Explained
Decimal hours express time as a decimal number rather than hours and minutes: 8 hours 30 minutes becomes 8.5 decimal hours. This conversion is essential for payroll because it allows direct multiplication by an hourly wage. If you earn $20/hour and work 8.5 hours, your pay is simply 8.5 × $20 = $170 — a calculation that’s awkward with “8 hours 30 minutes.” The conversion divides minutes by 60: 30 minutes ÷ 60 = 0.5, so 8h 30m = 8.5. Common conversions worth memorizing: 15 minutes = 0.25, 20 minutes = 0.33, 30 minutes = 0.5, 45 minutes = 0.75. A frequent payroll error is treating “8:45” (8 hours 45 minutes) as “8.45” decimal — but 45 minutes is 0.75, not 0.45, so the correct decimal is 8.75. This 0.30-hour discrepancy per shift compounds significantly over a pay period, which is why automated decimal conversion prevents costly mistakes.
Overtime Calculations
Overtime rules vary by jurisdiction, but the calculator supports the two most common models. Daily overtime: hours beyond a daily threshold (commonly 8 hours) are overtime. California, for example, requires overtime pay after 8 hours in a day and double-time after 12. Weekly overtime: hours beyond 40 in a workweek are overtime under the US federal Fair Labor Standards Act (FLSA), regardless of daily distribution. Most US states follow the 40-hour weekly standard. Overtime pay rate: typically 1.5× the regular rate (“time and a half”), though some situations require 2× (“double time”). To calculate overtime pay: (regular hours × rate) + (overtime hours × rate × 1.5). Example: 45 hours at $20/hour = (40 × $20) + (5 × $20 × 1.5) = $800 + $150 = $950. The calculator separates regular and overtime hours automatically based on your chosen threshold, providing the breakdown needed for accurate payroll.
Weekly Timesheets
The weekly timesheet mode tracks hours across all seven days, providing daily totals, a weekly sum, and overtime calculation against the 40-hour threshold. This is how most hourly employees are paid and how freelancers track billable time. For each day, enter the start time, end time, and break; the calculator computes the daily total and running weekly sum. It also provides useful statistics: average hours per day (helpful for spotting scheduling imbalances), longest and shortest shifts (for workload analysis), and the regular/overtime split. A typical full-time week — Monday through Friday, 9 AM to 5 PM with 30-minute lunches — totals 37.5 hours (7.5 hours × 5 days), just under the 40-hour overtime threshold. Adding a Saturday shift or extending weekday hours pushes into overtime, which the calculator flags immediately. The visual bar chart shows each day’s hours at a glance, making it easy to review a week’s work pattern.
Payroll Calculations
Payroll departments rely on accurate hour calculations to process employee compensation correctly. The workflow: collect time entries (clock-in/out times or manual timesheets), subtract unpaid breaks, convert to decimal hours, separate regular and overtime, and multiply by pay rates. Rounding rules matter: the FLSA permits rounding to the nearest quarter-hour (15 minutes) if it doesn’t systematically disadvantage employees — so 8h 07m might round to 8.00 and 8h 08m to 8.25. Some employers round to the nearest tenth of an hour (6 minutes). Consistency and fairness are legally required. This calculator provides exact decimal hours; apply your organization’s rounding policy to the result. For gross pay: (regular decimal hours × hourly rate) + (overtime decimal hours × hourly rate × 1.5). Accurate hour tracking protects both employer (against overpayment) and employee (against underpayment), and provides the documentation needed for labor law compliance and dispute resolution.
Freelancer Time Tracking and Billing
Freelancers and consultants bill clients by the hour, making precise time tracking directly tied to income. Unlike salaried employees, every tracked hour is billable revenue — and every untracked minute is lost income. Billable hours: freelancers track time per client and per project, often in decimal hours for clean invoicing (2.75 hours at $75/hour = $206.25). Minimum billing increments: many freelancers bill in 15-minute (0.25-hour) increments, rounding up — a 10-minute task bills as 0.25 hours. Project budgets: tracking cumulative hours against a project’s budgeted hours prevents scope creep and unprofitable overruns. Multiple projects: the weekly timesheet mode helps freelancers see total hours across the week and allocate time between clients. Effective hourly rate: dividing total earnings by total hours (including unbilled admin time) reveals true profitability. Accurate hour calculation is the foundation of freelance financial health — undercounting hours means working for free, while overcounting damages client trust.
Overnight and Split Shift Calculations
Certain industries — healthcare, hospitality, security, manufacturing, emergency services — rely on overnight and split shifts that complicate hour calculations. Overnight shifts: a shift from 10:00 PM to 6:00 AM spans midnight. Naive subtraction (6 − 22 = −16) gives a nonsensical negative result. The calculator detects that the end time is numerically earlier than the start and adds 24 hours: (6:00 + 24:00) − 22:00 = 8 hours. Split shifts: some workers have two separate shifts in one day (e.g., 6 AM–10 AM and 4 PM–8 PM for restaurant workers). Calculate each segment separately and sum: 4 hours + 4 hours = 8 hours. Shift differentials: night-shift workers often receive premium pay (e.g., +10%) for hours worked between certain times. The calculator provides the base hours; apply differentials per your pay policy. 24-hour operations: hospitals and factories running around the clock need reliable overnight-shift math, which this calculator handles automatically.
Common Hour Calculation Mistakes
- Treating minutes as decimal. “8:45” is not 8.45 decimal hours. 45 minutes = 0.75, so the correct decimal is 8.75. This is the single most common payroll error.
- Mishandling overnight shifts. Subtracting 10 PM from 6 AM without adding 24 hours gives −16 hours. Always add 24 hours when the shift crosses midnight.
- Forgetting to subtract breaks. Unpaid lunch and rest breaks must be deducted. Counting a 45-minute lunch as paid time overstates hours and pay.
- Confusing AM and PM. 12:00 PM is noon; 12:00 AM is midnight. Mixing these up shifts calculations by 12 hours. The calculator handles both explicitly.
- Miscalculating overtime. Overtime is hours beyond the threshold, not total hours. At 45 hours with a 40-hour threshold, only 5 hours are overtime — not all 45.
Related Time Calculators
Frequently Asked Questions
What Is an Hours Calculator?
An hours calculator is a tool that computes the duration between two times and translates it into formats useful for work, payroll, and billing. At its simplest, it answers “how many hours are between 9 AM and 5 PM?” But a full-featured hours calculator does much more: it deducts unpaid breaks, handles shifts that cross midnight, converts hours-and-minutes into decimal hours for wage calculation, applies overtime thresholds, and aggregates daily hours into weekly totals. The tool serves anyone who needs to account for time: hourly employees verifying paychecks, salaried workers tracking overtime eligibility, freelancers billing clients, managers scheduling shifts, HR teams processing timesheets, and payroll departments computing gross pay. By automating the error-prone arithmetic of time — especially across the noon and midnight boundaries — an hours calculator eliminates the mistakes that cost businesses money and employees fair compensation.
The History of Timekeeping at Work
Workplace time tracking has evolved dramatically. In the industrial era, mechanical time clocks (patented in 1888 by Willard Bundy) stamped employee cards with clock-in and clock-out times — the origin of “punching the clock.” Payroll clerks manually calculated hours from these stamps, a tedious and error-prone process. The Fair Labor Standards Act of 1938 established the 40-hour workweek and overtime requirements in the US, making accurate hour calculation a legal necessity rather than just an accounting convenience. The digital era brought spreadsheet-based timesheets, then dedicated time-tracking software (Clockify, Toggl, Harvest), and now app-based systems with GPS clock-in and automated payroll integration. Despite this automation, the underlying math hasn’t changed: hours worked = end − start − breaks, converted to decimals, split by overtime thresholds. An online hours calculator brings this core logic to anyone, instantly and free, without requiring enterprise software — useful for verification, estimation, and situations where the official system isn’t at hand.
Time Formats: 12-Hour vs 24-Hour
Understanding time formats prevents calculation errors. The 12-hour format (used in the US, UK, and several other countries) divides the day into two 12-hour periods marked AM (ante meridiem, before noon) and PM (post meridiem, after noon). The tricky cases: 12:00 AM is midnight (the start of the day) and 12:00 PM is noon — a frequent source of confusion. The 24-hour format (used by most of the world, the military, and healthcare) counts hours from 00:00 (midnight) to 23:59, eliminating AM/PM ambiguity: 1 PM is 13:00, 5 PM is 17:00, 11 PM is 23:00. To convert PM times to 24-hour: add 12 to the hour (except 12 PM, which stays 12:00). To convert AM times: keep the same (except 12 AM, which becomes 00:00). This calculator accepts both formats — enter “5:15 PM” or “17:15” and it parses correctly. For international teams and healthcare workers, the 24-hour format is less error-prone and increasingly standard in professional settings.
Rounding Rules and Legal Compliance
Time rounding is legally regulated to protect employees. Under US FLSA regulations, employers may round employee time to the nearest increment — commonly the nearest quarter-hour (15 minutes), tenth of an hour (6 minutes), or 5 minutes — provided the rounding is neutral and doesn’t systematically favor the employer. The “7-minute rule” for quarter-hour rounding: clock-ins from 1–7 minutes past the quarter round down; 8–14 minutes round up. For example, clocking in at 8:07 rounds to 8:00, but 8:08 rounds to 8:15. Over time, these should balance out — if rounding consistently shortchanges employees, it violates the law. Some states (like California) scrutinize rounding more strictly, and recent court decisions have questioned whether any rounding is appropriate when precise electronic records exist. Best practice: use exact times when possible, and if rounding, apply it consistently and document the policy. This calculator provides exact decimal hours; apply your jurisdiction’s rounding rules to the result, and consult legal counsel for compliance in your specific location.
Shift Work and Scheduling Patterns
Different industries use distinct shift patterns, each with hour-calculation implications. The standard 9-to-5 (8 hours with a 1-hour lunch = 8 paid hours, or 7.5 with a 30-minute lunch) is the office default. Four-day workweeks (4/10): four 10-hour days = 40 hours, requiring daily-overtime awareness in states like California where hours beyond 8/day trigger overtime. The 9/80 schedule: eight 9-hour days plus one 8-hour day over two weeks = 80 hours, giving employees every other Friday off. Rotating shifts: manufacturing and healthcare rotate workers through day, evening, and night shifts, often on a 3-shift, 4-crew system for 24/7 coverage. The 3/12 schedule: common in nursing — three 12-hour shifts per week = 36 hours, often paid as 40. On-call and standby: time spent on-call may or may not be compensable depending on restrictions. Each pattern requires careful hour tracking, and overnight/long-shift support (which this calculator provides) is essential for accurate calculation.
Break and Meal Period Laws
Break requirements vary significantly by jurisdiction, affecting how hours are calculated. Under US federal law, employers are not required to provide meal or rest breaks, but if short breaks (5–20 minutes) are offered, they must be paid. Meal periods (30+ minutes) can be unpaid if the employee is fully relieved of duties. State laws often mandate breaks: California requires a 30-minute unpaid meal break for shifts over 5 hours and a second for shifts over 10 hours, plus paid 10-minute rest breaks per 4 hours worked. Other countries have stronger protections — the EU Working Time Directive mandates rest breaks and limits weekly hours to 48. When calculating hours, only unpaid breaks are deducted; paid rest breaks count as worked time. The distinction matters: incorrectly deducting a paid break understates hours and pay. This calculator lets you enter the exact unpaid break duration to deduct, while paid breaks should simply be included in the worked time. Always follow your local labor laws for break requirements and payment.
Time Tracking Best Practices
Accurate hour tracking benefits both employers and employees. Record time promptly: log start and end times as they happen rather than reconstructing from memory, which introduces errors. Be consistent with breaks: track actual break time, not assumed durations. Use decimal hours for calculations: they multiply cleanly by rates and reduce arithmetic errors. Separate billable and non-billable time: freelancers should track admin, marketing, and client work separately to understand true profitability. Review weekly totals: catching an approaching overtime threshold or an unusually long day helps manage workload and budget. Keep records: retain time records for the legally required period (US FLSA requires 2–3 years) for compliance and dispute resolution. Verify against pay: employees should confirm that paychecks match tracked hours, catching errors early. Automate where possible: time-tracking apps reduce manual entry errors, but understanding the underlying calculation (which this tool demonstrates) helps you verify automated results and catch software mistakes.
Calculating Annual and Monthly Hours
Scaling from weekly to longer periods helps with salary comparison and capacity planning. A standard full-time year is often calculated as 2,080 hours (40 hours × 52 weeks), the basis for converting hourly wages to annual salary: $25/hour × 2,080 = $52,000/year. Accounting for typical time off, actual worked hours are lower — subtracting two weeks of vacation and ten holidays gives about 1,960 worked hours. Monthly hours average 173.33 (2,080 ÷ 12), useful for monthly salary and benefit calculations. Part-time at 20 hours/week totals 1,040 annual hours. For hourly-to-salary conversion: multiply the hourly rate by 2,080 for a rough annual figure. For salary-to-hourly: divide annual salary by 2,080. These conversions help employees compare job offers across pay structures and help employers budget labor costs. The weekly hours calculated by this tool, multiplied across the year, provide the foundation for these longer-term calculations — a 37.5-hour week totals 1,950 annual hours, while a 45-hour week (with 5 overtime hours) totals 2,340 hours, of which 260 are overtime.
Real-Life Example: Retail Worker’s Week
Consider a retail employee with a variable schedule. Monday: 10:00 AM–6:00 PM, 30-min lunch = 7.5 hours. Tuesday: off. Wednesday: 12:00 PM–9:00 PM, 45-min break = 8.25 hours. Thursday: 9:00 AM–5:00 PM, 30-min lunch = 7.5 hours. Friday: 2:00 PM–11:00 PM (evening shift), 30-min break = 8.5 hours. Saturday: 8:00 AM–4:00 PM, 30-min lunch = 7.5 hours. Sunday: off. Weekly total: 7.5 + 8.25 + 7.5 + 8.5 + 7.5 = 39.25 hours — just under the 40-hour overtime threshold. If the manager adds a two-hour Sunday shift, the total becomes 41.25 hours, triggering 1.25 hours of overtime. At $16/hour: regular pay = 40 × $16 = $640, overtime = 1.25 × $16 × 1.5 = $30, gross = $670. This example shows how the weekly timesheet mode aggregates varied shifts — including an overnight-adjacent evening shift — into a single total with automatic overtime detection, exactly as a payroll system would compute it. The visual bar chart in weekly mode would show Wednesday and Friday as the tallest bars, making it easy to spot which shifts contributed most to the weekly total and how close the week ran to the overtime threshold.
Calculate your work hours now ⏱️
Overnight shifts, breaks, overtime, weekly timesheets — enter your times for instant payroll-ready totals.
Calculate hours ↑