Accurate Hours Calculator
Easily calculate the exact amount of time between two times or distinct dates. Ideal for tracking work shifts, timesheets, payroll, and project hours. Automatically processes cross-midnight shifts and computes gross pay.
Hours Calculator (Time to Time)
Calculate total time worked in a single shift. Automatically handles overnight shifts (e.g., 10 PM → 6 AM).
Results
Hours Between Two Dates
Calculate the total continuous hours and minutes between two specific calendar dates and times.
Results
Educational Purpose Only: This tool is provided for educational and personal timesheet tracking only. Calculations are estimates and should not be considered professional accounting, tax, or legal employment advice.
Data Notice: Overtime thresholds, FLSA regulations, and minimum wage rules vary by federal, state, and local jurisdiction. Confirm official payroll calculations with your employer or state labor board.
What Does This Hours Calculator Work Out?
This calculator works out the time between a start and an end time, on the same day or across dates, and shows it in hours and minutes and in decimal hours. Decimal hours are the figure to multiply by an hourly rate.
Last updated: November 15, 2026
How to Use the Hours Calculator
For Standard Time to Time:
- Step 1: Select your Start Time and End Time using the Hour, Minute, and AM/PM dropdowns.
- Step 2: (Optional) Enter any Break Time in minutes to deduct (e.g., 30 for a lunch break).
- Step 3: (Optional) Enter your Hourly Pay Rate to estimate gross pay for the shift.
- Step 4: Click Calculate Hours. Overnight shifts are handled automatically.
For Hours Between Two Dates:
- Step 1: Select your Start Date and Start Time.
- Step 2: Select your End Date and End Time.
- Step 3: Hit Calculate Total Duration to see the precise total hours spanning both dates.
Common Uses and Benefits
- Payroll & Timesheets: Quickly determine decimal hours needed for digital timesheets.
- Estimating Gross Pay: Input your hourly wage for a fast earnings projection per shift.
- Project Management: Calculate hours spent between specific dates for accurate billing.
- Freelance Tracking: Maintain accurate logs of hours worked down to the minute.
- Night Shift Handling: Perfectly handles overnight US shifts (e.g. 10:00 PM to 6:00 AM).
Mathematical Formulas for Timecards & Work Hours
Tracking employee work hours and calculating payroll requires converting conventional clock time (hours and minutes) into continuous decimal time. Below is the exact step-by-step arithmetic utilized by US payroll departments and this calculator.
1. Gross Shift Duration (Elapsed Time)
Gross Minutes = End Time (in minutes from midnight) − Start Time (in minutes from midnight)
Cross-Midnight Shifts: If End Time ≤ Start Time (e.g. 10:00 PM to 6:00 AM), 24 hours (1,440 minutes) is automatically added to the End Time to span across midnight.
2. Net Paid Hours (Deducting Unpaid Breaks)
Net Minutes = Gross Minutes − Unpaid Meal Break (in minutes)
Hours Part = ⌊Net Minutes ÷ 60⌋ | Minutes Part = Net Minutes mod 60
3. Decimal Hours & Gross Pay Projection
Decimal Hours = Hours + (Minutes ÷ 60)
Estimated Gross Pay = Decimal Hours × Hourly Pay Rate ($)
US Payroll Minutes to Decimal Conversion Table
Digital timecards, ERP software, and payroll systems (such as ADP, Paychex, and QuickBooks) log time in two-digit decimal fractions of an hour. Use this authoritative reference table for standard minute conversions.
| Minutes Worked | Exact Fraction | Decimal Equivalent (2 Decimals) | Example (8 Hr Base) |
|---|---|---|---|
| 5 Minutes | 5 / 60 | 0.08 Hours | 8.08 hrs |
| 10 Minutes | 10 / 60 | 0.17 Hours | 8.17 hrs |
| 15 Minutes (Quarter Hour) | 15 / 60 = 1/4 | 0.25 Hours | 8.25 hrs |
| 20 Minutes | 20 / 60 = 1/3 | 0.33 Hours | 8.33 hrs |
| 30 Minutes (Half Hour) | 30 / 60 = 1/2 | 0.50 Hours | 8.50 hrs |
| 45 Minutes (Three Quarters) | 45 / 60 = 3/4 | 0.75 Hours | 8.75 hrs |
| 50 Minutes | 50 / 60 = 5/6 | 0.83 Hours | 8.83 hrs |
| 60 Minutes (Full Hour) | 60 / 60 = 1 | 1.00 Hour | 9.00 hrs |
FLSA Guidelines: US Overtime, Break Rules & Timecard Rounding
Under the federal Fair Labor Standards Act (FLSA) enforced by the US Department of Labor (Wage and Hour Division), covered non-exempt employees are subject to strict standards regarding pay, meal deductions, and time rounding:
🍔 Meal Periods vs Rest Breaks
Bona fide meal periods (typically 30 minutes or more) are non-compensable (unpaid), provided the employee is completely relieved of all duties. Conversely, short rest periods (5 to 20 minutes) must be counted as compensable hours worked.
⏰ The 7-Minute (15-Minute) Rounding Rule
Federal regulations (29 C.F.R. § 785.48(b)) permit employers to round timecard punches to the nearest quarter hour (15 minutes). Under the 7-minute rule, 1 to 7 minutes round down, while 8 to 14 minutes round up to the nearest 15-minute mark.
💰 40-Hour Federal Overtime Standard
Non-exempt employees who work more than 40 hours during a standard 7-consecutive-day workweek must receive overtime pay at a rate not less than one and one-half times (1.5×) their regular pay rate. Certain states (e.g. California) also mandate daily overtime past 8 hours.
Hours and Pay Examples With Real Numbers
Example 1: 8:30 AM to 5:15 PM
The calculator gives 8 hours and 45 minutes, or 8.75 decimal hours.
Example 2: Taking off an unpaid lunch
With a 30-minute unpaid meal break, paid time is 8.75 − 0.5 = 8.25 hours. At $20 an hour that is 8.25 × 20 = $165.00 for the day.
Example 3: A 45-hour week with overtime
At $20 an hour with overtime at one and a half times the regular rate:
- Regular pay: 40 × $20 = $800
- Overtime pay: 5 × $30 = $150
- Gross pay: $950
What Does Federal Law Say About Hours and Pay?
These points come from the US Department of Labor's Wage and Hour Division, which enforces the Fair Labor Standards Act (FLSA). State law can add to them.
- Overtime. Covered, nonexempt employees must be paid at least one and a half times their regular rate for hours worked over 40 in a workweek.
- The workweek. It is a fixed, recurring period of 168 hours. It does not have to match the calendar week, and hours cannot be averaged across two or more weeks.
- Weekends and holidays. The FLSA does not require overtime pay just because work falls on a Saturday, Sunday, or holiday.
- Breaks. Federal law does not require lunch or coffee breaks. When an employer offers short breaks of about 5 to 20 minutes, they count as paid work time. Meal periods, typically 30 minutes or more, are not work time.
- Minimum wage. The federal minimum wage is $7.25 an hour, in effect since July 24, 2009. Where a state sets a higher rate, employers must comply with both laws.
Common Mistakes When Adding Up Hours
- Multiplying hours and minutes by the pay rate. 8 hours 45 minutes is 8.75 hours, not 8.45.
- Forgetting to take off unpaid meal breaks.
- Mixing up AM and PM. 12:00 PM is noon and 12:00 AM is midnight.
- Averaging two weeks to avoid overtime. Each workweek stands on its own.
- Ignoring shifts that cross midnight. Use the two-date calculator for those.
How do you read your result?
- Total time worked is shown in hours and minutes.
- Decimal hours is the same amount as one number, ready to multiply by an hourly rate.
Related Calculators
Frequently Asked Questions
How are decimal hours calculated?
Decimal hours convert the minutes part of your shift into a fraction of an hour (÷60). For example, 30 minutes = 0.5 hours. So 8 hours 30 minutes = 8.5 decimal hours, the standard format required by payroll departments.
What happens if my shift goes past midnight?
The calculator automatically detects overnight shifts. If your "End Time" is earlier than your "Start Time" (e.g., 10:00 PM to 6:00 AM), the tool assumes the end time occurs on the following day and correctly calculates an 8-hour shift.
Does this calculator deduct unpaid breaks?
Yes. Enter the break duration in minutes in the "Break" field; the calculator subtracts that time from total hours worked.
Are the gross pay calculations precise?
Gross pay is calculated by multiplying your hourly rate by exact decimal hours. This represents gross earnings only — before any US state, federal, or local tax deductions.
Is my time input data private?
Absolutely. All calculations run entirely inside your browser. No data is ever uploaded or stored on our servers.
How many hours is 8:30 AM to 5:15 PM?
8 hours and 45 minutes, which is 8.75 decimal hours. With a 30-minute unpaid lunch, paid time is 8.25 hours.
How is overtime pay calculated?
Under the federal Fair Labor Standards Act, hours over 40 in a workweek are paid at one and a half times the regular rate. For 45 hours at $20 an hour, that is $800 regular pay plus 5 × $30 = $150 overtime, a total of $950.
Sources
- US Department of Labor, Wage and Hour Division: Overtime pay; Minimum wage
- US Department of Labor: Breaks and meal periods