Skip to content
ToolShelf

Time duration calculator

Work out how long it is from one time to another, within a day or across dates, shown in hours and minutes, as decimal hours, and as total minutes.

What are you measuring between?

Start

End

An end time earlier than the start is read as the next day, so a night shift needs no special handling.

Break

Optional. Taken straight off the total.

Duration

—

Enter a start and an end to see how long.

Three ways to write the same answer

From 09:00 to 17:30 is 8 hours and 30 minutes. It is also 8.5 hours, and 510 minutes. All three are shown because different jobs want different ones: a timesheet is filled in hours and minutes, payroll and invoicing work in decimal hours because they multiply cleanly by a rate, and minutes are what you want when adding several spans together.

The conversion between the first two is where mistakes happen. 8 hours 30 minutes is 8.5, but 8 hours 15 minutes is 8.25, not 8.15, and 8 hours 20 minutes is 8.33. Minutes are sixtieths, not hundredths, and writing them straight after a decimal point quietly overpays or underpays.

Shifts that run past midnight

Enter 22:00 to 06:00 and the answer is eight hours, an end time earlier than the start is read as the following day, because that is what a night shift is. The result says when it has done this, so you can check the reading is the one you meant.

One case is deliberately not guessed at: entering the same time twice gives zero rather than twenty-four hours. A duration between a moment and itself is nothing, and assuming a whole day would be inventing an instruction. If that is what you want, measure across dates instead and name the two days.

Clock time, not elapsed time

This measures what the two clock readings differ by. From 01:00 to 05:00 is four hours here, every time. On the two nights a year when the clocks move, the time that actually passes is three hours or five.

That is a deliberate limit rather than an oversight. Getting it right would mean knowing your timezone and its daylight-saving rules, and a payroll figure quietly an hour short twice a year is far harder to spot than one that never claimed to handle the change. Clock time is also what a timesheet actually records, which is what most people are filling in.

Breaks

The break field takes a number of minutes off the total, and does nothing else. There are no rules here about when a break is owed, how long it must be, or whether it is paid, because all of that depends on the country, the contract and the length of the shift. Enter what applies to you. If the break is longer than the span, the result stops at zero and says so rather than reporting negative hours.

Questions

How many hours are between two times?
Subtract the start from the end. From 09:00 to 17:30 is 8 hours and 30 minutes, which is 8.5 hours as a decimal and 510 minutes in total. All three are shown, because payroll usually wants the decimal and a timesheet usually wants hours and minutes.
How do I work out a night shift that runs past midnight?
Enter the times as they are, 22:00 to 06:00, and the end is read as the following day, giving 8 hours. You do not need to split it into two calculations. The result says explicitly when a span has been read as crossing midnight, so you can check that is what you meant.
Why does 09:00 to 09:00 give zero rather than 24 hours?
Because a duration between a time and itself is nothing, and reading it as a whole day would be a guess. If you genuinely mean twenty-four hours, switch to measuring across dates and give the two days, which says so unambiguously.
What is the difference between 8.5 hours and 8 hours 30 minutes?
Nothing. They are the same duration written two ways. Decimal hours are what most payroll systems and invoices use, because they multiply cleanly by a rate. Hours and minutes are what a clock shows. The conversion trips people up: 8 hours 30 minutes is 8.5, but 8 hours 15 minutes is 8.25, not 8.15.
Does this account for daylight saving?
No, and that is deliberate. This measures clock time: from 01:00 to 05:00 is four hours here, always. On the two nights a year the clocks move, the actual elapsed time is three or five hours. Handling it would require knowing your timezone and its rules, and a payroll figure quietly wrong by an hour is worse than one that never claimed to handle it.
How is the break handled?
It is subtracted from the total, and nothing more. There are no rules here about when a break is owed or whether it is paid, because those depend on the country, the contract and the length of the shift. Enter the minutes you want taken off. If the break is longer than the span, the result stops at zero and says so rather than going negative.
Can I add up several days of hours?
Not in one go, this measures one span at a time. For a week of shifts, run each day and add the decimal hours, which is what they are for. For a single span that runs over several days, switch to measuring across dates and the total comes back as days, hours and minutes.
Why are there no seconds?
Because every duration on this site is carried as whole minutes, and a time input gives minutes unless asked otherwise. For anything needing seconds you want a stopwatch rather than a calculator working from two clock readings.

More tools