Hours Between Times Calculator

Work out the hours and minutes between two clock times, handling overnight spans and converting to decimal hours.

minutes
Minutes between the times 510
After the break 480
Duration 8h 0m
minutes = (end − start + 1440) mod 1440, then subtract the break
Decimal hours 8
minutes = (end − start + 1440) mod 1440, then subtract the break
Crosses midnight? Yes — the end time is treated as the next day
minutes = (end − start + 1440) mod 1440, then subtract the break
Rounded to the nearest quarter hour 8
Pay at that rate 0

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Hours Between Times Calculator does

The hours between times calculator on this page will work out the hours and minutes between two clock times, handling overnight spans and converting to decimal hours. Fill in all 6 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for working out the length of an overnight shift. For a second version of this hours between times calculator, see FreeToolsWorld.org.

How to use it

  1. Enter the start time on the 24-hour clock.
  2. Enter the end time. If it is at or before the start, it is treated as the next day.
  3. Deduct any unpaid break.
  4. Use the decimal figure for a timesheet and the hours-and-minutes figure for anything else.

How it works

The modulo arithmetic is what makes overnight spans work. A shift from 22:15 to 06:45 would come out as minus 930 minutes without it; adding 1440 and taking the remainder gives the correct 510. Any end time at or before the start time is read as the following day.

The quarter-hour rounding is shown separately because many payroll systems apply it, and the direction of rounding is a policy choice with real consequences. Rounding to nearest is neutral over time; rounding down always favours the employer, and in some jurisdictions systematically rounding against the worker is unlawful.

Decimal hours is where timesheet errors concentrate. Eight hours thirty minutes is 8.5, and writing 8.30 donates eighteen minutes. The tool prints both forms so the two cannot be confused.

This assumes no daylight saving change within the span. On the two nights a year when the clocks shift, a shift that looks like eight hours is seven or nine, and payroll rules on which to pay vary by employer and jurisdiction.

When to use it

  • Working out the length of an overnight shift.
  • Converting a clock-in and clock-out pair to decimal hours.
  • Checking a payslip against the hours actually worked.
  • Calculating a duration that crosses midnight.

Common mistakes to avoid

  • Writing eight and a half hours as 8.30 on a decimal timesheet.
  • Forgetting the unpaid break.
  • Ignoring a daylight saving change, which makes one night seven hours and another nine.

Frequently asked questions

How do I calculate hours for an overnight shift?

Treat an end time at or before the start time as the next day. From 22:15 to 06:45 is eight and a half hours before breaks.

What is 8 hours 30 minutes in decimal?

8.5. Divide the minutes by 60 — never write 8.30, which means eight hours eighteen minutes.

Is quarter-hour rounding allowed?

It depends on jurisdiction. Rounding to nearest is generally accepted; systematically rounding down against the worker is unlawful in several places. Check the rules that apply to you.

Related tools

See all date & time tools →