Boneyard Tools

Time Difference Calculator

Enter a start time and an end time to get the duration in hours and minutes. Turn on cross midnight for shifts that run past 12 at night.

How to calculate the time difference

  1. Enter the start hour and minute.
  2. Enter the end hour and minute.
  3. Turn on cross midnight for overnight spans, then read the duration.

Examples

A standard workday

09:15 to 17:45
8h 30m (510 minutes)

Frequently asked questions

How do I calculate hours between two times?

Enter both times in 24-hour form. The tool subtracts the start from the end and shows the result as hours and minutes, plus the total in minutes.

What does cross midnight do?

It handles overnight spans. With it on, an end time earlier than the start, such as 22:00 to 06:00, is treated as the next day and returns 8 hours.

What if the end time is before the start time?

Without cross midnight enabled, that span is ambiguous and the tool asks you to enable cross midnight rather than guess.

Does it count in 24-hour time?

Yes. Hours run from 0 to 23 and minutes from 0 to 59, so 5pm is entered as 17. This avoids AM and PM confusion.

Can it return the total in minutes?

Yes. Along with the hours-and-minutes breakdown, the tool reports the total number of minutes, which is handy for timesheets and billing.

Related tools