Skip to content

Time Duration Calculator

Calculate the duration between two times in hours and minutes, with support for spans crossing midnight and a decimal-hours output.

Category
Calculators
Updated
Cost
Free · no sign-up

Leave at 0 if breaks are paid.

Duration

8h 00m

Break time has been subtracted from the span.

Decimal hours8.00
Total minutes480
Before breaks8h 30m

Payroll systems usually want the decimal figure: 7h 30m is 7.5.

Measuring elapsed time

Time arithmetic is base-60, which is why doing it in your head goes wrong. 9:45 to 17:20 isn't 7.75 hours or 8 hours 25 minutes — it's 7 hours 35 minutes.

The reliable method is to convert both times to minutes since midnight, subtract, then convert back. That's what happens here, and it's why the shift-crossing case works without any special handling.

Overnight shifts

When the end time is earlier than the start time, the span is treated as crossing midnight. A shift from 22:00 to 06:00 is eight hours, not a negative number.

The one case this can't distinguish is a span longer than 24 hours. If you need to measure across multiple days, use a date calculator instead — times alone carry no information about which day they belong to.

Decimal hours for timesheets

Payroll systems almost universally want decimal hours rather than hours and minutes. The conversion is minutes ÷ 60:

MinutesDecimal
150.25
200.33
300.50
450.75
500.83

Rounding errors here compound. Twelve entries rounded to the nearest quarter hour can drift by a meaningful amount across a month, so check whether your employer rounds and in which direction.

Unpaid breaks

If your break is unpaid, subtract it — a 30-minute lunch turns an eight-hour day into 7.5 paid hours. Rules vary by jurisdiction: many require a break after a certain number of consecutive hours, and whether it's paid depends on local law and contract.

How to use the Time Duration Calculator

Three steps, no sign-up.

  1. Enter a start and end time

    24-hour or 12-hour input both work.

  2. Cross midnight freely

    If the end time is earlier than the start, it's treated as the next day.

  3. Use decimal hours for timesheets

    7 hours 30 minutes is shown as 7.5, which is what most payroll systems expect.

Frequently asked questions

How do I convert minutes to decimal hours?
Divide by 60. 45 minutes is 0.75 hours; 20 minutes is 0.33 hours.
Does it handle overnight shifts?
Yes. A shift from 22:00 to 06:00 is correctly measured as 8 hours.