Skip to main content

Dates & workdays

Hours Calculator: Work Hours, Payroll Decimal & Multi-Day Spans

Calculate hours between two times or across two dates. Overnight shifts, break deduction, payroll decimal format, multi-day spans. Free, runs locally.

By Jeff Beem

Updated

01

Mode

Result

7 Hours and 30 Minutes


Decimal: 7.50 h

Minutes: 450

02

Reference

Decimal hours

Payroll often uses decimal hours:

Decimal hours

e.g. 30 min → 0.5; 8h 30m → 8.5.

Overnight & multi-day

Time range: end before start rolls to the next day.

Date span: full difference between explicit start and end timestamps.

Work Hours, Payroll Decimals & Across-Midnight Logic

This calculator supports same-day or overnight time ranges (with optional break deduction) and multi-day spans between two dates and times. The Information Hub in the calculator card above explains the decimal-hours formula and across-midnight logic.

What You Get

Time Range or Date Range

Time Range: start and end times (12-hour), optional break; overnight shifts are detected automatically. Hours Between Two Dates: start and end date + time for multi-day spans, with days-hours-minutes and decimal hours.

Decimal hours & overnight

The Information Hub above covers the decimal-hours formula (e.g. 8h 30m → 8.5) and how we treat end-before-start as an overnight shift.

Hours Calculator: Time Between Two Times, Work Hours & Payroll Decimal

Calculate total hours between two times or across two dates. Supports overnight shifts, break deduction, payroll decimal format, and multi-day spans. Free, runs locally, no sign-up.

What This Calculator Does

This hours calculator finds the total time between two clock times or two date-and-time pairs, returning results in hours-and-minutes and decimal hours for payroll or billing. It detects overnight (across-midnight) shifts automatically and lets you subtract a break. Two modes cover the most common scenarios: Time Range for same-day or overnight shifts, and Hours Between Two Dates for spans that cross multiple calendar days.
  • Who it helps:
    Hourly workers, freelancers, payroll staff, and project managers who need accurate time totals in decimal format.
  • What it outputs:
    Total elapsed time in hours:minutes, decimal hours (e.g., 8 h 30 min = 8.5), and a note when overnight logic is applied.
  • Limitations:
    Time Range mode covers a single shift (up to ~24 hours). For spans crossing multiple calendar days, switch to Hours Between Two Dates.

How the Math Works

The calculator converts 12-hour clock times to minutes since midnight, computes the raw difference, and subtracts any break:
Total=(EndminStartmin)Breakmin\text{Total} = (\text{End}_{\min} - \text{Start}_{\min}) - \text{Break}_{\min}
If the end time is earlier than the start (e.g., 10 PM to 6 AM), the calculator adds 1,440 minutes (24 hours) to the end value to handle overnight shifts. Decimal-hours conversion simply divides total minutes by 60:
Decimal Hours=Total Minutes60\text{Decimal Hours} = \frac{\text{Total Minutes}}{60}
  • Worked Example:
    Start 8:30 AM, End 5:15 PM, 30-min break: (1035 − 510) − 30 = 495 min = 8 h 15 min = 8.25 decimal hours.
  • Overnight Logic:
    Start 11:00 PM (1380 min), End 7:00 AM (420 min): 420 + 1440 − 1380 = 480 min = 8.0 hours.
  • Date Mode:
    Uses full date-time timestamps so the span can cross any number of calendar days without the 24-hour limit of Time Range mode.

How to Use the Hours Calculator

Time Range suits same-day or overnight shifts: enter start and end times (12-hour, AM/PM), optionally deduct a break. Hours Between Two Dates handles multi-day spans with exact start and end date + time. The calculator's Information Hub (above) explains the decimal-hours formula and across-midnight (overnight) logic in one place.

Hours Calculator FAQ

How do I calculate hours between two times?

Use Time Range mode: enter start and end times with AM/PM, then optionally deduct a break. If the end time is earlier than the start (e.g., 11 PM to 7 AM), we treat it as an overnight shift and add 24 hours to the end time. For spans across multiple days, use Hours Between Two Dates and pick exact start and end dates and times.

How are minutes converted to decimal hours?

Decimal hours = hours + minutes ÷ 60. So 30 min = 0.5, 15 min = 0.25, 45 min = 0.75; 8h 30m = 8.5. The Information Hub in the calculator shows the formula and examples.

What is the difference between Time Range and Hours Between Two Dates?

Time Range is for same-day or overnight shifts (one calendar day). Hours Between Two Dates handles multi-day spans, pick start date + time and end date + time. Use the second mode for project tracking, billing across weeks, or any span that crosses multiple calendar days.

Why does my overnight shift show "calculated as an overnight shift"?

When the end time is chronologically before the start time (e.g., 10 PM–6 AM), we assume the end is on the next calendar day. That's the "across midnight" logic, common for graveyard and swing shifts. The calculator makes this explicit so you know it's correct.

Time & Date Reference Note

Informational Use: These tools use standard date/time algorithms and your browser’s timezone data (IANA). Results are intended for general reference and planning only.

Verification Recommended: Time zone rules and daylight saving changes vary by region and year. For critical scheduling, payroll, or legal deadlines, confirm results with official sources.

Local Verification: Always confirm times, dates, and business-day counts with official sources or qualified professionals when stakes are high.

© 2026 CalcRegistry Reference Last Logic Update: May 2026Free Online Utility Tools