Skip to main content

Notice Send us your feedback to help us improve this service.

Time Duration Calculator

Calculate the hours and minutes between two times.

What this calculator does

This tool works out how much time passes between two times of day. You get the answer in hours and minutes, and as decimal hours.

Use it to time a shift, a drive, a flight, a class or a movie. Decimal hours are handy for timesheets and pay, where seven and a half hours is entered as 7.5.

How we work it out

We turn both times into seconds after midnight and subtract the start from the end. When the finish comes before the start on the clock, as with a night shift, we treat the period as running past midnight and add 24 hours. Then we turn the answer back into hours and minutes. Any seconds left over are dropped from that line.

For decimal hours, we divide the total by 3,600 seconds and round to two decimal places. So a quarter of an hour shows as 0.25.

Reading the result

The first line gives whole hours and minutes. The second gives the same time as a decimal, which is what many timesheets and pay calculations use. Quarter hours are the easiest to remember. A quarter of an hour shows as 0.25, half an hour as 0.5, and three quarters as 0.75. Twenty minutes is a third of an hour, about 0.33.

To check your pay for a shift, multiply the decimal hours by your hourly rate.

Overnight shifts and long periods

A finish time that is smaller than the start time tells the calculator the period ran past midnight, so it adds a day. That covers a shift that crosses midnight once. It cannot measure a period of 24 hours or more. If you enter the same time twice, the answer is zero, not a full day. For spans across several days, count the days with the Date Difference calculator and add the hours.

In places that use daylight saving time, clocks move forward one hour in March and back one hour in November. A night shift that crosses the change is really an hour shorter or longer than the answer shown. Each province and territory sets its own rules on daylight saving time, so check yours.

Breaks and time cards

This tool does not take off breaks. Subtract unpaid breaks yourself, or use the Hours Calculator, which has a box for them. For a full week of shifts with overtime, the Work Hours and Time Card calculator adds up each day and works out your gross pay.

What this does not include

  • Time zones. Both times are read as being in the same place.
  • The night the clocks change for daylight saving time, which adds or removes an hour
  • Breaks, which you need to subtract yourself
  • Periods of 24 hours or more
  • Seconds, which are left out of the hours and minutes line

Common questions

Does it handle overnight shifts?

Yes. A finish time that comes before the start on the clock is taken to mean the shift ran into the next day, so 24 hours are added before the sum. Clocking in at 23:00 and out at 07:00 gives 8 hours. It cannot handle a period that runs past midnight more than once.

How do I turn minutes into decimal hours?

Take the minutes and divide by 60. Ten minutes comes to about 0.17 of an hour, and 50 minutes to about 0.83. The calculator does this for you in the decimal hours result, rounded to two decimal places.

What if the start and end times are the same?

The answer is zero. The calculator treats equal times as no time at all, not as a full 24 hours. If you really worked around the clock, add the 24 hours yourself.

Can I use a.m. and p.m.?

The time boxes use your device's time picker, which may show a.m. and p.m. If you type a time instead, use the 24-hour clock, so 2:30 p.m. is 14:30. Times are in hours and minutes, and seconds are optional.

How do I take off my lunch break?

Take the break off the result yourself. A half-hour unpaid lunch means 0.5 less in decimal hours. The Hours Calculator has a box for breaks and does it for you, and it shows the total in minutes too.

Sources

Last reviewed October 18, 2026. How we check our numbers.

This is an estimate to help you plan. It is not financial, medical, or legal advice. Talk to a professional before you make a big decision.

Add this calculator to your website

Free to use on your site, blog or intranet. Paste this code where you want the calculator to appear. It works on its own, sets no cookies and shows no ads.