Time duration calculator

Enter a start and end time with an optional break to get the time worked, in hours and minutes and in decimal hours. Or add up a list of durations such as 1:30 and 2h 15m.

  • Free
  • No sign-up
  • Runs in your browser
time-duration-calculator

Fill in the values above to see the result.

100% private — the calculation is done in your browser and nothing is sent to any server.

How it works

Choose what to calculate

The time between two clock times, or the total of a list.

Enter the times or durations

With an optional unpaid break, or one duration per line.

Read the total

In hours and minutes, decimal hours and minutes, and pay if you add a rate.

How long was that, exactly?

Hours are awkward to calculate because they are not decimal: 8:30 is not 8.30. Working out how long a shift lasted, how many hours go into a timesheet, how long a journey or a recording took, or how much time a set of tasks adds up to is a constant chore. This calculator handles the two common cases: the time between a start and an end, and the total of a list of durations.

Between two times

Enter when you started and when you finished, and, if relevant, the minutes of unpaid break. The result is the time worked in hours and minutes. If the end is earlier than the start, the tool assumes the period crosses midnight, as for a night shift from 22:00 to 06:00, and says so. If you enter an hourly rate, you get the pay for that time.

Decimal hours

Payroll and billing systems usually want hours as decimals: 8 hours 15 minutes is 8.25 hours, and 7 hours 40 minutes is 7.667. Each result includes the decimal figure, rounded to three places, which you can copy directly into a timesheet or invoice. The number of minutes is shown too, for systems that count in minutes.

Adding up a list of durations

Paste or type one duration per line and the tool gives the total. It reads several ways of writing time: the clock form 1:30, the form with units 2h 15m, minutes on their own such as 45m and a plain number, taken as decimal hours. Use it to add the lengths of videos or songs, the time spent on tasks in a week or the parts of a journey. Lines that cannot be read are listed and ignored so that they do not spoil the total.

What it does not do

It works with clock times within a day and does not deal with dates, time zones or daylight saving changes: a night shift across the clock change may really be an hour longer or shorter. Local labour rules on breaks, overtime and rounding are not applied. For a period that spans several days, use the date difference calculator.

Frequently asked questions

How do I calculate the hours between two times?
Enter the start and end time. The result is the time between them in hours and minutes, and as decimal hours.
How do I calculate hours worked with a break?
Enter the unpaid break in minutes. It is subtracted from the time between start and end.
What about a shift that crosses midnight?
If the end is earlier than the start, the tool assumes it crosses midnight and calculates accordingly.
How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add them to the hours: 8 h 15 min = 8.25 h. The tool shows it for you.
Can I add several durations together?
Yes. Choose the total of a list and enter one duration per line, in forms such as 1:30, 2h 15m or 45m.
Is my data sent anywhere?
No. The calculation is done in your browser.