Skip to content

Calculators

Hours Calculator

Work out how many hours and minutes are between a start and end time, minus any break. Get the result as hours and minutes and as decimal hours — perfect for timesheets and payroll. Overnight shifts are supported.

Calculators · Hours CalculatorRuns in your browser
8h 0m
= 8 hours · 480 minutes

Overnight shifts are supported — if the end time is earlier than the start, it's counted as crossing midnight. The same start and end time counts as a full 24-hour shift. Break minutes are rounded to the nearest whole minute.

How to calculate a shift's worked time

  1. Set the Start time and End time with the two time pickers. They use your browser's own time control, so you may see a 12-hour or 24-hour display depending on your system settings.
  2. Enter the unpaid break in minutes. Use 0 if the break is paid or there was none.
  3. Read the result panel: hours and minutes in large type, then the same duration as decimal hours and as total minutes.
  4. For an overnight shift just enter the times as they happened; an end time earlier than the start is treated as the next day.

What happens to the two times

Each time is converted to minutes since midnight: 09:00 becomes 540 and 17:30 becomes 1,050. The start is subtracted from the end, 1,440 minutes are added if the result is zero or negative (the overnight case, and the same-time case), and the break is subtracted last. The default inputs give 1,050 − 540 − 30 = 480 minutes, displayed as 8h 0m, 8 hours and 480 minutes.

An overnight example: 22:00 to 06:00 with a 45-minute break. 360 − 1,320 is negative, so 1,440 is added to give 480, and the break brings it to 435 minutes, shown as 7h 15m or 7.25 hours.

Minutes to decimal hours for timesheets

The decimal figure is the minutes divided by 60 and rounded to two decimal places. Most minute values do not divide evenly, which is why 4 hours 5 minutes is shown as 4.08 rather than 4.0833. The exact minute count sits next to it for anyone who needs the unrounded value.

Minutes past the hourDecimal shownExact value
50.080.0833
100.170.1667
150.250.25
200.330.3333
300.50.5
400.670.6667
450.750.75
500.830.8333

Common minute values and the decimal hours the tool shows for them.

Boundaries of what it can measure

  • It handles one shift at a time. For a weekly total, note the minutes from each day and add them up; there is no multi-row mode.
  • Entering the same start and end time is read as a full 24-hour shift, so 1,440 minutes is the longest span it can represent; 08:00 to 08:00 with a 60-minute break shows 23h 0m.
  • The break is a single whole number of minutes: a decimal such as 7.5 is rounded to the nearest minute (8) before it is subtracted, and two breaks of 15 and 30 minutes should be entered as 45.
  • A break longer than the shift, or a negative break, replaces the result with a prompt to check the inputs rather than showing a negative time.
  • Seconds are not supported; the time pickers work in whole minutes.

Rounding rules your employer may apply

The tool reports exact minutes, but payroll departments often round clock times to the nearest quarter hour before paying. In the United States the Fair Labor Standards Act permits this as long as the rounding does not consistently favour the employer, which is where the 7-minute rule comes from: 8:07 rounds down to 8:00 and 8:08 rounds up to 8:15. If your pay slip differs from the figure here by a few minutes a day, rounding is the usual explanation.

Overtime thresholds are another source of difference. A 10-hour shift shows as 10 hours here; whether the last two are paid at a higher rate depends on your contract and local law, not on the arithmetic.

Jobs the calculator is good for

  • Filling in a timesheet that wants decimal hours when your clock-in records show times.
  • Checking an hourly invoice: multiply the decimal hours by your rate.
  • Working out a babysitter's or contractor's time from arrival and departure, minus an unpaid lunch.
  • Measuring any interval inside a day, such as parking duration or how long a batch job ran, by treating the break as 0.

Frequently asked questions

How do I calculate hours worked?

Enter your start and end times and any break in minutes. The calculator shows the worked time as hours and minutes, decimal hours, and total minutes.

Does it handle overnight shifts?

Yes. If the end time is earlier than the start time, the shift is treated as crossing midnight, so an overnight shift is calculated correctly.

What are decimal hours?

Decimal hours express the time as a single number, where 30 minutes is 0.5 — for example 7 hours 30 minutes is 7.5 hours. Payroll systems often use this format.

Is the hours calculator free?

Yes — free, no sign-up, and it runs entirely in your browser.

What happens if the start and end times are identical?

They are treated as a complete day apart, since a zero-length shift is never what anyone means to enter. 08:00 to 08:00 therefore shows 24h 0m, or 23h 30m once a 30-minute break is subtracted; the note under the inputs spells this out.

Why is the decimal result slightly different from my own division?

It is rounded to two decimal places. 245 minutes is 4.0833 hours, shown as 4.08. If your payroll system wants more precision, divide the total minutes shown by 60 yourself.

Can I enter the break as a start and end time?

No, only as a number of minutes. Work out the break length first, for example 12:00 to 12:45 is 45 minutes, and type that into the break box.

What does the tool show if the break is longer than the shift?

A short message asking for a valid start and end time, because the worked time would be negative. Reduce the break or check that the start and end times are the right way round.

Explore

113 tools. Zero uploads. One place.

Every tool opens instantly, works on your phone and keeps your files on your device.

Hours Calculator guides