SwiftTools

How many hours between two times calculator

Need to know how many hours between two times? This time duration calculator takes a start and end time and gives you the exact hours and minutes — night shifts crossing midnight are handled automatically.

Enter times
If the end time is earlier than the start time, it is treated as the next day (overnight).

Time duration calculator FAQ

How do I calculate the hours between two times?

Subtract the start time from the end time. This time duration calculator does it for you: enter both times and it shows the exact hours and minutes, plus total minutes and decimal hours.

What if my shift crosses midnight?

It is handled automatically — if the end time is earlier than the start time, it is treated as the next day, so a 22:00 to 06:00 shift correctly shows 8 hours 0 minutes.

Does it count partial hours and minutes?

Yes. The result shows hours and minutes (for example 8 hours 15 minutes), along with total minutes (495) and decimal hours (8.25) for timesheets and billing.

How do I enter AM and PM?

Use your browser's built-in time picker — it handles 12-hour (AM/PM) and 24-hour formats depending on your device settings.

Why isn't my duration negative when the end time is before the start time?

Overnight spans are assumed: an end time earlier than the start time is taken as the next day, so you always get a positive duration instead of a negative number.