Skip to content

Time Duration Calculator

Calculate the duration between two clock times (including overnight), subtract unpaid breaks, add or subtract lists of hours and minutes, or measure the span between two date-times — results in hours, minutes, decimal hours, and HH:MM. Free and private.

  • Duration between two times, including overnight
  • Optional unpaid break in minutes
  • Add or subtract lists of hours and minutes
  • Span between two date-times
  • Hours, minutes, decimal hours, and HH:MM output
  • Runs fully client-side — nothing uploaded

Calculator

Calculated locally, nothing uploaded

If end is earlier than start, the span is treated as overnight (crosses midnight).

Hours
Minutes
Decimal hours
HH:MM

How to calculate a time duration

  1. 01

    Pick a mode

    Choose between two clock times, add/subtract durations, or between two date-times.

  2. 02

    Enter the times or durations

    Use start/end times with an optional break, a list of hours and minutes to combine, or full date-times.

  3. 03

    Read the result

    Hours, leftover minutes, decimal hours, and HH:MM update instantly in your browser.

Same-day vs overnight clock spans#

When both times sit on the same calendar day and the end is later than the start — 09:00 to 17:00 — the duration is simply the difference on a 24-hour clock. Night shifts reverse that order: 22:00 to 06:00 crosses midnight, so a naive end-minus-start would go negative. This calculator detects that case and adds a full day before subtracting, which matches how a night nurse or warehouse worker actually counts the shift. Identical start and end times resolve to zero rather than a full day, so you do not get a surprising 24-hour answer from leaving both fields on the same value.

Why unpaid breaks are subtracted in minutes#

Payroll and timesheet tools often need “hours worked” after removing a lunch or unpaid rest. Expressing that break as whole minutes (30, 45, 60) keeps the input unambiguous and matches how most schedules write it. The break is subtracted from the clock span only; if you enter a break longer than the span, the tool errors instead of inventing a negative work day. That keeps the “with breaks” use case honest for people searching for a time duration calculator that handles unpaid lunch without forcing a second manual subtraction.

Adding and subtracting hours and minutes#

Project estimates, meeting stacks, and timesheet corrections are often lists of small durations — 1h 30m plus 45m minus 15m — not a single start/end pair. The add/subtract mode lets each row carry its own hours, minutes (0–59), and sign so you can build a running total without converting everything to decimal hours first. Negative totals are allowed when subtracted rows outweigh added ones; the HH:MM line shows a leading minus so the signed result stays readable next to the decimal-hours figure.

Decimal hours vs HH:MM — two common formats#

Billing systems and spreadsheets often want decimal hours (1.25 for an hour and fifteen minutes), while timesheets and shift boards prefer HH:MM (01:15). Both answer the same duration; converting by hand is a frequent source of off-by-a-few-minutes errors. Showing hours, leftover minutes, decimal hours, and HH:MM together means you can copy whichever format your destination needs without a second tool. Multi-day date-time spans can exceed 24 hours in the HH:MM field (for example 26:30), which is intentional — it is a duration clock, not a time-of-day.

Frequently asked questions

How does overnight duration work?

If the end time is earlier than the start (for example 22:00 to 06:00), the calculator treats the span as crossing midnight and adds 24 hours before subtracting.

How are unpaid breaks handled?

Enter break length in whole minutes. That amount is subtracted from the clock span; it cannot exceed the span itself.

What is decimal hours?

Decimal hours express the same duration as a single number — 90 minutes is 1.5 hours — which many payroll and billing tools expect.

Can HH:MM show more than 24 hours?

Yes for date-time spans and combined totals. HH:MM here is a duration (hours:minutes), not a clock time of day.

Can I add and subtract several durations?

Yes — use Add / subtract mode, set each row to + or −, and enter hours and minutes. The signed total updates instantly.

Is my data sent anywhere?

No. The calculation runs entirely in your browser.

Developers

UUID Generator

Generate cryptographically random UUID v4 or time-ordered UUID v7, in bulk.

Developers

Base64 Encoder & Decoder

Encode and decode Base64 with correct UTF-8 handling, including the URL-safe alphabet.

Developers

ULID Generator

Generate ULIDs — sortable by creation time like UUID v7, but Crockford Base32 instead of hex.