Time Duration Calculator

Hours and minutes between two times, with totals and decimal hours for timesheets.

Everyday LifeUpdated 2026-10-102 min read
Time Duration Calculator
An earlier end than start counts as overnight.
Elapsed
...
Total minutes...
Decimal hours...

What it does

Clock subtraction borrows sixty, not a hundred, which is why plain mental math slips. The safe path converts both times to minutes after midnight, subtracts, and converts back to hours and minutes. Ends before starts roll into the next day for night shifts.

The tool above does exactly that. Enter start and end to get the span as hours and minutes, the total minutes, and decimal hours for timesheets and billing.

Breaks sit outside the span. Subtract lunch and pauses separately, since paid and worked time differ on most rosters.

How to use

  1. Enter the start time in 24 hour or AM/PM form, per your browser picker.
  2. Enter the end time. Earlier than start means overnight.
  3. Read hours and minutes for planning, decimal hours for pay math.
  4. Subtract breaks by hand or run the tool twice around the break.

Formula

Minutes = (end hours x 60 + end minutes) - (start hours x 60 + start minutes). If negative, add 1440. Hours = floor(minutes / 60), leftover = minutes mod 60.
minutes after midnight
Hours times 60 plus minutes for each clock time.
1440
Minutes per day, added for overnight spans.
/ 60
Minutes to decimal hours.

The 1440 is a full day in minutes and handles night shifts crossing midnight. Identical start and end read as zero; overnight shifts ending exactly at the start time need the day noted alongside.

Worked example

Example: 09:15 to 17:45

A workday from quarter past nine to quarter to six.

  1. Start in minutes: 9 x 60 + 15 = 555.
  2. End in minutes: 17 x 60 + 45 = 1065.
  3. Subtract: 1065 - 555 = 510 minutes.
  4. Back to hours: 510 / 60 = 8 h with 30 left, so 8 h 30 min.
  5. Decimal: 510 / 60 = 8.50 h. Minus a 30 min lunch, paid 8.00 h.

Reference table

Minutes to decimal hours for common spans
SpanMinutesDecimal
15 min150.25 h
30 min300.50 h
45 min450.75 h
7 h 30 min4507.50 h
8 h 30 min5108.50 h

Limits

  • Minute precision. Seconds round once at the end.
  • Identical times read as zero, not 24 hours.
  • Daylight saving jumps sit outside clock math.
  • Breaks and unpaid time need separate subtraction.

Common mistakes

  • Subtracting times like decimals. 17:45 minus 09:15 is not 8.30.
  • Forgetting the overnight roll for shifts past midnight.
  • Rounding each leg before adding instead of once at the end.
  • Billing decimal hours from rounded clock times instead of exact ones.
  • Leaving breaks inside paid time.

Try it yourself

Quick checks. Answers sit tucked under each question.

13:00 to 21:30?

510 minutes: 8 h 30 min, or 8.50 decimal hours.

22:00 to 06:00?

Overnight: 480 minutes, 8 h 00 min.

Questions

How do overnight shifts work here?

An end earlier than the start adds 24 hours. A 22:00 to 06:00 shift reads 8 hours.

What are decimal hours for?

Pay math. Multiply decimal hours by the hourly rate directly: 8.50 h at $20 is $170.

How do I subtract lunch?

Run start to lunch, then lunch end to finish, and add the two spans. Or subtract break minutes from the total.

Does it handle seconds?

No, minutes are the finest step. Round seconds once at the end for payroll.

Why 24 hour input?

It removes AM/PM mixups. Most browsers accept both forms in the time picker.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.