Time Duration Calculator

Find the hours and minutes between two times of day.

Last updated

—Duration
—Decimal hours
—Total minutes

How to work out the time between two times

  1. Enter the start time and the end time.
  2. Tick End time is the next day if the period crosses midnight.
  3. Read the duration in hours and minutes.

About this tool

If the end time is earlier than the start time, check "End time is the next day" to have it treated as crossing midnight (e.g. 22:00 to 06:00 becomes an 8-hour overnight span) — without it, an end time earlier than the start is flagged as invalid rather than silently guessed at.

Nothing entered here is sent to a server — the entire calculation runs as JavaScript in your browser tab.

Questions about time durations

How many hours are there between two times?

Subtract the start from the end. From 08:45 to 17:15 is 8 hours 30 minutes.

How do I calculate hours over midnight?

Tick the next-day box. 22:00 to 06:00 is then 8 hours. Without it, an end time earlier than the start is flagged rather than guessed.

How do I turn hours and minutes into decimal hours?

Divide the minutes by 60. 7 hours 45 minutes is 7.75 hours, which is what most payroll systems use.

Can it add up a whole week of shifts?

Use the time card calculator, which totals each day, takes off breaks and works out overtime and pay.

☕ Support toolcrate