Skip to main content

Dates & workdays

Hours Calculator

This calculator finds elapsed time between two clock times or two date-time pairs. Time range mode uses 12-hour start and end with optional break deduction and adds 24 hours when end is before start (overnight). Date span mode totals multi-day windows. Results include hours and minutes, decimal hours, and total minutes. It does not apply overtime rules or time zones.

By Jeff Beem

Updated

01

Mode

Result

7 Hours and 30 Minutes


Decimal: 7.50 h

Minutes: 450

How to use this calculator

Choose Time range (default) for one shift: 12-hour start and end with AM/PM, optional break in minutes or hours. If end is earlier than start, the tool treats it as overnight and shows an overnight label. Choose Date span for multi-day totals from explicit start and end date-times (no break field). Results show hours and minutes, decimal hours, and total minutes.

Reading your hour totals

Pick Time range for one shift (with optional break) or Date span for a multi-day window in section 01. The dark results panel shows hours and minutes, decimal hours, total minutes, and an overnight label when applicable.

Example: Time range — 9:00 AM to 5:00 PM, 30 min break

Defaults in Time range mode: start 9:00 AM, end 5:00 PM, break 30 minutes. Raw span is 8 hours; after break the widget shows 7 Hours and 30 Minutes, Decimal: 7.50 h, and Minutes: 450. No overnight label.

Example: Date span — Feb 17–18, 2026

Switch section 01 to Date span: start Feb 17, 2026 9:00 AM, end Feb 18, 2026 5:00 PM. The results headline reads 32.0 hr with breakdown 1 Day, 8 Hours and 1,920 total minutes. Break deduction is not available in this mode.

Decimal line on the results panel

The widget prints Decimal: X.XX h and Minutes: N below the main duration on every calculation. Use the decimal line when your timesheet wants 7.50 instead of 7:30. The formula is total minutes ÷ 60, which matches hours plus minutes ÷ 60.

When to use each mode

Use Time range for daily or graveyard shifts with optional break deduction and automatic overnight handling. Use Date span when you have explicit start and end calendar dates for project billing or multi-day windows without the single-shift overnight shortcut.

Hours calculator: time range, date span, decimal hours

This calculator finds elapsed time between two clock times or two date-time pairs, with optional break deduction in time range mode and decimal hours for payroll-style totals. All math runs locally in your browser.

What this calculator does

The widget computes elapsed time in two modes: Time range (12-hour start and end on one shift, optional break, automatic overnight when end is before start) and Date span (full start and end date-time for multi-day totals). Outputs include hours and minutes, decimal hours, and total minutes on the dark results panel. It does not apply overtime rules, employer rounding policies, or time zones.
  • Time range (after break):
    Total minutes=(EndStart)Break\text{Total minutes} = (\text{End} - \text{Start}) - \text{Break}
  • Decimal hours:
    Decimal hours=Total minutes60\text{Decimal hours} = \frac{\text{Total minutes}}{60}

How the math works

In Time range mode, the widget converts each 12-hour clock time to minutes since midnight, using AM/PM to set the 24-hour value. With defaults (start 9:00 AM, end 5:00 PM), that is 540 minutes to 1,020 minutes, or 480 minutes (8 hours) before break.
Subtract the break (default 30 minutes) to get 450 minutes, which displays as 7 Hours and 30 Minutes, 7.50 decimal hours, and 450 total minutes. When end time is earlier than start on the same calendar day, the widget adds 1,440 minutes to end before subtracting break; an 11:00 PM–7:00 AM span with no break equals 480 minutes (8.0 hours) and shows Overnight span.
In Date span mode, the widget builds local timestamps from each date plus time and subtracts start from end. Default span Feb 17, 2026 9:00 AM to Feb 18, 2026 5:00 PM equals 32 hours (1 day and 8 hours, 1,920 minutes). If end is not after start, the panel reads zero until inputs are corrected.

Limits of the model

This page uses browser local time without daylight-saving or time-zone conversion. It does not round to employer quarter-hours, compute overtime after 40 hours, split paid versus unpaid lunch under labor rules, or calculate gross pay. Treat the decimal line as raw elapsed time for your own timesheet rules.

Hours Calculator FAQ

How do I calculate hours between two times?

Choose Time range in section 01 Mode. Enter Start time and End time with AM/PM, then subtract an optional Break deduction. The dark results panel shows hours and minutes, plus decimal hours and total minutes. If end is earlier than start (for example 11:00 PM to 7:00 AM), the widget adds 24 hours and shows an Overnight span label.

How are minutes converted to decimal hours?

Decimal hours equal total minutes divided by 60, or whole hours plus minutes ÷ 60. The results panel lists Decimal: X.XX h and Minutes: N on every run. At defaults (7 hours 30 minutes after break), decimal hours read 7.50.

What is the difference between Time range and Date span?

Time range covers one shift on a single calendar day or overnight, with optional break deduction. Date span uses full start and end date-time pairs for multi-day totals (days, hours, minutes, and decimal hours). Switch modes with the segmented control in section 01; date span hides the break field.

Why does an overnight shift add a day?

When end time is before start time on a 12-hour clock, the calculator assumes the end is the next calendar day and adds 1,440 minutes (24 hours) before subtracting break. A 10:00 PM–6:00 AM span with no break is 8.0 hours. The results panel shows Overnight span in italic yellow when that rule applies.

Can I deduct lunch or break time?

Yes, in Time range mode only. Enter break length and choose Minutes or Hours on the break unit dropdown (default 30 minutes). Break subtracts from elapsed time after any overnight adjustment. Date span mode does not include a break field.

What if end is before start in Date span mode?

Date span requires the end timestamp to be after the start. If end is earlier, the results panel shows zero hours until you fix the dates or times. There is no overnight rollover in date span; use explicit end dates instead.

Where do I read decimal hours for payroll?

The dark Result panel always shows a Decimal: X.XX h line below the main headline. In time range mode the headline reads like 7 Hours and 30 Minutes; in date span mode the headline shows total decimal hours (for example 32.0 hr) with a day/hour/minute breakdown underneath.

Does this calculator handle time zones or overtime?

No. All math uses your browser’s local date and time inputs without time-zone conversion. The widget does not apply overtime multipliers, employer rounding rules (such as quarter-hour rounding), or paid-lunch policies. It is elapsed-time math only.

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: July 2026Free Online Utility Tools