Skip to content

Hours Calculator (Time Duration Between Two Times)

Hours and minutes between a start and an end time.

Inputs

Example: Time between
8 h 0 min

Use this calculator on your own site

Free embed

  • Two lines of HTML, unlimited views
  • Shows a small CalculateEveryday bar, with a credit link under the calculator

What each Hours input means

Start time
The start time. The box follows your device's 12- or 24-hour clock.
End time
The end time. One earlier than the start is read as the next day, for night shifts.
Unpaid break
Unpaid break time in minutes, taken off the total. Leave it at 0 if breaks are paid.

Hours formula

minutes = end − start (add 1,440 if the end is earlier than the start), minus the break; decimal hours = minutes ÷ 60

Both times are turned into minutes after midnight and subtracted. If the end comes out earlier than the start, the span crossed midnight, so a full day of 1,440 minutes is added — 22:00 to 06:00 is 480 minutes, not −960. Any unpaid break is taken off, and the result is shown as hours and minutes, as decimal hours — the form you multiply by an hourly rate — and as plain minutes, with the length before the break for checking against a rota. The page handles one span; for a week of shifts with overtime, the time card calculator adds them up.

Formula last checked against Arithmetic only — times as minutes after midnight on a 24-hour clock; 1 hour = 60 minutes, 1 day = 1,440 minutes on 2 October 2026. Built and maintained by Suman Kumar · How we check

Hours worked example

From 09:00 to 17:30 is 510 minutes. Taking off a 30-minute break leaves 480 minutes: 8 h 0 min, or 8.00 decimal hours.

More Hours examples

A night shift from 22:00 to 06:30 with a 30-minute break: the end is earlier than the start, so it is read as the next morning — 8 h 30 min on the clock, 8 h 0 min worked, 8.00 decimal hours.

08:45 to 17:15 with a 45-minute lunch: 8 h 30 min less the break is 7 h 45 min, or 7.75 hours to multiply by the hourly rate.

A 12-hour night shift from 19:00 to 07:00 with an hour's unpaid break: 11 h 0 min paid, 11.00 decimal hours.

Where the Hours calculator can give the wrong answer

  • Decimal hours are not hours-and-minutes with a dot. 7 h 30 min is 7.50 hours, not 7.30 — multiplying 7.30 by a pay rate underpays by 12 minutes.
  • An end time earlier than the start is read as the next day, so 22:00 to 06:00 is 8 hours. The page says when it has done this. Spans longer than 24 hours need the date difference calculator instead.
  • Entering the same time twice gives zero, not 24 hours.
  • Clock changes are ignored. On the night daylight saving time starts or ends, a shift across 02:00 is really an hour shorter or longer than shown.

Spotted a mistake? Tell us

Hours reference table

Paid hours for common shifts
ShiftUnpaid breakHours and minutesDecimal hours
09:00–17:00None8 h 0 min8.00
09:00–17:0030 min7 h 30 min7.50
08:00–16:3030 min8 h 0 min8.00
07:00–15:3030 min8 h 0 min8.00
08:45–17:1545 min7 h 45 min7.75
19:00–07:0060 min11 h 0 min11.00
Source: Worked out with this page's calculator

Hours FAQ

Use the time card calculator. It takes one row per shift, totals them, and splits out overtime after 40 hours.