Skip to content
Instant results No sign-up Private — stays on your device Free

Time Duration Calculator

Find the duration between a start time and an end time, in hours and minutes. Handles overnight periods automatically.

Duration

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

What Is a Time Duration Calculator?

A time duration calculator works out how much time passes between a start time and an end time, giving the answer in hours and minutes. It is the quick way to total a work shift, time a journey, measure how long a meeting ran, or check how many hours of sleep you got. The tool also handles overnight periods, where the end time is earlier on the clock than the start time because it falls on the next day.

Instead of counting on your fingers across the hour boundary, you simply enter the two times and read off the result. The calculator shows the duration in hours and minutes, in total minutes, and in decimal hours, which is the format payroll and timesheets usually expect.

How It Works

The calculation converts both times into minutes since midnight, then finds the difference. The steps are simple enough to do by hand.

  • Convert the start time to total minutes: hours × 60 + minutes.
  • Convert the end time the same way.
  • Subtract the start minutes from the end minutes.
  • If the result is negative, the period runs past midnight, so add 1440 minutes (a full day) to get the correct overnight duration.
  • Finally, convert the total minutes back into hours and minutes by dividing by 60.

Adding 1440 when the answer is negative is what lets the tool handle shifts that begin in the evening and end the following morning.

Worked Example

Suppose a shift starts at 09:00 and ends at 17:30, and you want the total duration.

Convert the start time: 9 × 60 + 0 = 540 minutes. Convert the end time: 17 × 60 + 30 = 1050 minutes. Subtract: 1050 − 540 = 510 minutes. The result is positive, so no overnight adjustment is needed.

Now convert 510 minutes back into hours and minutes: 510 divided by 60 is 8 with a remainder of 30, which is 8 hours and 30 minutes. As a decimal, 30 minutes is half an hour, so the duration is 8.5 hours, the figure you would enter on a timesheet.

Handling Overnight Shifts and Decimal Hours

Two features make this tool especially handy for shift work and payroll.

  • Overnight periods: if you start at 22:00 and finish at 06:00, the raw subtraction gives a negative number. Adding 1440 minutes corrects it to 8 hours, so night shifts are calculated correctly without any manual fiddling.
  • Decimal hours: payroll systems usually pay in decimal hours rather than minutes. To convert, divide the minutes by 60. So 15 minutes is 0.25 hours, 30 minutes is 0.5 hours, and 45 minutes is 0.75 hours.

If you need to remove an unpaid break, simply subtract the break duration in minutes before converting back to hours, or run the calculation in two parts and add the paid segments together.

Frequently Asked Questions

Convert each time to minutes since midnight using hours times 60 plus minutes, then subtract the start from the end. Divide the result by 60 to get hours and minutes. For 09:00 to 17:30, that is 1050 minus 540, which equals 510 minutes, or 8 hours and 30 minutes.

When the end time is earlier on the clock than the start time, the subtraction gives a negative number. The tool adds 1440 minutes, which is one full day, to correct it. So a shift from 22:00 to 06:00 is treated as the next day and returns 8 hours.

Decimal hours express minutes as a fraction of an hour, which is the format most payroll systems use. To convert, divide the minutes by 60. So 30 minutes is 0.5 hours and 45 minutes is 0.75 hours. A duration of 8 hours 30 minutes becomes 8.5 decimal hours.

Yes. Calculate the full duration first, then subtract the break length in minutes before converting back to hours. For example, an 8.5 hour shift with a 30 minute unpaid break gives 510 minus 30, which is 480 minutes, or 8 paid hours.

The calculation works on a 24 hour basis internally, so 5:30 in the afternoon is treated as 17:30. This keeps overnight periods accurate. If you enter times using a 12 hour format, just be sure to mark morning or evening correctly so the right values are used.

There are 510 minutes in 8 hours and 30 minutes. You get this by multiplying 8 hours by 60 to get 480 minutes, then adding the extra 30 minutes. As a decimal that is 8.5 hours, since 30 minutes is half of an hour.




Disclaimer : The results provided by these calculators are for informational purposes only and should not be considered as financial, medical, or professional advice. The accuracy of the calculations depends on the information entered, and actual results may vary. We recommend consulting a financial advisor or healthcare professional for personalized guidance.