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
- Enter the start hour and minute.
- Enter the end hour and minute.
- 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
Time Duration Calculator
Find the duration between two times of day. Enter a start and end time to get hours and minutes, total minutes and decimal hours, including overnight shifts.
Add Time Calculator
Add or subtract hours, minutes and seconds from a time of day. See the new clock time and whether it crosses into another day. Free and private.
Time Zone Converter
Convert a date and time from one time zone to another. Pick any two IANA zones and see the converted time with UTC offsets. Handles DST automatically.
Add Business Days Calculator
Add or subtract working days from a date, skipping weekends and any holidays you list. See the result date and its day of the week instantly.
Add Days Calculator
Add or subtract calendar days from any date and see the result with its day of the week. Free, instant and works for past or future dates.
Add to Date
Add or subtract days, weeks, months and years from any date and get the new date. Handles month-end and leap days correctly. Free and instant.